_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 |
|---|---|---|---|---|---|---|---|---|
5769654b9e37ebf876e83ee5ca9567c94bfc6e31891bd6496894bb483bf5a02c | bragful/ephp | ephp_parser_expr.erl | -module(ephp_parser_expr).
-author('').
-export([expression/3, add_op/2, precedence/1]).
-include("ephp.hrl").
-include("ephp_parser.hrl").
-import(ephp_parser,
[add_pos/2,
new_line/1,
copy_rowcol/2,
add_line/2,
remove_spaces/2,
throw_error/3,
inc_pos/1,... | null | https://raw.githubusercontent.com/bragful/ephp/119f1760a5cdf4c8b6a01739e852c7183af7acff/src/ephp_parser_expr.erl | erlang | array will be captured in the array() part
CONSTANT / FUNCTION when -> is used
ARRAY(...) -old-
(array) cast
[...] -array new-
ARRAY DEF
ARRAY DEF
ARRAY INDEX
NULL
TRUE
FALSE
FUNCTION(...) -closure-
INSTANCEOF
NEW ...
CLONE ...
FINAL -enclosed-
FINAL -unclosed-
SPACE -all-
COMMENTS...
FUNCTION CALL ... | -module(ephp_parser_expr).
-author('').
-export([expression/3, add_op/2, precedence/1]).
-include("ephp.hrl").
-include("ephp_parser.hrl").
-import(ephp_parser,
[add_pos/2,
new_line/1,
copy_rowcol/2,
add_line/2,
remove_spaces/2,
throw_error/3,
inc_pos/1,... |
a76e57b9ad23820b4b539f4e7b3c3e1a2abd3aafcfa9e86604ed12542f32db86 | IndianRoboticsOrganization/ArimaTTS | ssn_hts_demo_durdata.scm | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ;;
Centre for Speech Technology Research ; ;
University of Edinburgh , UK ; ;
;;; ... | null | https://raw.githubusercontent.com/IndianRoboticsOrganization/ArimaTTS/7377dca466306e2e6b90a063427273142cd50616/tamil/festvox/ssn_hts_demo_durdata.scm | scheme |
;;
;
;
Copyright (c) 1996,1997 ;;
;
;;
Permission to use, copy, modify, distribute this software and its ;;
documentatio... |
(set! ssn_hts_demo::zdur_tree
'
((1.5))
((1.5))
((1.0)))))
(set! ssn_hts_demo::phone_durs
( pau 0.0 0.250 )
(mapcar
(lambda (p)
(list (car p) 0.0 0.100))
(cadr (assoc_string 'phones (PhoneSet.description ))))
)
(provide 'ssn_hts_demo_durdata)
|
c3911f2904a4172708bedd88f1f5b70f30b82130ac85e50cd2514e3adf1c8611 | GaloisInc/renovate | Internal.hs | # LANGUAGE FlexibleContexts #
-- | Low-level code redirection helpers
--
-- This module is only exposed for testing purposes and is not an
-- external API.
module Renovate.Redirect.Internal ( redirectOriginalBlocks ) where
import Control.Monad.IO.Class ( MonadIO )
import qualified Data.Traversable as T
imp... | null | https://raw.githubusercontent.com/GaloisInc/renovate/89b82366f84be894c3437852e39c9b4e28666a37/renovate/src/Renovate/Redirect/Internal.hs | haskell | | Low-level code redirection helpers
This module is only exposed for testing purposes and is not an
external API.
| Overwrite the entry points of each original block with a pointer
to the instrumented block, if possible.
It may not be possible if the original block is shorter than ~7
bytes. We can improve thi... | # LANGUAGE FlexibleContexts #
module Renovate.Redirect.Internal ( redirectOriginalBlocks ) where
import Control.Monad.IO.Class ( MonadIO )
import qualified Data.Traversable as T
import Prelude
import Renovate.Core.BasicBlock
import qualified Renovate.Core.Diagnostic as RCD
import ... |
c53435037b85d889100792d843b84efdc7ad737e2fd30bd9e654e672f65d26e9 | haskell/cabal | cabal.test.hs | import Test.Cabal.Prelude
Multilibs or named libs need ≥2.0 .
main = cabalTest $
fails $ cabal "check" []
| null | https://raw.githubusercontent.com/haskell/cabal/1cfe7c4c7257aa7ae450209d34b4a359e6703a10/cabal-testsuite/PackageTests/Check/ConfiguredPackage/CabalVersion/MultiLibs/cabal.test.hs | haskell | import Test.Cabal.Prelude
Multilibs or named libs need ≥2.0 .
main = cabalTest $
fails $ cabal "check" []
| |
d8288d14e63fc9eef8af0b57671e7e39b8db9a9392e18c7025798b086ce19e7f | haskell-distributed/distributed-process | Stats.hs | {-# LANGUAGE DeriveDataTypeable #-}
# OPTIONS_GHC -fno - warn - orphans #
module Control.Distributed.Process.Tests.Stats (tests) where
import Control.Distributed.Process.Tests.Internal.Utils
import Network.Transport.Test (TestTransport(..))
import Control.Concurrent.MVar
( MVar
, newEmptyMVar
, put... | null | https://raw.githubusercontent.com/haskell-distributed/distributed-process/ccc002c928d29335b5eb73be1d876007adaa0b53/distributed-process-tests/src/Control/Distributed/Process/Tests/Stats.hs | haskell | # LANGUAGE DeriveDataTypeable #
TODO: we can't get the mailbox's length
mapM (send self) ["hello", "there", "mr", "process"]
infoMessageQueueLength pInfo == Just 4 &&
so a little table tennis should get us synchronised properly | # OPTIONS_GHC -fno - warn - orphans #
module Control.Distributed.Process.Tests.Stats (tests) where
import Control.Distributed.Process.Tests.Internal.Utils
import Network.Transport.Test (TestTransport(..))
import Control.Concurrent.MVar
( MVar
, newEmptyMVar
, putMVar
, takeMVar
)
import Control.Distri... |
8dc9444ae5a696b68bc78a965596d6a90112bb37b82e1c5e2b0d26a14d38987e | pflanze/chj-schemelib | cj-cmp.scm | Copyright 2010 - 2020 by < >
;;; This file is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
;;; (at your option) any later version.
(require def... | null | https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/cj-cmp.scm | scheme | This file is free software; you can redistribute it and/or modify
(at your option) any later version.
enum can't, circular dependency
XX move elsewhere, change? (scheme.scm ?) Not even used here
XX move elsewhere?
for proper list checking and location removal
(define-enum cmp
eq lt gt)
A comparison op... | Copyright 2010 - 2020 by < >
it under the terms of the GNU General Public License ( GPL ) as published
by the Free Software Foundation , either version 2 of the License , or
(require define-macro-star
(fixnum inc)
(cj-env when)
(cj-env-2 xcond)
cj-typed
simple-match
cj... |
0df7f96b31f3676195ae8a243ad414680fa9c16a9637d300005f65a18e30f8c9 | reborg/parallel | project.clj | (defproject parallel "0.11"
:description "A library of parallel-enabled Clojure functions"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]]
:java-source-paths ["java"]
:uberjar-name "parallel.jar"
:deploy-repositories [["releases"... | null | https://raw.githubusercontent.com/reborg/parallel/7fde6e48e49455f213c435239c35d31c60e08948/project.clj | clojure | (defproject parallel "0.11"
:description "A library of parallel-enabled Clojure functions"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]]
:java-source-paths ["java"]
:uberjar-name "parallel.jar"
:deploy-repositories [["releases"... | |
fb8ee466b376ea6d762a07a6596d67be19736fa95d841626827437420ae23a46 | michiakig/sicp | ex-2.33-2.34-2.35-2.36-2.37-accumulate.scm | ;;;; Structure and Interpretation of Computer Programs
Chapter 2 Section 2 Hierarchical Data and the Closure Property
Exercise 2.33 , 2.34 , 2.35 , 2.36 , 2.37
2.33 , basic list - manipulation functions via accumulate
(define (map p sequence)
(accumulate (lambda (x y) (cons (p x) y)) '() sequence))
(define (a... | null | https://raw.githubusercontent.com/michiakig/sicp/1aa445f00b7895dbfaa29cf6984b825b4e5af492/ch2/2.2-hierarchical-data/ex-2.33-2.34-2.35-2.36-2.37-accumulate.scm | scheme | Structure and Interpretation of Computer Programs
((...)x + a)
because the base case is a list like (() () () ...)
dot-product is provided:
defined for us previously in the text | Chapter 2 Section 2 Hierarchical Data and the Closure Property
Exercise 2.33 , 2.34 , 2.35 , 2.36 , 2.37
2.33 , basic list - manipulation functions via accumulate
(define (map p sequence)
(accumulate (lambda (x y) (cons (p x) y)) '() sequence))
(define (append seq1 seq2)
(accumulate cons seq2 seq1))
(define... |
d5716cb425dbab64588dab9dc649de8f6002fd7a7512a390f46f4052ad8138cd | serokell/edna | Spec.hs | SPDX - FileCopyrightText : 2021 >
--
SPDX - License - Identifier : AGPL-3.0 - or - later
# OPTIONS_GHC -Wno - missing - export - lists #
# OPTIONS_GHC -F #
| null | https://raw.githubusercontent.com/serokell/edna/d4898eee5e3e211113bcfbfd35ce2a3b9b28db43/backend/test/Spec.hs | haskell | SPDX - FileCopyrightText : 2021 >
SPDX - License - Identifier : AGPL-3.0 - or - later
# OPTIONS_GHC -Wno - missing - export - lists #
# OPTIONS_GHC -F #
| |
4a3fbcf96002e3edf313d41f249fc70f866a1a32f5b40b27cf4568afa5df0101 | elarous/O2SN | core.cljs | (ns o2sn.core
(:require [reagent.core :as r]
[re-frame.core :as rf]
[kee-frame.core :as k]
["semantic-ui-react" :as ui]
[o2sn.validation.validation]
[o2sn.common.routes :refer [routes]]
[o2sn.common.db :refer [default-db]]
[o2sn.comm... | null | https://raw.githubusercontent.com/elarous/O2SN/289e17e5c4b6a19e3c8f964f9faa4efad3edefa8/src/client/main/o2sn/core.cljs | clojure | (ns o2sn.core
(:require [reagent.core :as r]
[re-frame.core :as rf]
[kee-frame.core :as k]
["semantic-ui-react" :as ui]
[o2sn.validation.validation]
[o2sn.common.routes :refer [routes]]
[o2sn.common.db :refer [default-db]]
[o2sn.comm... | |
e8f9818a2e898d2251f0ba96a41339f6abdce09ecfdd1e0a4634e614a22355c0 | aumouvantsillage/Hydromel-lang | types.rkt | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
#lang racket
(require
racket/hash
(only-in data/collection length)
data/pvector
"numeric.rkt"
"errors.rkt")
(provide
(struct-out ... | null | https://raw.githubusercontent.com/aumouvantsillage/Hydromel-lang/914f31409654289f362a9b3d47bcdcd42e391448/hydromel/lib/types.rkt | racket | This is the base struct for all built-in data types.
A data type can be used as a conversion function.
The default behavior is to return the given data unchanged.
`any` is the supertype of all types.
`abstract-integer` is the common supertype of the `signed` and `unsigned` types.
The `width` field contains the nu... | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
#lang racket
(require
racket/hash
(only-in data/collection length)
data/pvector
"numeric.rkt"
"errors.rkt")
(provide
(struct-out ... |
e414e66bdb70897bdc16630a25c12e66fcc6042992f7f13496818d4865515861 | keera-studios/keera-hails | ConditionDirection.hs | -- |
--
Copyright : ( C ) Keera Studios Ltd , 2013
-- License : BSD3
Maintainer :
module Controller.Conditions.ConditionDirection where
data ConditionDirection = VM
| MV
| null | https://raw.githubusercontent.com/keera-studios/keera-hails/bf069e5aafc85a1f55fa119ae45a025a2bd4a3d0/demos/image-format-guesser/src/Controller/Conditions/ConditionDirection.hs | haskell | |
License : BSD3 | Copyright : ( C ) Keera Studios Ltd , 2013
Maintainer :
module Controller.Conditions.ConditionDirection where
data ConditionDirection = VM
| MV
|
b0902047b50d4e56fddc2c5955169163cda51d31ca0e185ae1f50e73facb17e2 | pirapira/coq2rust | subtyping.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/kernel/subtyping.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
This module checks subtyping of mod... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Created by , Aug 2002 as ... |
a9744702eeb3bf47c88e757c9518e2862aca0931af98085b15488ad3a229953c | GaloisInc/semmc | PPC64.hs | {-# LANGUAGE DataKinds #-}
# LANGUAGE ViewPatterns #
# LANGUAGE EmptyCase #
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
{-# LANGUAGE RankNTypes ... | null | https://raw.githubusercontent.com/GaloisInc/semmc/17f3ac6238377f833b04f291b07bc31d6266b1a1/semmc-ppc/src/SemMC/Architecture/PPC64.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE RankNTypes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeOperators #
and truncate or extend to the required width. This has the advantage
of m... | # LANGUAGE ViewPatterns #
# LANGUAGE EmptyCase #
# LANGUAGE FlexibleInstances #
# LANGUAGE GADTs #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE PolyKinds #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies ... |
f63e2f46785beb589192ec0aafe7b74232dd4cf8cd354e2db6862f173d814faa | eareese/htdp-exercises | 143-checked-average.rkt | #lang htdp/bsl
; A List-of-temperatures is one of:
; – '()
– ( cons CTemperature List - of - temperatures )
A CTemperature is a Number greater than -273 .
; List-of-temperatures -> Number
; computes the average temperature
;; (check-expect
( average ( cons 1 ( cons 2 ( cons 3 ' ( ) ) ) ) ) 2 )
;; (define (ave... | null | https://raw.githubusercontent.com/eareese/htdp-exercises/a85ff3111d459dda0e94d9b463d01a09accbf9bf/part02-arbitrarily-large-data/143-checked-average.rkt | racket | A List-of-temperatures is one of:
– '()
List-of-temperatures -> Number
computes the average temperature
(check-expect
(define (average alot)
(/ (sum alot) (how-many alot)))
List-of-temperatures -> Number
adds up the temperatures on the given list
(define (sum alot)
(cond
[(empty? alot) 0]
List-of-t... | #lang htdp/bsl
– ( cons CTemperature List - of - temperatures )
A CTemperature is a Number greater than -273 .
( average ( cons 1 ( cons 2 ( cons 3 ' ( ) ) ) ) ) 2 )
[ else ( + ( first alot ) ( sum ( rest alot ) ) ) ] ) )
[ else ( + ( how - many ( rest alot ) ) 1 ) ] ) )
Exercise 143 . Determ... |
549f5fe80369e127ab250b76dec44efe50c463428123a7f61d9117009620ee80 | clojure/tools.gitlibs | test_gitlibs.clj | Copyright ( c ) . All rights reserved .
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; ... | null | https://raw.githubusercontent.com/clojure/tools.gitlibs/8b699c68573d501bc49be6c805a17da1094ac1b2/src/test/clojure/clojure/tools/test_gitlibs.clj | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) . All rights reserved .
(ns clojure.tools.test-gitlibs
(:require
[clojure.java.io :as jio]
[clojure.test :refer :all]
[clojure.tools.gitlibs :as gl]))
(def repo-url "")
(deftest test-resolve
(is (= (gl/resolve repo-url "739c1af5")
"739c1af56dae621aedf1bb282025a0d676eff71... |
05df876fd9451e4bc5528828f29be8014a06ccddbb75e214440dcb1fd64fa67d | gentoo-haskell/hackport | MakeEbuild.hs | module Hackport.Command.MakeEbuild
( makeEbuildAction
) where
import qualified Distribution.Simple.PackageDescription as Cabal
import Distribution.Parsec (simpleParsec)
import qualified Distribution.Verbosity as V
import Error
import Merge
import Hackport.Env
makeEbuildAction :: Env MakeEbuildEnv ()
makeEbuildA... | null | https://raw.githubusercontent.com/gentoo-haskell/hackport/7ab31e2313eb5b6c18ff7f35987e7217c270335c/src/Hackport/Command/MakeEbuild.hs | haskell | module Hackport.Command.MakeEbuild
( makeEbuildAction
) where
import qualified Distribution.Simple.PackageDescription as Cabal
import Distribution.Parsec (simpleParsec)
import qualified Distribution.Verbosity as V
import Error
import Merge
import Hackport.Env
makeEbuildAction :: Env MakeEbuildEnv ()
makeEbuildA... | |
3f2ac2dc5dad746e2d41b46c096890469919950c1335a509549a85d3e95cfa86 | nathell/skyscraper | hackernews.clj | ;; This example is incomplete and will be completed later on.
(ns skyscraper.hackernews
(:require
[net.cgrand.enlive-html :refer [select attr? text emit* has pred first-child last-child nth-child]]
[skyscraper.core :refer :all]
[skyscraper.enlive-helpers :refer [href]]))
(defn seed [& _]
[{:url "/",
... | null | https://raw.githubusercontent.com/nathell/skyscraper/33f5aac38378fcaf4e815647f343ef8415a6f545/examples/hackernews.clj | clojure | This example is incomplete and will be completed later on. |
(ns skyscraper.hackernews
(:require
[net.cgrand.enlive-html :refer [select attr? text emit* has pred first-child last-child nth-child]]
[skyscraper.core :refer :all]
[skyscraper.enlive-helpers :refer [href]]))
(defn seed [& _]
[{:url "/",
:processor :stories}])
(defn extract-number [item]
(when... |
138ac74c87b84032e2cbaa60dc707d8b3ef513f8bee1739068c74542d8d8e2da | nuprl/gradual-typing-performance | bitstring.rkt | #lang typed/racket
A bitstring is a string of # \1 and # \0 .
;; Technically bitstrings of unequal length are incompatible,
;; but our scripts do nothing to enforce this.
(define-type Bitstring String)
(provide
Bitstring
all-paths-from
( - > Bitstring ( Sequenceof ( ) ) )
log2
;; (-> Natural Natural)
... | null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/paper/popl-2016/talk/scripts/bitstring.rkt | racket | Technically bitstrings of unequal length are incompatible,
but our scripts do nothing to enforce this.
(-> Natural Natural)
Base 2 log, on naturals
(-> Index #:pad Index Bitstring)
Convert a natural number to a binary string representation
Keyword argument #:pad sets the width of the result string
(-> Bitstrin... | #lang typed/racket
A bitstring is a string of # \1 and # \0 .
(define-type Bitstring String)
(provide
Bitstring
all-paths-from
( - > Bitstring ( Sequenceof ( ) ) )
log2
natural->bitstring
bitstring->natural
in-reach
( - > Bitstring Index ( ) )
bit-high?
bit-low?
)
(require
(only-in... |
0065da3b1371c3fda2e22d878c92d63d1b184464d07132d23ceb82c9e440b802 | dimitri-xyz/haskell-coinbase-pro | MarketData.hs | {-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
# LANGUAGE FlexibleContexts #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
module Coinbase.Exchange... | null | https://raw.githubusercontent.com/dimitri-xyz/haskell-coinbase-pro/642a8282ac9f378a6dc0e88535bb50c44bcae091/src/Coinbase/Exchange/Types/MarketData.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE DeriveGeneric #
# LANGUAGE OverloadedStrings #
Products
Order Book
Product Ticker
Product Trades
Historic Rates (Candles)
Product Stats
Exchange Currencies
Exchange Time | # LANGUAGE FlexibleContexts #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE RecordWildCards #
module Coinbase.Exchange.Types.MarketData where
import Control.Applicative
import Control.DeepSeq
import Control.Monad.Except... |
1cec93a68c7c880a30194859f0fcdf79b492d28a4abd3669f230fe3f146c4a27 | lasp-lang/partisan | partisan_test_server.erl | %% -------------------------------------------------------------------
%%
Copyright ( c ) 2019 . All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a copy of the... | null | https://raw.githubusercontent.com/lasp-lang/partisan/c08bd987803ce13386cc7e7e8307ab4e2786496d/src/partisan_test_server.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissio... | Copyright ( c ) 2019 . All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
-module(partisan_test_server... |
13a31fe587cfb63d6471ba5364e60954d00742779fb58cae47a76c0cc1bbf347 | larrychristensen/orcpub | races.cljc | (ns orcpub.dnd.e5.races
(:require #?(:clj [clojure.spec.alpha :as spec])
#?(:cljs [cljs.spec.alpha :as spec])
[orcpub.common :as common]))
(spec/def ::name (spec/and string? common/starts-with-letter?))
(spec/def ::key (spec/and keyword? common/keyword-starts-with-letter?))
(spec/def ::option... | null | https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/src/cljc/orcpub/dnd/e5/races.cljc | clojure | (ns orcpub.dnd.e5.races
(:require #?(:clj [clojure.spec.alpha :as spec])
#?(:cljs [cljs.spec.alpha :as spec])
[orcpub.common :as common]))
(spec/def ::name (spec/and string? common/starts-with-letter?))
(spec/def ::key (spec/and keyword? common/keyword-starts-with-letter?))
(spec/def ::option... | |
1ee256dd90a7911350e2cd6257548686e816cdfa9538a64083165f0ec5c772b4 | facebook/duckling | IT.hs | Copyright ( c ) 2016 - present , Facebook , Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Dimensions.IT
( allDimensions
) where
import Duckling.Dimensions.Types
allDimensions :... | null | https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Dimensions/IT.hs | haskell | All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. | Copyright ( c ) 2016 - present , Facebook , Inc.
module Duckling.Dimensions.IT
( allDimensions
) where
import Duckling.Dimensions.Types
allDimensions :: [Seal Dimension]
allDimensions =
[ Seal Distance
, Seal Duration
, Seal Numeral
, Seal Ordinal
, Seal Temperature
, Seal Time
, Seal Volume
]... |
921da52961474e09420f2c20ccca59e3de30037a4a5c4609dcbf743325ab88bf | rsnikhil/Forvis_RISCV-ISA-Spec | Main_Run_Program.hs | Copyright ( c ) 2018
-- See LICENSE for license details
module Main_Run_Program where
-- ================================================================
-- This is the 'main' function for the use-case where we simply
-- want to load and ELF file and run it sequentially to completion:
-- - Reads a list of file... | null | https://raw.githubusercontent.com/rsnikhil/Forvis_RISCV-ISA-Spec/0c5590a12f4b39644d0497fa6285ad5e33003dfc/ZZ_OLD/v2/Main_Run_Program.hs | haskell | See LICENSE for license details
================================================================
This is the 'main' function for the use-case where we simply
want to load and ELF file and run it sequentially to completion:
- Reads a list of filenames on the command-line
(RISC-V ELF executable files, or ... | Copyright ( c ) 2018
module Main_Run_Program where
Standard Haskell imports
import System.IO
import System.Environment
getOpt , usageInfo , OptDescr
import System.Exit
import Control.Monad
import Data.Int
import Data.List
import Data.Word
import Data.Bits
import Numeric (showHex, readHex, readDec)
impor... |
10c91bb0e2f79fd6aec1582b70233bad8a41a8ef9de935e78541f7caed52aaba | oakes/clojure-conj-2014 | core.clj | (load-game-file "01-title.clj")
(load-game-file "02-about.clj")
(load-game-file "03-projects.clj")
(load-game-file "04-gateway.clj")
(load-game-file "05-class.clj")
(load-game-file "06-problem.clj")
(load-game-file "07-indie.clj")
(load-game-file "08-gameplay.clj")
(load-game-file "09-graphics.clj")
(load-game-file "10... | null | https://raw.githubusercontent.com/oakes/clojure-conj-2014/575e8eeced02d761f8d278b95906083f03ba9565/core.clj | clojure | (load-game-file "01-title.clj")
(load-game-file "02-about.clj")
(load-game-file "03-projects.clj")
(load-game-file "04-gateway.clj")
(load-game-file "05-class.clj")
(load-game-file "06-problem.clj")
(load-game-file "07-indie.clj")
(load-game-file "08-gameplay.clj")
(load-game-file "09-graphics.clj")
(load-game-file "10... | |
47573c7a147dd81e623f34a197250ade8f1f831c83650bf2080fc69f76e5585d | g000001/tagger | fsa-basics.lisp | -*- Package : FSA ; Syntax : Common - Lisp ; Mode : Lisp ; Base : 10 -*-
Copyright ( c ) 1992 - -1994 by Xerox Corporation
Development follows " Introduction to Automata Theory , Languages , and
Computation " by and ( Addison and Wesley 1979 )
(cl:defpackage :finite-state-automata
(:nicknames :fsa)
(... | null | https://raw.githubusercontent.com/g000001/tagger/a4e0650c55aba44250871b96e2220e1b4953c6ab/orig/src/fsa/fsa-basics.lisp | lisp | Syntax : Common - Lisp ; Mode : Lisp ; Base : 10 -*-
Set abstraction
order function on sets (whose elements are ordered)
univariate relation
A finite-state automaton is a quintuple, Q,S,d,q,F where Q is
states whose values are relations of symbols
A set of states
Required predicates (return t, nil, or :equal)
... |
Copyright ( c ) 1992 - -1994 by Xerox Corporation
Development follows " Introduction to Automata Theory , Languages , and
Computation " by and ( Addison and Wesley 1979 )
(cl:defpackage :finite-state-automata
(:nicknames :fsa)
(:use :common-lisp)
#+clos(:import-from clos slot-definition-name class-... |
19a1b8addfa189cf0f8b0ffee0280df80bd359bc8e671b9667c80c0e8a981f4a | ian-ross/hnetcdf | Metadata.hs | # LANGUAGE FlexibleInstances , UndecidableInstances , EmptyDataDecls #
| file metadata handling : when a file is opened ,
-- metadata defining the dimensions, variables and attributes in the
file are read all at once to create a value of type ` NcInfo ` .
module Data.NetCDF.Metadata
( Name
, NcDim ... | null | https://raw.githubusercontent.com/ian-ross/hnetcdf/d334efc0b0b4f39a1ed4f45a8b75663c2171af6a/Data/NetCDF/Metadata.hs | haskell | metadata defining the dimensions, variables and attributes in the
| Names for dimensions, variables, attributes.
| Information about a dimension: name, number of entries and
whether unlimited.
| Attribute value.
| Information about a variable: name, type, dimensions and
attributes.
^ File name.
^ Dimensions de... | # LANGUAGE FlexibleInstances , UndecidableInstances , EmptyDataDecls #
| file metadata handling : when a file is opened ,
file are read all at once to create a value of type ` NcInfo ` .
module Data.NetCDF.Metadata
( Name
, NcDim (..)
, NcAttr (..), ToNcAttr (..), FromNcAttr (..)
, Nc... |
b9711f22a713ca58f337d2339e7e1451ff2f85dfc076b6f497dfa308ece64f33 | craigfe/brands | test.ml | module T : sig
type t0 [@@deriving branded]
type _ t1 [@@deriving branded]
type (_, _) t2 [@@deriving branded]
type (_, _, _) t3 [@@deriving branded]
end = struct
type t0 [@@deriving branded]
type _ t1 [@@deriving branded]
type (_, _) t2 [@@deriving branded]
type (_, _, _) t3 [@@deriving branded]
end
| null | https://raw.githubusercontent.com/craigfe/brands/9054197120a4f1acdfd6937a31d7097014000f67/test/ppx_brands/test.ml | ocaml | module T : sig
type t0 [@@deriving branded]
type _ t1 [@@deriving branded]
type (_, _) t2 [@@deriving branded]
type (_, _, _) t3 [@@deriving branded]
end = struct
type t0 [@@deriving branded]
type _ t1 [@@deriving branded]
type (_, _) t2 [@@deriving branded]
type (_, _, _) t3 [@@deriving branded]
end
| |
86113cb71969e85e513bcf9daf2f4345526ad0bb1ea67f18f1013cb5868e3f6e | polymeris/carlos | project.clj | (defproject carlos "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0" :scope "provided"]
[org.clojure/clojurescript "1.9.93" :scope "provided"]
[re... | null | https://raw.githubusercontent.com/polymeris/carlos/c8c5809f5a5fba95cff76d8a47a5eb236c664823/project.clj | clojure | (defproject carlos "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0" :scope "provided"]
[org.clojure/clojurescript "1.9.93" :scope "provided"]
[re... | |
9b43c6aca34cb2e559a029acabc961f51046773ed192a2bce50d443491157049 | mirage/ocaml-dns | dns_server.ml | ( c ) 2017 , 2018 , all rights reserved
open Dns
let src = Logs.Src.create "dns_server" ~doc:"DNS server"
module Log = (val Logs.src_log src : Logs.LOG)
module IPM = struct
include Map.Make(Ipaddr)
let union_append a b =
let f _ a b = Some (a @ b) in
union f a b
let add_or_merge k v m =
let t... | null | https://raw.githubusercontent.com/mirage/ocaml-dns/4a54aec242620ca2cb0f24568058d93c90a3e0f9/server/dns_server.ml | ocaml | TODO: should randomize answers + ad?
this won't happen, decoder constructs `Axfr
this implements RFC 2136 Section 2.4 + 3.2
RFC 2136 Section 2.5 + 3.4.2
outstanding notifications in a map where keys are IP address, values is a
map from zone to a quadruple consisting of timestamp, retry count, actual
... | ( c ) 2017 , 2018 , all rights reserved
open Dns
let src = Logs.Src.create "dns_server" ~doc:"DNS server"
module Log = (val Logs.src_log src : Logs.LOG)
module IPM = struct
include Map.Make(Ipaddr)
let union_append a b =
let f _ a b = Some (a @ b) in
union f a b
let add_or_merge k v m =
let t... |
32a4f8689e99641ecddd6d8e9f2674ef9518bc4c4b473efefa0b26b22eb07f68 | svenssonjoel/Obsidian | Globs.hs |
2012
module Obsidian.Globs where
import Data.Word
---------------------------------------------------------------------------
-- Aliases
type Name = String
type NumThreads = Word32 | null | https://raw.githubusercontent.com/svenssonjoel/Obsidian/90886a0ef513cdaa58bb63765c230fa193d1ef10/Obsidian/Globs.hs | haskell | -------------------------------------------------------------------------
Aliases |
2012
module Obsidian.Globs where
import Data.Word
type Name = String
type NumThreads = Word32 |
42e8edf53bc4f52eb45bdc907b83771eabf0f35d2b2f8b6841cac9b73fa19fbb | iustin/corydalis | BrowseSpec.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/BrowseSpec.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... |
d42c4d1bf5aa5e1c5bbc3d2de3173612cca3e9d77707d4f11c409428b236a788 | ocaml/opam | opamMain.mli | (**************************************************************************)
(* *)
Copyright 2012 - 2017 OCamlPro
Copyright 2012 INRIA
(* ... | null | https://raw.githubusercontent.com/ocaml/opam/074df6b6d87d4114116ea41311892b342cfad3de/src/client/opamMain.mli | ocaml | ************************************************************************
All rights reserved. This file is distributed under the terms of the
exception on linking descr... | Copyright 2012 - 2017 OCamlPro
Copyright 2012 INRIA
GNU Lesser General Public License version 2.1 , with the special
|
0e2b2c002cdeb8848630ad26e4cac9d94c57a4ece19068d27c58ff0b6969f226 | igorhvr/bedlam | db.scm | Copyright ( c ) 2005 , 2006 LShift Ltd. < >
;;;
;;; Permission is hereby granted, free of charge, to any person obtaining
;;; a copy of this software and associated documentation files (the
" Software " ) , to deal in the Software without restriction , including
;;; without limitation the rights to use, copy, modi... | null | https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/opt/sql/scm/lshift/db.scm | scheme |
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
without limitation the rights to use, copy, modify, merge, publish,
the following conditions:
The above copyright notice and this permission notice shall be
EXPRESS OR IMPLIED, ... | Copyright ( c ) 2005 , 2006 LShift Ltd. < >
" Software " ) , to deal in the Software without restriction , including
distribute , sublicense , and/or sell copies of the Software , and to
permit persons to whom the Software is furnished to do so , subject to
included in all copies or substantial portions of t... |
558186da7cc810c22047f18ec977416abff4263a9a353e2e5e3e036c055882fd | altsun/My-Lisps | (BG) Chuyen Group ve Block hang loat.lsp | ;; free lisp from cadviet.com
this lisp was downloaded from
(defun c:bg (/ block gnames ReplaceString old_str new_str ename strr nbl grname p ss lst_gr ent namegr ptpoint namebl)
(defun block (nbl grname p )
(vl-cmdf "_.-Block" nbl "_non" p "g" grname "")
(vl-cmdf "_.-insert" nbl "non" p "" "" "")
(princ))
... | null | https://raw.githubusercontent.com/altsun/My-Lisps/85476bb09b79ef5e966402cc5158978d1cebd7eb/Block/(BG)%20Chuyen%20Group%20ve%20Block%20hang%20loat.lsp | lisp | free lisp from cadviet.com | this lisp was downloaded from
(defun c:bg (/ block gnames ReplaceString old_str new_str ename strr nbl grname p ss lst_gr ent namegr ptpoint namebl)
(defun block (nbl grname p )
(vl-cmdf "_.-Block" nbl "_non" p "g" grname "")
(vl-cmdf "_.-insert" nbl "non" p "" "" "")
(princ))
(defun gnames (ename / key dct... |
869aca953236ca24d52fbc3ecddbcef9bdd8c0af17665b043bf85a605a60c8a8 | sacerdot/MiniErlangBlockchain | main.erl | @author
@author
-module(main).
-export([main/0, loop/5, test/0]).
-define(TIMEOUT, 10000).
sleep(N) -> receive after N * 1000 -> ok end.
watch(Main, Node) ->
sleep(10),
Nonce = make_ref(),
Node ! {ping, self(), Nonce},
receive
{pong, Nonce} ->
watch(Main, Node)
after 2000 ->... | null | https://raw.githubusercontent.com/sacerdot/MiniErlangBlockchain/46713c579204994a528d2e642c8f7c0670c2a832/LateganoVisaggi-Node/main.erl | erlang | non ho amici chiedo al professore
io:format("[~p] - My new friends are: ~p~n", [self(), MyNewFriends]),
uno degli amici e' morto
TRANSACTION %%%%%%%%%%%%%%%%%%%%%%%%%%
BLOCK %%%%%%%%%%%%%%%%%%%%%%%%%%
blocco scartato per qualche motivo, non faccio nulla
MINER %%%%%%%%%%%%%%%%%%%%%%%%%%
il blocco che ... | @author
@author
-module(main).
-export([main/0, loop/5, test/0]).
-define(TIMEOUT, 10000).
sleep(N) -> receive after N * 1000 -> ok end.
watch(Main, Node) ->
sleep(10),
Nonce = make_ref(),
Node ! {ping, self(), Nonce},
receive
{pong, Nonce} ->
watch(Main, Node)
after 2000 ->... |
a985160342238fe25ade2a6d110258dc4476dea3675a7a767a2edff080649cc5 | csabahruska/jhc-components | JumpPoint.hs | # OPTIONS_JHC -fno - prelude -fffi #
module Jhc.JumpPoint(JumpPoint(), withJumpPoint__, jumpJumpPoint__, errorJumpPoint) where
import Jhc.IO
import Jhc.Addr
import Jhc.Monad
import Jhc.Order
import Jhc.Int
import Jhc.Basics
newtype JumpPoint = JumpPoint (Ptr ())
| in order to be safe , the JumpPoint must not escap... | null | https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/lib/jhc/Jhc/JumpPoint.hs | haskell | | jumping to this jumppoint will always abort the program. | # OPTIONS_JHC -fno - prelude -fffi #
module Jhc.JumpPoint(JumpPoint(), withJumpPoint__, jumpJumpPoint__, errorJumpPoint) where
import Jhc.IO
import Jhc.Addr
import Jhc.Monad
import Jhc.Order
import Jhc.Int
import Jhc.Basics
newtype JumpPoint = JumpPoint (Ptr ())
| in order to be safe , the JumpPoint must not escap... |
ebee22d93ee57b965d5c99cdd0e6861abae6f647ac87804419f2fc073ef7cde8 | facebookarchive/pfff | rsvg.mli | (**************************************************************************)
(* Lablgtk *)
(* *)
(* This program is free software; you can redistribute it *)
and/or ... | null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/ocamlgtk/src/rsvg.mli | ocaml | ************************************************************************
Lablgtk
This program is free software; you can redistribute it
comes with the library. ... | and/or modify it under the terms of the GNU Library General
Public License as published by the Free Software Foundation
version 2 , with the exception described in file COPYING which
GNU Library General Public License for more details .
You should have r... |
8f265219e652fa9e9e270aa9ad393cf39fa37fee04d2413801fa565def4af606 | change-metrics/monocle | MergeRequests.hs | # LANGUAGE DuplicateRecordFields #
# LANGUAGE QuasiQuotes #
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -Wno - missing - export - lists #
# OPTIONS_GHC -Wno - missing - pattern - synonym - signatures -Wno - partial - fields #
{-# OPTIONS_GHC -Wno-unused-matches -Wno-unused-imports -Wno-orphans #-}
module Lentille.GitLa... | null | https://raw.githubusercontent.com/change-metrics/monocle/1e37194a03d6f6c48c53b53c9becf0fe45e5e4a9/src/Lentille/GitLab/MergeRequests.hs | haskell | # OPTIONS_GHC -Wno-unused-matches -Wno-unused-imports -Wno-orphans #
#projectmergerequests
A callback to get Ident ID from an alias
This transform the stream by adding a limit.
We don't care about the rest so we replace it with ()
A callback to get Ident ID from an alias
No closedAt attribute for a MR then use up... | # LANGUAGE DuplicateRecordFields #
# LANGUAGE QuasiQuotes #
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -Wno - missing - export - lists #
# OPTIONS_GHC -Wno - missing - pattern - synonym - signatures -Wno - partial - fields #
module Lentille.GitLab.MergeRequests where
import Data.Morpheus.Client
import Data.Text quali... |
663ad01b4be883a1a9d05272b54ccccb485c29eafed9e8dccaf8cd159adc7411 | penpot/penpot | blur.cljs | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.ui.workspace.sidebar.options.menus.blur
(:require
[app.common.uuid :as uuid]
[app.main.da... | null | https://raw.githubusercontent.com/penpot/penpot/3b0bded82c75499b063c1a1c6c8d6374cc98a637/frontend/src/app/main/ui/workspace/sidebar/options/menus/blur.cljs | clojure |
Copyright (c) KALEIDOS INC | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(ns app.main.ui.workspace.sidebar.options.menus.blur
(:require
[app.common.uuid :as uuid]
[app.main.data.workspace.changes :as dch]
... |
22e3cb5b4bc728a263ac931bdb42e3cb1bfeddde585e6b6cac1e94ce857a690a | ceramic/ceramic | setup.lisp | (in-package :cl-user)
(defpackage ceramic.setup
(:use :cl)
(:import-from :ceramic.log
:log-message)
(:import-from :ceramic.file
:*ceramic-directory*
:release-directory)
(:import-from :ceramic.os
:*operating-system*
:*architecture*)
... | null | https://raw.githubusercontent.com/ceramic/ceramic/5d81e2bd954440a6adebde31fac9c730a698c74b/src/setup.lisp | lisp | Main | (in-package :cl-user)
(defpackage ceramic.setup
(:use :cl)
(:import-from :ceramic.log
:log-message)
(:import-from :ceramic.file
:*ceramic-directory*
:release-directory)
(:import-from :ceramic.os
:*operating-system*
:*architecture*)
... |
035014aadddf7bc4b6d68b783fb63cd8246e864498a5d3e2492ac8c60eb7389f | CSCfi/rems | reports.cljs | (ns rems.administration.reports
"Admin page for reports."
(:require [re-frame.core :as rf]
[rems.administration.administration :as administration]
[rems.atoms :as atoms]
[rems.flash-message :as flash-message]
[rems.text :refer [text]]))
(rf/reg-event-fx
::enter-page... | null | https://raw.githubusercontent.com/CSCfi/rems/644ef6df4518b8e382cdfeadd7719e29508a26f0/src/cljs/rems/administration/reports.cljs | clojure | (ns rems.administration.reports
"Admin page for reports."
(:require [re-frame.core :as rf]
[rems.administration.administration :as administration]
[rems.atoms :as atoms]
[rems.flash-message :as flash-message]
[rems.text :refer [text]]))
(rf/reg-event-fx
::enter-page... | |
a93205b86c0aa157be8beb37953d2f0d210a53c6d1edbd196b964a5be32e47ed | FlowerWrong/mblog | ets_test.erl | %% ---
Excerpted from " Programming Erlang , Second Edition " ,
published by The Pragmatic Bookshelf .
%% Copyrights apply to this code. It may not be used to create training material,
%% courses, books, articles, and the like. Contact us if you are in doubt.
%% We make no guarantees that this code is fit for... | null | https://raw.githubusercontent.com/FlowerWrong/mblog/3233ede938d2019a7b57391405197ac19c805b27/categories/erlang/demo/jaerlang2_code/ets_test.erl | erlang | ---
Copyrights apply to this code. It may not be used to create training material,
courses, books, articles, and the like. Contact us if you are in doubt.
We make no guarantees that this code is fit for any purpose.
Visit for more book information.
--- | Excerpted from " Programming Erlang , Second Edition " ,
published by The Pragmatic Bookshelf .
-module(ets_test).
-export([start/0]).
start() ->
lists:foreach(fun test_ets/1,
[set, ordered_set, bag, duplicate_bag]).
test_ets(Mode) ->
TableId = ets:new(test, [Mode]),
ets:insert(TableId, {a,1}),
... |
2183c99316a1dadeb696a47e79348b1fc765d6e2a77bb1f552162adca5be5947 | patzy/glaw | imago.lisp | (defpackage :glaw-imago
(:use #:cl #:glaw)
(:export))
(in-package #:glaw-imago)
(defun translate-image-pixels (img)
"Translate IMAGO two-dimensional pixel array into a single dimension one."
(let* ((width (imago:image-width img))
(height (imago:image-height img))
(pixels (imago:image-pixels ... | null | https://raw.githubusercontent.com/patzy/glaw/e678fc0c107ce4b1e3ff9921a6de7e32fd39bc37/ext/imago.lisp | lisp | image asset
load
unload not needed?
texture asset
load
XXX: textures are bottom-left origin
unload
font asset
load
unload | (defpackage :glaw-imago
(:use #:cl #:glaw)
(:export))
(in-package #:glaw-imago)
(defun translate-image-pixels (img)
"Translate IMAGO two-dimensional pixel array into a single dimension one."
(let* ((width (imago:image-width img))
(height (imago:image-height img))
(pixels (imago:image-pixels ... |
b5eb457ba7a72e9d4aaf3904c415cb50f3628b5fa89ca7b809223bf95e8c76e7 | RBornat/jape | unify.ml |
Copyright ( C ) 2003 - 19
This file is part of the proof engine , which is part of .
is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either ver... | null | https://raw.githubusercontent.com/RBornat/jape/1f757680878527eebd04919f00bfb18a9b41bdf2/distrib/camlengine/unify.ml | ocaml | Includes Bag and List unification, with trepidation
ok. RB
spurious exception to shut compiler up
for useful abstraction, map (m) and orig (_P) must have been rewritten
body of abstract
class used to call subststep, but now it doesn't. The reason is that subststep
* can force an alpha-conversion; this look... |
Copyright ( C ) 2003 - 19
This file is part of the proof engine , which is part of .
is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either ver... |
a7ab1d7b2db82bebfa9648e057df795e2988ced4a553342d9ff7ad82db02a587 | typelead/etlas | ConflictSet.hs | # LANGUAGE CPP #
#ifdef DEBUG_CONFLICT_SETS
# LANGUAGE ImplicitParams #
#endif
-- | Conflict sets
--
-- Intended for double import
--
> import Distribution . Solver . Modular . ConflictSet ( ConflictSet )
> import qualified Distribution . Solver . Modular . ConflictSet as CS
module Distribution.Solver.Modular.Confl... | null | https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas/Distribution/Solver/Modular/ConflictSet.hs | haskell | | Conflict sets
Intended for double import
opaque
Set-like operations
| The set of variables involved in a solver conflict
Since these variables should be preprocessed in some way, this type is
kept abstract.
| The set of variables involved on the conflict
| The origin of the conflict set
we record the or... | # LANGUAGE CPP #
#ifdef DEBUG_CONFLICT_SETS
# LANGUAGE ImplicitParams #
#endif
> import Distribution . Solver . Modular . ConflictSet ( ConflictSet )
> import qualified Distribution . Solver . Modular . ConflictSet as CS
module Distribution.Solver.Modular.ConflictSet (
, ConflictMap
#ifdef DEBUG_CONFLICT_SETS
,... |
25f17366c8eb4380f490d3afb76048223a20cb344689d820701b1bdb743920ba | OCamlPro/directories | print_dir.ml | let () =
(* The directories module *)
let module M = Directories in
The base dirs module
let module B = M.Base_dirs () in
(* The user dirs module *)
let module U = M.User_dirs () in
In order to instanciate the Project_dir functor , we need a module for our project
let module OCamlPro_path = struct
l... | null | https://raw.githubusercontent.com/OCamlPro/directories/1cf7211f918fa909e5f77c0dfbb059c74071e99b/example/print_dir.ml | ocaml | The directories module
The user dirs module
The project dirs module for our project
functions to print a dir path
Printing base dirs
Printing project dirs | let () =
let module M = Directories in
The base dirs module
let module B = M.Base_dirs () in
let module U = M.User_dirs () in
In order to instanciate the Project_dir functor , we need a module for our project
let module OCamlPro_path = struct
let qualifier = "com"
let organization = "OCamlPro"
... |
b58978fa430dc0b610c49bd2d73e25e6bc9c9afc424433b9860b96616014b701 | Frama-C/Frama-C-snapshot | library_functions.mli | (**************************************************************************)
(* *)
This file is part of Frama - C.
(* *)
Copyright ... | null | https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/utils/library_functions.mli | ocaml | ************************************************************************
alternatives)
... | This file is part of Frama - C.
Copyright ( C ) 2007 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , v... |
d9a547868b32c136999e79df032cbf9fa481f75e04be8878a5d41c37956e784d | theodormoroianu/SecondYearCourses | HaskellChurch_20210415163751.hs | {-# LANGUAGE RankNTypes #-}
module HaskellChurch where
A boolean is any way to choose between two alternatives
newtype CBool = CBool {cIf :: forall t. t -> t -> t}
An instance to show as regular Booleans
instance Show CBool where
show b = "cBool " <> show (cIf b True False)
The boolean constant true always ... | null | https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415163751.hs | haskell | # LANGUAGE RankNTypes #
The boolean negation switches the alternatives
The boolean conjunction can be built as a conditional
The boolean disjunction can be built as a conditional
a pair is a way to compute something based on the values
contained within the pair.
a function to be applied on the values, it will apply i... | module HaskellChurch where
A boolean is any way to choose between two alternatives
newtype CBool = CBool {cIf :: forall t. t -> t -> t}
An instance to show as regular Booleans
instance Show CBool where
show b = "cBool " <> show (cIf b True False)
The boolean constant true always chooses the first alternativ... |
95852ec31dd6b0d506839696226eec71eb8401425db7e9e9405dee0b0eefa1ff | edbutler/nonograms-rule-synthesis | builtin.rkt | #lang racket
; built-in rules, from the Internet.
(provide
(except-out (all-defined-out) define-builtin builtin-internal-list))
(require
"../core/core.rkt"
"ast.rkt"
"debug.rkt"
"dsl-pretty.rkt")
(define builtin-internal-list empty)
; name : symbol?
; rule : Program?
examples : ( listof line / fill ? )... | null | https://raw.githubusercontent.com/edbutler/nonograms-rule-synthesis/16f8dacb17bd77c9d927ab9fa0b8c1678dc68088/src/nonograms/builtin.rkt | racket | built-in rules, from the Internet.
name : symbol?
rule : Program?
Full Hint
specialization of Big Hint for hint = row size
Full Hint Pair
Big Hint
This is an infinite family of rules depending on how many hints;
this is the most general rule, covering all such cases.
#Glue
This is the most general variant of... | #lang racket
(provide
(except-out (all-defined-out) define-builtin builtin-internal-list))
(require
"../core/core.rkt"
"ast.rkt"
"debug.rkt"
"dsl-pretty.rkt")
(define builtin-internal-list empty)
examples : ( listof line / fill ? )
(standard-struct builtin (name rule examples))
(define-syntax-rule (de... |
0f7ee87b2ee9bee6ed1d93eb611af6ebf21c00167f75ecde6e50f667edf050d5 | jarmuszz/dots | autorun.lisp | (loadconf "internal/modules.lisp")
(remap/init)
(modeline/init)
(nonascii/init)
(visual/init)
(mapc #'run-shell-command
'("picom"
"wal -R"
))
| null | https://raw.githubusercontent.com/jarmuszz/dots/3a179acb84e5f76566542b0a23bd85d18e2e727e/stumpwm/autorun.lisp | lisp | (loadconf "internal/modules.lisp")
(remap/init)
(modeline/init)
(nonascii/init)
(visual/init)
(mapc #'run-shell-command
'("picom"
"wal -R"
))
| |
566dcfeb5065ea840f32ddff6b565e371a61dff046c50c5c7bd879577432730c | HealthSamurai/stresty | default.clj | (ns stresty.format.default
(:require [clojure.string :as str]))
(defn red [x]
(str "\033[31m" x"\033[0m"))
(defn green [x]
(str "\033[32m" x"\033[0m"))
(defn do-format
[ztx state {tp :type ts :ts :as event}]
(cond
(= tp 'sty/on-tests-start)
(swap! state assoc :start ts)
(= tp 'sty/on-env-start... | null | https://raw.githubusercontent.com/HealthSamurai/stresty/ee770e998c28a8dcacdf5562a1bac35472cba881/src/stresty/format/default.clj | clojure | (println (keys event)) | (ns stresty.format.default
(:require [clojure.string :as str]))
(defn red [x]
(str "\033[31m" x"\033[0m"))
(defn green [x]
(str "\033[32m" x"\033[0m"))
(defn do-format
[ztx state {tp :type ts :ts :as event}]
(cond
(= tp 'sty/on-tests-start)
(swap! state assoc :start ts)
(= tp 'sty/on-env-start... |
333b2ac05a683e835624079a4b8da9bb847ab3c9e7ea23c2499659a28e6e045a | c-cube/lwt-pipe | Lwt_pipe.ml |
(* This file is free software. See file "license" for more details. *)
open Lwt.Infix
exception Closed
type 'a read_timeout_result =
| Pipe_closed
| Nothing_available
| Timeout
| Data_available of 'a
type 'a reader = {
r_wakeup: 'a read_timeout_result Lwt.u;
mutable r_timeout: bool;
}
type ('a, +'perm... | null | https://raw.githubusercontent.com/c-cube/lwt-pipe/0e412e92652dcdd6229a5eca87225b30d0799321/src/Lwt_pipe.ml | ocaml | This file is free software. See file "license" for more details.
if true, no more input will come
blocked readers
internal buffers of written values
blocked writers
close immediately
$T is_closed; create
create () |> is_closed |> not
$T close_nonblock; is_closed; create
let p = create () in \
close_n... |
open Lwt.Infix
exception Closed
type 'a read_timeout_result =
| Pipe_closed
| Nothing_available
| Timeout
| Data_available of 'a
type 'a reader = {
r_wakeup: 'a read_timeout_result Lwt.u;
mutable r_timeout: bool;
}
type ('a, +'perm) t = {
close : unit Lwt.u;
closed : unit Lwt.t;
max_size : int;
... |
fde6841d5efb7429a9cb93b1241727a3bfc8f3b0651e416fb26a5b9a7f992149 | icicle-lang/icicle-ambiata | Arbitrary.hs | module Icicle.Test.Arbitrary (
module Icicle.Test.Arbitrary.Data
, module Icicle.Test.Arbitrary.Source
, module Icicle.Test.Arbitrary.Core
, module Icicle.Test.Arbitrary.Program
) where
import Icicle.Test.Arbitrary.Data
import Icicle.Test.Arbitrary.Source
import Icicle.Test.Arbitrary.Core
import Icicle.Tes... | null | https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/test/Icicle/Test/Arbitrary.hs | haskell | module Icicle.Test.Arbitrary (
module Icicle.Test.Arbitrary.Data
, module Icicle.Test.Arbitrary.Source
, module Icicle.Test.Arbitrary.Core
, module Icicle.Test.Arbitrary.Program
) where
import Icicle.Test.Arbitrary.Data
import Icicle.Test.Arbitrary.Source
import Icicle.Test.Arbitrary.Core
import Icicle.Tes... | |
92fafafbfb8939588c1c5b73b551942b4a57c5093e0e6f6a0426d4e56034247b | swamp-agr/proof-assistant-bot | ShowScope.hs | module Agda.Interaction.Command.ShowScope where
import Agda.TypeChecking.Monad.Base (TCM)
import Agda.TypeChecking.Monad.State (getScope)
import Agda.Utils.Pretty (prettyShow)
import Data.ByteString (ByteString)
import Proof.Assistant.Helpers (toBS)
showScope :: TCM ByteString
showScope = do
scope <- getScope
pu... | null | https://raw.githubusercontent.com/swamp-agr/proof-assistant-bot/759ded398ca7a145fecf5a094c86c7c26c9159da/src/Agda/Interaction/Command/ShowScope.hs | haskell | module Agda.Interaction.Command.ShowScope where
import Agda.TypeChecking.Monad.Base (TCM)
import Agda.TypeChecking.Monad.State (getScope)
import Agda.Utils.Pretty (prettyShow)
import Data.ByteString (ByteString)
import Proof.Assistant.Helpers (toBS)
showScope :: TCM ByteString
showScope = do
scope <- getScope
pu... | |
dcdc6e4734ce3afcf6ab2f529a6e1bbcb6b7691294e4283b1ed4937ffef1281a | monadbobo/ocaml-core | bin_io_utils.ml | open Core.Std
let load ?pos ?len file bin_read_t =
let failwith s = failwith ("Core_extended.Bin_io_utils.load: " ^ s) in
let pos =
match pos with
| None -> Int64.zero
| Some pos when pos < Int64.zero -> failwith "pos < 0"
| Some pos -> pos
in
let bstr =
In_channel.with_file file ~f:(fun ic... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/bin_io_utils.ml | ocaml | open Core.Std
let load ?pos ?len file bin_read_t =
let failwith s = failwith ("Core_extended.Bin_io_utils.load: " ^ s) in
let pos =
match pos with
| None -> Int64.zero
| Some pos when pos < Int64.zero -> failwith "pos < 0"
| Some pos -> pos
in
let bstr =
In_channel.with_file file ~f:(fun ic... | |
cf8b1670b93f809cfb5719f0fda77be127b7734165724856d199acf435a92b7f | jeromesimeon/Galax | processing_context.mli | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | null | https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/procctxt/processing_context.mli | ocaml | *********************************************************************
GALAX
XQuery Engine
... | Copyright 2001 - 2007 .
$ I d : processing_context.mli , v 1.51 2007/10/16 01:25:35 mff Exp $
Module : Processing_context
Description :
The processing context contains the state that is shared across
multiple Galax API calls and between the process... |
6de2304c3f1dafaf8c703587ef9d583707b76b8cd1a266d18b76717ed6ca3d02 | broadinstitute/firecloud-ui | acl_editor.cljs | (ns broadfcui.page.workspace.summary.acl-editor
(:require
[dmohs.react :as react]
[clojure.set :as set]
[broadfcui.common :as common]
[broadfcui.common.components :as comps]
[broadfcui.common.input :as input]
[broadfcui.common.style :as style]
[broadfcui.components.blocker :refer [blocker]]
[b... | null | https://raw.githubusercontent.com/broadinstitute/firecloud-ui/8eb077bc137ead105db5665a8fa47a7523145633/src/cljs/main/broadfcui/page/workspace/summary/acl_editor.cljs | clojure | The list of all assignable access levels in the system
Note that if you add an access level, you will want to add it in common.cljs as well
those in the default settings when the user is at least an owner | (ns broadfcui.page.workspace.summary.acl-editor
(:require
[dmohs.react :as react]
[clojure.set :as set]
[broadfcui.common :as common]
[broadfcui.common.components :as comps]
[broadfcui.common.input :as input]
[broadfcui.common.style :as style]
[broadfcui.components.blocker :refer [blocker]]
[b... |
775d6118330ecda5295606b0d3e6ddaa0276def4b195d43ae14c5acd4c2b63d9 | mitchellwrosen/hspolls | Chan.hs | | Handle yields by writing them to a broadcast TChan .
# LANGUAGE UndecidableInstances #
module Hp.Eff.Yield.Chan
( YieldCarrierChan
, runYieldChan
) where
import Hp.Eff.Yield (YieldEffect(..))
import Control.Concurrent.STM
import Control.Effect
import Control.Effect.Carrier
import Control.Effect.Reader
imp... | null | https://raw.githubusercontent.com/mitchellwrosen/hspolls/22efea743194ade091f7daa112a2d9ce985a4500/src/Hp/Eff/Yield/Chan.hs | haskell | | Handle yields by writing them to a broadcast TChan .
# LANGUAGE UndecidableInstances #
module Hp.Eff.Yield.Chan
( YieldCarrierChan
, runYieldChan
) where
import Hp.Eff.Yield (YieldEffect(..))
import Control.Concurrent.STM
import Control.Effect
import Control.Effect.Carrier
import Control.Effect.Reader
imp... | |
ab27b156b84f7e8f5ea82b5a921c972fe486bec17db64959dfcd1ce405a50fd6 | xvw/planet | log.mli | * Deal with Planet 's logs
open Bedrock
open Baremetal
(** Get the database *)
val database : Shapes.Log.t Database.t
val whereami_file : File.name
val log_pattern : File.name list
(** Create the bucket for logs *)
val create_file : Paperwork.Timetable.Day.t -> (File.name * bool) Result.t
(** Create the bucket for... | null | https://raw.githubusercontent.com/xvw/planet/c2a77ea66f61cc76df78b9c2ad06d114795f3053/src/glue/log.mli | ocaml | * Get the database
* Create the bucket for logs
* Create the bucket for whereami logs
* Create update table for projects
* Read all log for a bucket
* Read update table for projects
* Push projects in file
* Converts logs to [Json.t]
* Convert whereami location into [Json.t]
* Fetch all logs in [Json.t]
* Fet... | * Deal with Planet 's logs
open Bedrock
open Baremetal
val database : Shapes.Log.t Database.t
val whereami_file : File.name
val log_pattern : File.name list
val create_file : Paperwork.Timetable.Day.t -> (File.name * bool) Result.t
val create_whereami_file : unit -> (File.name * bool) Result.t
val create_update_t... |
533636b7f66e8950e7203296581ee152d1397adeee7af008a086f39b41d3c4b4 | r0man/google-maps-clj | projection.clj | (ns google.maps.test.projection
(:use clojure.test
google.maps.location
google.maps.projection))
(def lat-max 85.05112877980659)
(def lat-min -85.05112877980659)
(def lon-max 180.0)
(def lon-min -180.0)
(deftest test-tiles
(are [zoom expected]
(is (= (tiles zoom) expected))
0 1
1 2
... | null | https://raw.githubusercontent.com/r0man/google-maps-clj/75467cd366fad1250ac78f07e4796c254d09f36a/test/google/maps/test/projection.clj | clojure | (ns google.maps.test.projection
(:use clojure.test
google.maps.location
google.maps.projection))
(def lat-max 85.05112877980659)
(def lat-min -85.05112877980659)
(def lon-max 180.0)
(def lon-min -180.0)
(deftest test-tiles
(are [zoom expected]
(is (= (tiles zoom) expected))
0 1
1 2
... | |
ae77483190b06d068038b0c7be577373f748f66eae4ca58dc6c3e1d678e2d97a | Zilliqa/scilla | Config.mli |
This file is part of scilla .
Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd.
scilla is free software : you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation , either version 3 of the License , or ( at you... | null | https://raw.githubusercontent.com/Zilliqa/scilla/eec5d1c686f3a000de14707d0fe5245f0c430e0b/src/merge/Config.mli | ocaml | * Identifier that should be replaced. |
This file is part of scilla .
Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd.
scilla is free software : you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation , either version 3 of the License , or ( at you... |
191a5ed4c66bb3f404824fa0d6e8525717b4eae9221a6f089534ba7b493dc96e | vivid-inc/ash-ra-template | specs.clj | ; Copyright 2019 Vivid 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, software
distributed under the L... | null | https://raw.githubusercontent.com/vivid-inc/ash-ra-template/f64be7efd6f52ccd451cddb851f02511d1665b11/art/src/vivid/art/specs.clj | clojure | Copyright 2019 Vivid Inc.
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the speci... | distributed under the License is distributed on an " AS IS " BASIS ,
(ns vivid.art.specs
"Clojure Spec definitions for Ash Ra Temple data structures.
All definitions exposed through ART's API plus all key
definitions are namespaced."
(:require
[clojure.spec.alpha :as s]))
(s/def :vivid.art/template (s... |
8eb01e5e6d7dac50ca99fc1eab4314f1abe92c912bb6c74059eab4f60477cc70 | emqx/ecql | ecql_frame_tests.erl | %%%-----------------------------------------------------------------------------
Copyright ( c ) 2015 eMQTT.IO , All Rights Reserved .
%%%
%%% Permission is hereby granted, free of charge, to any person obtaining a copy
%%% of this software and associated documentation files (the "Software"), to deal
in the Softwar... | null | https://raw.githubusercontent.com/emqx/ecql/f29d05fb8bdf1167877ec07ef7f0950f6feeab95/test/ecql_frame_tests.erl | erlang | -----------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnishe... | Copyright ( c ) 2015 eMQTT.IO , All Rights Reserved .
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF A... |
d056b616ff45cc4a4350ddcec345d0c2e9efb805c470f9448740b36360fe202e | cedlemo/OCaml-GI-ctypes-bindings-generator | Flow_box.ml | open Ctypes
open Foreign
type t = unit ptr
let t_typ : t typ = ptr void
let create =
foreign "gtk_flow_box_new" (void @-> returning (ptr Widget.t_typ))
(*Not implemented gtk_flow_box_bind_model type interface not implemented*)
let get_activate_on_single_click =
foreign "gtk_flow_box_get_activate_on_single_click" ... | null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Flow_box.ml | ocaml | Not implemented gtk_flow_box_bind_model type interface not implemented
Not implemented gtk_flow_box_selected_foreach type callback not implemented
Not implemented gtk_flow_box_set_filter_func type callback not implemented
Not implemented gtk_flow_box_set_sort_func type callback not implemented | open Ctypes
open Foreign
type t = unit ptr
let t_typ : t typ = ptr void
let create =
foreign "gtk_flow_box_new" (void @-> returning (ptr Widget.t_typ))
let get_activate_on_single_click =
foreign "gtk_flow_box_get_activate_on_single_click" (t_typ @-> returning (bool))
let get_child_at_index =
foreign "gtk_flow_b... |
2bd916aa592db65b93d1f0f037d2ea20de798e5e3679f2e1e59c980f4262453e | malcolmsparks/up | project.clj | Copyright © 2013 , . All Rights Reserved .
;;
;; The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 ( -1.0.php )
;; which can be found in the file epl-v10.html at the root of this distribution.
;;
;; By using this software in any fashion, you are agreeing to be bound by... | null | https://raw.githubusercontent.com/malcolmsparks/up/4ce578f60f6d60661d32965026bf3c2a854a0d52/up-watch/project.clj | clojure |
The use and distribution terms for this software are covered by the
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by the
terms of this license.
You must not remove this notice, or any other, from this software. | Copyright © 2013 , . All Rights Reserved .
Eclipse Public License 1.0 ( -1.0.php )
(read "project.clj")
(def version (get-version))
(defproject up/up-watch version
:description "Watch component that watches the file system and place file events on the bus."
:url ""
:license {:name "Eclipse Public License"... |
72c756663c6dd863701ae38ef76e101f67230eecefe40b4170557c4dde5a8994 | simon-frankau/mock-a-mockingbird | BirdsGalore.hs | module BirdsGalore where
import Control.Applicative((<|>))
import Control.Arrow((&&&))
import Control.Monad(forM_)
import qualified Data.Set as Set
import Data.Maybe(fromJust)
------------------------------------------------------------------------
-- Expression type and pretty-printer
data Combinator = W | K | M |... | null | https://raw.githubusercontent.com/simon-frankau/mock-a-mockingbird/021f369990d1d72f3520b4a4f46a1911b9b8afe9/BirdsGalore.hs | haskell | ----------------------------------------------------------------------
Expression type and pretty-printer
----------------------------------------------------------------------
Build and reduce expressions
Maximum number of times a combinator can be applied before it can be
fully reduced. "Nothing" if that doesn't ... | module BirdsGalore where
import Control.Applicative((<|>))
import Control.Arrow((&&&))
import Control.Monad(forM_)
import qualified Data.Set as Set
import Data.Maybe(fromJust)
data Combinator = W | K | M | I | C | T | B | R | F | E | V | CStar |
Q | L | H | S | G | G1 | I2 | Phi | U | O | J | J1
... |
3eb43cc2d5f4ac67b08c5ff2d181c63ec50c354869ca2e1313fc8dd0c2b7a9fd | ekmett/thrists | Catenated.hs | # LANGUAGE RankNTypes , PolyKinds #
module Control.Category.Free.Catenated where
import Control.Applicative
import Control.Category
import Data.Functor.Identity
import Prelude hiding ((.),id)
class Catenated t where
foldCat :: Category s => (forall a b. r a b -> s a b) -> t r a b -> s a b
traverseCat :: Appli... | null | https://raw.githubusercontent.com/ekmett/thrists/49c4a0a86712a91bb435c938147173676b8c005c/Control/Category/Free/Catenated.hs | haskell | # LANGUAGE RankNTypes , PolyKinds #
module Control.Category.Free.Catenated where
import Control.Applicative
import Control.Category
import Data.Functor.Identity
import Prelude hiding ((.),id)
class Catenated t where
foldCat :: Category s => (forall a b. r a b -> s a b) -> t r a b -> s a b
traverseCat :: Appli... | |
269d48892ed4dc00f36f7805d088c0a8edc59ae097b4cfd0a5efa3bf5659cf78 | ninjudd/cake | default.clj | (ns cake.tasks.default
(:use cake.core))
(require-tasks [cake.tasks help jar test ng compile deps release swank file
version eval check search docs classpath coverage])
(deftask default #{help})
| null | https://raw.githubusercontent.com/ninjudd/cake/3a1627120b74e425ab21aa4d1b263be09e945cfd/src/cake/tasks/default.clj | clojure | (ns cake.tasks.default
(:use cake.core))
(require-tasks [cake.tasks help jar test ng compile deps release swank file
version eval check search docs classpath coverage])
(deftask default #{help})
| |
3ca2d824d4b5c836c88c7a92067eb29696fe09bb7603b63e02171a1101b7dcc7 | conjure-cp/conjure | DontCare.hs | # LANGUAGE QuasiQuotes #
module Conjure.Rules.DontCare where
import Conjure.Rules.Import
import Conjure.Process.Enumerate ( EnumerateDomain )
rule_Bool :: Rule
rule_Bool = "dontCare-bool" `namedRule` theRule where
theRule p = do
x <- match opDontCare p
DomainBool <- domainOf x
r... | null | https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Rules/DontCare.hs | haskell | direct name resolution | # LANGUAGE QuasiQuotes #
module Conjure.Rules.DontCare where
import Conjure.Rules.Import
import Conjure.Process.Enumerate ( EnumerateDomain )
rule_Bool :: Rule
rule_Bool = "dontCare-bool" `namedRule` theRule where
theRule p = do
x <- match opDontCare p
DomainBool <- domainOf x
r... |
a15cd26541590111cd6eb07b03501979ecb75b3902522e7314ea4c04f4d5400c | ocsigen/js_of_ocaml | unix.ml | (* this is empty *)
| null | https://raw.githubusercontent.com/ocsigen/js_of_ocaml/8b6b1f690f20bfd8557b52703a7efad0c621cc95/compiler/tests-check-prim/unix.ml | ocaml | this is empty | |
16ce7fc28b846c2638c37f175327c9bbf76b1e302b7cd89796efde75652b87bd | shriphani/clj-lmdb | core.clj | (ns clj-lmdb.core
(:import [org.fusesource.lmdbjni Database Env]))
(defrecord DB [env db])
(defrecord NamedDB [env db name])
(defrecord Txn [txn type])
(defn make-db
"Initialize a new database, optionally specifying *max-size*, in
bytes. By default, the maximum size of the memory map (and thus the
database)... | null | https://raw.githubusercontent.com/shriphani/clj-lmdb/dd842440088aa7fbe677c31c07ae56621d98a04d/src/clj_lmdb/core.clj | clojure | (ns clj-lmdb.core
(:import [org.fusesource.lmdbjni Database Env]))
(defrecord DB [env db])
(defrecord NamedDB [env db name])
(defrecord Txn [txn type])
(defn make-db
"Initialize a new database, optionally specifying *max-size*, in
bytes. By default, the maximum size of the memory map (and thus the
database)... | |
3dfbf96b5172e5add18254ed8e14b4c00587a95607607bf062c895e4f3f9f7e9 | AdRoll/rebar3_typer | def.erl | -module(def).
def() ->
?DEF.
| null | https://raw.githubusercontent.com/AdRoll/rebar3_typer/bc2a3b8a330658921b699263550a98bf90208d72/test/files/def/def.erl | erlang | -module(def).
def() ->
?DEF.
| |
840f5831003173fafc02268ebf89e4bb1f89b5a6831105b4fca93d4f0ae91a75 | steffan-westcott/clj-otel | open_tracing.clj | (ns steffan-westcott.clj-otel.propagator.open-tracing
"Access to implementation of protocol used by OpenTracing Basic Tracers."
(:import (io.opentelemetry.extension.trace.propagation OtTracePropagator)))
(defn trace-propagator
"Returns an implementation of the protocol used by OpenTracing Basic
Tracers."
[]
... | null | https://raw.githubusercontent.com/steffan-westcott/clj-otel/b227831fbf71062f68527321837d5e3cf75990b1/clj-otel-extension-trace-propagators/src/steffan_westcott/clj_otel/propagator/open_tracing.clj | clojure | (ns steffan-westcott.clj-otel.propagator.open-tracing
"Access to implementation of protocol used by OpenTracing Basic Tracers."
(:import (io.opentelemetry.extension.trace.propagation OtTracePropagator)))
(defn trace-propagator
"Returns an implementation of the protocol used by OpenTracing Basic
Tracers."
[]
... | |
59a64cf4178d269988a920336c1c2d19e466f653f401855acc0530a8af57b896 | project-oak/hafnium-verification | ISequence.mli |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/istd/ISequence.mli | ocaml | * Utility functions for sequences |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... |
206afbc08c83590808fbf67a76923e06e8d0be12d34c31c1c42f6c69e54ef2f6 | bobot/FetedelascienceINRIAsaclay | test_solver.ml | File : test_solver.ml
Copyright ( C ) 2008
< >
WWW : /
< >
This library is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2.1 or
later as published by the Free Software Foundation , with the special... | null | https://raw.githubusercontent.com/bobot/FetedelascienceINRIAsaclay/87765db9f9c7211a26a09eb93e9c92f99a49b0bc/2010/robot/examples_mindstorm_lab/rubik/test_solver.ml | ocaml | Patterns from /~reid/Rubik/patterns.html | File : test_solver.ml
Copyright ( C ) 2008
< >
WWW : /
< >
This library is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2.1 or
later as published by the Free Software Foundation , with the special... |
98ef9bed11c81e3b3dea6bcbd95f6439a654735c5646e72e9a5840014b89bed5 | ujamjar/ctypes_of_clang | ppx_coc.ml | open Ctypes_of_clang
module L = Log.Make(struct let section = "ppx" end)
let () =
let f = open_out "coc.log" in
Log.set_log_level Log.DEBUG;
Log.color_on ();
Log.set_output f
module Clang = Coc_clang.Make(struct let from = None end)
module Cgen = Coc_gen.Make(Clang)
let () = Cgen.register ()
| null | https://raw.githubusercontent.com/ujamjar/ctypes_of_clang/08d5179be6f3f5ef07ceae6565301f12192ab4b7/tools/ppx_coc.ml | ocaml | open Ctypes_of_clang
module L = Log.Make(struct let section = "ppx" end)
let () =
let f = open_out "coc.log" in
Log.set_log_level Log.DEBUG;
Log.color_on ();
Log.set_output f
module Clang = Coc_clang.Make(struct let from = None end)
module Cgen = Coc_gen.Make(Clang)
let () = Cgen.register ()
| |
094ca254a636c0d0049f7acdd6217b6b0cd801cd8d6189e840e93c11c1f80c58 | shayne-fletcher/zen | dlist.ml | type ('ty, 'v) t =
| [] : ('v, 'v) t
| ( :: ) : 'a * ('ty, 'v) t -> ('a -> 'ty, 'v) t
let hd = fun (type a ty v) x ->
match x with
| ((x : a) :: (_ : ((ty, v) t))) -> x
| [] -> failwith "hd"
let tl = fun (type a ty v) x ->
match x with
| ((_ : a) :: (tl : ((ty, v) t))) -> tl
| [] -> failwith "tl"
let... | null | https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/hetlist/dlist.ml | ocaml | type ('ty, 'v) t =
| [] : ('v, 'v) t
| ( :: ) : 'a * ('ty, 'v) t -> ('a -> 'ty, 'v) t
let hd = fun (type a ty v) x ->
match x with
| ((x : a) :: (_ : ((ty, v) t))) -> x
| [] -> failwith "hd"
let tl = fun (type a ty v) x ->
match x with
| ((_ : a) :: (tl : ((ty, v) t))) -> tl
| [] -> failwith "tl"
let... | |
5b69d4d07023c0eac43883579a35588597b5a38a0577afb4cfe3eaf6599bc874 | tmattio/inquire | inquire.mli | (** Inquire is a high-level library to create interactive command line
interfaces. *)
exception Interrupted_by_user
module Style : sig
(** Module to customize Inquire prompts. *)
(** Available colors. *)
type color =
| Black
| Red
| Green
| Yellow
| Blue
| Magenta
| Cyan
| W... | null | https://raw.githubusercontent.com/tmattio/inquire/f5bb64ab8d9ed8987c8e529007cf380ab67fd9fd/lib/inquire.mli | ocaml | * Inquire is a high-level library to create interactive command line
interfaces.
* Module to customize Inquire prompts.
* Available colors.
* Various styles for the text. [Blink] and [Hidden] may not work on every
terminal.
* Shortcut for [Foreground Magenta]
* Shortcut for [Background Black]
* Shortcut... |
exception Interrupted_by_user
module Style : sig
type color =
| Black
| Red
| Green
| Yellow
| Blue
| Magenta
| Cyan
| White
| Bright_black
| Bright_red
| Bright_green
| Bright_yellow
| Bright_blue
| Bright_magenta
| Bright_cyan
| Bright_white
| D... |
2f3bd56f15cba1919ef1ae21f47cf890ef5965e96ac8f4a2f59c8a45f48dc83b | NorfairKing/the-notes | Terms.hs | module Sets.CarthesianProduct.Terms where
import Notes
makeDefs [
"Carthesian product"
]
| null | https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Sets/CarthesianProduct/Terms.hs | haskell | module Sets.CarthesianProduct.Terms where
import Notes
makeDefs [
"Carthesian product"
]
| |
09ed7931d45c7297e686130cb213ddb74e95f3422d20e1a4476cb8a8250091b2 | sabine/ocaml-to-wasm | clambda_types.ml | open Sexplib0
open Sexp_conv
Copied from parsing / asttypes.mli
type direction_flag = Asttypes.direction_flag = Upto | Downto
[@@deriving sexp]
type mutable_flag = Asttypes.mutable_flag = Immutable | Mutable
[@@deriving sexp]
Copied from lambda / lambda.ml
type boxed_integer = Lambda.boxed_integer =
Pnativ... | null | https://raw.githubusercontent.com/sabine/ocaml-to-wasm/de98909a3ce3e902c4d18852a142c33ae75f7285/lib/clambda_types.ml | ocaml | Initialization of in heap values, like [caml_initialize] C primitive. The
field should not have been read before and initialization should happen
only once.
All fields are boxed / tagged
All fields are floats
Unboxed single-field record, inlined or not
Name of primitive or C function
Number of ar... | open Sexplib0
open Sexp_conv
Copied from parsing / asttypes.mli
type direction_flag = Asttypes.direction_flag = Upto | Downto
[@@deriving sexp]
type mutable_flag = Asttypes.mutable_flag = Immutable | Mutable
[@@deriving sexp]
Copied from lambda / lambda.ml
type boxed_integer = Lambda.boxed_integer =
Pnativ... |
acdc538f4fbd8462928f93507455a48d29556d80256cab36eed289d9eee4a6bd | Simre1/haskell-game | Main.hs | module Main where
import Graphics.GPipe.Format (WindowFormat(..), Format(..))
import Graphics.GPipe.Context.GLFW (defaultHandleConfig, defaultWindowConfig)
import Sigma (limitFramerate)
import Window.GPipe (runGPipe, RGBAFloat)
import Scene.SceneManager (sceneManager)
import GameInput
main :: IO ()
main = runGPipe... | null | https://raw.githubusercontent.com/Simre1/haskell-game/272a0674157aedc7b0e0ee00da8d3a464903dc67/app/Main.hs | haskell | module Main where
import Graphics.GPipe.Format (WindowFormat(..), Format(..))
import Graphics.GPipe.Context.GLFW (defaultHandleConfig, defaultWindowConfig)
import Sigma (limitFramerate)
import Window.GPipe (runGPipe, RGBAFloat)
import Scene.SceneManager (sceneManager)
import GameInput
main :: IO ()
main = runGPipe... | |
f2f52dac44b836d096897d2cec2cd748e58461a5a867f43a2729dcf2895c183f | jingtaozf/literate-lisp | tangle.lisp | ;;; This file is automatically generated from file `literate-lisp.org'.
;;; Please read file `literate-lisp.org' to find out the usage and implementation detail of this source file.
(in-package #:literate-lisp)
(defun tangle-org-file (org-file &key (features *features*)
(header ";;;... | null | https://raw.githubusercontent.com/jingtaozf/literate-lisp/1a8b26da665ce439154309c5079f6fb70badd2f9/lisp/tangle.lisp | lisp | This file is automatically generated from file `literate-lisp.org'.
Please read file `literate-lisp.org' to find out the usage and implementation detail of this source file.
This file is automatically generated from file `~a.~a'.
Please read file `~a.~a' to find out the usage and implementation detail of this sourc... |
(in-package #:literate-lisp)
(defun tangle-org-file (org-file &key (features *features*)
(header-args (list (pathname-name org-file) (pathname-type org-file)
(pathname-name org-file) (pathname-type org-file)))
... |
d7101610f5bcbe78b5e8c361246a3e16d4a39e9fff4df9c8c571d5c64e8760d9 | yogthos/pg-feed-demo | core.cljs | (ns pg-feed-demo.core
(:require [reagent.core :as r]
[re-frame.core :as rf]
[pg-feed-demo.handlers]
[pg-feed-demo.subscriptions]
[pg-feed-demo.ws :as ws]))
(defn home-page []
[:div.container
[:div.navbar]
[:div.row>div.col-sm-12>div.card
[:div.card-header>h... | null | https://raw.githubusercontent.com/yogthos/pg-feed-demo/4b6e0cb7903182a9211c62ef85d36a2b7d78405f/src/cljs/pg_feed_demo/core.cljs | clojure | (ns pg-feed-demo.core
(:require [reagent.core :as r]
[re-frame.core :as rf]
[pg-feed-demo.handlers]
[pg-feed-demo.subscriptions]
[pg-feed-demo.ws :as ws]))
(defn home-page []
[:div.container
[:div.navbar]
[:div.row>div.col-sm-12>div.card
[:div.card-header>h... | |
57e0e9acddb0dd6d9d2cd690ee5d24ae95a0a3ecbae00575a12f7181f1c82894 | lspitzner/brittany | Test144.hs | import qualified Data.List as L
| null | https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test144.hs | haskell | import qualified Data.List as L
| |
ea2e431d450ce4dbe6ec8f1514baf6db56eb4541562bd8eb31b7f377cc8af446 | nasa/Common-Metadata-Repository | project.clj | (defproject nasa-cmr/cmr-bootstrap-app "0.1.0-SNAPSHOT"
:description "Bootstrap is a CMR application that can bootstrap the CMR with data from Catalog REST."
:url "-Metadata-Repository/tree/master/bootstrap-app"
:exclusions [[cheshire]
[clj-time]
[com.fasterxml.jackson.core/jackson-c... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/25d19db04d4c13e94366a6902e16f38a1a8088e0/bootstrap-app/project.clj | clojure | This profile is used for linting and static analysis. To run for this
all projects at the same time, use the same command but from the top-
level directory.
The following profile is overriden on the build server or in the user's
~/.lein/profiles.clj file.
Prints out documentation on configuration environment vari... | (defproject nasa-cmr/cmr-bootstrap-app "0.1.0-SNAPSHOT"
:description "Bootstrap is a CMR application that can bootstrap the CMR with data from Catalog REST."
:url "-Metadata-Repository/tree/master/bootstrap-app"
:exclusions [[cheshire]
[clj-time]
[com.fasterxml.jackson.core/jackson-c... |
52a8c7629dd0dd6a63db3e75a381db44eac53e0f6c89f93d320b33d92bef6295 | ssor/erlangDemos | udp_transmit_server.erl | -module(udp_transmit_server).
-export([loop/3,server_loop/2, start/1,stop/0,add_new_message/2,start_local_server/1,add_port/1,close_all_sockets/2]).
-export([stop_port/1,stop_all_prot/0]).
以一系列端口为参数启动本地为目标地址的服务
start_local_server([]) ->
start("192.168.1.100");
start_local_server(Port_list) ->
start_local_server([])... | null | https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/demos/unit_demo/udp_transmit_server.erl | erlang | start("localhost").
以特定IP为目标发送数据启动服务
{ok,Socket} = gen_udp:open(Port,[binary]),
register(udp_transmit,spawn(fun() -> loop(Socket,Host,Port) end)).
udp_transmit ! {stop_server}.
添加某个端口
add_port(Port) ->
udp_transmit ! {add,Port}.
发送消息给服务
接收到消息后,添加该端口的socket到列表中
{ok,Socket} = gen_udp:open(Port,[binary]),
{ok,Valu... | -module(udp_transmit_server).
-export([loop/3,server_loop/2, start/1,stop/0,add_new_message/2,start_local_server/1,add_port/1,close_all_sockets/2]).
-export([stop_port/1,stop_all_prot/0]).
以一系列端口为参数启动本地为目标地址的服务
start_local_server([]) ->
start("192.168.1.100");
start_local_server(Port_list) ->
start_local_server([])... |
308d16cf53e1d6a4281c5dbbdbfd15fc425e455eeaad5b27a4d27f18feb1cefd | valpackett/octohipster | mixins_spec.clj | (ns octohipster.mixins-spec
(:use [octohipster mixins core routes json]
[ring.mock request]
[speclj core]))
(def post-bin (atom nil))
(defresource test-coll
:mixins [collection-resource]
:clinks {:item ::test-item}
:data-key :things
:exists? (fn [ctx] {:things [{:name "a"} {:name "b"}]})
:... | null | https://raw.githubusercontent.com/valpackett/octohipster/4c1d210643940576eed42a194f810c5c719da63f/spec/octohipster/mixins_spec.clj | clojure | (ns octohipster.mixins-spec
(:use [octohipster mixins core routes json]
[ring.mock request]
[speclj core]))
(def post-bin (atom nil))
(defresource test-coll
:mixins [collection-resource]
:clinks {:item ::test-item}
:data-key :things
:exists? (fn [ctx] {:things [{:name "a"} {:name "b"}]})
:... | |
878d7fe5305b4c1ec443d9197bd1e2767494ce72b8613276e8327a41cc793bb0 | korya/efuns | test4.ml |
let all_null list =
try
List.iter (fun x -> if x = 0 then raise Exit) list;
true
with Exit -> false | null | https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/inliner/tests/test4.ml | ocaml |
let all_null list =
try
List.iter (fun x -> if x = 0 then raise Exit) list;
true
with Exit -> false | |
bd7e30b0107e15f794b787d985ec31ab67c0f3e94584d96085b652a5ce2306a0 | gstew5/cs4100-public | cfg.ml |
* We represent nodes in the CFG simply as ints
type node = int
* We represent CFGs in adjacency - list format ,
using our good friend [ Symtab.t ] .
[ Convention : Node 0 is the start node ]
--------------------------------------
By convention , we call node 0 the start node .
... | null | https://raw.githubusercontent.com/gstew5/cs4100-public/53c99e3e87331aa5dfa9161ca350a8e23acee739/cfg-example/cfg.ml | ocaml | * Return the entries associated with key [x] (if any)
* Let [(k, l) = entry].
Update [tbl] to map [k] to [l] (overwriting the
previous entry, if any)
* Add a series of entries, of the form
(k1, v1) ::
(k2, v2) ::
...
(kN, vN)
* The successors of [x], if any.
Recall that [y] is... |
* We represent nodes in the CFG simply as ints
type node = int
* We represent CFGs in adjacency - list format ,
using our good friend [ Symtab.t ] .
[ Convention : Node 0 is the start node ]
--------------------------------------
By convention , we call node 0 the start node .
... |
1d1a9dc4bac7549a40b07143f84f858f3b2c32538be2fef83c8b7524e90c3d88 | PacktWorkshops/The-Clojure-Workshop | exercise_5_04_test.clj | (ns packt-clj.chapter-5-tests.exercise-5-04-test
(:require [clojure.test :as t :refer [deftest is testing]]))
(def matches
[{:winner-name "Kvitova P.",
:loser-name "Ostapenko J.",
:tournament "US Open",
:location "New York",
:date "2016-08-29"}
{:winner-name "Kvitova P.",
:loser-name "Buy... | null | https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter05/tests/packt-clj.chapter-5-tests/test/packt_clj/chapter_5_tests/exercise_5_04_test.clj | clojure | (ns packt-clj.chapter-5-tests.exercise-5-04-test
(:require [clojure.test :as t :refer [deftest is testing]]))
(def matches
[{:winner-name "Kvitova P.",
:loser-name "Ostapenko J.",
:tournament "US Open",
:location "New York",
:date "2016-08-29"}
{:winner-name "Kvitova P.",
:loser-name "Buy... | |
0f6d7252e34781eb85a1395f656f2466c9cec45e62d49db95f71d69827c4cf84 | souenzzo/atemoia | build.clj | (ns atemoia.build
(:require [clojure.tools.build.api :as b]
[shadow.cljs.devtools.api :as shadow.api]
[shadow.cljs.devtools.server :as shadow.server]))
(def lib 'atemoia/app)
(def class-dir "target/classes")
(def uber-file "target/atemoia.jar")
(defn -main
[& _]
(let [basis (b/create-bas... | null | https://raw.githubusercontent.com/souenzzo/atemoia/4510500b96ab064c1281c186a45c4e7f49b01bc7/dev/atemoia/build.clj | clojure | (ns atemoia.build
(:require [clojure.tools.build.api :as b]
[shadow.cljs.devtools.api :as shadow.api]
[shadow.cljs.devtools.server :as shadow.server]))
(def lib 'atemoia/app)
(def class-dir "target/classes")
(def uber-file "target/atemoia.jar")
(defn -main
[& _]
(let [basis (b/create-bas... | |
08fb7c419e7e328218a6e08ac184af24419b1c95ec8e7e63f724ae82ebc41135 | spechub/Hets | Parser.hs | |
Module : ./TPTP / Parse.hs
Description : A Parser for the TPTP Syntax v6.4.0.11
Copyright : ( c ) of Magdeburg 2017
License : GPLv2 or higher , see LICENSE.txt
Maintainer : < >
Stability : provisional
Portability : portable
A Parser for the TPTP Input Syntax ... | null | https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/TPTP/Parser.hs | haskell | -----------------------------------------------------------------------------
Debug
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
Logic components
------------------------------------------------------------... | |
Module : ./TPTP / Parse.hs
Description : A Parser for the TPTP Syntax v6.4.0.11
Copyright : ( c ) of Magdeburg 2017
License : GPLv2 or higher , see LICENSE.txt
Maintainer : < >
Stability : provisional
Portability : portable
A Parser for the TPTP Input Syntax ... |
36c36659d77e8d77a3fbf1662dbc7c342d6c10c61e94c1bcfcee778d2886b37a | icicle-lang/disorder.hs-ambiata | IO.hs | module Disorder.Core.IO (
stopIO
, testIO
, testPropertyIO
, withCPUTime
) where
import Control.Monad (void)
import Control.Monad.IO.Class (liftIO, MonadIO)
import Test.QuickCheck
import Test.QuickCheck.Monadic
import System.CPUTime (getCPUTime)
testIO :... | null | https://raw.githubusercontent.com/icicle-lang/disorder.hs-ambiata/0068d9a0dd9aea45e772fb664cf4e7e71636dbe5/disorder-core/src/Disorder/Core/IO.hs | haskell | (actual precision varies with implementation). | module Disorder.Core.IO (
stopIO
, testIO
, testPropertyIO
, withCPUTime
) where
import Control.Monad (void)
import Control.Monad.IO.Class (liftIO, MonadIO)
import Test.QuickCheck
import Test.QuickCheck.Monadic
import System.CPUTime (getCPUTime)
testIO :... |
f3ca67fe69950220ee3e449e685d3858f7fe23f7840311a63377d12871716545 | dhleong/wish | effects.cljs | (ns wish.sheets.dnd5e.subs.effects
(:require [re-frame.core :as rf :refer [reg-sub]]
[wish.sheets.dnd5e.subs.abilities :as abilities]
[wish.sheets.dnd5e.subs.util
:refer [compute-buffs filter-by-str]]))
; ======= effects =========================================
(reg-sub
:5e/e... | null | https://raw.githubusercontent.com/dhleong/wish/9036f9da3706bfcc1e4b4736558b6f7309f53b7b/src/cljs/wish/sheets/dnd5e/subs/effects.cljs | clojure | ======= effects =========================================
returns a map of id -> {buff-id -> n}
NOTE: for now it is okay that we don't necessarily get | (ns wish.sheets.dnd5e.subs.effects
(:require [re-frame.core :as rf :refer [reg-sub]]
[wish.sheets.dnd5e.subs.abilities :as abilities]
[wish.sheets.dnd5e.subs.util
:refer [compute-buffs filter-by-str]]))
(reg-sub
:5e/effects-filter
(fn [db]
(:5e/effects-filter db nil)))
... |
f3b5b2ec9da1e09b3fe8a167424960e6d796fd129e0281534a154e20b939b0ef | mirleft/ocaml-x509 | validation.ml | let ( let* ) = Result.bind
let sha2 = [ `SHA256 ; `SHA384 ; `SHA512 ]
let all_hashes = [ `MD5 ; `SHA1 ; `SHA224 ] @ sha2
let src = Logs.Src.create "x509" ~doc:"X509 validation"
module Log = (val Logs.src_log src : Logs.LOG)
type signature_error = [
| `Bad_signature of Distinguished_name.t * string
| `Bad_encodin... | null | https://raw.githubusercontent.com/mirleft/ocaml-x509/dcc9d274463643110d7f201598c71c533bcb91c9/lib/validation.ml | ocaml | XXX should return the tbs_cert blob from the parser, this is insane
we only support definite-length
thus, we cannot check the path length. this will only ever happen for trust anchors:
whereas trust anchor are ok with getting V1/2 certificates
TODO: make it configurable whether to accept V1/2 certificates at a... | let ( let* ) = Result.bind
let sha2 = [ `SHA256 ; `SHA384 ; `SHA512 ]
let all_hashes = [ `MD5 ; `SHA1 ; `SHA224 ] @ sha2
let src = Logs.Src.create "x509" ~doc:"X509 validation"
module Log = (val Logs.src_log src : Logs.LOG)
type signature_error = [
| `Bad_signature of Distinguished_name.t * string
| `Bad_encodin... |
09ae3ab13900e1efd066d43e4cba01fdcb80f33fc7024ee8beb44436ba57c1b7 | rd--/hsc3 | dwgFlute.help.hs | dwgFlute
let freq = control_m kr "freq" 440 (220,880,"exp")
att = 0.01
amp = control_m kr "amp" 0.25 (0,1,"amp")
endr = 0.5
jetr = control_m kr "jetr" 0.24 (0,1,"lin")
jetRa = control_m kr "jetRa" 0.33 (0,1,"lin")
gate_ = control_m kr "gate" 1 (0,1,"switch")
release = 0.01
noisegain = ... | null | https://raw.githubusercontent.com/rd--/hsc3/bb12d02f09481e7cb59ae2e9e5119d1f7c4c98c9/Help/Ugen/dwgFlute.help.hs | haskell | dwgFlute
let freq = control_m kr "freq" 440 (220,880,"exp")
att = 0.01
amp = control_m kr "amp" 0.25 (0,1,"amp")
endr = 0.5
jetr = control_m kr "jetr" 0.24 (0,1,"lin")
jetRa = control_m kr "jetRa" 0.33 (0,1,"lin")
gate_ = control_m kr "gate" 1 (0,1,"switch")
release = 0.01
noisegain = ... | |
c82b49c9262c7b98ac98a39c72b634b9c914100ac8f844f50dfa0bf923181075 | aaltodsg/instans | lisp-compile.lisp | -*- Mode : Lisp ; Syntax : COMMON - LISP ; Base : 10 ; Package : INSTANS -*-
;;;
Author : ( )
;;;
(in-package #:instans)
(defun sparql-expr-to-lisp (expr)
(cond ((consp expr)
(let ((sparql-op (first expr))
(args-in-lisp (mapcar #'sparql-expr-to-lisp (rest expr))))
( cond ( ( sparql - form - p spa... | null | https://raw.githubusercontent.com/aaltodsg/instans/5ffc90e733e76ab911165f205ba57a7b3b200945/src/rete/lisp-compile.lisp | lisp | Syntax : COMMON - LISP ; Base : 10 ; Package : INSTANS -*-
Take this in use at some point
(inform "compiling ~S~%" algebra-expr)
(let ((v
(inform "bind-form ~A = ~A" node (bind-form node))
(inform "bind-lambda = ~S" bind-lambda)
,@(loop for arg in (sparql-var-lisp-names (aggregate-join-aggr-vars node))
... | Author : ( )
(in-package #:instans)
(defun sparql-expr-to-lisp (expr)
(cond ((consp expr)
(let ((sparql-op (first expr))
(args-in-lisp (mapcar #'sparql-expr-to-lisp (rest expr))))
( cond ( ( sparql - form - p sparql - op ) ( apply ( sparql - op - lisp - name ) args - in - lisp ) ) )
(cons (s... |
5592ce84d2025f157cf9d078724f1a1cef0d4f24eaae55df48d8c8c72243580e | 3b/cl-opengl | geometry.lisp | ;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; geometry.lisp --- GLUT Geometric Object Rendering API.
;;;
Copyright ( c ) 2006 ,
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; ... | null | https://raw.githubusercontent.com/3b/cl-opengl/e2d83e0977b7e7ac3f3d348d8ccc7ccd04e74d59/glut/geometry.lisp | lisp | -*- Mode: Lisp; indent-tabs-mode: nil -*-
geometry.lisp --- GLUT Geometric Object Rendering API.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
o Redistributions of source code must retain ... | Copyright ( c ) 2006 ,
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL ,
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT
THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT
(in-package #:cl-glut... |
22675afe910ca339ae0d4cddf0a3f2102881dbebc4ef628440b03b65b9651fc4 | clash-lang/clash-compiler | Index.hs | |
Copyright : ( C ) 2021 - 2022 , QBayLogic B.V.
License : BSD2 ( see the file LICENSE )
Maintainer : QBayLogic B.V. < >
Random generation of Index .
Copyright : (C) 2021-2022, QBayLogic B.V.
License : BSD2 (see the file LICENSE)
Maintainer : QBayLogic B.V. <>
Random generation of Index.
-... | null | https://raw.githubusercontent.com/clash-lang/clash-compiler/ba4765139ea0728546bf934005d2d9b77e48d8c7/clash-prelude-hedgehog/src/Clash/Hedgehog/Sized/Index.hs | haskell | # LANGUAGE GADTs # | |
Copyright : ( C ) 2021 - 2022 , QBayLogic B.V.
License : BSD2 ( see the file LICENSE )
Maintainer : QBayLogic B.V. < >
Random generation of Index .
Copyright : (C) 2021-2022, QBayLogic B.V.
License : BSD2 (see the file LICENSE)
Maintainer : QBayLogic B.V. <>
Random generation of Index.
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.