_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 |
|---|---|---|---|---|---|---|---|---|
a1018c670c152f94cab7ba362f13abadf13cd0363526817dcc81e823ded57317 | cuplv/dai | state.mli | include Domain.Abstract.Dom
| null | https://raw.githubusercontent.com/cuplv/dai/e74b80154264c9a629e25a7e8830210387e6fb84/src/analysis/domain/shape/state.mli | ocaml | include Domain.Abstract.Dom
| |
c8f1d2d97184d4d164185ea4bbbac273d57b1f6c4a464f89a86c0cc4a56fce84 | 8c6794b6/haskell-sc-scratch | SynthDefs.hs | # LANGUAGE NoMonomorphismRestriction #
|
Module : $ Header$
CopyRight : ( c ) 8c6794b6
License : :
Stability : unstable
Portability : non - portable
Module to play with sending node repeatedly with response to sendReply .
This module contains UGen to be parsed with writeSynthdef . ... | null | https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Misc/Cd22e9d/SynthDefs.hs | haskell |
master controls
trigger controls
For recording piece
sound sources
effects
mixer
utility
| Multiply trigger value with buffer index value.
^ Buffer index
^ Trigger
| Percussive filtered noise sound, for next piece.
Too glassy for now
cd2tnzfa = mrg [amp, freq] where
freq = out ("outf"@@0)... | # LANGUAGE NoMonomorphismRestriction #
|
Module : $ Header$
CopyRight : ( c ) 8c6794b6
License : :
Stability : unstable
Portability : non - portable
Module to play with sending node repeatedly with response to sendReply .
This module contains UGen to be parsed with writeSynthdef . ... |
28d7d8f4f2d5d5bde7fb5026526485e6eb09ddc431b9de60bfadecd5a87bd308 | ktakashi/json-tools | json-select.scm | ;; json-tools library formula
(formula
(description "JSON tools for R6RS Scheme")
(version "HEAD")
(homepage :url "-tools")
(author :name "Takashi Kato" :email "")
(source
:type zip
:url "-tools/archive/master.zip")
(install (directories ("src"))))
| null | https://raw.githubusercontent.com/ktakashi/json-tools/502f63bd1b5acf4792451aa814107377cd04be79/formula/json-select.scm | scheme | json-tools library formula | (formula
(description "JSON tools for R6RS Scheme")
(version "HEAD")
(homepage :url "-tools")
(author :name "Takashi Kato" :email "")
(source
:type zip
:url "-tools/archive/master.zip")
(install (directories ("src"))))
|
9d773e971d868f4503546adc1365d792fc55ff35c65431d083e7f59d356d793b | nurpax/sqlite-simple | Main.hs | import Common
import Control.Exception (bracket)
import Control.Monad (when)
import System.Exit (exitFailure)
import System.IO
import Debug
import DirectSqlite
import Errors
import Fold
import ParamConv
import QQ
import Simple
import Function
import Statement
import TestImports()
import TestImports
import Us... | null | https://raw.githubusercontent.com/nurpax/sqlite-simple/91900808c0986f8a9f142c2897847a9d1e67d349/test/Main.hs | haskell | | Action for connecting to the database that will be used for testing.
| import Common
import Control.Exception (bracket)
import Control.Monad (when)
import System.Exit (exitFailure)
import System.IO
import Debug
import DirectSqlite
import Errors
import Fold
import ParamConv
import QQ
import Simple
import Function
import Statement
import TestImports()
import TestImports
import Us... |
0f5460d5ac1b9d2031454cfd0808a24a023a7fd2fc7532fefd443b0987c50145 | SNePS/SNePS2 | and.lisp | -*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*-
Copyright ( C ) 1984 - -2013
Research Foundation of State University of New York
Version : $ I d : and.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $
;; This file is part of SNePS.
$ BEGIN LICENSE$
The contents of this file are s... | null | https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snip/fns/and.lisp | lisp | Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*-
This file is part of SNePS.
you may
not use this file except in compliance with the License. You
may obtain a copy of the License at
. edu/sneps/Downloads/ubpl.pdf.
or implied. See the License for the specific language gov
erning rights and limitations ... |
Copyright ( C ) 1984 - -2013
Research Foundation of State University of New York
Version : $ I d : and.lisp , v 1.2 2013/08/28 19:07:27 shapiro Exp $
$ BEGIN LICENSE$
The contents of this file are subject to the University at
Software distributed under the License is distributed on an
" AS IS " basis... |
3952c277444a06f1981b090252627cb25b1ae91a710e23901f79897920f4a16b | idubrov/siperl | sip_ua_CANCEL_SUITE.erl | @author < >
@doc CANCEL method tests . Note that implementation of ` CANCEL ' processing is in sip_simple_uas .
%%% @end
2011 - 2012 . See LICENSE file .
-module(sip_ua_CANCEL_SUITE).
%% Exports
-export([all/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2]).
-export([apply_fun... | null | https://raw.githubusercontent.com/idubrov/siperl/251daf3a0d7c7442f56f42cfd6c92764a4f475a7/apps/sip/test/sip_ua_CANCEL_SUITE.erl | erlang | @end
Exports
Include files
Common tests
@end
@end
@end
@end
cancel the request
@end | @author < >
@doc CANCEL method tests . Note that implementation of ` CANCEL ' processing is in sip_simple_uas .
2011 - 2012 . See LICENSE file .
-module(sip_ua_CANCEL_SUITE).
-export([all/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2]).
-export([apply_fun/2]).
-export([cance... |
186b2c86a37aff483b6a342ba93f85feef892d60dc8c8407bf0f1ddcaa2fc8ee | miraj-project/miraj | world.clj | (println "starting load of hello/world.clj")
(miraj/co-ns hello.world
"docstring here"
(:main index)
(:meta :description "Miraj Hello World demo"
:title "Hello World!"
;; global attrs: #global-attributes
;; meta standard names: :application-name, :author, :... | null | https://raw.githubusercontent.com/miraj-project/miraj/bf6f7d4d1c383ac9294dcdef2ad48b3863b6d84f/dev/gae/mod-main/src/main/clojure/hello/world.clj | clojure | global attrs: #global-attributes
meta standard names: :application-name, :author, :description, :generator, :keywords
:charset; :itemprop?
extensions:
see
:viewport gets special treatment
e.g. :dc {:created ".." :creator "foo" ...}
link elts must have :rel and :href
:width, :height, initial-scale, minimum-... | (println "starting load of hello/world.clj")
(miraj/co-ns hello.world
"docstring here"
(:main index)
(:meta :description "Miraj Hello World demo"
:title "Hello World!"
:application-name "hello-world"
:apple {:mobile-capable :true
:stat... |
995788791257296cf092b9f1269dd5a15e2b4b8da01d56fd12b216ef0aa81dc4 | soupi/yh | Types.hs | # LANGUAGE PatternSynonyms #
module Play.Engine.Types where
import qualified SDL.Vect as Vect
import Control.Lens
-----------
-- Types --
-----------
type Point a = Vect.V2 a
type IPoint = Vect.V2 Int
type FPoint = Vect.V2 Float
type Size = Vect.V2 Int
x :: Lens' (Vect.V2 a) a
x = lens (\(Vect.V2 a _) -> a) (\(Ve... | null | https://raw.githubusercontent.com/soupi/yh/4cfbcc7da6f3ca5e330b7fd7d4adeacee7e2dff4/src/Play/Engine/Types.hs | haskell | ---------
Types --
--------- | # LANGUAGE PatternSynonyms #
module Play.Engine.Types where
import qualified SDL.Vect as Vect
import Control.Lens
type Point a = Vect.V2 a
type IPoint = Vect.V2 Int
type FPoint = Vect.V2 Float
type Size = Vect.V2 Int
x :: Lens' (Vect.V2 a) a
x = lens (\(Vect.V2 a _) -> a) (\(Vect.V2 _ b) a -> (Vect.V2 a b))
y ::... |
63eecb7c8b2f0de98a5c46c72a9a513ae7abd968e41a378083597181c2e46f10 | 0x0f0f0f/yasih | Evaluator.hs | # LANGUAGE FlexibleContexts #
module Yasih.Evaluator where
import Yasih.LispTypes
import Yasih.LispParser
import Yasih.Environment
import Yasih.Evaluator.Operators
import Yasih.Evaluator.Numerical
import Yasih.Evaluator.Char
import Yasih.Evaluator.Strings
import Yasih.Evaluator.Lists
import Yasih.Evaluator.Bool
import... | null | https://raw.githubusercontent.com/0x0f0f0f/yasih/d7cedc4e5b4ea5c6c59d2799bbd37524969f2467/src/Yasih/Evaluator.hs | haskell | |Evaluate expressions. Returns a monadic IOThrowsError value
In Lisp, data types for both code and data are the same
This means that this Evaluator returns a value of type IOThrowsError LispVal
Get a variable
Access the current lexical environment
| load a file and evaluate its contents. A special form
is used b... | # LANGUAGE FlexibleContexts #
module Yasih.Evaluator where
import Yasih.LispTypes
import Yasih.LispParser
import Yasih.Environment
import Yasih.Evaluator.Operators
import Yasih.Evaluator.Numerical
import Yasih.Evaluator.Char
import Yasih.Evaluator.Strings
import Yasih.Evaluator.Lists
import Yasih.Evaluator.Bool
import... |
019556ee7ba2cda59312f2cd59d9cd5707f74aa17a9bfb366499f4961921c53f | elaforge/karya | Config.hs | Copyright 2015
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
-- | Calls that configure other calls.
module Derive.C.Prelude.Config (library) where
import qualified Data.List.NonEmpty as NonEmpty
import qualified Data.Map as Map
import qualified Dat... | null | https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Derive/C/Prelude/Config.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
| Calls that configure other calls.
* initialize
[(_, [Either _ Pitch])] -> [(_, [Either _ Transposed])] | Copyright 2015
module Derive.C.Prelude.Config (library) where
import qualified Data.List.NonEmpty as NonEmpty
import qualified Data.Map as Map
import qualified Data.Set as Set
import qualified Util.Maps as Maps
import qualified Util.Seq as Seq
import qualified Derive.Args as Args
import qualified Derive.Call.Make... |
3876f3cc83321ae43c848afa7cb80b47413e2ed25ca4bbc7c8c89a98bd7e029d | SimulaVR/godot-haskell | AStar.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.AStar
(Godot.Core.AStar._compute_cost, Godot.Core.AS... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/AStar.hs | haskell | # NOINLINE bindAStar__estimate_cost #
| Called when estimating the cost between a point and the path's ending point.
| Called when estimating the cost between a point and the path's ending point.
@
@
If there already exists a point for the given @id@, its position and weight scale... | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.AStar
(Godot.Core.AStar._compute_cost, Godot.Core.AS... |
a3c70edcf717fbec7ac16b591dd03f82d1715427be6c96d4a621a32d5433769b | iconnect/ridley | Darwin.hs | # LANGUAGE RecordWildCards #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE QuasiQuotes #
# LANGUAGE TemplateHaskell #
module System.Metrics.Prometheus.Ridley.Metrics.Network.Darwin
( networkMetrics
, getNetworkMetrics
, mkInterfaceGauge
) where
import Control.Monad
im... | null | https://raw.githubusercontent.com/iconnect/ridley/a7e7fa00db0c6e814734f520f8fb6eb0736e7f94/ridley/src/System/Metrics/Prometheus/Ridley/Metrics/Network/Darwin.hs | haskell | # LANGUAGE OverloadedStrings #
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
| As this is a gauge, it makes no sense flushing it... | # LANGUAGE RecordWildCards #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE QuasiQuotes #
# LANGUAGE TemplateHaskell #
module System.Metrics.Prometheus.Ridley.Metrics.Network.Darwin
( networkMetrics
, getNetworkMetrics
, mkInterfaceGauge
) where
import Control.Monad
import Control.Monad.IO.Cla... |
eb080de6857882f00b4f633552110db61fedb6f1f20a9fe4a9fb80371baab158 | mbj/stratosphere | TrainingEnvironmentProperty.hs | module Stratosphere.SageMaker.ModelCard.TrainingEnvironmentProperty (
TrainingEnvironmentProperty(..), mkTrainingEnvironmentProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratos... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/ModelCard/TrainingEnvironmentProperty.hs | haskell | module Stratosphere.SageMaker.ModelCard.TrainingEnvironmentProperty (
TrainingEnvironmentProperty(..), mkTrainingEnvironmentProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratos... | |
94ae7b2d8a28b67213312ef6f3f8ff46387408217add94c81b3463113b8eda3a | Twinside/Rasterific | StrokeInternal.hs | module Graphics.Rasterific.StrokeInternal
( flatten
, dashize
, strokize
, dashedStrokize
, splitPrimitiveUntil
, approximatePathLength
, isPrimitivePoint
, sanitize
, sanitizeFilling
) where
import Graphics.Rasterific.Linear
( V2( .. )
, (^-^)
... | null | https://raw.githubusercontent.com/Twinside/Rasterific/eb07ea38aaad154e66de14a1b4a50fb70d0843bb/src/Graphics/Rasterific/StrokeInternal.hs | haskell | | Create a "rounded" join or cap
If we're already on a nice curvature,
don't bother doing anything
^
|w
a X---X c
\ /
Xp
^ / \ ^
u\/ \/v
/ \ .
Same as offseting
| Put a cap at the end of a bezier curve, depending
on the kind of cap wanted.
The usual "normal"
Vector pointing in ... | module Graphics.Rasterific.StrokeInternal
( flatten
, dashize
, strokize
, dashedStrokize
, splitPrimitiveUntil
, approximatePathLength
, isPrimitivePoint
, sanitize
, sanitizeFilling
) where
import Graphics.Rasterific.Linear
( V2( .. )
, (^-^)
... |
eca406b1662ed7b1473beaaf87d6ad40bf0b3fb3aeb275147ac798bec934d479 | dongcarl/guix | go-build-system.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2016 Petter < >
Copyright © 2017 , 2019 < >
Copyright © 2019 < >
Copyright © 2020 < >
Copyright © 2020 < >
Copyright © 2020 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/... | null | https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/guix/build/go-build-system.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 © 2016 Petter < >
Copyright © 2017 , 2019 < >
Copyright © 2019 < >
Copyright © 2020 < >
Copyright © 2020 < >
Copyright © 2020 < >
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... |
2d0765df7e935d6af3cfe0464426b5283149f6fe75d9a4d25cccea40df0cc19b | jrslepak/Remora | dsp.rkt | #lang remora/dynamic
(require racket/math)
(require "idioms.rkt")
(require "kernels.rkt")
;;; a simple yet naieve low pass filter
;;; y(n) = x(n) + x(n - 1)
(define (simple-low-pass (seed 0) (data 1))
(define lpblock (append (curtail (rotate data 1)) [0]))
(+ data lpblock))
;;; a simple yet naieve high pass filt... | null | https://raw.githubusercontent.com/jrslepak/Remora/1a831dec554df9a7ef3eeb10f0d22036f1f86dbd/remora/examples/dsp.rkt | racket | a simple yet naieve low pass filter
y(n) = x(n) + x(n - 1)
a simple yet naieve high pass filter
y(n) = x(n) - x(n - 1)
a more reasonable low pass filter
a more reasonalbe high pass filter
y(n) = α * (y(n - 1) + x(n) - x(n - 1)) | #lang remora/dynamic
(require racket/math)
(require "idioms.rkt")
(require "kernels.rkt")
(define (simple-low-pass (seed 0) (data 1))
(define lpblock (append (curtail (rotate data 1)) [0]))
(+ data lpblock))
(define (simple-high-pass (seed 0) (data 1))
(define hpblock (append (curtail (rotate data 1)) [0]))
... |
232a1eb0b3558e6f67467cf32719b7957ae8653a32c63a913a072be1de0da253 | denibertovic/denv | Utils.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
module Denv.Aws.Utils where
import RIO
import qualified Data.Text as T
import qualified Network.AWS as AWS
import qualified Data.Text.Encoding as TE
import qualified Network.AWS as AWS
import qualified Network.AWS.STS.Types as STS
import System.File... | null | https://raw.githubusercontent.com/denibertovic/denv/86a3d612d8207daad75ad38a1711ad048e8f6113/src/Denv/Aws/Utils.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE ScopedTypeVariables #
module Denv.Aws.Utils where
import RIO
import qualified Data.Text as T
import qualified Network.AWS as AWS
import qualified Data.Text.Encoding as TE
import qualified Network.AWS as AWS
import qualified Network.AWS.STS.Types as STS
import System.FilePath ((</>))
import System.Director... |
116874113dfd0b63dec49792850d8d252328c747ec267bc08b867d4ba257c825 | paf31/typescript-docs | Docs.hs | -----------------------------------------------------------------------------
--
-- Module : Language.TypeScript.Docs
Copyright : ( c ) DICOM Grid Inc. 2013
License : MIT
--
Maintainer : < >
-- Stability : experimental
-- Portability :
--
-- |
--
---------------------------------------... | null | https://raw.githubusercontent.com/paf31/typescript-docs/d7fb77e3ffa7eb61a58835377b63aa6cc83d450d/src/Language/TypeScript/Docs.hs | haskell | ---------------------------------------------------------------------------
Module : Language.TypeScript.Docs
Stability : experimental
Portability :
|
--------------------------------------------------------------------------- | Copyright : ( c ) DICOM Grid Inc. 2013
License : MIT
Maintainer : < >
module Language.TypeScript.Docs (
convertDeclarationsToHtml,
module Language.TypeScript.Docs.Comments,
module Language.TypeScript.Docs.Html
) where
import Language.TypeScript.Docs.Comments
import Language.TypeScrip... |
b30f20f56558e478b96ea1eb28b4e097d571b58b0f749973cc60b0ef89f1b4e5 | tweag/inline-js | Exception.hs | module Language.JavaScript.Inline.Core.Exception where
import Control.Exception
data NotThreadedRTS
= NotThreadedRTS
deriving (Show)
instance Exception NotThreadedRTS
data NodeVersionUnsupported
= NodeVersionUnsupported
deriving (Show)
instance Exception NodeVersionUnsupported
newtype EvalError = EvalErro... | null | https://raw.githubusercontent.com/tweag/inline-js/ef675745e84d23d51c50660d40acf9e684fbb2d6/inline-js-core/src/Language/JavaScript/Inline/Core/Exception.hs | haskell | module Language.JavaScript.Inline.Core.Exception where
import Control.Exception
data NotThreadedRTS
= NotThreadedRTS
deriving (Show)
instance Exception NotThreadedRTS
data NodeVersionUnsupported
= NodeVersionUnsupported
deriving (Show)
instance Exception NodeVersionUnsupported
newtype EvalError = EvalErro... | |
c694916f887b5c61fce451ff33a5b9fded4b033a358222fc36abd65d60a825fb | privet-kitty/cl-competitive | static-mod.lisp | (defpackage :cp/static-mod
(:use :cl)
(:export #:+mod+ #:mint #:mint-vector))
(in-package :cp/static-mod)
(defconstant +mod+ (if (boundp 'cl-user::+mod+)
(symbol-value 'cl-user::+mod+)
998244353))
(deftype mint () '(unsigned-byte 31))
(deftype mint-vector () '(simple-a... | null | https://raw.githubusercontent.com/privet-kitty/cl-competitive/a2e4156e66417c051404ade181ce6305cb0c2824/module/static-mod.lisp | lisp | (defpackage :cp/static-mod
(:use :cl)
(:export #:+mod+ #:mint #:mint-vector))
(in-package :cp/static-mod)
(defconstant +mod+ (if (boundp 'cl-user::+mod+)
(symbol-value 'cl-user::+mod+)
998244353))
(deftype mint () '(unsigned-byte 31))
(deftype mint-vector () '(simple-a... | |
7df680095c0296bf8c85f8091a1aca4087b56ce88301505387193d295fc6aa00 | supermario/oak | Schema.hs | -- This is necessary to allow us to have the same field name in multiple records
# LANGUAGE DuplicateRecordFields #
module Schema where
import Evergreen
data ColorX = ColorX
{ id :: PrimaryInt
, hex :: String
, user :: User
, createdAt :: Datetime
, updatedAt :: Datetime
}
data Message = Message
{ id ... | null | https://raw.githubusercontent.com/supermario/oak/220a4d378dd192aeebec6c10aa71d630669f7413/evergreen/Schema.hs | haskell | This is necessary to allow us to have the same field name in multiple records | # LANGUAGE DuplicateRecordFields #
module Schema where
import Evergreen
data ColorX = ColorX
{ id :: PrimaryInt
, hex :: String
, user :: User
, createdAt :: Datetime
, updatedAt :: Datetime
}
data Message = Message
{ id :: PrimaryInt
, user :: User
, createdAt :: Datetime
, updatedAt :: Datetim... |
27aa37c704eed4c52ae2d75358cb8fb68e5055c21f5d7bc2c6dc57296b85f0bd | finnishtransportagency/harja | yhteiset.cljs | (ns harja.tiedot.urakka.kulut.yhteiset
(:require
[harja.domain.kulut.valikatselmus :as valikatselmus]
[harja.domain.muokkaustiedot :as muokkaustiedot]
[harja.tiedot.urakka :as urakka-tiedot]
[harja.pvm :as pvm]
[harja.tiedot.urakka.urakka :as tila]
[tuck.core :as tuck]))
(def manuaalisen-katt... | null | https://raw.githubusercontent.com/finnishtransportagency/harja/11b8a2a6cf5737336bfa04d351583646c8050f15/src/cljs/harja/tiedot/urakka/kulut/yhteiset.cljs | clojure | (ns harja.tiedot.urakka.kulut.yhteiset
(:require
[harja.domain.kulut.valikatselmus :as valikatselmus]
[harja.domain.muokkaustiedot :as muokkaustiedot]
[harja.tiedot.urakka :as urakka-tiedot]
[harja.pvm :as pvm]
[harja.tiedot.urakka.urakka :as tila]
[tuck.core :as tuck]))
(def manuaalisen-katt... | |
fb54f909d56735c80c9bec7d9fa54262418adc06b43ed8aaf1c3ca0985040175 | rudolph-miller/clipper | 1.usage.lisp | (in-package :cl-user)
(defpackage clipper.sample
(:use :cl
:integral
:clipper))
(in-package :clipper.sample)
(connect-toplevel :mysql :database-name "clipper_sample" :username "root")
(defclass picture ()
((id :col-type (:integer 11)
:primary-key t
:auto-increment t
:not-null ... | null | https://raw.githubusercontent.com/rudolph-miller/clipper/b07a1be210d5504cd67c8e303168cb4bc09f642e/examples/1.usage.lisp | lisp | (in-package :cl-user)
(defpackage clipper.sample
(:use :cl
:integral
:clipper))
(in-package :clipper.sample)
(connect-toplevel :mysql :database-name "clipper_sample" :username "root")
(defclass picture ()
((id :col-type (:integer 11)
:primary-key t
:auto-increment t
:not-null ... | |
8e7d8fea2f34004af0ebd91a577742be26d009e255b6d8983a3085d1cdf112e6 | rescript-lang/rescript-compiler | parsetree.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/rescript-lang/rescript-compiler/5da6c88fb9237fbc4d61640187b82627690ccf39/jscomp/ml/parsetree.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Asttypes
type constant =
Pconst_integer of string * char option
3 3l 3L 3n
Suffixes ... |
da0322c41448b70287c5b58f5cefd32193c2fdb210f3d7aafea1b8b9576083f4 | clutter-lang/clutter | eval.lisp | ;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
(in-package #:clutter)
(declaim (optimize debug))
;;;
;;; Primitive Constants
;;;
(defparameter *true* (cs "#t"))
(defparameter *false* (cs "#f"))
(defun clutter-load (filespec)
(with-open-file (stream filespec)
(loop for expr = (clutter-read stream nil)
... | null | https://raw.githubusercontent.com/clutter-lang/clutter/a198828cc9e9fc44d809fd073392d25e0df13d7d/src/eval.lisp | lisp | -*- Mode: Lisp; indent-tabs-mode: nil -*-
Primitive Constants
|
(in-package #:clutter)
(declaim (optimize debug))
(defparameter *true* (cs "#t"))
(defparameter *false* (cs "#f"))
(defun clutter-load (filespec)
(with-open-file (stream filespec)
(loop for expr = (clutter-read stream nil)
while expr
do (clutter-eval expr)))
t)
(defun clutter-eval (ex... |
6aaa9c21ce2b3a7076630c7bcf67c5e769f6b907ca3eee64ca6965c2f711b09e | bytekid/mkbtt | graph.ml | Copyright 2008 , Christian Sternagel ,
* GNU Lesser General Public License
*
* This file is part of TTT2 .
*
* TTT2 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 ve... | null | https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/util/src/graph.ml | ocaml | ** OPENS *******************************************************************
** MODULES *****************************************************************
** MODULE TYPES ************************************************************
** MODULES *****************************************************************
** MODULES *... | Copyright 2008 , Christian Sternagel ,
* GNU Lesser General Public License
*
* This file is part of TTT2 .
*
* TTT2 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 ve... |
27d9869ca6cf71be3a414eae897241a1b822410271fe440bbc31fe9859c02c27 | kappelmann/eidi2_repetitorium_tum | ha6_angabe.ml | type avl_tree =
Node of avl_tree_node
| Leaf
and avl_tree_node = {
key : int;
balance : int;
left : avl_tree;
right : avl_tree;
}
[@@deriving show]
let singleton key = Node {
key = key;
balance = 0;
left = Leaf;
right = Leaf;
}
let signum x =
if x > 0 then 1
else if x < 0 then -1
... | null | https://raw.githubusercontent.com/kappelmann/eidi2_repetitorium_tum/1d16bbc498487a85960e0d83152249eb13944611/additional_exercises/2016_17/Blatt%206%20L%C3%B6sungen/ocaml/ha6_angabe.ml | ocaml | type avl_tree =
Node of avl_tree_node
| Leaf
and avl_tree_node = {
key : int;
balance : int;
left : avl_tree;
right : avl_tree;
}
[@@deriving show]
let singleton key = Node {
key = key;
balance = 0;
left = Leaf;
right = Leaf;
}
let signum x =
if x > 0 then 1
else if x < 0 then -1
... | |
968c9b7b994e9aada426b01ef3a377408120b7bc5b1044e47380ad59ebb76645 | wdebeaum/DeepSemLex | triangle.lisp | ;;;;
;;;; W::triangle
;;;;
(define-words :pos W::n :templ COUNT-PRED-TEMPL
:words (
(W::triangle
(SENSES
((meta-data :origin fruit-carts :entry-date 20041103 :change-date nil :wn ("triangle%1:25:00") :comments nil)
(example "take the triangle with the heart on the side")
(LF-PARENT ONT::SHAPE-OBJEC... | null | https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/triangle.lisp | lisp |
W::triangle
|
(define-words :pos W::n :templ COUNT-PRED-TEMPL
:words (
(W::triangle
(SENSES
((meta-data :origin fruit-carts :entry-date 20041103 :change-date nil :wn ("triangle%1:25:00") :comments nil)
(example "take the triangle with the heart on the side")
(LF-PARENT ONT::SHAPE-OBJECT)
)
)
)
))
|
bc2c0be5f5cd6c619b46d3c8e9fcfe6434812f5e459850ab085d3eae0e2ef0d6 | rtoy/cmucl | dlisp.lisp | -*-Mode : LISP ; Package:(PCL LISP 1000 ) ; ; Syntax : Common - lisp -*-
;;;
;;; *************************************************************************
Copyright ( c ) 1985 , 1986 , 1987 , 1988 , 1989 , 1990 Xerox Corporation .
;;; All rights reserved.
;;;
;;; Use and copying of this software and preparation of d... | null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/pcl/dlisp.lisp | lisp | Package:(PCL LISP 1000 ) ; ; Syntax : Common - lisp -*-
*************************************************************************
All rights reserved.
Use and copying of this software and preparation of derivative works
based upon this software are permitted. Any distribution of this
States export control law... | Copyright ( c ) 1985 , 1986 , 1987 , 1988 , 1989 , 1990 Xerox Corporation .
software or derivative works must comply with all applicable United
This software is made available AS IS , and Xerox Corporation makes no
CommonLoops Coordinator
Xerox PARC
3333 Coyote Hill Rd .
Palo Alto , CA 94304
( o... |
9776739220760bb480cd1c4691c1114cec3f11fc0632bda3ed8e42af4878aefa | emqx/esockd | esockd_proxy_protocol.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 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 of the L... | null | https://raw.githubusercontent.com/emqx/esockd/9b959fc11a1c398a589892f335235be6c5b4a454/src/esockd_proxy_protocol.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 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(esockd_proxy_protocol).
-include("esockd.hrl").
-export([recv/3]).
-ifdef(TEST).
-export([pa... |
617e7486060eb46fa21f8f5955aaeb8ca6801a13aae2927afc129e096bc4dab7 | nominolo/lambdachine | SumFromTo.hs | # LANGUAGE NoImplicitPrelude , MagicHash , BangPatterns #
-- RUN: %bc_vm
-- Fails with:
No instance for ( GHC.Num . )
-- arising from the literal `1234567890'
Possible fix : add an instance declaration for ( GHC.Num . )
In the first argument of ` sum ' , namely ` 1234567890 '
In the expression : ( sum 123... | null | https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Bc/SumFromTo.hs | haskell | RUN: %bc_vm
Fails with:
arising from the literal `1234567890'
In an equation for `test':
XFAIL: *
module (or package even).
replicate :: Int -> a -> List a
replicate n x =
case n of
I# 0# -> Nil
_ -> Cons x (replicate (n `minusInt` I# 1#) x)
replicate' n x
| I# 0# `gtInt` n = Nil
| True = Cons... | # LANGUAGE NoImplicitPrelude , MagicHash , BangPatterns #
No instance for ( GHC.Num . )
Possible fix : add an instance declaration for ( GHC.Num . )
In the first argument of ` sum ' , namely ` 1234567890 '
In the expression : ( sum 1234567890 ( upto ( I # 1 # ) ( I # 15 # ) ) )
test = ( sum 1234567890... |
307a4355939ce9ce6c3e615014c38ad2b6e661b674762454021c0af813a4502f | fragnix/fragnix | GHC.Constants.hs | {-# LINE 1 "GHC.Constants.hs" #-}
# LANGUAGE Trustworthy #
# LANGUAGE NoImplicitPrelude #
module GHC.Constants where
TODO : This used to include HaskellConstants.hs , but that has now gone .
We probably want to include the constants in somehow
-- instead.
import GHC.Base () -- dummy dependency
| null | https://raw.githubusercontent.com/fragnix/fragnix/b9969e9c6366e2917a782f3ac4e77cce0835448b/builtins/base/GHC.Constants.hs | haskell | # LINE 1 "GHC.Constants.hs" #
instead.
dummy dependency | # LANGUAGE Trustworthy #
# LANGUAGE NoImplicitPrelude #
module GHC.Constants where
TODO : This used to include HaskellConstants.hs , but that has now gone .
We probably want to include the constants in somehow
|
a8978ba5c504970bc30bf619608c917e689bd58d52a59d62db649d57f595daa4 | fogfish/pts | pts_entity_sup.erl | %%
Copyright ( c ) 2012 - 2013 ,
%% All Rights Reserved.
%%
%% This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License , version 3.0
as published by the Free Software Foundation ( the " License " ) .
%%
Software distributed under... | null | https://raw.githubusercontent.com/fogfish/pts/f98c594f1e596f81b5e54c9791bf69568327fba2/src/pts_entity_sup.erl | erlang |
All Rights Reserved.
This library is free software; you can redistribute it and/or modify
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitations
under the License.
License along with this library; if not, write to the ... | Copyright ( c ) 2012 - 2013 ,
it under the terms of the GNU Lesser General Public License , version 3.0
as published by the Free Software Foundation ( the " License " ) .
Software distributed under the License is distributed on an " AS IS "
You should have received a copy of the GNU Lesser General Pub... |
b272739c7092d4f77afd30d3788cca3a70f4040e1d0eff51d04f429566ee0dc4 | cmsc430/www | id-def-call.rkt | #lang racket
(define (f x) x)
(f 5)
| null | https://raw.githubusercontent.com/cmsc430/www/23cf4e30e4bac377f656dc21fc7f2aea3005068a/langs/test-programs/iniquity/id-def-call.rkt | racket | #lang racket
(define (f x) x)
(f 5)
| |
d640c64915fd53996d96201e4fc04559491405d9be987f20a6c59b26c25a5725 | GlideAngle/flare-timing | PointDiff.hs | module Serve.PointDiff (DiffWay(..), getTaskPointsDiffStats) where
import Control.Monad.Reader (MonadReader(), asks)
import qualified Data.Map.Strict as Map
import qualified Statistics.Sample as Stats (meanVariance)
import qualified Data.Vector as V (fromList)
import Data.Vector (Vector)
import Servant (throwError)
i... | null | https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/app-serve/src/Serve/PointDiff.hs | haskell | NOTE: For some pilots, airScore is giving a null score. To do the stats, | module Serve.PointDiff (DiffWay(..), getTaskPointsDiffStats) where
import Control.Monad.Reader (MonadReader(), asks)
import qualified Data.Map.Strict as Map
import qualified Statistics.Sample as Stats (meanVariance)
import qualified Data.Vector as V (fromList)
import Data.Vector (Vector)
import Servant (throwError)
i... |
ecfdd5eab1a84e26528021fbe7a11e2292110653a6cc5025b07f2ae0d94adb75 | stumpwm/stumpwm-contrib | test.lisp | (require :desktop-entry)
(require :fiveam)
(in-package #:desktop-entry)
(defconstant *desktop-entry-pathnames*
'(#P"google-chrome.desktop"
#P"emacs.desktop"
#P"xterm.desktop"
#P"i3.desktop"
#P"libfm-pref-apps.desktop"
#P"firefox.desktop"))
(defconstant *true-value-plist*
'((:name "Google Chrome"... | null | https://raw.githubusercontent.com/stumpwm/stumpwm-contrib/a7dc1c663d04e6c73a4772c8a6ad56a34381096a/util/desktop-entry/test/test.lisp | lisp | (init-entry-list) | (require :desktop-entry)
(require :fiveam)
(in-package #:desktop-entry)
(defconstant *desktop-entry-pathnames*
'(#P"google-chrome.desktop"
#P"emacs.desktop"
#P"xterm.desktop"
#P"i3.desktop"
#P"libfm-pref-apps.desktop"
#P"firefox.desktop"))
(defconstant *true-value-plist*
'((:name "Google Chrome"... |
3e32cdfb14cd8f31681adb667ef30db0710da1e931a56189cc2a9a096864debf | eamsden/pushbasedFRP | SignalVectors.hs | # LANGUAGE KindSignatures , EmptyDataDecls , GADTs , TypeFamilies #
-- | This module defines /signal vectors/, a type-level representation
-- of the input and output structure of signal functions, and value
-- representations typed with signal vectors for use in implementing
-- signal functions.
module FRP.TimeFlies.Si... | null | https://raw.githubusercontent.com/eamsden/pushbasedFRP/1d6afd7aa2e45f44b9daa4a2265338747a6aa443/Code/time-flies/src/FRP/TimeFlies/SignalVectors.hs | haskell | | This module defines /signal vectors/, a type-level representation
of the input and output structure of signal functions, and value
representations typed with signal vectors for use in implementing
signal functions.
* Type Representation of Signal Vectors
| A signal vector is a type which describes
the structur... | # LANGUAGE KindSignatures , EmptyDataDecls , GADTs , TypeFamilies #
module FRP.TimeFlies.SignalVectors
(
types using GADTs , we can include signal vectors in the types
SVEmpty(), SVSignal(), SVEvent(), SVAppend(),
SVOccurrence(), occurrence, occLeft, occRight,
splitOccurrences, occurrenceListToMaybe, ... |
98df866868d4024a5235c13f588b3ba2eef9f252268bc06eae38c47a81b371ba | input-output-hk/qeditas | blocktree.ml | Copyright ( c ) 2015 - 2016 The Qeditas developers
Distributed under the MIT software license , see the accompanying
file COPYING or -license.php .
file COPYING or -license.php. *)
open Big_int
open Utils
open Ser
open Hashaux
open Sha256
open Hash
open Net
open Db
open Assets
open Signat
open Tx
open Ctre... | null | https://raw.githubusercontent.com/input-output-hk/qeditas/f4871bd20833cd08a215f9d5fc9df2d362cba410/src/blocktree.ml | ocaml | ** can never happen **
** wrong hash, remove it but don't blacklist the (wrong) hashval **
** checking the validity of signatures and support depend on the current ledger; delay this here in favor of checking them before including them in a block we're actively trying to stake; note that the relevant properties are che... | Copyright ( c ) 2015 - 2016 The Qeditas developers
Distributed under the MIT software license , see the accompanying
file COPYING or -license.php .
file COPYING or -license.php. *)
open Big_int
open Utils
open Ser
open Hashaux
open Sha256
open Hash
open Net
open Db
open Assets
open Signat
open Tx
open Ctre... |
d61ca3902159134f81c6b1411fc777801a3d0d2e29dabbd442f566c979dfcf0c | renatoalencar/ocaml-socks-client | test_socks4.ml | open Socks
let test_socks4_connect_ip_address () =
let request = Socks4.Request.connect (`IPv4 (Ipaddr.V4.of_string_exn "192.168.0.1")) 80 in
let buf = Socks4.Request.to_string request in
Alcotest.(check string) "Request should match"
buf "\004\001\000\080\192\168\000\001\000"
let test_socks4_bind_ip_addres... | null | https://raw.githubusercontent.com/renatoalencar/ocaml-socks-client/1acef3e07123483f6ea571387029930684120be1/tests/test_socks4.ml | ocaml | open Socks
let test_socks4_connect_ip_address () =
let request = Socks4.Request.connect (`IPv4 (Ipaddr.V4.of_string_exn "192.168.0.1")) 80 in
let buf = Socks4.Request.to_string request in
Alcotest.(check string) "Request should match"
buf "\004\001\000\080\192\168\000\001\000"
let test_socks4_bind_ip_addres... | |
0355bb91ad71f18f08ba5b0c32b9629daecd78cd60ac289477527036d1d24988 | coq/coq | pltac.mli | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * *... | null | https://raw.githubusercontent.com/coq/coq/c6ab5496cb6694e9e5b33183a9645e14083b90f7/plugins/ltac/pltac.mli | ocaml | **********************************************************************
* The Coq Proof Assistant / The Coq Development Team
// * This file is distributed under the terms of the
* (see LICENSE file for the text of the license)
************************************... | v * Copyright INRIA , CNRS and contributors
< O _ _ _ , , * ( see version control and CREDITS file for authors & dates )
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GNU Lesser Gener... |
a2eb242e3e1cd140d48ed9b594df96c1288e00f3f7b91b7f493350b94e61bf0c | gas2serra/mcclim-desktop | application-mixins.lisp | (in-package :desktop-internals)
;;;;
;;;; Application Mixin
;;;;
;;;
;;; Simple Application Mixin
;;;
(defclass simple-application-mixin ()
((entry-fn :initarg :entry-fn
:accessor application-entry-fn
:initform nil)))
(defmethod run-application ((application simple-application-mixin) &rest args)
(w... | null | https://raw.githubusercontent.com/gas2serra/mcclim-desktop/f85d19c57d76322ae3c05f98ae43bfc8c0d0a554/Core/src/application-mixins.lisp | lisp |
Application Mixin
Simple Application Mixin
Simple CL Appplication Mixin
Simple Shell Mixin
protocols
protocol: application files
protocol: load files
protocol: configure
Debugger Application
| (in-package :desktop-internals)
(defclass simple-application-mixin ()
((entry-fn :initarg :entry-fn
:accessor application-entry-fn
:initform nil)))
(defmethod run-application ((application simple-application-mixin) &rest args)
(with-slots (entry-fn name) application
(if entry-fn
(apply entry-fn... |
94f4d391a334895af1c4e37ef09b9632d0cc725954feb13bb3411cbd2675cde7 | moby/vpnkit | connect.mli | module Unix: sig
include Sig.Connector
val vsock_path: string ref
end
module Hvsock: sig
include Sig.Connector
val set_port_forward_addr: Hvsock.Af_hyperv.sockaddr -> unit
end
| null | https://raw.githubusercontent.com/moby/vpnkit/7bfcba6e59c1e5450b667a392bf56371faae58b2/src/bin/connect.mli | ocaml | module Unix: sig
include Sig.Connector
val vsock_path: string ref
end
module Hvsock: sig
include Sig.Connector
val set_port_forward_addr: Hvsock.Af_hyperv.sockaddr -> unit
end
| |
fdae13c8d1bbf663518a8f11c3dd09fab1ce01eb7e780fd4cc450700be5f5059 | BinaryAnalysisPlatform/bap-plugins | memdep.mli | open Bap.Std
type t
(** [create ?memory arch sub] computes a memory model of a given
subroutine [sub]. If static memory is provided, then it will
be used to resolve memory accesses.*)
val create : ?memory:value memmap -> arch -> sub term -> t
(** [load model ~mem ~addr endian size] statically evaluates
... | null | https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap-plugins/2e9aa5c7c24ef494d0e7db1b43c5ceedcb4196a8/fold_consts/memdep.mli | ocaml | * [create ?memory arch sub] computes a memory model of a given
subroutine [sub]. If static memory is provided, then it will
be used to resolve memory accesses.
* [load model ~mem ~addr endian size] statically evaluates
with respect to a computed memory [model]. | open Bap.Std
type t
val create : ?memory:value memmap -> arch -> sub term -> t
val load : t -> mem:exp -> addr:exp -> endian -> size -> exp option
|
309e0729c25dbd68f5bd9f7ad2a7de2e843ff03d80870ab912a6e014ae4e3cc6 | monadbobo/ocaml-core | core_array.ml | module Array = StdLabels.Array
open Sexplib.Std
open Bin_prot.Std
let invalid_argf = Core_printf.invalid_argf
type 'a t = 'a array with sexp, bin_io
let max_length = Caml.Sys.max_array_length
(* Standard functions *)
let append = Array.append
let blit = Array.blit
let concat = Array.concat
let copy = Array.copy
let... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/lib/core_array.ml | ocaml | Standard functions
* [nget array index] "normalizes" the index to {!Array.get} -- see normalize
* [nset array index value] "normalizes" the index to {!Array.set} -- see normalize
* reverses an array in place.
[list_length] and [of_list_rev_map] are based on functions from the
OCaml distribution.
* [filter_opt... | module Array = StdLabels.Array
open Sexplib.Std
open Bin_prot.Std
let invalid_argf = Core_printf.invalid_argf
type 'a t = 'a array with sexp, bin_io
let max_length = Caml.Sys.max_array_length
let append = Array.append
let blit = Array.blit
let concat = Array.concat
let copy = Array.copy
let create_matrix = Array.cr... |
5f75c0a587d2a49e3719693c9fac0d1cb2baa3c674794f42aa1463cb38c22d95 | lemmaandrew/CodingBatHaskell | hasOne.hs | From
Given a positive int n , return true if it contains a 1 digit . Note : use % to get
the rightmost digit , and / to discard the rightmost digit .
Given a positive int n, return true if it contains a 1 digit. Note: use % to get
the rightmost digit, and / to discard the rightmost digit.
-}
import Test.Hspec... | null | https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/AP-1/hasOne.hs | haskell | From
Given a positive int n , return true if it contains a 1 digit . Note : use % to get
the rightmost digit , and / to discard the rightmost digit .
Given a positive int n, return true if it contains a 1 digit. Note: use % to get
the rightmost digit, and / to discard the rightmost digit.
-}
import Test.Hspec... | |
ec127dee5491a7c39fa1b1c4047b0b27ca9503e627d0aa186e2d068afbce0297 | alephcloud/hs-aws-kinesis-client | CLI.hs | Copyright ( c ) 2013 - 2015 PivotCloud , Inc.
--
. . Client . Consumer
--
-- Please feel free to contact us at with any
-- contributions, additions, or other feedback; we would love to hear from
-- you.
--
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may
-- not use this file except... | null | https://raw.githubusercontent.com/alephcloud/hs-aws-kinesis-client/8ef77b8b7d7e9a840b1c7bd39b44861957580a1c/cli/CLI.hs | haskell |
Please feel free to contact us at with any
contributions, additions, or other feedback; we would love to hear from
you.
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
WARRANTIES OR COND... | Copyright ( c ) 2013 - 2015 PivotCloud , Inc.
. . Client . Consumer
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may
distributed under the License is distributed on an " AS IS " BASIS , WITHOUT
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNew... |
f50bfb0050cae437b160ba6ecc0407dee5886216a60c50ae2d450039cf701891 | iustin/corydalis | ImageSpec.hs |
Copyright ( C ) 2013
This program is free software : you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version 3 of the License , or
( at your option ) any later version .
This program is distributed i... | null | https://raw.githubusercontent.com/iustin/corydalis/43f8bf004904847fad43c428a9e1b20e67da964d/test/Handler/ImageSpec.hs | haskell | # LANGUAGE OverloadedStrings # |
Copyright ( C ) 2013
This program is free software : you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation , either version 3 of the License , or
( at your option ) any later version .
This program is distributed i... |
82a9405420096c26c366aaff3a2c6f8810db7eb33cae07798e1cb51b2e0a50ed | 8c6794b6/guile-tjit | t-mod-03.scm | ;;; Loop with modulo, with various sign combinations.
(define (loop n x)
(let lp ((n n) (acc '()))
(if (= n 0)
(reverse! acc)
(lp (- n 1) (cons (list (modulo n x)
(modulo (- n) x)
(modulo n (- x))
(mod... | null | https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-mod-03.scm | scheme | Loop with modulo, with various sign combinations. |
(define (loop n x)
(let lp ((n n) (acc '()))
(if (= n 0)
(reverse! acc)
(lp (- n 1) (cons (list (modulo n x)
(modulo (- n) x)
(modulo n (- x))
(modulo (- n) (- x)))
acc)))))
... |
7ff015797b9dc68dc65e17016bd64c1f4b789b6d60cc45432b0ab91d3289f7cc | janestreet/universe | import.ml | open! Core
open Pam
(* The service [other] comes with the recent [pam] package *)
let default_service = "other"
let default_user = "foo"
let with_pam ?(user = default_user) ?(service = default_service) ~f () =
let open Or_error.Let_syntax in
let conv _ = Error Pam_conv.Result.PAM_CONV_ERR in
let%bind t = pam_st... | null | https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/pam/test/import.ml | ocaml | The service [other] comes with the recent [pam] package | open! Core
open Pam
let default_service = "other"
let default_user = "foo"
let with_pam ?(user = default_user) ?(service = default_service) ~f () =
let open Or_error.Let_syntax in
let conv _ = Error Pam_conv.Result.PAM_CONV_ERR in
let%bind t = pam_start ~service ~user ~conv in
let value = f t in
let%bind ()... |
697b580881e05c0561a693688adb6ea22d8deb110c9a9803e2208afaa6ec5155 | jessealama/argo | main.rkt | #lang racket/base
(provide adheres-to-schema?
json-schema?
check-json/schema
json-pretty-print
json-in-one-line
parse-json)
(require (only-in (file "./schema.rkt")
json-schema?))
(require (only-in (file "./validate.rkt")
adheres-to-schem... | null | https://raw.githubusercontent.com/jessealama/argo/244234415715d2e9294d56f04f79e86f56bcb64f/main.rkt | racket | Checking at the command line | #lang racket/base
(provide adheres-to-schema?
json-schema?
check-json/schema
json-pretty-print
json-in-one-line
parse-json)
(require (only-in (file "./schema.rkt")
json-schema?))
(require (only-in (file "./validate.rkt")
adheres-to-schem... |
b6f7ca0b44324ed8d396615a2908d2481a27448a8266f20b4f26ae4d1086736f | haskell-github/github | SearchIssues.hs | {-# LANGUAGE OverloadedStrings #-}
module Main where
import qualified GitHub
import qualified Data.Text as T
import Control.Monad (forM_)
import Data.Monoid ((<>))
main :: IO ()
main = do
let query = "build repo:haskell-github/github"
result <- GitHub.github' GitHub.searchIssuesR query 1000
case result of
L... | null | https://raw.githubusercontent.com/haskell-github/github/83acdf8f4c7d525c896e9d12494be65a628007c3/samples/Search/SearchIssues.hs | haskell | # LANGUAGE OverloadedStrings # | module Main where
import qualified GitHub
import qualified Data.Text as T
import Control.Monad (forM_)
import Data.Monoid ((<>))
main :: IO ()
main = do
let query = "build repo:haskell-github/github"
result <- GitHub.github' GitHub.searchIssuesR query 1000
case result of
Left e -> putStrLn $ "Error: " ++ s... |
d5ad7db608490d1cf287e14e77cdcec94bd8d19a12a123b2aa69093ebb6cccec | mstksg/advent-of-code-2017 | Disjoints.hs |
module AOC2017.Util.Disjoints (
Disjoints(..)
, disjoint
) where
import Data.List
import qualified Data.IntSet as IS
import qualified Data.Set as S
-- | Monoid representing a collection of disjoint "connected sets"
newtype Disjoints = D { getD :: S.Set IS.IntSet }
instance Monoid Disjoints where... | null | https://raw.githubusercontent.com/mstksg/advent-of-code-2017/f9e97680726e87be175cf423241da3048ef6564d/src/AOC2017/Util/Disjoints.hs | haskell | | Monoid representing a collection of disjoint "connected sets" |
module AOC2017.Util.Disjoints (
Disjoints(..)
, disjoint
) where
import Data.List
import qualified Data.IntSet as IS
import qualified Data.Set as S
newtype Disjoints = D { getD :: S.Set IS.IntSet }
instance Monoid Disjoints where
mempty = D S.empty
| mappend is much faster if the sm... |
279c53ab396c4e8e322b8ad51265211e36f825df097edef5ea6625a98296991f | grin-compiler/ghc-whole-program-compiler-project | Linker.hs | # LANGUAGE RecordWildCards #
module Stg.Foreign.Linker where
import Data.List
import System.Directory
import System.FilePath
import System.Process
import Text.Printf
import Stg.Program
import Stg.Syntax
import Stg.Foreign.Stubs
getExtStgWorkDirectory :: FilePath -> IO FilePath
getExtStgWorkDirectory ghcstgappFname =... | null | https://raw.githubusercontent.com/grin-compiler/ghc-whole-program-compiler-project/5c1121243e1a73dcf5882d8b6c4f6c5569234ea1/external-stg/lib/Stg/Foreign/Linker.hs | haskell | # LANGUAGE RecordWildCards #
module Stg.Foreign.Linker where
import Data.List
import System.Directory
import System.FilePath
import System.Process
import Text.Printf
import Stg.Program
import Stg.Syntax
import Stg.Foreign.Stubs
getExtStgWorkDirectory :: FilePath -> IO FilePath
getExtStgWorkDirectory ghcstgappFname =... | |
9a9a8e54cb9f992f509d8574a5b83f1391d4a3cf09a369dffdbaebca1be1e62a | yetanalytics/sse-fx | command.cljs | (ns com.yetanalytics.sse-fx.command
"Easily send command events to a server. Posts, uses transit, and expects a 202"
(:require [goog.net.XhrIo :as xhrio]
[com.yetanalytics.sse-fx.codec :as codec]
[re-frame.core :as re-frame]))
(defn send-command! [{:keys [uri data
... | null | https://raw.githubusercontent.com/yetanalytics/sse-fx/0d1cf6f271ea15d3d4a24d898caca6542d754b54/src/com/yetanalytics/sse_fx/command.cljs | clojure | (ns com.yetanalytics.sse-fx.command
"Easily send command events to a server. Posts, uses transit, and expects a 202"
(:require [goog.net.XhrIo :as xhrio]
[com.yetanalytics.sse-fx.codec :as codec]
[re-frame.core :as re-frame]))
(defn send-command! [{:keys [uri data
... | |
a1d6230565ceaf2e826cddf9f316cd1f4010157ca4567e2010613890ab45e9c6 | CompSciCabal/SMRTYPRTY | nikolap.rkt | 2.78
(define (type-tag datum)
(cond ((number? datum) datum)
((pair? datum) (car datum))
(else (error "Bad tagged datum -- TYPE-TAG" datum))))
(define (contents datum)
(cond ((number? datum) datum)
((pair? datum) (cadr datum))
(else (error "Bad tagged datum -- CONTENGS" datum))))
... | null | https://raw.githubusercontent.com/CompSciCabal/SMRTYPRTY/4a5550789c997c20fb7256b81469de1f1fce3514/sicp/v3/2.5/nikolap.rkt | racket | internal procedures
interface to rest of the system
imported procedures from rectangular and polar packages
internal procedures
interface to rest of the system | 2.78
(define (type-tag datum)
(cond ((number? datum) datum)
((pair? datum) (car datum))
(else (error "Bad tagged datum -- TYPE-TAG" datum))))
(define (contents datum)
(cond ((number? datum) datum)
((pair? datum) (cadr datum))
(else (error "Bad tagged datum -- CONTENGS" datum))))
... |
a2d0458490d84792bd369a46838748df46b781808344daa4717f8a208eb43bb4 | elaforge/karya | Meter.hs | Copyright 2013
-- This program is distributed under the terms of the GNU General Public
-- License 3.0, see COPYING or -3.0.txt
# LANGUAGE CPP #
-- | Support for rhythmic spelling in different meters.
module Perform.Lilypond.Meter (
Meter, meter_nums, meter_denom
, time_num
, default_meter
, measur... | null | https://raw.githubusercontent.com/elaforge/karya/a6638f16da9f018686023977c1292d6ce5095e28/Perform/Lilypond/Meter.hs | haskell | This program is distributed under the terms of the GNU General Public
License 3.0, see COPYING or -3.0.txt
| Support for rhythmic spelling in different meters.
* tie breaking
Certain simple duple meters get a simpler division. This has the effect
* allowed time
| See 'allowed_duration'.
TODO is_binary in this ... | Copyright 2013
# LANGUAGE CPP #
module Perform.Lilypond.Meter (
Meter, meter_nums, meter_denom
, time_num
, default_meter
, measure_time
, unparse_meter, parse_meter
, is_binary
, allowed_duration
#ifdef TESTING
, module Perform.Lilypond.Meter
#endif
) where
import qualified Data.Li... |
dd9846fef6b5ee0ecf8043b53eca77e238b8aa89d1d4108fac9850f32215d59c | xclerc/ocamljava | sTM.mli |
* This file is part of library .
* Copyright ( C ) 2007 - 2015 .
*
* 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 version 3 of the License , or
* ( at yo... | null | https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/library/concurrent/src/stm/sTM.mli | ocaml | * The type of values protected by transactions, should store only
immutable values.
* Builds a value of type [ref], that can then only be accessed during
a transaction.
* The exception used to request the current transaction to restart.
* The exception used to request the current transaction to be
cancel... |
* This file is part of library .
* Copyright ( C ) 2007 - 2015 .
*
* 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 version 3 of the License , or
* ( at yo... |
aa81afd44b28a40788fbc44ec77634a40c2902c1bc61737a394293620d6e0b51 | mirage/mirage | context.mli |
* Copyright ( c ) 2013 - 2020 < >
* Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < >
* Copyright ( c ) 2015 - 2020 < >
*
* 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 an... | null | https://raw.githubusercontent.com/mirage/mirage/7e36d793ad8bd34beb51bbba62a39aa035f7e297/lib/functoria/context.mli | ocaml | * Universal map of keys
* The type for keys.
* [new_key n] is a new key with name [k].
* The type for context maps.
* [empty] is the empty context.
* [add k v t] is [t] augmented with the binding [(k, v)]. Any previous binding
of [k] is removed.
* [mem k t] is true iff [k] has been added to [t].
* [find k t]... |
* Copyright ( c ) 2013 - 2020 < >
* Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < >
* Copyright ( c ) 2015 - 2020 < >
*
* 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 an... |
55c664e863b15d79ddf2dcae1041a9f5b514be5520e7668f909b90d10e09777c | adlai/cjhunt | util.lisp | (in-package :cl-user)
(defpackage cjhunt.util
(:use :cl :anaphora)
(:export :remhash-if :getjso))
(in-package :cjhunt.util)
(defun remhash-if (predicate old)
"Copy `old', skipping all entries for which (funcall `predicate' key value)"
(let ((save (loop for key being the hash-key in old using (hash-value data)
... | null | https://raw.githubusercontent.com/adlai/cjhunt/fb89d8600e6b42c9d6b67dd3fded59907e91a3be/src/util.lisp | lisp | (in-package :cl-user)
(defpackage cjhunt.util
(:use :cl :anaphora)
(:export :remhash-if :getjso))
(in-package :cjhunt.util)
(defun remhash-if (predicate old)
"Copy `old', skipping all entries for which (funcall `predicate' key value)"
(let ((save (loop for key being the hash-key in old using (hash-value data)
... | |
3f83035a695ff4d2241f161973bc0746d26780145e6cd301b36eafa0a1f30ee9 | NorfairKing/smos | IssueSpec.hs | {-# LANGUAGE OverloadedStrings #-}
module Smos.GitHub.IssueSpec (spec) where
import GitHub
import GitHub.Data.Name
import Smos.GitHub.Issue
import Smos.GitHub.Issue.Gen ()
import Test.Syd
spec :: Spec
spec = do
describe "parseGitHubUrl" $ do
it "works for this pull request example" $
parseGitHubUrl
... | null | https://raw.githubusercontent.com/NorfairKing/smos/3b7021c22915ae16ae721c7da60d715e24f4e6bb/smos-github/test/Smos/GitHub/IssueSpec.hs | haskell | # LANGUAGE OverloadedStrings # |
module Smos.GitHub.IssueSpec (spec) where
import GitHub
import GitHub.Data.Name
import Smos.GitHub.Issue
import Smos.GitHub.Issue.Gen ()
import Test.Syd
spec :: Spec
spec = do
describe "parseGitHubUrl" $ do
it "works for this pull request example" $
parseGitHubUrl
""
`shouldBe` Just
... |
dfbadea3d9d03b7c971b8bbdead854fb6617279078797f468abf669023b276cd | muyinliu/cl-graphicsmagick | types.lisp | (in-package :gm)
;;; Common types
(define-foreign-type double-type ()
nil
(:actual-type :double)
(:simple-parser %double))
(defmethod translate-to-foreign (value (type double-type))
(coerce value 'double-float))
Enum definitions
magick / colorspace.h
(defcenum %ColorspaceType
:%UndefinedColorspace
... | null | https://raw.githubusercontent.com/muyinliu/cl-graphicsmagick/ffcf9ceb2d78b338776f6542f2f175c943186c79/src/cffi/types.lisp | lisp | Common types
RGB but preserve matte channel during quantize
LAB colorspace not supported yet other than via lcms
magick/compare.h
Unsigned 8 bit 'unsigned char'
Unsigned 16 bit 'unsigned short int'
Unsigned 32 bit 'unsigned int'
magick/error.h
warning exceptions
error exceptions
fatal error exceptions
magic... | (in-package :gm)
(define-foreign-type double-type ()
nil
(:actual-type :double)
(:simple-parser %double))
(defmethod translate-to-foreign (value (type double-type))
(coerce value 'double-float))
Enum definitions
magick / colorspace.h
(defcenum %ColorspaceType
:%UndefinedColorspace
Plain old RGB col... |
ba6fb8434d17a13d7183fbff9597e124db7dc245f7fd379e3335af17b16d3920 | kmi/irs | wp-html-describe.lisp | (in-package wsmo-protocol)
(defun ip::goal-details (ontology method html-stream &optional (lookup-function
#'ocml::irs-lookup-current-word))
(ip::task-details ontology method html-stream lookup-function))
(defun ip::web-service-details (ontology method... | null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/src/web/wp-html-describe.lisp | lisp | for some reason deleted classes get through | (in-package wsmo-protocol)
(defun ip::goal-details (ontology method html-stream &optional (lookup-function
#'ocml::irs-lookup-current-word))
(ip::task-details ontology method html-stream lookup-function))
(defun ip::web-service-details (ontology method... |
e5382145b77bdba99cc9c9dc5d50d290b1535c7eb390bf90048737158c3a6c87 | OCamlPro/ezjs_fetch | ezjs_fetch_lwt.ml | open Ezjs_min_lwt
include Ezjs_fetch
let (>>=?) x f = Lwt.bind x @@ function
| Error _ as err -> Lwt.return err
| Ok x -> f x
let (>|=?) x f = Lwt.bind x @@ function
| Error _ as err -> Lwt.return err
| Ok x -> Lwt.return (Ok (f x))
let catch p =
Lwt.bind (Promise.to_lwt p) @@ function
| Error e -> Lwt.... | null | https://raw.githubusercontent.com/OCamlPro/ezjs_fetch/aabe9cb29dc257686fa15cd18ce436492b1480c3/src/ezjs_fetch_lwt.ml | ocaml | open Ezjs_min_lwt
include Ezjs_fetch
let (>>=?) x f = Lwt.bind x @@ function
| Error _ as err -> Lwt.return err
| Ok x -> f x
let (>|=?) x f = Lwt.bind x @@ function
| Error _ as err -> Lwt.return err
| Ok x -> Lwt.return (Ok (f x))
let catch p =
Lwt.bind (Promise.to_lwt p) @@ function
| Error e -> Lwt.... | |
90a0d39b8526c8eb913aca1522df30d6eed416a71babec9af55c287f57d3aed3 | erikd/haskell-big-integer-experiment | Loop.hs | # LANGUAGE BangPatterns , CPP , MagicHash #
The ideas for these loop functions were stolen from loop
package :
The function intLoop is pretty much just like the upstream 's numLoop , with
with more explicit types .
The intLoopState adds a state value that is threaded through the computation .
... | null | https://raw.githubusercontent.com/erikd/haskell-big-integer-experiment/7841ec3fcc5be219fa16963849bd12137112f8a9/Common/GHC/Integer/Loop.hs | haskell | | @intLoop start end f@: Loops over a contiguous numerical range, including
@end@.
| @intLoopState start end f@: Loops over a contiguous numerical range, from
computation. | # LANGUAGE BangPatterns , CPP , MagicHash #
The ideas for these loop functions were stolen from loop
package :
The function intLoop is pretty much just like the upstream 's numLoop , with
with more explicit types .
The intLoopState adds a state value that is threaded through the computation .
... |
253f54613326f72743b9584eeb551afa039fb954a33a17d7f5583cee0232ab35 | Quid2/zm | K3878b3580fc5.hs | {-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module Test.ZM.ADT.UnicodeLetter.K3878b3580fc5 (UnicodeLetter(..)) where
import qualified Prelude(Eq,Ord,Show)
import qualified GHC.Generics
import qualified Flat
import qualified Data.Model
import qualified Test.ZM.ADT.Char.K066db52af145
newtype UnicodeL... | null | https://raw.githubusercontent.com/Quid2/zm/02c0514777a75ac054bfd6251edd884372faddea/test/Test/ZM/ADT/UnicodeLetter/K3878b3580fc5.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE DeriveGeneric # | module Test.ZM.ADT.UnicodeLetter.K3878b3580fc5 (UnicodeLetter(..)) where
import qualified Prelude(Eq,Ord,Show)
import qualified GHC.Generics
import qualified Flat
import qualified Data.Model
import qualified Test.ZM.ADT.Char.K066db52af145
newtype UnicodeLetter = UnicodeLetter Test.ZM.ADT.Char.K066db52af145.Char
de... |
d7551c3745bddc9188a4ce768fc85cb26a6291064027b8b274e10eae16045c54 | gregr/racket-misc | match.rkt | #lang racket/base
(provide
lambda/destruct
define/destruct
cata
lambda/cata
define/cata
match/cata
match-let1+values
for/fold/match/derived
for*/fold/match/derived
for/fold/match
for*/fold/match
for/list/match
for*/list/match
)
(require
(for-syntax racket/base)
racket/function
racket/... | null | https://raw.githubusercontent.com/gregr/racket-misc/0a5c9d4875288795e209d06982b82848c989d08b/match.rkt | racket | #lang racket/base
(provide
lambda/destruct
define/destruct
cata
lambda/cata
define/cata
match/cata
match-let1+values
for/fold/match/derived
for*/fold/match/derived
for/fold/match
for*/fold/match
for/list/match
for*/list/match
)
(require
(for-syntax racket/base)
racket/function
racket/... | |
57a06adb41e91801ba9e5a4d66ac2a4c613291ee038a1b32323ea8c0d38104c5 | soupi/yh | Main.hs | # LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
module Main where
import Play.Engine.Runner
import Play.Engine.Types
import Play.Engine.Utils
import Play.Engine.Settings
import qualified StartScreen as S
main :: IO ()
main = do
runGame settings (S.make `Stack` [])
settings ... | null | https://raw.githubusercontent.com/soupi/yh/4cfbcc7da6f3ca5e330b7fd7d4adeacee7e2dff4/app/Main.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes # | # LANGUAGE LambdaCase #
module Main where
import Play.Engine.Runner
import Play.Engine.Types
import Play.Engine.Utils
import Play.Engine.Settings
import qualified StartScreen as S
main :: IO ()
main = do
runGame settings (S.make `Stack` [])
settings :: Settings
settings = def
{ _windowSize = Point 800 1000
}... |
497c38595db153883096bf6c2e04f95300b95610ae05dbb234d8071f30e7bdbe | cky/guile | rnrs.scm | ;;; rnrs.scm --- The R6RS composite library
Copyright ( C ) 2010 , 2011 Free Software Foundation , Inc.
;;
;; 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
version 3 of... | null | https://raw.githubusercontent.com/cky/guile/89ce9fb31b00f1f243fe6f2450db50372cc0b86d/module/rnrs.scm | scheme | rnrs.scm --- The R6RS composite library
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
either
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY... |
Copyright ( C ) 2010 , 2011 Free Software Foundation , Inc.
version 3 of the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public
Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA
(library (rnrs (6))
( rnrs arithmet... |
8e35c07169729c6862cb3a742b60653cb15a2219d3fbc1cc2880827170cea21a | totalperspective/oolon | datalog_test.clj | (ns oolon.datalog-test
(:require [oolon.datalog :refer :all]
[midje.sweet :refer :all]))
(facts "About val->sym"
(tabular
(fact "Basic types are un touched"
(val->sym ?val) => ?val)
?val
1
"two"
:three
'four
#inst "2010")
... | null | https://raw.githubusercontent.com/totalperspective/oolon/a457d2a2d440a25f663bd0508a95e6877eae6f81/test/clj/oolon/datalog_test.clj | clojure | (ns oolon.datalog-test
(:require [oolon.datalog :refer :all]
[midje.sweet :refer :all]))
(facts "About val->sym"
(tabular
(fact "Basic types are un touched"
(val->sym ?val) => ?val)
?val
1
"two"
:three
'four
#inst "2010")
... | |
d19f43efd0f8c598cc5c0c19ea8b853b86c2ee5899ec44b438f8211c055b2a0c | logseq/logseq | content.cljs | (ns frontend.components.content
(:require [clojure.string :as string]
[dommy.core :as d]
[frontend.commands :as commands]
[frontend.components.editor :as editor]
[frontend.components.page-menu :as page-menu]
[frontend.components.export :as export]
... | null | https://raw.githubusercontent.com/logseq/logseq/2cace8894c5ee725cefd9796f39b900910f55757/src/main/frontend/components/content.cljs | clojure | TODO Logseq protocol mobile support
TODO: content could be changed
Also, keyboard bindings should only be activated after
blocks were already selected.
fixme: this mixin will register global event listeners on window
which might cause unexpected issues | (ns frontend.components.content
(:require [clojure.string :as string]
[dommy.core :as d]
[frontend.commands :as commands]
[frontend.components.editor :as editor]
[frontend.components.page-menu :as page-menu]
[frontend.components.export :as export]
... |
789877f30e7e348dc8ace79f52aee9efcb0aa373431a202358cc5b53458ee475 | craigl64/clim-ccl | cloe-applications.lisp | -*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*-
(in-package :clim-internals)
"Copyright (c) 1990, 1991, 1992 Symbolics, Inc. All rights reserved."
(defun run-cloe-application (name)
(win::start-windows)
(unwind-protect
(progn
(win::show-wi... | null | https://raw.githubusercontent.com/craigl64/clim-ccl/301efbd770745b429f2b00b4e8ca6624de9d9ea9/pre-silica/cloe-applications.lisp | lisp | Syntax : ANSI - Common - Lisp ; Package : CLIM - INTERNALS ; Base : 10 ; Lowercase : Yes -*- |
(in-package :clim-internals)
"Copyright (c) 1990, 1991, 1992 Symbolics, Inc. All rights reserved."
(defun run-cloe-application (name)
(win::start-windows)
(unwind-protect
(progn
(win::show-window (win::get-term-window) :type :minimize)
(run-frame-top-level (make-application-frame name :parent (open-roo... |
c63609a473153da9d94b9affa4b45c667dac0d46a9d17706e74a194df9e6fc08 | exercism/babashka | luhn_test.clj | (ns luhn-test
(:require [clojure.test :refer [deftest is testing]]
luhn))
(deftest single-digit-strings
(is (false? (luhn/valid? "1"))))
(deftest single-zero
(is (false? (luhn/valid? "0"))))
(deftest sin
(is (true? (luhn/valid? " 5 9 "))))
(deftest Canadian-SIN
(is (true? (luhn/valid? ... | null | https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/luhn/test/luhn_test.clj | clojure | (ns luhn-test
(:require [clojure.test :refer [deftest is testing]]
luhn))
(deftest single-digit-strings
(is (false? (luhn/valid? "1"))))
(deftest single-zero
(is (false? (luhn/valid? "0"))))
(deftest sin
(is (true? (luhn/valid? " 5 9 "))))
(deftest Canadian-SIN
(is (true? (luhn/valid? ... | |
9ed5b4e890ba696e27dd832e97e6da912ed5e19a5406a1465c52a63e062136af | aviaviavi/toodles | Types.hs | {-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
# LANGUAGE GeneralizedNewtypeDeriving #
{-# LANGUAGE OverloadedStrings #-}
module Types where
import License
import Data.Aeson (FromJSON, ToJSON, Value (String), parseJSON,
... | null | https://raw.githubusercontent.com/aviaviavi/toodles/cc614616aef18e335f8d920d62371ba2a882d383/src/Types.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE DeriveGeneric #
# LANGUAGE OverloadedStrings #
the body
has opening tag
has closing tag
the body
has opening tag
has closing tag | # LANGUAGE GeneralizedNewtypeDeriving #
module Types where
import License
import Data.Aeson (FromJSON, ToJSON, Value (String), parseJSON,
toJSON)
import Data.Aeson.Types (typeMismatch)
import Data.Data
import Data.IORef ... |
90d08467d0757471d142c156c4f17903388c1e6683b4de8acddeafb440208a26 | sigxcpu76/transcode-server | start_app.erl | -module(start_app).
-include("commons.hrl").
-export([start/0]).
start() ->
application:load(?APP_NAME),
application:start(?APP_NAME).
| null | https://raw.githubusercontent.com/sigxcpu76/transcode-server/8b5e5bd9c672ab22486c9853d8e6ec749745ec12/src/start_app.erl | erlang | -module(start_app).
-include("commons.hrl").
-export([start/0]).
start() ->
application:load(?APP_NAME),
application:start(?APP_NAME).
| |
b3057d0624fd86efde37e624a3d87b4097a6737b5e9e4a846161778971d9c9f3 | ocurrent/ocaml-multicore-ci | backend_solver.mli | type t
val create : ?solver_dir:string -> Uri.t option -> t
val local : ?solver_dir:string -> unit -> t
val local_ci : t -> Ocaml_multicore_ci_api.Solver.t Lwt.t
val solve :
t ->
Current.Job.t ->
Ocaml_multicore_ci_api.Worker.Solve_request.t ->
log:Ocaml_multicore_ci_api.Raw.Solve.Builder.Log.t Capnp_rpc_lwt.... | null | https://raw.githubusercontent.com/ocurrent/ocaml-multicore-ci/d46eecaf7269283a4b95ee40d2a9d6c7ec34a7bf/lib/backend_solver.mli | ocaml | type t
val create : ?solver_dir:string -> Uri.t option -> t
val local : ?solver_dir:string -> unit -> t
val local_ci : t -> Ocaml_multicore_ci_api.Solver.t Lwt.t
val solve :
t ->
Current.Job.t ->
Ocaml_multicore_ci_api.Worker.Solve_request.t ->
log:Ocaml_multicore_ci_api.Raw.Solve.Builder.Log.t Capnp_rpc_lwt.... | |
390da7477b040d43ea0de1938cbba10a8fbd1900bf06326686bd306a2979c4f8 | backtracking/mlpost | myocamlbuild.ml | open Ocamlbuild_plugin
open Command -- no longer needed for OCaml > = 3.10.2
(* these functions are not really officially exported *)
let run_and_read = Ocamlbuild_pack.My_unix.run_and_read
let blank_sep_strings = Ocamlbuild_pack.Lexers.blank_sep_strings
let split s ch =
let x = ref [] in
let rec go s =
l... | null | https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/examples/myocamlbuild.ml | ocaml | these functions are not really officially exported
this lists all supported packages
this is supposed to list available syntaxes, but I don't know how to do it.
ocamlfind command
by using Before_options one let command line options have an higher priority
on the contrary using After_options will guarantee to... | open Ocamlbuild_plugin
open Command -- no longer needed for OCaml > = 3.10.2
let run_and_read = Ocamlbuild_pack.My_unix.run_and_read
let blank_sep_strings = Ocamlbuild_pack.Lexers.blank_sep_strings
let split s ch =
let x = ref [] in
let rec go s =
let pos = String.index s ch in
x := String.before s po... |
c5de0b84c47f80b69affd312a6ba752b24eb52075e4698d7c959366700c3cd81 | simplex-chat/simplex-chat | Types.hs | # LANGUAGE AllowAmbiguousTypes #
{-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
{-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE GADTs #-}
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClas... | null | https://raw.githubusercontent.com/simplex-chat/simplex-chat/c8fae0ec4390c40675ac9f9aa9924d5da87edbb2/src/Simplex/Chat/Types.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE DeriveAnyClass #
# LANGUAGE GADTs #
# LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
# OPTIONS_GHC -Wno-unrecognised-pragmas #
# HLINT ignore "Use newtype instead of data" #
# INLINE profile' #
# INLINE localDisplayName' #
# INLINE preferences' #
# INLINE profile' #
# INLIN... | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE LambdaCase #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE NamedFieldPuns #
# LANGUAGE PatternSynonyms #
# LANGUAGE ScopedTypeVari... |
e8f05b3e6dbeec0eb8ab858deed6aaa2bb4e96775e95993678f11b43d5751bfe | rigetti/oqaml | oqaml.mli | Copyright 2017 Rigetti Computing , Inc.
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 , softw... | null | https://raw.githubusercontent.com/rigetti/oqaml/e51696fc54e34e0dcb4237b8760dc5cfe280937c/src/oqaml.mli | ocaml | * Reversible quantum operation on the wave-function
* Reversible quantum operation on the wave-function
* Reversible quantum operation on the wave-function
* Reversible quantum operation on the wave-function
* Reversible quantum operation on the wave-function
* Reversible quantum operation on the wave-function
* Revers... | Copyright 2017 Rigetti Computing , Inc.
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 , softw... |
df54711486e68a009a2c420cc4415f03f6a7b8badd40360bc07237d15722973e | alvatar/spheres | serialization.scm | ;;!!! FFI object serialization
.author , 2013 - 2014 . All Rights Reserved .
(cond-expand
(optimize
(declare (standard-bindings) (extended-bindings) (not safe) (block)))
(debug
(declare (safe) (debug) (debug-location) (debug-source) (debug-environments)))
(else (void)))
;;---------------------------------... | null | https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/spheres/gambit/ffi/serialization.scm | scheme | !!! FFI object serialization
------------------------------------------------------------------------------
!! C Types: readers/writers
Use like this:
(call-with-output-file
"f64test"
(lambda (port)
(write-f64 -1.5 port)
(write-f64 +inf.0 port)
(write-f64 3.1415926 port)))
(call-with-in... | .author , 2013 - 2014 . All Rights Reserved .
(cond-expand
(optimize
(declare (standard-bindings) (extended-bindings) (not safe) (block)))
(debug
(declare (safe) (debug) (debug-location) (debug-source) (debug-environments)))
(else (void)))
(include "c-define-base-macros#.scm")
(include "c-define-reader#.... |
95f1845d2a4a4b64bb78db1e7e85c9c51574926c35bcd1411e66c1d8f0693cb6 | racket/frtime | fred.rkt | #lang frtime
(provide (all-defined-out)
(all-from-out racket/class)
(all-from-out "mixin-macros.rkt")
(all-from-out "aux-mixin-macros.rkt"))
(require framework
racket/class
racket/gui/base
racket/string
texpict/mrpict
"mixin-macros.rkt"
... | null | https://raw.githubusercontent.com/racket/frtime/9b9db67581107f4d7b995541c70f2d08f03ae89e/gui/fred.rkt | racket |
Helpers
adding assumed methods
*-event-processor init-argument values
(send x get-mouse-events) returns a split procedure over the event-type
(send x get-key-events) returns a split procedure over the key code
make state available as eventstreams
Name of event stream
proc overriding
using events to drive ... | #lang frtime
(provide (all-defined-out)
(all-from-out racket/class)
(all-from-out "mixin-macros.rkt")
(all-from-out "aux-mixin-macros.rkt"))
(require framework
racket/class
racket/gui/base
racket/string
texpict/mrpict
"mixin-macros.rkt"
... |
9c87f0cde693d5af2679eea7c66d4213d0182eebe5032bd1dbb1f0f3ebfff9a3 | expipiplus1/vulkan | VK_NV_device_diagnostic_checkpoints.hs | {-# language CPP #-}
-- | = Name
--
VK_NV_device_diagnostic_checkpoints - device extension
--
= = VK_NV_device_diagnostic_checkpoints
--
-- [__Name String__]
@VK_NV_device_diagnostic_checkpoints@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
207
--
-- [__Revi... | null | https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_NV_device_diagnostic_checkpoints.hs | haskell | # language CPP #
| = Name
[__Name String__]
[__Extension Type__]
Device extension
[__Registered Extension Number__]
[__Revision__]
[__Extension and Version Dependencies__]
- Requires @VK_KHR_get_physical_device_properties2@ to be enabled
for any device-level functionality
[__Contac... | VK_NV_device_diagnostic_checkpoints - device extension
= = VK_NV_device_diagnostic_checkpoints
@VK_NV_device_diagnostic_checkpoints@
207
2
- Requires support for Vulkan 1.0
-
< -Docs/issues/new?body=[VK_NV_device_diagnostic_checkpoints ] @nsubtil%0A*Here describe the ... |
77ac21411e04eee72403b81e89db12893be23cf04c1b0ba9efd8e471a1838bb0 | jixiuf/helloerlang | emysql_execute.erl | -module(emysql_execute).
-export([execute/1]).
-include("tbl_fileds.hrl").
-include("game_log_server_macro.hrl").
-include_lib("emysql/include/emysql.hrl").
-import(emysql_center, [quote/1]).
execute({insert_tbl_reg,#tbl_reg{}=Record}) ->
try
Sql="call insert_tbl_reg(" ++
quote(Record#tbl_reg.a... | null | https://raw.githubusercontent.com/jixiuf/helloerlang/3960eb4237b026f98edf35d6064539259a816d58/gls/src/emysql_execute.erl | erlang | io:format("sql:~p~n",[Sql]) ,
io:format("~p~n",[R]) , | -module(emysql_execute).
-export([execute/1]).
-include("tbl_fileds.hrl").
-include("game_log_server_macro.hrl").
-include_lib("emysql/include/emysql.hrl").
-import(emysql_center, [quote/1]).
execute({insert_tbl_reg,#tbl_reg{}=Record}) ->
try
Sql="call insert_tbl_reg(" ++
quote(Record#tbl_reg.a... |
1e96aa09567fdc9a08ee7f231d1b8d9aea1f8ef546be0492bf191c26c0de5c66 | postspectacular/devart-codefactory | user.clj | (ns thi.ng.gae.services.user
(:require
[thi.ng.gae.services.core :refer [defservice]])
(:import
[com.google.appengine.api.users User UserService UserServiceFactory]))
(defservice get-user-service
*user-service* UserService (UserServiceFactory/getUserService))
(defn ^User current-user []
(.getCurrentUser... | null | https://raw.githubusercontent.com/postspectacular/devart-codefactory/9bccdc10e58fa4861a69767e9ae4be0bb8d7f650/src-gae/thi/ng/gae/services/user.clj | clojure | (ns thi.ng.gae.services.user
(:require
[thi.ng.gae.services.core :refer [defservice]])
(:import
[com.google.appengine.api.users User UserService UserServiceFactory]))
(defservice get-user-service
*user-service* UserService (UserServiceFactory/getUserService))
(defn ^User current-user []
(.getCurrentUser... | |
6c39a0b64a00f342c30fafa0ba2c64dc1c91d21d4f0e4bc5fc54eb86b0b414ab | folivetti/ITEA | Algorithms.hs | |
Module : IT.Algorithms
Description : Basic algorithms data structures
Copyright : ( c ) , 2020
License : GPL-3
Maintainer :
Stability : experimental
Portability : POSIX
Definitions for a Solution , Population of solutions ,
fitness function and mutation function .
Module... | null | https://raw.githubusercontent.com/folivetti/ITEA/fc13e52bc7297ef5142591ee56b7973498fb8770/src/IT/Algorithms.hs | haskell | | data type containing a solution, its fitness and weight vector
^ The IT expression of type a
^ Fitness and other measures for evaluating the expression
^ Amount of Shape Constraint violation associated with the expression, always positive
^ penalty of fitness
^ Weights associated with the expression (they coun... | |
Module : IT.Algorithms
Description : Basic algorithms data structures
Copyright : ( c ) , 2020
License : GPL-3
Maintainer :
Stability : experimental
Portability : POSIX
Definitions for a Solution , Population of solutions ,
fitness function and mutation function .
Module... |
53dc5889aa2ebe46424c38c7b525d1bbe591c24718fccab22c430e4663eafebc | Octachron/rational_in_types | fraction.ml | module N = Natural
module L = Logic_gates
module Int = Integer
module A = Opt_integer_ops
type +'a t = 'num Int.t * 'div Int.t
constraint
'a = < num: 'num; div: 'div >
;;
let frac: 'a Int.t -> 'b Int.t -> <num:'a;div:'b> t =
fun x y -> x,y
let num (a,b : 'a t) = a
let div (a,b : 'a t) = b
let transmute ... | null | https://raw.githubusercontent.com/Octachron/rational_in_types/c4351c805cbeff2c2843f8ea1e7899bfc3859be5/src/fraction.ml | ocaml | module N = Natural
module L = Logic_gates
module Int = Integer
module A = Opt_integer_ops
type +'a t = 'num Int.t * 'div Int.t
constraint
'a = < num: 'num; div: 'div >
;;
let frac: 'a Int.t -> 'b Int.t -> <num:'a;div:'b> t =
fun x y -> x,y
let num (a,b : 'a t) = a
let div (a,b : 'a t) = b
let transmute ... | |
5c5cf4e6943ba38b810d110633e056bd49d6ca0b5e51a5f4b29a4fab65a0e572 | tfausak/monadoc-5 | Prelude.hs | module Monadoc.Prelude
( Control.Applicative.Applicative
, Control.Applicative.pure
, Control.Exception.Exception
, Control.Exception.SomeException(SomeException)
, Control.Exception.displayException
, Control.Exception.evaluate
, Control.Exception.fromException
, Control.Exception.toException
, Contr... | null | https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/lib/Monadoc/Prelude.hs | haskell | Redefined here to avoid a stylish-haskell bug. | module Monadoc.Prelude
( Control.Applicative.Applicative
, Control.Applicative.pure
, Control.Exception.Exception
, Control.Exception.SomeException(SomeException)
, Control.Exception.displayException
, Control.Exception.evaluate
, Control.Exception.fromException
, Control.Exception.toException
, Contr... |
340c610b5c2a8171ac30d8ac7b816d6d6cac1f6673e30be5fe17a7d5a30c34bc | madjestic/Haskell-OpenGL-Tutorial | LoadShaders.hs | module LoadShaders (
ShaderSource(..), ShaderInfo(..), loadShaders
) where
import Control.Exception
import Control.Monad
import qualified Data.ByteString as B
import Graphics.Rendering.OpenGL
--------------------------------------------------------------------------------
-- | The source of the shader source code... | null | https://raw.githubusercontent.com/madjestic/Haskell-OpenGL-Tutorial/9f685ddde9d6c5d2cc9c2c62f214ca0d43e717c7/tutorial02/LoadShaders.hs | haskell | ------------------------------------------------------------------------------
| The source of the shader source code.
^ The shader source code is directly given as a 'B.ByteString'.
^ The shader source code is directly given as a 'String'.
^ The shader source code is located in the file at the given 'FilePath'.
--... | module LoadShaders (
ShaderSource(..), ShaderInfo(..), loadShaders
) where
import Control.Exception
import Control.Monad
import qualified Data.ByteString as B
import Graphics.Rendering.OpenGL
data ShaderSource =
ByteStringSource B.ByteString
| StringSource String
| FileSource FilePath
deriving ( Eq... |
94a848639f0b81e0c188bea04729cb83435bc1d0a18fc7e0794dc7e3ee860e82 | hasufell/hpath | Traversals.hs | -- |
Module : System . . RawFilePath . Directory .
Copyright : © 2016
-- License : BSD3
--
Maintainer : < >
-- Stability : experimental
-- Portability : portable
--
Traversal and read operations on directories .
# LANGUAGE CApiFFI #
# LANGUAGE CPP #
# LANGUAGE ForeignFunctionI... | null | https://raw.githubusercontent.com/hasufell/hpath/9fcc1890596e5b838bf3be9ed303165fbc692d11/hpath-posix/src/System/Posix/RawFilePath/Directory/Traversals.hs | haskell | |
License : BSD3
Stability : experimental
Portability : portable
# LANGUAGE OverloadedStrings #
lower-level stuff
--------------------------------------------------------
| Get all files from a directory and its subdirectories.
Upon entering a directory, 'allDirectoryContents' will get all entries
s... | Module : System . . RawFilePath . Directory .
Copyright : © 2016
Maintainer : < >
Traversal and read operations on directories .
# LANGUAGE CApiFFI #
# LANGUAGE CPP #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE TupleSections #
# LANGUAGE ViewPatterns #
# OPTIONS_GHC -Wall #
mod... |
7f35df794d74276a8c7ae35b025c4b2084153963bf669a686d5d9d35aff63bb1 | AlacrisIO/legicash-facts | ethereum_user.ml | open Legilogic_lib
open Lib
open Yojsoning
open Marshaling
open Persisting
open Types
open Signing
open Action
open Lwt_exn
open Json_rpc
open Trie
open Ethereum_chain
open Ethereum_json_rpc
open Ethereum_transaction
let ethereum_user_log = true
TODO : A much better state machine to get wanted transactions confirm... | null | https://raw.githubusercontent.com/AlacrisIO/legicash-facts/5d3663bade68c09bed47b3f58fa12580f38fdb46/src/legilogic_ethereum/ethereum_user.ml | ocaml | zero is often wrong, but just let it fail and resynchronize
TODO: move as many functions as possible ethereum_transaction ?
TODO: Send Notification to end-user via UI!
TODO: inspection? cancellation?
TODO: use Db.with_transaction here, or have all callers use it appropriately
TODO: maybe just use Lwt_mvar.cr... | open Legilogic_lib
open Lib
open Yojsoning
open Marshaling
open Persisting
open Types
open Signing
open Action
open Lwt_exn
open Json_rpc
open Trie
open Ethereum_chain
open Ethereum_json_rpc
open Ethereum_transaction
let ethereum_user_log = true
TODO : A much better state machine to get wanted transactions confirm... |
63bf32831f14e51a4aa6953a137ab2aa7cb30767e8c33300e6cd0174d73a714b | racket/racket7 | stream.rkt | #lang racket/base
(require racket/private/generic
racket/generic
racket/contract/base
racket/contract/combinator
racket/generator
(rename-in "private/for.rkt"
[stream-ref stream-get-generics])
"private/sequence.rkt"
(only-in "private/st... | null | https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/collects/racket/stream.rkt | racket | we don't need the generics versions of these because
the original sequence functions will work fine
for the dispatch. (the method table layout is
identical)
Impersonators and Chaperones ----------------------------------------------------------------------
(these are private because they would fail on lists, whic... | #lang racket/base
(require racket/private/generic
racket/generic
racket/contract/base
racket/contract/combinator
racket/generator
(rename-in "private/for.rkt"
[stream-ref stream-get-generics])
"private/sequence.rkt"
(only-in "private/st... |
8ff76123efc8d154ab95570c3556f4d4958753f46b96c5005738b8b2c1aa24d1 | sebashack/servantRestfulAPI | API.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
{-# LANGUAGE ScopedTypeVariables #-}
# LANGUAGE TypeFamilies #
{-# LANGUAGE TypeOper... | null | https://raw.githubusercontent.com/sebashack/servantRestfulAPI/e625535d196acefaff4f5bf03108816be668fe4d/libs/Domains/BookingDomain/Property/API.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeOperators #
| # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
# LANGUAGE ScopedTypeVariables #
module Domains.BookingDomain.Property.API
(
PropertyAPI
) where
import Domains.Book... |
eff91b80a720f64a248efc44fda42e9892582161a12c20f186eabf13154c726d | weldr/bdcs | DepsolveSpec.hs | Copyright ( C ) 2017 Red Hat , Inc.
--
-- 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
version 2.1 of the License , or ( at your option ) any later version .
--
-- This libr... | null | https://raw.githubusercontent.com/weldr/bdcs/cf360c3240644b4847336b9d58b2067f3aa1ec50/src/tests/BDCS/DepsolveSpec.hs | haskell |
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
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... | Copyright ( C ) 2017 Red Hat , Inc.
License as published by the Free Software Foundation ; either
version 2.1 of the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public
module BDCS.DepsolveSpec(spec)
where
import Control.Monad.Except(... |
c1a468be1c50603a99b9c9896a1f5b9be3b3cc8bdc6ca4c8026256598c6a8a92 | bsansouci/bsb-native | exec.mli | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet Cr... | null | https://raw.githubusercontent.com/bsansouci/bsb-native/9a89457783d6e80deb0fba9ca7372c10a768a9ea/vendor/ocaml/debugger/exec.mli | ocaml | *********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
OCaml port by and
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the Q Public License version 1.0 .
val pro... |
3eb313c78070f6365e21ce28717356c857dd53b9c5970eb45672dc74a7a0f365 | snewman/lein-gentags | core.clj | (ns update-tags.test.core
(:use [update-tags.core])
(:use [clojure.test]))
(deftest replace-me ;; FIXME: write
(is false "No tests have been written."))
| null | https://raw.githubusercontent.com/snewman/lein-gentags/8514012ac0b5eab8bc8befce15ee0db3680d7a8f/test/update_tags/test/core.clj | clojure | FIXME: write | (ns update-tags.test.core
(:use [update-tags.core])
(:use [clojure.test]))
(is false "No tests have been written."))
|
a826b68dc747af4ed128a59cdf3805ca13961244724928980ce01c8826040ae7 | clojure-interop/java-jdk | XPathConstants.clj | (ns javax.xml.xpath.XPathConstants
"XPath constants."
(:refer-clojure :only [require comment defn ->])
(:import [javax.xml.xpath XPathConstants]))
(def *-number
"Static Constant.
The XPath 1.0 number data type.
Maps to Java Double.
type: javax.xml.namespace.QName"
XPathConstants/NUMBER)
(def *-str... | null | https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/xpath/XPathConstants.clj | clojure | (ns javax.xml.xpath.XPathConstants
"XPath constants."
(:refer-clojure :only [require comment defn ->])
(:import [javax.xml.xpath XPathConstants]))
(def *-number
"Static Constant.
The XPath 1.0 number data type.
Maps to Java Double.
type: javax.xml.namespace.QName"
XPathConstants/NUMBER)
(def *-str... | |
3422ed2a8df23920dc12bbd5d78abc5cc4b5ed9ee374933b5e83df2132bdb978 | SimulaVR/godot-haskell | CheckButton.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.CheckButton () where
import Data.Coerce
import Foreign.C
im... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/CheckButton.hs | haskell | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.CheckButton () where
import Data.Coerce
import Foreign.C
im... | |
3022f91d7e9eef85bbbd10142c959f243eb80b124df0e3a83c5bd08d7fb4ef0d | jordwalke/rehp | mutable_closure.ml | Js_of_ocaml compiler
* /
* Copyright ( C ) 2017 Hugo Heuzard
* Copyright ( C ) 2019
*
* 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 , with linking exception ;
... | null | https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/compiler/tests/mutable_closure.ml | ocaml | deadcode or infinite loop
deadcode or infinite loop | Js_of_ocaml compiler
* /
* Copyright ( C ) 2017 Hugo Heuzard
* Copyright ( C ) 2019
*
* 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 , with linking exception ;
... |
bb9a7fed0162c06147b6d4f81c1de5e48de81c07ba6578f3f8a95efe011a6856 | AHartNtkn/SICAM | Setup.hs | import Prelude
import Distribution.Extra.Doctest (defaultMainWithDoctests)
main :: IO ()
main = defaultMainWithDoctests "doctests"
| null | https://raw.githubusercontent.com/AHartNtkn/SICAM/126d8eb90452af9f535c838fa953be05a9ddf282/clash%20files/Setup.hs | haskell | import Prelude
import Distribution.Extra.Doctest (defaultMainWithDoctests)
main :: IO ()
main = defaultMainWithDoctests "doctests"
| |
63d0e57c439893d968aa0a77cac390f9d94041f5ca360ca8da72e14e79378dc0 | VisionsGlobalEmpowerment/webchange | icon_caret_right.cljs | (ns webchange.ui.components.icon.system.icon-caret-right)
(def data
[:svg {:xmlns ""
:width "24" :height "24" :viewBox "0 0 24 24"
:class-name "stroke-colored"
:fill "none" :stroke "#3453A1" :stroke-width "2" :stroke-linecap "round" :stroke-linejoin "round"}
[:g {:clip-p... | null | https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/e5747e187937d85e9c92c728d52a704f323f00ef/src/cljs/webchange/ui/components/icon/system/icon_caret_right.cljs | clojure | (ns webchange.ui.components.icon.system.icon-caret-right)
(def data
[:svg {:xmlns ""
:width "24" :height "24" :viewBox "0 0 24 24"
:class-name "stroke-colored"
:fill "none" :stroke "#3453A1" :stroke-width "2" :stroke-linecap "round" :stroke-linejoin "round"}
[:g {:clip-p... | |
a4f60ceef5a3fc8bfe72e806f3957954f9d88310ffe86d7304bfe383f0fea9b6 | hstreamdb/hstreamdb_erl | hstreamdb_SUITE.erl | -module(hstreamdb_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-include_lib("eunit/include/eunit.hrl").
-include_lib("common_test/include/ct.hrl").
-define(DAY, (24 * 60 * 60)).
all() ->
hstreamdb_test_helpers:test_cases(?MODULE).
init_per_suite(Config) ->
_ = application:ensure_all_started(... | null | https://raw.githubusercontent.com/hstreamdb/hstreamdb_erl/7ba26bbcde321930052b5fdff724b187edcd1c8a/test/hstreamdb_SUITE.erl | erlang | -module(hstreamdb_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-include_lib("eunit/include/eunit.hrl").
-include_lib("common_test/include/ct.hrl").
-define(DAY, (24 * 60 * 60)).
all() ->
hstreamdb_test_helpers:test_cases(?MODULE).
init_per_suite(Config) ->
_ = application:ensure_all_started(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.