_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
a54c821e9a361a8c47e89727847055b0c0502713476ace50289dc307881dc745
jackfirth/rebellion
literal-mutable-red-black-tree.rkt
#lang racket/base (provide mutable-rbtree!) (require (for-syntax racket/base) rebellion/collection/private/mutable-red-black-tree-base syntax/parse/define) (begin-for-syntax (define-syntax-class literal-mutable-rb-node #:datum-literals (NIL) #:attributes (initialization-expr) (pa...
null
https://raw.githubusercontent.com/jackfirth/rebellion/206ced365b07d1c6da5dcbe93f892fbb9bd7ba72/collection/private/testing/literal-mutable-red-black-tree.rkt
racket
#lang racket/base (provide mutable-rbtree!) (require (for-syntax racket/base) rebellion/collection/private/mutable-red-black-tree-base syntax/parse/define) (begin-for-syntax (define-syntax-class literal-mutable-rb-node #:datum-literals (NIL) #:attributes (initialization-expr) (pa...
cf5312b7205c127f451deac050b036342e62c62af9e6dae446882b9eb34b436f
cchalmers/texrunner
Texrunner.hs
---------------------------------------------------------------------------- -- | Module : System . Copyright : ( c ) 2014 -- License : BSD-style (see LICENSE) -- Maintainer : -- -- Functions for running Tex. -- ----------------------------------------------------------------------------- m...
null
https://raw.githubusercontent.com/cchalmers/texrunner/a52ba78f1b12511731a957cff9fbdbac66355773/src/System/Texrunner.hs
haskell
-------------------------------------------------------------------------- | License : BSD-style (see LICENSE) Maintainer : Functions for running Tex. --------------------------------------------------------------------------- | Same as 'runTex'' but runs Tex in a temporary system directory. ^ Tex comma...
Module : System . Copyright : ( c ) 2014 module System.Texrunner ( runTex , runTex' , prettyPrintLog ) where import Control.Applicative import qualified Data.ByteString.Char8 as C8 hiding (concatMap) import Data.ByteString.Lazy.Char8 as LC8 hiding (concatMap) impor...
a83fe160fd16504bd5016b4f29ff18562d70a2c963420e0de0990dba6ae9a1bb
acl2/acl2
input-processing.lisp
C Library ; Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "C") (i...
null
https://raw.githubusercontent.com/acl2/acl2/44f76f208004466a9e6cdf3a07dac98b3799817d/books/kestrel/c/atc/input-processing.lisp
lisp
it has kind ~x1 instead." it has kind ~x1 instead." ~
C Library Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "C") (include-book "pretty-printing-options") (include-book "defstruct") (include-book "defobj...
b2d04f3dbde4c32589db479e8b5c973f213b88e5b1626a4ae60f1bac9968eb13
msgpack/msgpack-erlang
msgpack.erl
%% MessagePack for Erlang %% Copyright ( C ) 2009 - 2016 UENISHI Kota %% 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 appli...
null
https://raw.githubusercontent.com/msgpack/msgpack-erlang/c20de780be9cb3d6922a486e44304257746fff2e/src/msgpack.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. limitations under the License. ...
MessagePack for Erlang Copyright ( C ) 2009 - 2016 UENISHI Kota Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , See the License for the specific language governing permissions and @doc < a href="/">MessagePa...
1dd2e394f4038251794fdfdc324f1890fa61d13490bcc7c4f4c41a1d64312a7f
adamdoupe/find_ear_rails
annotation.mli
type t = ClassType of class_annotation | MethodType of method_annotation list | ExprType of type_expr and class_annotation = string * bounded_quantifier list * type_expr list and method_annotation = type_ident * bounded_quantifier list * method_type and method_type = MethodSig of type_expr list * method...
null
https://raw.githubusercontent.com/adamdoupe/find_ear_rails/38f892f9962ad415a583973caf24fbab1a011be1/diamondback-ruby-0.20090726/src/parser/annotation.mli
ocaml
pretty printers
type t = ClassType of class_annotation | MethodType of method_annotation list | ExprType of type_expr and class_annotation = string * bounded_quantifier list * type_expr list and method_annotation = type_ident * bounded_quantifier list * method_type and method_type = MethodSig of type_expr list * method...
b484af9f4bcc821fad597f5d217c6d6ef693b396a50d341d44c64732606e1cb7
dbuenzli/fut
test_jsoo.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/fut/907de63df12815f2df2cb796baa7fa37ac2758d4/test/test_jsoo.ml
ocaml
this should fail the test and invoke k () ibid this should fail the test and invoke k () ibid
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
ab8f80c19a9f1cedfeba8353d338641060f6ab6787238db2a61cbafa3d0c817e
lijunsong/pollen-rock
info.rkt
#lang info (define collection "pollen-rock") (define deps '("base" "rackunit-lib" "web-server-lib" "pollen" "sugar")) (define build-deps '("scribble-lib" "racket-doc")) (define scribblings '(("pollen-rock/scribblings/pollen-rock.scrbl" (multi-page)))) (define pkg-...
null
https://raw.githubusercontent.com/lijunsong/pollen-rock/8107c7c1a1ca1e5ab125650f38002683b15b22c9/info.rkt
racket
#lang info (define collection "pollen-rock") (define deps '("base" "rackunit-lib" "web-server-lib" "pollen" "sugar")) (define build-deps '("scribble-lib" "racket-doc")) (define scribblings '(("pollen-rock/scribblings/pollen-rock.scrbl" (multi-page)))) (define pkg-...
1900cc8a94ef3bda78a4ce0f615fab2b885751ba11a5cc805c36b93045e72748
gator1/jepsen
project.clj
(defproject jepsen.postgres-rds "0.1.0-SNAPSHOT" :description "Postgres RDS tests" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :repl-options {:init-ns jepsen.postgres-rds} :main jepsen.postgres-rds :dependencies [[org.clojure/clojure "1.8.0"] [org.clojars....
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/postgres-rds/project.clj
clojure
(defproject jepsen.postgres-rds "0.1.0-SNAPSHOT" :description "Postgres RDS tests" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :repl-options {:init-ns jepsen.postgres-rds} :main jepsen.postgres-rds :dependencies [[org.clojure/clojure "1.8.0"] [org.clojars....
f3e2f7212a4fd9cd3ea6c669267fd0d5d89b2e4a31ad7e6378b4f58ae88a67a5
brendanhay/gogol
Patch.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/77394c4e0f5bd729e6fe27119701c45f9d5e1e9a/lib/services/gogol-bigquerydatatransfer/gen/Gogol/BigQueryDataTransfer/Projects/TransferConfigs/Patch.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Updates a data transfer configuration. All fields must be set, even if they are not updated. * Resource ** Constructing a Request | A resource alias for @bigquerydatatransfer.projects.transferConfigs.patch@ method which the '...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
ed532dff0a3efa0805745264596f27805d52a413021b5ebde6546203cbcb81c4
NickCellino/nbb-comments
html_serializer.cljs
(ns html-serializer (:require [hiccup :refer [html]])) (defn zero-pad [x len] (if (< (count x) len) (recur (str "0" x) len) x)) (defn format-iso-date "Take an ISO-8601 date string and returns a string in the format: '14:45 August 20, 2018'" [iso-date] (let [date-obj (js/Date. iso-date) mon...
null
https://raw.githubusercontent.com/NickCellino/nbb-comments/22ecaecf243292e3c8487074e76725c47d7fa2b3/src/html_serializer.cljs
clojure
true true false
(ns html-serializer (:require [hiccup :refer [html]])) (defn zero-pad [x len] (if (< (count x) len) (recur (str "0" x) len) x)) (defn format-iso-date "Take an ISO-8601 date string and returns a string in the format: '14:45 August 20, 2018'" [iso-date] (let [date-obj (js/Date. iso-date) mon...
6eac720a4769ec1821c28b048636ae103c779d0c4c7cafd4df82e0b78db07927
amcphail/hstatistics
PCA.hs
----------------------------------------------------------------------------- -- | Module : Numeric . Statistics . PCA Copyright : ( c ) A. V. H. McPhail 2010 , 2014 , 2017 -- License : BSD3 -- -- Maintainer : haskell.vivian.mcphail <at> gmail <dot> com -- Stability : provisional -- Portabili...
null
https://raw.githubusercontent.com/amcphail/hstatistics/13d2bfa3280865cd8269ed5131b20f34d762e77b/lib/Numeric/Statistics/PCA.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer : haskell.vivian.mcphail <at> gmail <dot> com Stability : provisional Portability : portable Principal Components Analysis -------------------------------------------------------------------------...
Module : Numeric . Statistics . PCA Copyright : ( c ) A. V. H. McPhail 2010 , 2014 , 2017 module Numeric.Statistics.PCA ( pca, pcaN, pcaTransform, pcaReduce, pcaReduceN ) where import qualified Data.Array.IArray as I import Prelude hiding (...
db5aaa2a8ecfc8b8bc45e95f5fba49a64bcaf83dfa6b87c29ae39b93a934554a
DerekCuevas/interview-cake-clj
project.clj
(defproject second-largest-in-binary-search-tree "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :main ^:skip-aot second-largest-in-binary-search-tree.core :target-path "targ...
null
https://raw.githubusercontent.com/DerekCuevas/interview-cake-clj/f17d3239bb30bcc17ced473f055a9859f9d1fb8d/second-largest-in-binary-search-tree/project.clj
clojure
(defproject second-largest-in-binary-search-tree "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :main ^:skip-aot second-largest-in-binary-search-tree.core :target-path "targ...
da4d6ffc8e437494b65165ca5a6ebb255f4702d34778b8647d4cdd6980f725c9
GlideAngle/flare-timing
Allot.hs
# LANGUAGE DuplicateRecordFields # module Flight.Gap.Allot ( ArrivalFraction(..) , arrivalRankFraction , arrivalTimeFraction , PilotTime(..) , bestTime' , SpeedFraction(..) , speedFraction ) where import Data.Ratio ((%)) import qualified Data.List as List (minimum) import Data.UnitsOfMe...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/172a9b199eb1ff72c967669dc349cbf8d9c4bc52/lang-haskell/gap-allot/library/Flight/Gap/Allot.hs
haskell
| Given the placing and the number of pilots making the end of the speed section, work out the arrival fraction. >>> fromRational $ 2909 % 12800 | >>> printf "%.3f" t1 >>> printf "%.3f" t2 >>> printf "%.3f" t6 >>> printf "%.3f" t7 >>> printf "%.3f" t8 >>> printf "%.3f" t9 >>> printf "%.3f" t1...
# LANGUAGE DuplicateRecordFields # module Flight.Gap.Allot ( ArrivalFraction(..) , arrivalRankFraction , arrivalTimeFraction , PilotTime(..) , bestTime' , SpeedFraction(..) , speedFraction ) where import Data.Ratio ((%)) import qualified Data.List as List (minimum) import Data.UnitsOfMe...
71ebab31760cf401fc07825547da8d12eca7a507212979c72b4d3fbe68d63bf1
erlang/otp
erl_boot_server.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/eccc556e79f315d1f87c10fb46f2c4af50a63f20/lib/kernel/src/erl_boot_server.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1996 - 2022 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , A simple boot_server at a CP . This server should know about which slaves ( DP 's or whatever ) to boot . -modul...
f36577940bbc8ca25d0379764af862495c605e22be8d891d6f0bf0173dcdb1a0
purescript/purescript
RenderedCode.hs
| Data types and functions for representing a simplified form of PureScript -- code, intended for use in e.g. HTML documentation. module Language.PureScript.Docs.RenderedCode (module RenderedCode) where import Language.PureScript.Docs.RenderedCode.Types as RenderedCode import Language.PureScript.Docs.RenderedCode....
null
https://raw.githubusercontent.com/purescript/purescript/ee0b3d391151bcd5f56de4563208dcf657cccc8c/src/Language/PureScript/Docs/RenderedCode.hs
haskell
code, intended for use in e.g. HTML documentation.
| Data types and functions for representing a simplified form of PureScript module Language.PureScript.Docs.RenderedCode (module RenderedCode) where import Language.PureScript.Docs.RenderedCode.Types as RenderedCode import Language.PureScript.Docs.RenderedCode.RenderType as RenderedCode
ec80a3f84f9c8aad2506e4a3fd3bb47ad72cf3f31740a9c0810a097a42938e7c
racket/typed-racket
apply-dots-list.rkt
;; Change the lang to scheme for untyped version #lang typed-scheme (define tests (list (list (λ() 1) 1 "test 1") (list (λ() 2) 2 "test 2"))) ; Comment out the type signature when running untyped (: check-all (All (A ...) ((List (-> A) A String) ... A -> Void))) (define (check-all . tests) (let au...
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/apply-dots-list.rkt
racket
Change the lang to scheme for untyped version Comment out the type signature when running untyped Works in untyped, but not in typed Works in typed or untyped
#lang typed-scheme (define tests (list (list (λ() 1) 1 "test 1") (list (λ() 2) 2 "test 2"))) (: check-all (All (A ...) ((List (-> A) A String) ... A -> Void))) (define (check-all . tests) (let aux ([tests tests] [num-passed 0]) (if (null? tests) (printf "~a tests passed.\n" nu...
8cd84cf1d1517dbc6cf6042f488a743299ad7aafe2fed5f039c23fe9bdad1139
tsloughter/kuberl
kuberl_v1_node.erl
-module(kuberl_v1_node). -export([encode/1]). -export_type([kuberl_v1_node/0]). -type kuberl_v1_node() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v1_node_spec:kuberl_v1_node_spec(), 'status' => kube...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_node.erl
erlang
-module(kuberl_v1_node). -export([encode/1]). -export_type([kuberl_v1_node/0]). -type kuberl_v1_node() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v1_node_spec:kuberl_v1_node_spec(), 'status' => kube...
22a1820d20402ecea7d0e1008785ba7ca6d17b6951597fcd68c992025ba14275
racket/racket-lang-org
color.rkt
#lang racket/base (require pict) (provide (all-defined-out)) (define scheme-color "purple") (define racket-color "blue") (define c-color "red") (define scrbl-color "forestgreen") (define linklet-color "SlateBlue") (define r6-color "tomato") (define cify-color "firebrick") (define cs/jit-color "RoyalBlue") (define r...
null
https://raw.githubusercontent.com/racket/racket-lang-org/88dada2ee769ada9afaf1e3ec1fb28b8ddf216db/blog/_src/posts/racket-on-chez-status-jan2019/color.rkt
racket
#lang racket/base (require pict) (provide (all-defined-out)) (define scheme-color "purple") (define racket-color "blue") (define c-color "red") (define scrbl-color "forestgreen") (define linklet-color "SlateBlue") (define r6-color "tomato") (define cify-color "firebrick") (define cs/jit-color "RoyalBlue") (define r...
ca982696a9078418c9155848d49133c900d7faf6a61eced66eeb597232bb6b69
khotyn/4clojure-answer
52-intro-to-destructuring.clj
[c e]
null
https://raw.githubusercontent.com/khotyn/4clojure-answer/3de82d732faedceafac4f1585a72d0712fe5d3c6/52-intro-to-destructuring.clj
clojure
[c e]
cd85a98e9c3ce7aa89e667ef9287fe48b00042962ade3e99a9dbc079593cb15e
ragkousism/Guix-on-Hurd
gexp.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 , 2015 , 2016 , 2017 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either ...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/tests/gexp.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2014 , 2015 , 2016 , 2017 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (test-gexp) #:use-module (guix store) #:use-module (guix monads) #:use-m...
57f0918b8f936151dfbfd5616ab63db31b10c1c8b2007f55144dceab8180fa09
xclerc/ocamljava
javaStringBuilder.ml
* This file is part of library . * Copyright ( C ) 2007 - 2015 . * * library is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation ; either version 3 of the License , or * ( at yo...
null
https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/library/javalib/src/javaStringBuilder.ml
ocaml
Instance creation Capacity and length Value addition Value insertion Character lookup and modification Deletion Replacement Conversion Null value Miscellaneous
* This file is part of library . * Copyright ( C ) 2007 - 2015 . * * library is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation ; either version 3 of the License , or * ( at yo...
0e6f4e79edbd21af8e47d1f2dc64327213c1ac0a1596636ecd5937b903a38d43
soulomoon/haskell-katas
MiddlePermutation.hs
module Katas.MiddlePermutation (spec) where import Kyu4.MiddlePermutation import Test.Hspec import Data.List main :: IO () main = hspec spec spec :: Spec spec = do describe "Sample test" $ do it "abc" $ do middlePermutation "abc" `shouldBe` "bac" it "abcd" $ do middlePermutation "abcd" `sho...
null
https://raw.githubusercontent.com/soulomoon/haskell-katas/0861338e945e5cbaadf98138cf8f5f24a6ca8bb3/test/Katas/MiddlePermutation.hs
haskell
module Katas.MiddlePermutation (spec) where import Kyu4.MiddlePermutation import Test.Hspec import Data.List main :: IO () main = hspec spec spec :: Spec spec = do describe "Sample test" $ do it "abc" $ do middlePermutation "abc" `shouldBe` "bac" it "abcd" $ do middlePermutation "abcd" `sho...
1f32b8810c93e8f51e0e1a7822b7fa66bd2602cfd4df57ca0770cbb9917b249f
lisp-korea/sicp2014
ex-3-02.scm
ex 3.2 (define (make-monitored f) (let ((count 0)) (lambda (x) (if (eq? x 'how-many-calls?) count (begin (set! count (+ count 1)) (f x)))))) (define s (make-monitored sqrt)) (s 100) = > 10 (s 'how-many-calls?) = > 1 (s 100) (s 100) (s 100) (s 'how-many-calls?) = >...
null
https://raw.githubusercontent.com/lisp-korea/sicp2014/9e60f70cb84ad2ad5987a71aebe1069db288b680/vvalkyrie/3.1/ex-3-02.scm
scheme
ex 3.2 (define (make-monitored f) (let ((count 0)) (lambda (x) (if (eq? x 'how-many-calls?) count (begin (set! count (+ count 1)) (f x)))))) (define s (make-monitored sqrt)) (s 100) = > 10 (s 'how-many-calls?) = > 1 (s 100) (s 100) (s 100) (s 'how-many-calls?) = >...
0f4ddbc49abe90eb5925dddc15d2a0201526d3d405c123ce83b596a045b9acaa
gergoerdi/clash-intel8080
Model.hs
# LANGUAGE RecordWildCards # # LANGUAGE MultiParamTypeClasses # # LANGUAGE GeneralizedNewtypeDeriving , DerivingStrategies # module Hardware.Intel8080.Model where import Hardware.Intel8080 import Hardware.Intel8080.Decode import Hardware.Intel8080.Microcode import Hardware.Intel8080.MicroCPU import Clash.Prelude hidi...
null
https://raw.githubusercontent.com/gergoerdi/clash-intel8080/8e37eb79381bbdba3ce9e9b1f14f21e4983d013a/src/Hardware/Intel8080/Model.hs
haskell
# LANGUAGE RecordWildCards # # LANGUAGE MultiParamTypeClasses # # LANGUAGE GeneralizedNewtypeDeriving , DerivingStrategies # module Hardware.Intel8080.Model where import Hardware.Intel8080 import Hardware.Intel8080.Decode import Hardware.Intel8080.Microcode import Hardware.Intel8080.MicroCPU import Clash.Prelude hidi...
d8e75fbd12b299b510da850e5163a1ee236f442e35e9f533f0f6c9eaf66fb275
travis/lein-deb
project.clj
(defproject deb-test "1.0.0-SNAPSHOT" :description "FIXME: write" :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"]] :dev-dependencies [[lein-deb "1.0.0-SNAPSHOT"]])
null
https://raw.githubusercontent.com/travis/lein-deb/8510d7d3103d50619d3ffd6220a7d4d46758a172/test_projects/sample/project.clj
clojure
(defproject deb-test "1.0.0-SNAPSHOT" :description "FIXME: write" :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"]] :dev-dependencies [[lein-deb "1.0.0-SNAPSHOT"]])
b3180a7e9cc122b6ac580595b403cdbbbd301e90b193aa4be22297ef21867d67
rbkmoney/fistful-server
ff_withdrawal_session_repair_SUITE.erl
-module(ff_withdrawal_session_repair_SUITE). -include_lib("stdlib/include/assert.hrl"). -include_lib("fistful_proto/include/ff_proto_withdrawal_session_thrift.hrl"). -include_lib("damsel/include/dmsl_domain_thrift.hrl"). -export([all/0]). -export([groups/0]). -export([init_per_suite/1]). -export([end_per_suite/1]). -...
null
https://raw.githubusercontent.com/rbkmoney/fistful-server/f6155acb0475987e47a4fbc911758c595e129c80/apps/ff_server/test/ff_withdrawal_session_repair_SUITE.erl
erlang
Tests Internals invalid currency
-module(ff_withdrawal_session_repair_SUITE). -include_lib("stdlib/include/assert.hrl"). -include_lib("fistful_proto/include/ff_proto_withdrawal_session_thrift.hrl"). -include_lib("damsel/include/dmsl_domain_thrift.hrl"). -export([all/0]). -export([groups/0]). -export([init_per_suite/1]). -export([end_per_suite/1]). -...
3bc371a8320b3ef6bcf9ef47ab9461bcef549cf652b49a71a969f5d04ddaf23b
samply/blaze
bundle.clj
(ns blaze.interaction.transaction.bundle "FHIR Bundle specific stuff." (:require [blaze.anomaly :as ba] [blaze.fhir.spec.type :as type] [blaze.interaction.transaction.bundle.links :as links] [blaze.interaction.transaction.bundle.url :as url] [blaze.interaction.util :as iu] [clojure.string :a...
null
https://raw.githubusercontent.com/samply/blaze/693d07d8fbf9ac4e11af6684978e108bbd193780/modules/interaction/src/blaze/interaction/transaction/bundle.clj
clojure
(ns blaze.interaction.transaction.bundle "FHIR Bundle specific stuff." (:require [blaze.anomaly :as ba] [blaze.fhir.spec.type :as type] [blaze.interaction.transaction.bundle.links :as links] [blaze.interaction.transaction.bundle.url :as url] [blaze.interaction.util :as iu] [clojure.string :a...
b361b45defd5ea7ea7c105ae8d5bac5128d1b0ac353fc4552e53a439cb12545f
iconnect/api-tools
Main.hs
import Data.API.API import Data.API.API.Gen import Data.API.Test.JSON import Data.API.Test.Migration import Data.API.Test.Time import Test.Tasty import Test.Tasty.QuickCheck main :: IO () main = defaultMain tests tests :: TestTree tests = testGrou...
null
https://raw.githubusercontent.com/iconnect/api-tools/3d7b4dfadf82c7cb859b515d033447bd1d8ef6c6/tests/Data/API/Test/Main.hs
haskell
back does not change it. We have 'Arbitrary' instances only for
import Data.API.API import Data.API.API.Gen import Data.API.Test.JSON import Data.API.Test.Migration import Data.API.Test.Time import Test.Tasty import Test.Tasty.QuickCheck main :: IO () main = defaultMain tests tests :: TestTree tests = testGrou...
ca36491aa76154e2b7914f89de42137048736b08f6fef517518faa41d991bafa
peak6/mmd_core
priority_queue.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/peak6/mmd_core/f90469ea9eac8cd607aa6ec5b9ad6ff003a35572/src/priority_queue.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Priority queues...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is VMware , Inc. Copyright ( c ) 2007 - 2011 VMware , Inc. All rights reserved . When the qu...
2982057e89b2ff8ef496da218c3ad5543e40dc53910c11aa049c1d9b14f985e1
mirage/old-mirage-cohttp-adapter
pkg.ml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = let opams = let lint_deps_excluding = Some ["mirage-conduit"] in [Pkg.opam_file ~lint_deps_excluding "opam"] in Pkg.describe ~opams "mirage-http" @@ fun c -> Ok [ Pkg.mllib "src/mirage-http.mllib" ]
null
https://raw.githubusercontent.com/mirage/old-mirage-cohttp-adapter/28a2d1431fc2cb391999db704bf34541f3546bdf/pkg/pkg.ml
ocaml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = let opams = let lint_deps_excluding = Some ["mirage-conduit"] in [Pkg.opam_file ~lint_deps_excluding "opam"] in Pkg.describe ~opams "mirage-http" @@ fun c -> Ok [ Pkg.mllib "src/mirage-http.mllib" ]
3171460846500914db4cbfc0c03442673a6bc0783a197950592a850cef99cf0e
armstnp/advent-of-code-2019
day2_sketch.clj
(ns advent-of-code-2019.day2-sketch (:require [advent-of-code-2019.day2 :as soln] [quil.core :as q :include-macros true] [quil.middleware :as m])) (def cells (count soln/input)) (def canvas-cell-width (q/ceil (q/sqrt cells))) (def canvas-cell-height (q/ceil (/ cells canvas-cell-width))) (def ...
null
https://raw.githubusercontent.com/armstnp/advent-of-code-2019/68e21174394d8b0e14433f9f249e995c10ac6d67/src/advent_of_code_2019/day2_sketch.clj
clojure
(ns advent-of-code-2019.day2-sketch (:require [advent-of-code-2019.day2 :as soln] [quil.core :as q :include-macros true] [quil.middleware :as m])) (def cells (count soln/input)) (def canvas-cell-width (q/ceil (q/sqrt cells))) (def canvas-cell-height (q/ceil (/ cells canvas-cell-width))) (def ...
42e59f998ae080738d27d929b9028fc9049cf68f17f495d370c624c4d47e18dd
samply/blaze
nav_test.clj
(ns blaze.interaction.search.nav-test (:require [blaze.async.comp :as ac] [blaze.interaction.search.nav :as nav] [blaze.interaction.search.nav-spec] [blaze.page-store.protocols :as p] [blaze.test-util :as tu] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [deftest is testin...
null
https://raw.githubusercontent.com/samply/blaze/948eee38021467fa343c522a644a7fd4b24b6467/modules/interaction/test/blaze/interaction/search/nav_test.clj
clojure
(ns blaze.interaction.search.nav-test (:require [blaze.async.comp :as ac] [blaze.interaction.search.nav :as nav] [blaze.interaction.search.nav-spec] [blaze.page-store.protocols :as p] [blaze.test-util :as tu] [clojure.spec.test.alpha :as st] [clojure.test :as test :refer [deftest is testin...
be8d4db237cd3cc8d1609eecc11337db76f7fed49db623a88acaf9a4fa086cb2
TorXakis/TorXakis
LPEConfCheck.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and University of Twente See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and University of Twente See LICENSE at root directory of this repository. -} -----------------------------------...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpeops/src/LPEConfCheck.hs
haskell
--------------------------------------------------------------------------- | Module : LPEConfCheck License : BSD3 Maintainer : Stability : experimental --------------------------------------------------------------------------- import qualified TxsShow confCheck filterConfluentTauSummands Sum...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and University of Twente See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and University of Twente See LICENSE at root directory of this repository. -} Copyright : TNO and Universi...
e46174942101fb3309217678fb2e98ceca9f167e9f249a483658bc565d09de22
cucapra/gator
check.ml
open CoreAst open GatorAst open GatorAstPrinter open Util open Printf open Str open CheckUtil open CheckContexts open Glsl_ops (* The set of types that can't be written down shouldn't be * inferred by things like 'auto' *) let is_illegal_typ (cx : contexts) (t : typ) : bool = match t with AnyTyp | AnyFrameTyp | Fra...
null
https://raw.githubusercontent.com/cucapra/gator/c9f796e3d47793f2a1fe11cd8319eae33c4dd354/src/check.ml
ocaml
The set of types that can't be written down shouldn't be * inferred by things like 'auto' Replace all instances of the types in the given context, * returning true if something changed Type lookup cases Note that the primitive of a given type is the top representation of that type Given a parameterization an...
open CoreAst open GatorAst open GatorAstPrinter open Util open Printf open Str open CheckUtil open CheckContexts open Glsl_ops let is_illegal_typ (cx : contexts) (t : typ) : bool = match t with AnyTyp | AnyFrameTyp | FrameTyp _ -> true | _ -> false let rec reduce_dexp (cx : contexts) (d : dexp) : int = debug_prin...
e45a0be2fd46a44658abca22aa1bb202800b3b3b73fc79c28286f6f5560314cf
spechub/Hets
Sentence.hs
{-# LANGUAGE DeriveDataTypeable #-} | Module : ./Maude / Sentence.hs Description : : ( c ) , Uni Bremen 2008 - 2009 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : portable Definition of sentences for . Module ...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Maude/Sentence.hs
haskell
# LANGUAGE DeriveDataTypeable # * The Sentence type * Contruction * Testing * The Sentence type | A 'Membership', 'Equation' or 'Rule'. ** Sentence Instances * Contruction | Extract the 'Sentence's from the given 'Module'. | Extract the 'Sentence's from the given 'Statement's. * Testing | True iff the given ...
| Module : ./Maude / Sentence.hs Description : : ( c ) , Uni Bremen 2008 - 2009 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : portable Definition of sentences for . Module : ./Maude/Sentence.hs Descripti...
51f40220b089d604f5661e5caa3eb5b5368ff80646dba4896d7571e4aab77625
fbellomi/crossclj
server.clj
(ns crossclj.server (:import (org.apache.lucene.util Version) (java.util LinkedHashSet)) (:import (java.util.prefs Preferences) (java.util Date TimerTask Timer) (java.io File ByteArrayInputStream FileWriter PrintWriter) (java.net URLEncoder URLDecoder) (org.apa...
null
https://raw.githubusercontent.com/fbellomi/crossclj/7630270ebe9ea3df89fe3d877b2571e6eae1062b/src/crossclj/server.clj
clojure
--- lucene --- global etag handler --- add expire --- cache --- debug --- handle empty uri --- handle binary responses --- template --- server "7|org.clojure/clojure|1.6.0|clojure.core|Clojure|Core" todo ")
(ns crossclj.server (:import (org.apache.lucene.util Version) (java.util LinkedHashSet)) (:import (java.util.prefs Preferences) (java.util Date TimerTask Timer) (java.io File ByteArrayInputStream FileWriter PrintWriter) (java.net URLEncoder URLDecoder) (org.apa...
fd50e74a7fac3bf62cab69671621daf9f66f3b68dc87047c2d1ca2fdc9864263
reborg/clojure-essential-reference
4.clj
(require '[clojure.string :refer [split]]) (def dict < 1 > (split (slurp "/usr/share/dict/words") #"\s+"))) < 2 > (take 4 (subseq dict >= w))) (map #(complete % dict) ["c" "cl" "clo" "clos" "closu"]) ; <3> ;; (("c" "ca" "caam" "caama") ;; ("clabber" "clabbery" "clachan" "clack") ( " cloaca " " cloacal ...
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/SequentialGeneration/FromCollections/subseqandrsubseq/4.clj
clojure
<3> (("c" "ca" "caam" "caama") ("clabber" "clabbery" "clachan" "clack") ("closable" "close" "closecross" "closed") ("closure" "clot" "clotbur" "clote"))
(require '[clojure.string :refer [split]]) (def dict < 1 > (split (slurp "/usr/share/dict/words") #"\s+"))) < 2 > (take 4 (subseq dict >= w))) ( " cloaca " " cloacal " " cloacaline " " cloacean " )
181632b681555c90cde58dbb8a60d8c6b8095c9e4eedb6ce61b2790e115d83c7
lsrcz/grisette
BV.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveLift #-} # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # {-# ...
null
https://raw.githubusercontent.com/lsrcz/grisette/1d2fab89acb160ee263a41741454a5825094bd33/src/Grisette/Core/Data/BV.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveLift # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE TemplateHaskellQuotes # # OPTIONS_GHC -funbox-strict-fields # | License : BSD-3-Clause (see the LICENSE file) Maintainer : Stability : Experimental | Symbolic unsigned bit vectors. | A non-inde...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE InstanceSigs # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeOperato...
1c6bccd50e4170156c2141e752532d8bd14ecc85604be86a72308dc46391b499
bluelisp/hemlock
scribe.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; ;;; ;;; ******************************************...
null
https://raw.githubusercontent.com/bluelisp/hemlock/47e16ba731a0cf4ffd7fb2110e17c764ae757170/src/scribe.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- ********************************************************************** ********************************************************************** Variables. Characters that open a Scribe paren: #\[, #\{, #\(, #\<. Characters that close a Scribe paren: #\], #\}, #\), ...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (in-package :hemlock) (defvar *scribe-para-break-table* (make-hash-table :test #'equal) "A table of the Scribe commands that should be paragraph delimiters.") (dolist (todo ...
e91b789c41bb8c43d931e8198b2b26dc6b86987fb3dc246a6993f3a3c13e2f8c
inaka/sumo_rest
sr_echo_request_SUITE.erl
-module(sr_echo_request_SUITE). -include_lib("mixer/include/mixer.hrl"). -mixin([{ sr_test_utils , [ init_per_suite/1 , end_per_suite/1 ] }]). -export([ all/0 , init_per_testcase/2 , end_per_testcase/2 ]). -export([ success_scenario/1 ]). -spec all...
null
https://raw.githubusercontent.com/inaka/sumo_rest/19a3685ab477222738ac27b72e39346cbad9463d/test/sr_echo_request_SUITE.erl
erlang
-module(sr_echo_request_SUITE). -include_lib("mixer/include/mixer.hrl"). -mixin([{ sr_test_utils , [ init_per_suite/1 , end_per_suite/1 ] }]). -export([ all/0 , init_per_testcase/2 , end_per_testcase/2 ]). -export([ success_scenario/1 ]). -spec all...
7a293f914e51f1b2e76936c3a81509a90bbb640ae73739793756ef2d8b914b71
f-o-a-m/kepler
Config.hs
# LANGUAGE TemplateHaskell # module SimpleStorage.Config ( AppConfig(..) , baseAppContext , makeAppConfig ) where import Control.Lens (makeLenses, (&), (.~), (^.)) import Data.Maybe ...
null
https://raw.githubusercontent.com/f-o-a-m/kepler/6c1ad7f37683f509c2f1660e3561062307d3056b/hs-abci-docs/simple-storage/src/SimpleStorage/Config.hs
haskell
------------------------------------------------------------------------------ LOG_SEVERITY should be in {debug, info, notice, warning, error, critical, alert, emergency} LOG_VERBOSITY should be in {0,1,2,3} makes a log environment for console logs / ES logs
# LANGUAGE TemplateHaskell # module SimpleStorage.Config ( AppConfig(..) , baseAppContext , makeAppConfig ) where import Control.Lens (makeLenses, (&), (.~), (^.)) import Data.Maybe ...
c425661d242e386007f6ee0f8134d6a87cc91ed7f760927fc5a8d43f768c5604
rescript-lang/rescript-compiler
bsb_pkg.ml
Copyright ( C ) 2017- , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later vers...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/e60482c6f6a69994907b9bd56e58ce87052e3659/jscomp/bsb/bsb_pkg.ml
ocaml
TODO: be more restrict [bsconfig.json] does not always make sense, when resolving [ppx-flags] * It makes sense to have this function raise, when [bsb] could not resolve a package, it used to mean a failure TODO: may non-terminating when see symlinks To the end try other possiblilities [NODE_PATH] * TODO...
Copyright ( C ) 2017- , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later vers...
d27e81de0b8b6b3f7a6ef53e550a9575cd96bbec5c8d183c14c1b58fb4d59b62
rowangithub/DOrder
cbslearner.mli
(** This is the proposed constraints based learner * learn takes postive/negative samples and a vector of predicates as input and * returns candidate invariant val learn: (Path.t, int) list -> (Path.t) list -> string list -> Predicate.t*) (** the total size of hypothesis domain *) val nb_hypo : int ref val counter ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/liquid/cbslearner.mli
ocaml
* This is the proposed constraints based learner * learn takes postive/negative samples and a vector of predicates as input and * returns candidate invariant val learn: (Path.t, int) list -> (Path.t) list -> string list -> Predicate.t * the total size of hypothesis domain
val nb_hypo : int ref val counter : int ref type learning_result = { ipre : (bool * (string, Path.t) Hashtbl.t * (Predicate.t list * Predicate.t)) list; ipost : (bool * (string, Path.t) Hashtbl.t * (Predicate.t list * Predicate.t)) list} val learn : int -> (Predicate.binrel * int) list -> (Path.t, Types.type_decla...
3ab0f1566441d1333198ef5cafe6c74b0d97d5d70534273014d45c3e6086cf4c
objecthub/swift-lispkit
SRFI-154.scm
SRFI 154 REGRESSION TEST SUITE ;;; This is the test suite for SRFI 154 . ;;; Copyright © 2017 . 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 Software ;;; wi...
null
https://raw.githubusercontent.com/objecthub/swift-lispkit/a952f80bb85e6fd084770033141ed8edd2f46500/Sources/LispKit/Resources/Tests/SRFI-154.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this without restriction, including without limitation the rights to use, copy, modify, conditions: The above copyright notice and this permission notice shall be included in all copies INCLUDING BUT NOT LIMITED TO THE WARRANTIES ...
SRFI 154 REGRESSION TEST SUITE This is the test suite for SRFI 154 . Copyright © 2017 . All rights reserved . software and associated documentation files ( the " Software " ) , to deal in the Software merge , publish , distribute , sublicense , and/or sell copies of the Software , and to permit persons ...
4545dd52af967106b39a1aae51e44d4d71d6c4f7742e1c7b3514342b972c8897
samoht/camloo
typing.scm
;; Le module (module __caml_typing (library camloo-runtime) (import __caml_misc __caml_const __caml_globals __caml_syntax __caml_builtins __caml_modules __caml_types __caml_errors __caml_ty_error __caml_location) (export type_expr_vars_91@typing (reset_type_expre...
null
https://raw.githubusercontent.com/samoht/camloo/29a578a152fa23a3125a2a5b23e325b6d45d3abd/src/camloo/Llib.bootstrap/typing.scm
scheme
Le module Les variables globales Les expressions globales
(module __caml_typing (library camloo-runtime) (import __caml_misc __caml_const __caml_globals __caml_syntax __caml_builtins __caml_modules __caml_types __caml_errors __caml_ty_error __caml_location) (export type_expr_vars_91@typing (reset_type_expression_vars_117...
2e792d6dea31b7a6803cf6889758f0ca52ca0b5bb0e6bd6053938581d02dcf92
clojure-interop/google-cloud-clients
GrpcTextToSpeechStub.clj
(ns com.google.cloud.texttospeech.v1beta1.stub.GrpcTextToSpeechStub "gRPC stub implementation for Cloud Text-to-Speech API. This class is for advanced usage and reflects the underlying API directly." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.texttospeech.v1beta1.stub GrpcTextT...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.texttospeech/src/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.clj
clojure
(ns com.google.cloud.texttospeech.v1beta1.stub.GrpcTextToSpeechStub "gRPC stub implementation for Cloud Text-to-Speech API. This class is for advanced usage and reflects the underlying API directly." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.texttospeech.v1beta1.stub GrpcTextT...
e3fdbd8f6946e3e1eb42c5fa80f3837394350f3ddae73829692832f782842613
kevbuchanan/clj-environment
core.clj
(ns env-setup.core (:require [clojure.tools.logging :as log] [environ.core :as environ])) (defn -main [& args] (let [env (environ/env :clj-env)] (log/info (format "Starting the app with %s environment" (name env))) (println "Hello, World!")))
null
https://raw.githubusercontent.com/kevbuchanan/clj-environment/80d4612e3bb15375934969cf7fe0844599f78dd3/src/env_setup/core.clj
clojure
(ns env-setup.core (:require [clojure.tools.logging :as log] [environ.core :as environ])) (defn -main [& args] (let [env (environ/env :clj-env)] (log/info (format "Starting the app with %s environment" (name env))) (println "Hello, World!")))
2dc542ad923c0a25ee176f3eace9984b74ddf10003c28f4bd8fc4e6fcaa1add8
mdedwards/slippery-chicken
permutation-examples.lsp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; File: permutations-examples.lsp ;;; Class Hierarchy : None ;;; Version : 1.0 ;;; ;;; Project: slippery chicken (algorithmic composition) ;;; ;;; Purpose: Lisp example code to accompany permu...
null
https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/doc/examples/permutation-examples.lsp
lisp
File: permutations-examples.lsp Project: slippery chicken (algorithmic composition) Purpose: Lisp example code to accompany permutations.html **** This file is part of slippery-chicken slippery-chicken is free software; you can redistri...
Class Hierarchy : None Version : 1.0 Author : Creation date : 15th November 2012 $ $ Last modified : 22:45:14 Fri May 17 2013 BST SVN ID : $ I d : permutation-examples.lsp 3538 2013 - 05 - 18 08:29:15Z medward2 $ Licence : Copyright ( c ) 2012 P...
8cb58e1027987f88b81e28a8958c8a9df599bcd8a74f9df9a310dd4ce520546f
mirage/ezxmlm
ezxmlm.mli
* Copyright ( c ) 2013 Anil Madhavapeddy < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS...
null
https://raw.githubusercontent.com/mirage/ezxmlm/c285bc11a208d3ebfb93931b0472bb57b6130863/lib/ezxmlm.mli
ocaml
* The type of a single XML tag * Raised by the query combinators * {2 Reading XML values } * Read an XML document from an [in_channel] * Read an XML document directly from a [string] * Low-level function to read directly from an [Xmlm] input source * Low-level function to write directly to an [Xmlm] output sourc...
* Copyright ( c ) 2013 Anil Madhavapeddy < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS...
5c66c57aad4711834d1cd89f517677af174c62d2d5d63eed4d6d18f3e27ee757
sacerdot/CovidMonitoring
luoghi.erl
-module(luoghi). -export([start/0]). luogo() -> io:format("Io sono il luogo ~p~n",[self()]), Server = global:whereis_name(server), Server ! {ciao,da,luogo,self()}. start() -> [ spawn(fun luogo/0) || _ <- lists:seq(1,10) ].
null
https://raw.githubusercontent.com/sacerdot/CovidMonitoring/fe969cd51869bbe6479da509c9a6ab21d43e6d11/Template/luoghi.erl
erlang
-module(luoghi). -export([start/0]). luogo() -> io:format("Io sono il luogo ~p~n",[self()]), Server = global:whereis_name(server), Server ! {ciao,da,luogo,self()}. start() -> [ spawn(fun luogo/0) || _ <- lists:seq(1,10) ].
a59afe7d125d3470f52428c7a5091492f472d403eb20c399641ddff57ec2e058
froggey/Mezzano
rtl8168.lisp
;;;; RTL8168 network card driver. (defpackage :mezzano.driver.rtl8168 (:use :cl :mezzano.supervisor) (:local-nicknames (:nic :mezzano.driver.network-card) (:pci :mezzano.supervisor.pci) (:sup :mezzano.supervisor) (:sync :mezzano.sync) ...
null
https://raw.githubusercontent.com/froggey/Mezzano/f0eeb2a3f032098b394e31e3dfd32800f8a51122/drivers/rtl8168.lisp
lisp
RTL8168 network card driver. Registers. Bit and fields in RCR. Bits in TPPoll. Descriptor flag bits. Number of outstanding packets (passed to card, but not yet transmitted). Stats Mask and ack interrupts. Check that the chip has finished the reset. It will automatically clear the reset bit. FIXME: Verify th...
(defpackage :mezzano.driver.rtl8168 (:use :cl :mezzano.supervisor) (:local-nicknames (:nic :mezzano.driver.network-card) (:pci :mezzano.supervisor.pci) (:sup :mezzano.supervisor) (:sync :mezzano.sync) (:sys.int :mezzano.internals))) (...
ca8df6ac5afc40fc77c7ee55b1e600878ae39db3994b4aebe1538b78953014e9
KaroshiBee/weevil
disconnect.ml
module Dap = Dapper.Dap module D = Dap.Data module Dap_result = Dapper.Dap_result module Req = Dap.Request module Res = Dap.Response module Ev = Dap.Event module Mich_config = Mdb.Mdb_config (* The disconnect request asks the debug adapter to disconnect from the debuggee (thus ending the debug session) and then to ...
null
https://raw.githubusercontent.com/KaroshiBee/weevil/1b166ba053062498c1ec05c885e04fba4ae7d831/lib/adapter/disconnect.ml
ocaml
The disconnect request asks the debug adapter to disconnect from the debuggee (thus ending the debug session) and then to shut down itself (the debug adapter). In addition, the debug adapter must terminate the debuggee if it was started with the launch request. If an attach request was used to connect to the...
module Dap = Dapper.Dap module D = Dap.Data module Dap_result = Dapper.Dap_result module Req = Dap.Request module Res = Dap.Response module Ev = Dap.Event module Mich_config = Mdb.Mdb_config module T (S : Types.STATE_T) = struct module On_request = Dap.Disconnect.On_request (S) module On_response = Dap.Disconnect...
e0f48d119e27d9af3d068ea6e2d8483b9f078ef960e5f7f37dbeeec55e4dba45
AndrewRadev/xmonad-config
Layout.hs
# LANGUAGE NoMonomorphismRestriction # module Layout where import Data.Ratio ((%)) import XMonad import qualified XMonad.StackSet as S import XMonad.Layout.LayoutModifier import XMonad.Layout.Reflect import XMonad.Layout.NoBorders import XMonad.Layout.Named import XMonad.Layout.Magnifier as Mag import XMonad.Layout....
null
https://raw.githubusercontent.com/AndrewRadev/xmonad-config/bb3fb7329806d7ed3a1914c7543a88fe4293077e/lib/Layout.hs
haskell
# LANGUAGE NoMonomorphismRestriction # module Layout where import Data.Ratio ((%)) import XMonad import qualified XMonad.StackSet as S import XMonad.Layout.LayoutModifier import XMonad.Layout.Reflect import XMonad.Layout.NoBorders import XMonad.Layout.Named import XMonad.Layout.Magnifier as Mag import XMonad.Layout....
5c844552c9830c05a6622c72348e86103c03713b0cf3701c170cc5a690c9b3a7
1Computer1/myriad
Core.hs
{-# LANGUAGE TemplateHaskell #-} # LANGUAGE UndecidableInstances # module Myriad.Core ( Language , ContainerName , ImageName , Env(..) , MyriadT , runMyriadT , initEnv , exec , exec_ , logInfo , logDebug , logWarn , logError , mapMVar , writeMVar ) w...
null
https://raw.githubusercontent.com/1Computer1/myriad/659846222796ed3e62a653e4d4dc74daf845d8f4/src/Myriad/Core.hs
haskell
# LANGUAGE TemplateHaskell #
# LANGUAGE UndecidableInstances # module Myriad.Core ( Language , ContainerName , ImageName , Env(..) , MyriadT , runMyriadT , initEnv , exec , exec_ , logInfo , logDebug , logWarn , logError , mapMVar , writeMVar ) where import Control.Monad.Base import...
6252dbdb2a555c2660d0a76ca310ee0b31d3aae7e36edef84e1a2e0224203fe4
silky/myth
tree_map.ml
type nat = | O | S of nat type list = | Nil | Cons of nat * list type tree = | Leaf | Node of tree * nat * tree let rec div2 (n:nat) : nat = match n with | O -> O | S (n1) -> match n1 with | O -> O | S (n2) -> S (div2 n2) ;; let rec inc (n:nat) : nat = S( n ) ;; let tree_map : (nat -> ...
null
https://raw.githubusercontent.com/silky/myth/b631edefb2a27a1d731daa6654517d91ca660b95/tests/pldi-2015-benchmarks/tree_map.ml
ocaml
type nat = | O | S of nat type list = | Nil | Cons of nat * list type tree = | Leaf | Node of tree * nat * tree let rec div2 (n:nat) : nat = match n with | O -> O | S (n1) -> match n1 with | O -> O | S (n2) -> S (div2 n2) ;; let rec inc (n:nat) : nat = S( n ) ;; let tree_map : (nat -> ...
c2a8943b219280398e127433f92bf384fce8f6043407313e00e17e1699c5738c
LeventErkok/sbv
Sudoku.hs
----------------------------------------------------------------------------- -- | -- Module : Documentation.SBV.Examples.Puzzles.Sudoku Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- The Sudoku solver , quintessential SMT solver example ! ---------------------------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/Documentation/SBV/Examples/Puzzles/Sudoku.hs
haskell
--------------------------------------------------------------------------- | Module : Documentation.SBV.Examples.Puzzles.Sudoku License : BSD3 Maintainer: Stability : experimental --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror # ---------------------...
Copyright : ( c ) The Sudoku solver , quintessential SMT solver example ! module Documentation.SBV.Examples.Puzzles.Sudoku where import Data.List (transpose) import Data.Maybe (fromJust) import Data.SBV | A row is a sequence of 8 - bit words , too large indeed for representing 1 - 9 , but does not harm ty...
895fdebc73be53730ade26e7035db8cfcee6392e432fb14611a26819edb92bef
fossas/fossa-cli
PoetrySpec.hs
module Python.PoetrySpec ( spec, ) where import Data.Map qualified as Map import DepTypes (DepEnvironment (..), DepType (..), Dependency (..), VerConstraint (..)) import Graphing (Graphing) import Graphing qualified import Strategy.Python.Poetry (graphFromLockFile, setGraphDirectsFromPyproject) import Strategy.Pytho...
null
https://raw.githubusercontent.com/fossas/fossa-cli/efc29b4f9c874e338f0b5a7d1c5b13cb9543156f/test/Python/PoetrySpec.hs
haskell
module Python.PoetrySpec ( spec, ) where import Data.Map qualified as Map import DepTypes (DepEnvironment (..), DepType (..), Dependency (..), VerConstraint (..)) import Graphing (Graphing) import Graphing qualified import Strategy.Python.Poetry (graphFromLockFile, setGraphDirectsFromPyproject) import Strategy.Pytho...
63b1637a67ff133b94ea83901b1838b907859bc78a3fa86a3e39b74a8e3623b0
arrdem/oxcart
call.clj
(ns test.call (:gen-class)) (defn ^:static vcall ^long [^long i] (inc i)) (defn ^:static bench [^long reps] (loop [i 0 accum 0] (when (< i reps) (recur (inc i) (vcall accum))))) (defn -main [] (dotimes [_ 10] (time (bench 10000000))))
null
https://raw.githubusercontent.com/arrdem/oxcart/38c3247dabe904b3c067385a7d64c5f4f65ccc09/src/bench/clojure/test/call.clj
clojure
(ns test.call (:gen-class)) (defn ^:static vcall ^long [^long i] (inc i)) (defn ^:static bench [^long reps] (loop [i 0 accum 0] (when (< i reps) (recur (inc i) (vcall accum))))) (defn -main [] (dotimes [_ 10] (time (bench 10000000))))
652edd08210cc241f8a8ba66ea6e12b26e0ec867fe8ea00b5d5bef363f3766e1
jafingerhut/clojure-benchmarks
revcomp.clj-12.clj
The Computer Language Benchmarks Game ;; / contributed by ;; WARNING: This program breaks the rules of the problem, which says ;; that the input file must be read line-by-line. It is only on the ;; web site as an "interesting alternate implementation". (ns revcomp (:gen-class)) (set! *warn-on-reflectio...
null
https://raw.githubusercontent.com/jafingerhut/clojure-benchmarks/474a8a4823727dd371f1baa9809517f9e0b508d4/revcomp/revcomp.clj-12.clj
clojure
/ WARNING: This program breaks the rules of the problem, which says that the input file must be read line-by-line. It is only on the web site as an "interesting alternate implementation".
The Computer Language Benchmarks Game contributed by (ns revcomp (:gen-class)) (set! *warn-on-reflection* true) (def complement-dna-char-map {\w \W, \W \W, \s \S, \S \S, \a \T, \A \T, \t \A, \T \A, \u \A, \U \A, \g \C, \G \C, \c \G, \C \G, \y \R, \Y \R, ...
e836a1a5a7ddb7c68efbcbca751400f936037359484fa3d3992b9a579f4ebe93
tianyicui/golio
repl.mli
(** a configurable read-eval-print loop *) open Type val repl : repl_config -> unit ;;
null
https://raw.githubusercontent.com/tianyicui/golio/2f03a0ddb451ff8389125477e1214839973eaa1f/src/repl.mli
ocaml
* a configurable read-eval-print loop
open Type val repl : repl_config -> unit ;;
145c9b87f2a8ae474c813beb6001f1d1d73baa4ea7cd5574f44b97e6d890fa39
joinr/spork
codecount.clj
(ns spork.util.codecount (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.spec.test.alpha :as stest] [clojure.string :as str] [spork.util [io :as io]])) ;;Given a source file, let's break it down ;;by lines and parse the sequence of lines...
null
https://raw.githubusercontent.com/joinr/spork/bb80eddadf90bf92745bf5315217e25a99fbf9d6/src/spork/util/codecount.clj
clojure
Given a source file, let's break it down by lines and parse the sequence of lines into a structure of code blocks. Our goal is to also recognize legacy to produce syntax-highlighted code examples in org. =========================== We'll be leveraging regexes a lot, but we don't "have" too...We could use the particular...
(ns spork.util.codecount (:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen] [clojure.spec.test.alpha :as stest] [clojure.string :as str] [spork.util [io :as io]])) headers ( via = = = = =) and Specs for Code and Comments token - based charseq pars...
69b33bffc74ccbf3573aa4e3721036b71da36709df64bcf4f40cd5e44838a48d
sdiehl/bulletproofs
Verifier.hs
# LANGUAGE RecordWildCards , ViewPatterns # module Bulletproofs.ArithmeticCircuit.Verifier where import Protolude hiding (head) import Data.List (head) import Data.Curve.Weierstrass.SECP256K1 (PA, Fr, mul, inv, gen) import Bulletproofs.Utils hiding (shamirZ) import qualified Bulletproofs.InnerProductProof as IPP im...
null
https://raw.githubusercontent.com/sdiehl/bulletproofs/6cb356a2ad44dea139abb81214f1babab8456b91/Bulletproofs/ArithmeticCircuit/Verifier.hs
haskell
for an arithmetic circuit given committed input values
# LANGUAGE RecordWildCards , ViewPatterns # module Bulletproofs.ArithmeticCircuit.Verifier where import Protolude hiding (head) import Data.List (head) import Data.Curve.Weierstrass.SECP256K1 (PA, Fr, mul, inv, gen) import Bulletproofs.Utils hiding (shamirZ) import qualified Bulletproofs.InnerProductProof as IPP im...
d3c34ebd4850a13debd1827e6e2b69c77b75af413eed200471387971428e0bdb
AdaCore/why3
eval_match.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/4441127004d53cf2cb0f722fed4a930ccf040ee4/src/mlw/eval_match.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception open Ty open Term open Pdecl val ts_constructors : known_map -> tysymbol -> Decl.constructor list val ty_c...
45f76ad37bf68c2377dab171369213b0ea49d33876797174d294fa016fbfc940
ghc/nofib
Main.hs
# OPTIONS_GHC -fno - warn - missing - methods # Taken from paper " Power series , power serious " JFP 9(3 ) May 1999 "Power series, power serious" JFP 9(3) May 1999 -} module Main where import System.IO import Data.Ratio import Control.Monad (replicateM_) import System.Environment (getArgs) infixl 7 ...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/spectral/power/Main.hs
haskell
The main implementation follows (0) (0) Convert power series to a list; used in printing. at end of product of polynomials; it works because x is a finite series. but not for infinite series. because this would defeat the property that its operand--a property used in solving differential equati...
# OPTIONS_GHC -fno - warn - missing - methods # Taken from paper " Power series , power serious " JFP 9(3 ) May 1999 "Power series, power serious" JFP 9(3) May 1999 -} module Main where import System.IO import Data.Ratio import Control.Monad (replicateM_) import System.Environment (getArgs) infixl 7 ...
52fa580de8bfcbadd8c9139782298cab94c7ff58946672a13e2f88fe27898c06
ghcjs/ghcjs-dom
SVGRadialGradientElement.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.SVGRadialGradientElement (js_getCx, getCx, js_getCy, getCy, js_getR, getR, js_getFx, ge...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGRadialGradientElement.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/SVGRadialGradientElement.cy Mozilla SVGRadialGradientElement.cy documentation>
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.SVGRadialGradientElement (js_getCx, getCx, js_getCy, getCy, js_getR, getR, js_getFx, getFx, js_getFy, getFy, js_getFr, getFr, SVGRadialGradientElement(..), gTypeSVGRadial...
2b4ae051823275fc1aa672b866a3bccffad8d9db677c8431910f829681d46c31
facebook/duckling
Corpus.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. {-# LANGUAGE OverloadedStrings #-} module Duckling.Distance.PT.Corpus ( corpus ) where import Prelude im...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Distance/PT/Corpus.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. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Distance.PT.Corpus ( corpus ) where import Prelude import Data.String import Duckling.Distance.Types import Duckling.Locale import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = (testContext {locale = makeLocale PT Noth...
310fb40b31a82c647239a4c7c98a7e867e01cdcd299f50f1893fd1a69362aece
hslua/tasty-lua
Core.hs
# LANGUAGE LambdaCase # | Module : Test . Tasty . Lua . Core Copyright : © 2019–2020 : MIT Maintainer : > Stability : alpha Portability : not portable , requires GHC or later Core types and functions for tasty Lua tests . Module : Test.Tasty.Lua.Core Copyright : © 2019–2...
null
https://raw.githubusercontent.com/hslua/tasty-lua/8105036277e737227f18c475dc3e24cd7924b53a/src/Test/Tasty/Lua/Core.hs
haskell
test tree or the error message. all tests have already been run, and all test results are known. | Unmarshal an @'UnnamedTree'@. | Test outcome | Unmarshal a test outcome
# LANGUAGE LambdaCase # | Module : Test . Tasty . Lua . Core Copyright : © 2019–2020 : MIT Maintainer : > Stability : alpha Portability : not portable , requires GHC or later Core types and functions for tasty Lua tests . Module : Test.Tasty.Lua.Core Copyright : © 2019–2...
535c244944163b89d931a78e951b7c981533ab1f3198907f55b354976ee6bc94
codedownio/sandwich
Shutdown.hs
module Test.Sandwich.Shutdown where import Control.Concurrent.Async import Control.Concurrent.STM import Data.Time import Test.Sandwich.Types.RunTree import Test.Sandwich.Types.Spec cancelNode :: RunNode context -> IO () cancelNode node = readTVarIO (runTreeStatus $ runNodeCommon node) >>= \case Running {..} -> c...
null
https://raw.githubusercontent.com/codedownio/sandwich/9c8f56b5aee94ba65c70b3e52bde8959010aecc1/sandwich/src/Test/Sandwich/Shutdown.hs
haskell
module Test.Sandwich.Shutdown where import Control.Concurrent.Async import Control.Concurrent.STM import Data.Time import Test.Sandwich.Types.RunTree import Test.Sandwich.Types.Spec cancelNode :: RunNode context -> IO () cancelNode node = readTVarIO (runTreeStatus $ runNodeCommon node) >>= \case Running {..} -> c...
ff47695e6c3828023c5df4171243b920bf4a9b6812e0e030bebd49b269211064
dgrnbrg/piplin
sints.clj
(ns piplin.test.sints (:refer-clojure :exclude [cond condp cast not = not= > >= < <= + - * inc dec bit-and bit-or bit-xor bit-not and or bit-shift-left bit-shift-right pos? neg? zero?]) (:import clojure.lang.ExceptionInfo) (:use clojure.test piplin.core plumbing.core [piplin.types :only [i...
null
https://raw.githubusercontent.com/dgrnbrg/piplin/01f3ac72ccc904b7789dfd6e46277c179e11002c/test/piplin/test/sints.clj
clojure
(ns piplin.test.sints (:refer-clojure :exclude [cond condp cast not = not= > >= < <= + - * inc dec bit-and bit-or bit-xor bit-not and or bit-shift-left bit-shift-right pos? neg? zero?]) (:import clojure.lang.ExceptionInfo) (:use clojure.test piplin.core plumbing.core [piplin.types :only [i...
4138c5eba48c92ed4f078abf60df07b8b50350a2971f4031237b12017dde712e
metaocaml/ber-metaocaml
ccomp.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/utils/ccomp.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the let command cmdline = if !Clflags.verbose then begin prerr_string "+ "; prerr_string cmdline; ...
d6cb3d1cc4e087c99d39a1d97fe4c47cf45d0beba4abf0fe22ec418e69e0dc9b
robstewart57/hdph-rs
Misc.hs
-- Misc auxiliary types and functions that should probably be in other modules. -- Author : ------------------------------------------------------------------------------- {-# LANGUAGE GADTs #-} -- for existential types # LANGUAGE KindSignatures # for instances # LANGUAGE FlexibleInstances # modu...
null
https://raw.githubusercontent.com/robstewart57/hdph-rs/5074e7de02ec13707361b1c117fa25c8a796b59e/src/Control/Parallel/HdpH/Internal/Misc.hs
haskell
Misc auxiliary types and functions that should probably be in other modules. ----------------------------------------------------------------------------- # LANGUAGE GADTs # for existential types * existential wrapper type no instances * monads supporting forking of threads :: m () -> m Control.Concurrent...
Author : # LANGUAGE KindSignatures # for instances # LANGUAGE FlexibleInstances # module Control.Parallel.HdpH.Internal.Misc context : ( Monad m ) = > m ), instances : Functor , Monad * decode ByteStrings ( without error reporting ) : : Serialize a = > Lazy . ByteString - > a * encode ByteS...
6d1ed08726c1b7b321f24239acb16e098bf16991b236995d48460dc2414ce8ca
lingnand/VIMonad
BorderResize.hs
# LANGUAGE TypeSynonymInstances , MultiParamTypeClasses , PatternGuards # ---------------------------------------------------------------------------- -- | Module : XMonad . Layout . BorderResize Copyright : ( c ) Jan Vornberger 2009 -- License : BSD3-style (see LICENSE) -- -- Maintainer : -- S...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Layout/BorderResize.hs
haskell
-------------------------------------------------------------------------- | License : BSD3-style (see LICENSE) Maintainer : Stability : unstable Portability : not portable This layout modifier will allow to resize windows by dragging their borders with the mouse. However, it only works in layouts ...
# LANGUAGE TypeSynonymInstances , MultiParamTypeClasses , PatternGuards # Module : XMonad . Layout . BorderResize Copyright : ( c ) Jan Vornberger 2009 " XMonad . Layout . WindowArranger " can be used to create such a setup , " XMonad . Layout . PositionStoreFloat " with which it has been mainly te...
65a313be073bcf856d9956508c40d97500b48905765868893d599cb8ca93798c
achirkin/vulkan
VK_KHR_external_fence_win32.hs
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_HADDOCK not - home # {-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # {-# LANGUAGE MagicHash #-} {-# LANGUAGE PatternSynonyms #-} {-# LA...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_KHR_external_fence_win32.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # | supported: @vulkan@ contact: @Jesse Hall @crits...
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_HADDOCK not - home # # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # module Graphics.Vulkan.Ext.VK_KHR_external_fence_win32 * Vulkan extension : @VK_KHR_external_fence_win32@ VkExportFenceWin32HandleInfoKHR, VkExternalFenceF...
51a7699a2e7fda957915367b4e984401667646ac12a523bf78b2f31d867d3370
alphaHeavy/open-symbology
Parser.hs
{-# LANGUAGE OverloadedStrings #-} module Finance.OpenSymbology.Parser (entryParser) where import Control.Applicative import Data.Attoparsec.Text (Parser,(<?>)) import qualified Data.Attoparsec.Text as A import Data.Text (Text) import qualified Data.Text as T import Finance.OpenSymbology.PricingSourceParsers import Fi...
null
https://raw.githubusercontent.com/alphaHeavy/open-symbology/e96ed17509f7c8f3e2baee124f8d0aeb4035db3d/Finance/OpenSymbology/Parser.hs
haskell
# LANGUAGE OverloadedStrings #
module Finance.OpenSymbology.Parser (entryParser) where import Control.Applicative import Data.Attoparsec.Text (Parser,(<?>)) import qualified Data.Attoparsec.Text as A import Data.Text (Text) import qualified Data.Text as T import Finance.OpenSymbology.PricingSourceParsers import Finance.OpenSymbology.Types import F...
57e537186dba89179bdf203aff6079402369095c258838a8feec60fdf12cf37b
jacquev6/General
Compare.ml
type t = LT | EQ | GT let of_standard compare = fun x y -> match compare x y with | 0 -> EQ | c when OCSP.(<) c 0 -> LT | _ -> GT module Poly = struct let compare x y = of_standard OCSP.compare x y let less_than = OCSP.(<) let less_or_equal = OCSP.(<=) let greater_or_equal = OCSP.(>=) ...
null
https://raw.githubusercontent.com/jacquev6/General/5237123668e939c0cb83aa3e1c4756473336bc7e/src/Compare.ml
ocaml
type t = LT | EQ | GT let of_standard compare = fun x y -> match compare x y with | 0 -> EQ | c when OCSP.(<) c 0 -> LT | _ -> GT module Poly = struct let compare x y = of_standard OCSP.compare x y let less_than = OCSP.(<) let less_or_equal = OCSP.(<=) let greater_or_equal = OCSP.(>=) ...
1b992f0de8d12098e4cbd0d202c03bc91e243c9ca502a4ea27d174d09826da00
kwrooijen/gungnir
migration.clj
(ns gungnir.migration (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.string :as string] [gungnir.query :as q] [gungnir.database :refer [*datasource*]] [honey.sql :as sql] [honey.sql.helpers] ragtime.core ragtime.jdbc ragtime.reporter ra...
null
https://raw.githubusercontent.com/kwrooijen/gungnir/3a9412490b47450135b05a45132a8f95b7111909/src/clj/gungnir/migration.clj
clojure
(ns gungnir.migration (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.spec.alpha :as s] [clojure.string :as string] [gungnir.query :as q] [gungnir.database :refer [*datasource*]] [honey.sql :as sql] [honey.sql.helpers] ragtime.core ragtime.jdbc ragtime.reporter ra...
c2b1c307332d2eaa57be952f71255484d370a85481d5d6212f73b08965922c4c
osener/bonsai_revery
color.ml
type t = Revery.Color.t exception Color_hex_parse_exception = Revery.Color.ColorHexParseException let rgba = Revery.Color.rgba let rgb = Revery.Color.rgb let rgba_int = Revery.Color.rgba_int let rgb_int = Revery.Color.rgb_int let hex = Revery.Color.hex let multiply_alpha = Revery.Color.multiplyAlpha let mix = Revery....
null
https://raw.githubusercontent.com/osener/bonsai_revery/754346997c21d2c4f91e6a7e7e6ce9f18df09056/src/color.ml
ocaml
type t = Revery.Color.t exception Color_hex_parse_exception = Revery.Color.ColorHexParseException let rgba = Revery.Color.rgba let rgb = Revery.Color.rgb let rgba_int = Revery.Color.rgba_int let rgb_int = Revery.Color.rgb_int let hex = Revery.Color.hex let multiply_alpha = Revery.Color.multiplyAlpha let mix = Revery....
6394ed9d7a0c72a7c3ffb73cf518bc318f83f5a9e873925b22da11cdb6e08d5a
ynadji/lisp
aip_ch2.lisp
(defpackage :aip-ch2 (:use :cl :cl-user :aip-ch1)) (provide :aip-ch2) (in-package :aip-ch2) (defun sentence () (append (noun-phrase) (verb-phrase))) (defun noun-phrase () (append (Article) (Adj*) (Noun) (PP*))) (defun verb-phrase () (append (Verb) (noun-phrase))) (defun Article () (one-of '(the a))) (de...
null
https://raw.githubusercontent.com/ynadji/lisp/758b5aebaa01f4994407d20026e617ebef90739e/paip/aip_ch2.lisp
lisp
(defpackage :aip-ch2 (:use :cl :cl-user :aip-ch1)) (provide :aip-ch2) (in-package :aip-ch2) (defun sentence () (append (noun-phrase) (verb-phrase))) (defun noun-phrase () (append (Article) (Adj*) (Noun) (PP*))) (defun verb-phrase () (append (Verb) (noun-phrase))) (defun Article () (one-of '(the a))) (de...
c27fd7ae1baf8995302c9b2c2f0496b4fb3c0bd6c2d3a448ed9cc86608672bcf
dextroamphetamine/nuko
Env.hs
module Nuko.Resolver.Env ( ResolverState(..), Visibility(..), NameSpace(..), DefType(..), Query(..), Use(..), MonadResolver, ImportErrorKind(..), useModule, modName, names, openedModules, openedNames, currentNamespace, localNames, joinUses, emptyNamespace, newNamespace, emptyState,...
null
https://raw.githubusercontent.com/dextroamphetamine/nuko/1b6f960eeeebbfcbfb5700279c39758f82e7df28/src/Nuko/Resolver/Env.hs
haskell
| Describes the current state of the resolver ^ All the names that are available that are external ^ All the modules available for the current module ^ Used to tracking locals. | This function is useful to create namespaces for types. Probably a bad decision but in the future i'll fix that :P Here i'll try to th...
module Nuko.Resolver.Env ( ResolverState(..), Visibility(..), NameSpace(..), DefType(..), Query(..), Use(..), MonadResolver, ImportErrorKind(..), useModule, modName, names, openedModules, openedNames, currentNamespace, localNames, joinUses, emptyNamespace, newNamespace, emptyState,...
f56a1705406be4d34133c1a25fb4cad71fb3350150047d0af4ddf33fbbb3d81d
brainsickcc/bscc
Dir.hs
Copyright © 2012 -- 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 in th...
null
https://raw.githubusercontent.com/brainsickcc/bscc/f47a83f5c77d0ef483e957032715ac4007fcb44d/Bscc/ThisPackage/Dir.hs
haskell
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General ...
Copyright © 2012 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 You should have received a copy of the GNU Affero General Public License # LANGUAGE CPP # specific package . It is a bit analogous to config.h...
629926901c8ca129fbb9789ec4c99697be63a9c303d3ed113b2c2bf9a8672cb7
ryanpbrewster/haskell
FibonacciModified.hs
modifiedFibSequence :: Integer -> Integer -> [Integer] modifiedFibSequence a b = let fibs = a : b : zipWith nextElement (tail fibs) (fibs) in fibs where nextElement tnp1 tn = tnp1^2 + tn main = do [a, b, n] <- fmap (map read . words) getLine :: IO [Integer] print $ (modifiedFibSequence a b) !! (from...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/HackerRank/FibonacciModified/FibonacciModified.hs
haskell
modifiedFibSequence :: Integer -> Integer -> [Integer] modifiedFibSequence a b = let fibs = a : b : zipWith nextElement (tail fibs) (fibs) in fibs where nextElement tnp1 tn = tnp1^2 + tn main = do [a, b, n] <- fmap (map read . words) getLine :: IO [Integer] print $ (modifiedFibSequence a b) !! (from...
6b7dfa379c300b2256b1baee4b378a592fe3e394fc82e2241a69b7e061713b3c
samrocketman/home
thick-oil-paint.scm
(define (script-fu-thick-oil-paint image drawable) (let* ((original-layer FALSE) (glop-layer FALSE) (mask-channel FALSE)) (gimp-undo-push-group-start image) (set! original-layer (car (gimp-image-get-active-layer image))) (plug-in-oilify 1 image origina...
null
https://raw.githubusercontent.com/samrocketman/home/63a8668a71dc594ea9ed76ec56bf8ca43b2a86ca/dotfiles/.gimp/scripts/thick-oil-paint.scm
scheme
(define (script-fu-thick-oil-paint image drawable) (let* ((original-layer FALSE) (glop-layer FALSE) (mask-channel FALSE)) (gimp-undo-push-group-start image) (set! original-layer (car (gimp-image-get-active-layer image))) (plug-in-oilify 1 image origina...
17f89817783100bb25eca9e89ab143df9e27ccba0e6667c68f2f81f3b4e0876a
dalong0514/ITstudy
0303IteratedFunctionSystemsV1-2.lisp
;;--------------=={ Iterated Function System }==--------------;; ;; ;; Recursively calculates point positions using a set of two ; ; or three affine linear transformations as specified in ; ; ;; the user interface; each with equal probability. ...
null
https://raw.githubusercontent.com/dalong0514/ITstudy/8a7f1708d11856a78016795268da67b6a7521115/004%E7%BC%96%E7%A8%8B%E8%AF%AD%E8%A8%80/07AutoLisp/04LeeMac-Library/0303IteratedFunctionSystemsV1-2.lisp
lisp
--------------=={ Iterated Function System }==--------------;; ;; ; ; the user interface; each with equal probability. ;; ;; Points are subsequently plotted in the specified col...
(defun c:ifs ( / *error* _writedcl _imgtile _point _rand app col dcl file fun id lst no pt ) (defun *error* ( msg ) (if (and file (eq 'FILE (type file))) (close file)) (if (< 0 id) (unload_dialog id)) (if (a...
a2e4859f5392ed0ef3e5f58fb8e3e06ca633005644881cebc0864c0211bed06d
gfngfn/SATySFi
files.ml
open Types (* string -> string *) let string_of_file_in file_name_in = let str_in = ref "" in let chnl_in = open_in file_name_in in let cat_sub () = while true do str_in := !str_in ^ (String.make 1 (input_char chnl_in)) done in try ( cat_sub () ; "" ) with End_of_file -> ( clo...
null
https://raw.githubusercontent.com/gfngfn/SATySFi/9dbd61df0ab05943b3394830c371e927df45251a/src/frontend/files.ml
ocaml
string -> string string -> string -> unit
open Types let string_of_file_in file_name_in = let str_in = ref "" in let chnl_in = open_in file_name_in in let cat_sub () = while true do str_in := !str_in ^ (String.make 1 (input_char chnl_in)) done in try ( cat_sub () ; "" ) with End_of_file -> ( close_in chnl_in ; !str_in...
cc6b567e05f870fb7ca8bd6b712d213fd86fc0d8d16c5290813a706d906e8fda
agda/agda
Precise.hs
-- | Types used for precise syntax highlighting. module Agda.Interaction.Highlighting.Precise ( -- * Highlighting information Aspect(..) , NameKind(..) , OtherAspect(..) , Aspects(..) , DefinitionSite(..) , TokenBased(..) , RangePair(..) , rangePairInvariant , PositionMap(..) , DelayedMerge(..)...
null
https://raw.githubusercontent.com/agda/agda/4f3899c597792fa4455e0f8134dfd63bc89b1c07/src/full/Agda/Interaction/Highlighting/Precise.hs
haskell
| Types used for precise syntax highlighting. * Highlighting information ** Operations ---------------------------------------------------------------------- Highlighting information | Syntactic aspects of the code. (These cannot overlap.) ^ Symbols like forall, =, ->, etc. ^ Things like Set and Prop. ^ Is the ...
module Agda.Interaction.Highlighting.Precise Aspect(..) , NameKind(..) , OtherAspect(..) , Aspects(..) , DefinitionSite(..) , TokenBased(..) , RangePair(..) , rangePairInvariant , PositionMap(..) , DelayedMerge(..) , delayedMergeInvariant , HighlightingInfo , highlightingInfoInvariant , H...
c0053d89567c5e2756217f15da82bde77122f757a4cc543e1b2c788a1f79f1bf
tonyg/racket-something
for.rkt
#lang something // -*- sth -*- provide for for* for/list for*/list for/hash for*/hash require something/infix for-syntax something/base prefix-in base_ racket/base begin-for-syntax def expand-for base-stx stx syntax-case stx (block) _ (block (v (block exp)) ...) (block body ...) ...
null
https://raw.githubusercontent.com/tonyg/racket-something/4a00a9a6d37777f5aab4f28b03c53555b87e21d7/src/something/for.rkt
racket
#lang something // -*- sth -*- provide for for* for/list for*/list for/hash for*/hash require something/infix for-syntax something/base prefix-in base_ racket/base begin-for-syntax def expand-for base-stx stx syntax-case stx (block) _ (block (v (block exp)) ...) (block body ...) ...
ee044df27abada013d515501e435d20b9821b3215dc12efd9e7ff7c846c68597
Purple-Services/common
config.clj
(ns common.config (:require [clojure.string :as s] [environ.core :refer [env]])) (if (or (= (env :env) "test") (= (env :env) "dev") (= (env :env) "local")) (do (System/setProperty "AWS_ACCESS_KEY_ID" (env :aws-access-key-id)) (System/setProperty "AWS_SECRET_KEY" (env :aws-secret...
null
https://raw.githubusercontent.com/Purple-Services/common/1da9b6893fd60d97026be490acfef2f711f1e34d/src/common/config.clj
clojure
Base Url of the web service Should include trailing forward-slash (e.g., "/") Payment How often to process the auto-assign and related tasks (millis) How long of courier app not responding that we consider them to be How many long after a new order has been assigned to a courier but they to then send them a remi...
(ns common.config (:require [clojure.string :as s] [environ.core :refer [env]])) (if (or (= (env :env) "test") (= (env :env) "dev") (= (env :env) "local")) (do (System/setProperty "AWS_ACCESS_KEY_ID" (env :aws-access-key-id)) (System/setProperty "AWS_SECRET_KEY" (env :aws-secret...
799f190e066b5755c214c9e815815d573fe77a763fb54cfc887e3438239f4dd6
GaloisInc/daedalus
Main.hs
# Language RecordWildCards # {-# Language OverloadedStrings #-} {-# Language ViewPatterns, FlexibleContexts #-} module Main where import System.Exit(exitFailure) import System.IO (hFlush, hPutStrLn, stdout, stderr , openFile, IOMode(..)) import Control.Monad (replicateM, zipWithM_, when) import Syst...
null
https://raw.githubusercontent.com/GaloisInc/daedalus/3f180d29441960e35386654ec79a2b205bddc157/talos/app/Main.hs
haskell
# Language OverloadedStrings # # Language ViewPatterns, FlexibleContexts # debugging import qualified SimpleSMT as S import Analysis ----------------------------------------------------------------------------- Main FIXME: don't hardcode analysis model output putStrLn "Semantic value: " print (" " <> pp v) p...
# Language RecordWildCards # module Main where import System.Exit(exitFailure) import System.IO (hFlush, hPutStrLn, stdout, stderr , openFile, IOMode(..)) import Control.Monad (replicateM, zipWithM_, when) import System.Console.ANSI import qualified Data.Map as Map import qualified Data.ByteString...
10ce9e841c4a3fb9bf67f8bf8a650718abeffdc48cda2e24c5dbe72e7611a219
RefactoringTools/HaRe
LexerGen2.hs
module LexerGen2(lexerGen,OutputFun(..)) where import RegExp(Trans(..),Transducer) import DFA(DFA(..),renumberEdges,tokenClasses,showDFA) import Minimalize import CompileRegExp(compile) import DetMachineToHaskell2(dfaToHaskell,OutputFun(..)) import PPrint(pprint) import qualified OrdMap as OM(fromList) import List(sor...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/tools/base/parse2/LexerGen/LexerGen2.hs
haskell
use character classes?
module LexerGen2(lexerGen,OutputFun(..)) where import RegExp(Trans(..),Transducer) import DFA(DFA(..),renumberEdges,tokenClasses,showDFA) import Minimalize import CompileRegExp(compile) import DetMachineToHaskell2(dfaToHaskell,OutputFun(..)) import PPrint(pprint) import qualified OrdMap as OM(fromList) import List(sor...
e3bdfd8e9fb1a1631db6eedaf866f061096afe259b60b73b342a35d38eef13f7
ocaml/omd
toc.ml
open Ast.Util open Stdcompat let rec remove_links inline = match inline with | Concat (attr, inlines) -> Concat (attr, List.map remove_links inlines) | Emph (attr, inline) -> Emph (attr, remove_links inline) | Strong (attr, inline) -> Emph (attr, remove_links inline) | Link (_, link) -> link.label | Image ...
null
https://raw.githubusercontent.com/ocaml/omd/8cc423be8d090cae230dfa1307602ad7ea1b7db8/src/toc.ml
ocaml
Skip, right [level]-header not yet reached. Assume empty section at [level], do not consume token. no subsection to find At proper [level]. Have we reached the [number] one? no subsection to find Sought [level] has not been found in the current section
open Ast.Util open Stdcompat let rec remove_links inline = match inline with | Concat (attr, inlines) -> Concat (attr, List.map remove_links inlines) | Emph (attr, inline) -> Emph (attr, remove_links inline) | Strong (attr, inline) -> Emph (attr, remove_links inline) | Link (_, link) -> link.label | Image ...
43418273f47c20782f1493e08a3ea7a68b60591e10e2fd264bd41bd35b0f6c27
tonsky/tongue
number.cljc
(ns tongue.test.number (:require [tongue.core :as tongue] #?(:clj [clojure.test :refer [deftest is are testing]] :cljs [cljs.test :as test :refer-macros [deftest is are testing]]))) (deftest test-format-number (let [format-fn (tongue/number-formatter {:decimal "," :group " "})] (are [n s] (= (...
null
https://raw.githubusercontent.com/tonsky/tongue/f6e72132e24d428e990ca058ae3b18d33ce12f35/test/tongue/test/number.cljc
clojure
fallback to :en :ru for numbers, fallback for pattern using :tongue/format-number directly fns + locale-aware number format number format shouldn’t look into fallback
(ns tongue.test.number (:require [tongue.core :as tongue] #?(:clj [clojure.test :refer [deftest is are testing]] :cljs [cljs.test :as test :refer-macros [deftest is are testing]]))) (deftest test-format-number (let [format-fn (tongue/number-formatter {:decimal "," :group " "})] (are [n s] (= (...
1181abccccd62fb91b2692e3246644d31a5d4c275a4c7bd77e70b7e828b319fb
cryptosense/pkcs11
pkcs11_CK_OBJECT_HANDLE.mli
(** Object handles ([CK_OBJECT_HANDLE]) *) type t = P11_ulong.t [@@deriving eq, ord, show, yojson] val typ : t Ctypes.typ
null
https://raw.githubusercontent.com/cryptosense/pkcs11/93c39c7a31c87f68f0beabf75ef90d85a782a983/driver/pkcs11_CK_OBJECT_HANDLE.mli
ocaml
* Object handles ([CK_OBJECT_HANDLE])
type t = P11_ulong.t [@@deriving eq, ord, show, yojson] val typ : t Ctypes.typ
580d494c7603267df68d44474e94cfe41fc76adb230f593fb26644922e00c7f3
nd/bird
5.1.3.hs
import Common_5_1 hiding (combine6, digits6, convert6) convert6 :: Int -> String convert6 = sign . combine6 . digits6 digits6 :: Int -> (Int, Int, Bool) digits6 n = ((abs n) `div` 1000, (abs n) `mod` 1000, n < 0) combine6 :: (Int, Int, Bool) -> (String, Bool) combine6 (0, 0, neg) = ("zero", False) combine6 ...
null
https://raw.githubusercontent.com/nd/bird/06dba97af7cfb11f558eaeb31a75bd04cacf7201/ch05/5.1.3.hs
haskell
import Common_5_1 hiding (combine6, digits6, convert6) convert6 :: Int -> String convert6 = sign . combine6 . digits6 digits6 :: Int -> (Int, Int, Bool) digits6 n = ((abs n) `div` 1000, (abs n) `mod` 1000, n < 0) combine6 :: (Int, Int, Bool) -> (String, Bool) combine6 (0, 0, neg) = ("zero", False) combine6 ...
ed7451f242ba49f2ce7dfdd537f29f77003d0506521a0e2b1ccaec42a69181b4
herbelin/coq-hh
vernac.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/toplevel/vernac.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Parsing of vernacular. Specifies ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Lexer open Util...
50ebb7d6d5f28dbe3c4cd454c2eb4472691286c217d74f70d5f12e121935d47c
emilypi/smash
Microlens.hs
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # -- | -- Module : Data.Smash.Microlens Copyright : ( c ) 2020 - 2022 -- License : BSD-style -- Maintainer : < > --...
null
https://raw.githubusercontent.com/emilypi/smash/4febf26968dfa6c024c34f2e453edb9316bf1dd6/smash-microlens/src/Data/Smash/Microlens.hs
haskell
| Module : Data.Smash.Microlens License : BSD-style Stability : Experimental ------------------------------------------------------------------- -- | A 'Traversal' of the smashed pair, suitable for use with "Control.Lens". >>> over smashed show (Smash 1 2) "(1,2)" | A 'Traversal' of the smashed pa...
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # Copyright : ( c ) 2020 - 2022 Maintainer : < > Portability : FlexibleInstances , MPTC , Type Families , Undecideabl...
69070854e8ad52807e3f8af23ba3d97574ce968fe189b06e36c9904844f1a2eb
tsloughter/kuberl
kuberl_v1beta1_csi_node_list.erl
-module(kuberl_v1beta1_csi_node_list). -export([encode/1]). -export_type([kuberl_v1beta1_csi_node_list/0]). -type kuberl_v1beta1_csi_node_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v1_list_meta:kuberl_v1_list_meta() }. encode(#{ '...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_csi_node_list.erl
erlang
-module(kuberl_v1beta1_csi_node_list). -export([encode/1]). -export_type([kuberl_v1beta1_csi_node_list/0]). -type kuberl_v1beta1_csi_node_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v1_list_meta:kuberl_v1_list_meta() }. encode(#{ '...
df0b3eafb92cceae4c939706f1f496d5024ef296e0d4a18295c14985537ac80a
futurice/haskell-mega-repo
SOP.hs
# LANGUAGE FlexibleContexts # module Options.SOP ( sopCommandParser, FromOptions (..), module Options.Applicative, ) where import Prelude () import Futurice.Prelude import Data.Char (isUpper, toLower) import Data.List (intercalate) import Data.List.CommonPrefix (Commo...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/optparse-sop/src/Options/SOP.hs
haskell
----------------------------------------------------------------------------- Class ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Instances --------------------------------------------------------------------...
# LANGUAGE FlexibleContexts # module Options.SOP ( sopCommandParser, FromOptions (..), module Options.Applicative, ) where import Prelude () import Futurice.Prelude import Data.Char (isUpper, toLower) import Data.List (intercalate) import Data.List.CommonPrefix (Commo...
f95692660249ea5c56c97e7b5939c89956dda4a4d1903826e29baf17eab16198
arenadotio/sentry-ocaml
sdk.ml
open Core_kernel open Util type t = { name : string ; version : string ; integrations : String.Set.t } [@@deriving sexp_of] let make ~name ~version ?(integrations = String.Set.empty) () = { name; version; integrations } ;; let default = make ~name:Config.name ~version:Config.version () let to_payload { na...
null
https://raw.githubusercontent.com/arenadotio/sentry-ocaml/ed103dca16816fee058904f595ccdc09d9d3b79f/src/sdk.ml
ocaml
open Core_kernel open Util type t = { name : string ; version : string ; integrations : String.Set.t } [@@deriving sexp_of] let make ~name ~version ?(integrations = String.Set.empty) () = { name; version; integrations } ;; let default = make ~name:Config.name ~version:Config.version () let to_payload { na...
00e0cc5aabb890db575baa7729d97fe033705f071eca315c6bd96f56b808b17f
rpt/erlcql
erlcql_test.erl
-module(erlcql_test). -compile(export_all). -define(CQL_VERSION, <<"3.0.0">>). -define(OPTS, [{cql_version, ?CQL_VERSION}]). -define(CONSISTENCY, quorum). -spec create_keyspace() -> Keyspace :: bitstring(). create_keyspace() -> _ = random:seed(now()), N = integer_to_list(random:uniform(1000000000)), Keys...
null
https://raw.githubusercontent.com/rpt/erlcql/df9fe457b8728211ea6bd5cfbe4245139655bcac/test/erlcql_test.erl
erlang
bstr:hexencode/1 -----------------------------------------------------------
-module(erlcql_test). -compile(export_all). -define(CQL_VERSION, <<"3.0.0">>). -define(OPTS, [{cql_version, ?CQL_VERSION}]). -define(CONSISTENCY, quorum). -spec create_keyspace() -> Keyspace :: bitstring(). create_keyspace() -> _ = random:seed(now()), N = integer_to_list(random:uniform(1000000000)), Keys...
1a6ece05af032232607f5e568cde51e12bb01275a4dcce822f65c1c7280fc035
shuieryin/wechat_mud
npc_root_sup.erl
%%%------------------------------------------------------------------- @author shuieryin ( C ) 2015 , Shuieryin %%% @doc %%% This is npc root supervisor which starts up npc_statem_manager and npc_statem_sup . %%% %%% @end Created : 06 . Nov 2015 4:38 PM %%%------------------------------------------------------...
null
https://raw.githubusercontent.com/shuieryin/wechat_mud/b2a9251a9b208fee5cd8c4213759750b95c8b8aa/src/npc/npc_root_sup.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API Supervisor callbacks =================================================================== API functions ============================================================...
@author shuieryin ( C ) 2015 , Shuieryin This is npc root supervisor which starts up npc_statem_manager and npc_statem_sup . Created : 06 . Nov 2015 4:38 PM -module(npc_root_sup). -author("shuieryin"). -behaviour(supervisor). -export([ start_link/0 ]). -export([init/1]). -define(SERVER, ?MODULE). -sp...