_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
948c970fa5ab458cef6f27998bcd6db74dd2d24aeafbe3e25365f96a04cd2b94
jordanthayer/ocaml-search
uniform_tree_main.ml
* The main program for running on uniform trees . @author eaburns @since 2010 - 08 - 02 @author eaburns @since 2010-08-02 *) let run_alg ?(lim=[Limit.Never]) alg prob = * [ run_alg ? lim alg prob ] actually runs the algorithm and builds the output datafile . the output datafile. *...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/synthetic_graph/uniform_tree_main.ml
ocaml
* [get_alg name] gets the algorithm's search function based on its name. * looks at command line. returns alg_func (which is world -> node option * int * int) and list of string pairs for logging parameters.
* The main program for running on uniform trees . @author eaburns @since 2010 - 08 - 02 @author eaburns @since 2010-08-02 *) let run_alg ?(lim=[Limit.Never]) alg prob = * [ run_alg ? lim alg prob ] actually runs the algorithm and builds the output datafile . the output datafile. *...
35a4fc62778b66a6b5e4cb7eb53fcb3e9e5593fe650a9e3cf3293ac4add2ce25
oscoin/oscoin
Hash.hs
module Test.Oscoin.Crypto.Hash ( tests ) where import Oscoin.Prelude import qualified Oscoin.Crypto.Hash as Crypto import Oscoin.Test.Crypto import Oscoin.Test.Util (Condensed(..)) import Test.QuickCheck.Extended import Test.QuickCheck.Instances () import ...
null
https://raw.githubusercontent.com/oscoin/oscoin/2eb5652c9999dd0f30c70b3ba6b638156c74cdb1/test/Test/Oscoin/Crypto/Hash.hs
haskell
module Test.Oscoin.Crypto.Hash ( tests ) where import Oscoin.Prelude import qualified Oscoin.Crypto.Hash as Crypto import Oscoin.Test.Crypto import Oscoin.Test.Util (Condensed(..)) import Test.QuickCheck.Extended import Test.QuickCheck.Instances () import ...
5d28b1f279292e940d70e56f55f1a0ac3cff9dcbe9fc681956f175274591226c
mewa/clojure-k8s
core_test.clj
(ns k8s.core-test (:require [clojure.test :refer :all] [k8s.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/mewa/clojure-k8s/a7e8d82f0e0bc47e5678c72d7d9b8216080ccffc/test/k8s/core_test.clj
clojure
(ns k8s.core-test (:require [clojure.test :refer :all] [k8s.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
efff515b0b7ecb123d5a1de83669c9232a27664b0128598d113f3c4cc020c90e
wadehennessey/wcl
name-mangle.lisp
( C ) Copyright 1990 - 2014 by . All rights reserved . (defun symbol-package-abbrev (sym) (package-abbrev (symbol-package sym) 0)) (defun proc-package-abbrev (sym) (package-abbrev (symbol-package sym) 1)) (defun macro-package-abbrev (sym) (package-abbrev (symbol-package sym) 2)) (defun legal-c-var-char? ...
null
https://raw.githubusercontent.com/wadehennessey/wcl/841316ffe06743d4c14b4ed70819bdb39158df6a/src/compiler/name-mangle.lisp
lisp
This number depends the "_~X" above
( C ) Copyright 1990 - 2014 by . All rights reserved . (defun symbol-package-abbrev (sym) (package-abbrev (symbol-package sym) 0)) (defun proc-package-abbrev (sym) (package-abbrev (symbol-package sym) 1)) (defun macro-package-abbrev (sym) (package-abbrev (symbol-package sym) 2)) (defun legal-c-var-char? ...
4de34029439a21beda00fd65de79e098332b6daa707ace03eb6271c96765858f
albertoruiz/easyVision
runmode3.hs
-- non threaded GUI, discarding result import Vision.GUI import Image.Processing main = do prepare runNT_ camera (observe "image" rgb >>> arr (sumPixels.grayscale)) putStrLn "bye!"
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/projects/tour/runmode3.hs
haskell
non threaded GUI, discarding result
import Vision.GUI import Image.Processing main = do prepare runNT_ camera (observe "image" rgb >>> arr (sumPixels.grayscale)) putStrLn "bye!"
79adc6d3e3730d0754b3efb844a1843a8db61c6fe3f92b788fdc69223182409b
pveber/bistro
ChIPQC.ml
open Core open Bistro open Bistro.Shell_dsl open Formats type 'a sample = { id : string ; tissue : string ; factor : string ; replicate : string ; bam : [`indexed_bam] directory ; peaks : (#bed3 as 'a) file ; } let img = [ docker_image ~account:"pveber" ~name:"bioconductor" ~tag:"3.8" () ] let sample_she...
null
https://raw.githubusercontent.com/pveber/bistro/d363bd2d8257babbcb6db15bd83fd6465df7c268/lib/bio/ChIPQC.ml
ocaml
open Core open Bistro open Bistro.Shell_dsl open Formats type 'a sample = { id : string ; tissue : string ; factor : string ; replicate : string ; bam : [`indexed_bam] directory ; peaks : (#bed3 as 'a) file ; } let img = [ docker_image ~account:"pveber" ~name:"bioconductor" ~tag:"3.8" () ] let sample_she...
2439d0ab3f03af3d30d09ba24ba94dc0a1b69c6e0351d8031365e699185cf914
nuvla/api-server
loader.clj
(ns sixsq.nuvla.db.duratom.loader (:refer-clojure :exclude [load]) (:require [duratom.core :as duratom] [environ.core :as env] [sixsq.nuvla.db.atom.binding :as atom])) (defn load "Creates an atom-based database that will be persisted to the local file system. The path used to store the data can b...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/db/duratom/loader.clj
clojure
(ns sixsq.nuvla.db.duratom.loader (:refer-clojure :exclude [load]) (:require [duratom.core :as duratom] [environ.core :as env] [sixsq.nuvla.db.atom.binding :as atom])) (defn load "Creates an atom-based database that will be persisted to the local file system. The path used to store the data can b...
26e1788ea8aa2a404f1d1b6a7e221706922e39225ce86298a16ce579261aa301
mvc-works/stack-workflow
render.cljs
(ns app.render (:require [respo.render.html :refer [make-string]] [shell-page.core :refer [make-page spit slurp]] [app.comp.container :refer [comp-container]] [app.schema :as schema])) (def base-info {:title "Stack Workflow", :icon "-works.org/mvc.png", :ssr nil, :inne...
null
https://raw.githubusercontent.com/mvc-works/stack-workflow/ae932f0d2d623fe5bbf6220b120f24d73358d34d/src/app/render.cljs
clojure
(ns app.render (:require [respo.render.html :refer [make-string]] [shell-page.core :refer [make-page spit slurp]] [app.comp.container :refer [comp-container]] [app.schema :as schema])) (def base-info {:title "Stack Workflow", :icon "-works.org/mvc.png", :ssr nil, :inne...
5e5de03ea158f375d233e77008edf18d3e174f17cb0140f8de8e22b16468e003
Kappa-Dev/KappaTools
common_static.ml
* * common_static_type.mli * openkappa * , project Antique , INRIA Paris * * Creation : 2016 , the 18th of Feburary * Last modification : Time - stamp : < Aug 21 2018 > * * Compute the relations between sites in the BDU data structures * * Copyright 2010,2011,2012,2013,2014...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/reachability_analysis/common_static.ml
ocaml
************************************************************************* MODIFICATION ************************************************************************* use in parallel domain ************************************************************************* **************************************************************...
* * common_static_type.mli * openkappa * , project Antique , INRIA Paris * * Creation : 2016 , the 18th of Feburary * Last modification : Time - stamp : < Aug 21 2018 > * * Compute the relations between sites in the BDU data structures * * Copyright 2010,2011,2012,2013,2014...
e04a53a739639be40c0680466fee6f5eab9ab94d9974a58387a162f12cb2e986
rbkmoney/machinegun
machinegun_hay_utils.erl
%%% Copyright 2020 RBKmoney %%% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You may obtain a copy of the License at %%% %%% -2.0 %%% %%% Unless required by applicable law or agreed to in writing, software distri...
null
https://raw.githubusercontent.com/rbkmoney/machinegun/627130675ad6e7ee2127126740fe369542905b4b/src/machinegun_hay_utils.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. See the License for the specific language governing per...
Copyright 2020 RBKmoney Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(machinegun_hay_utils). -export([push/1]). -export([create_inc/1]). -export([create_inc/2]). -export([create_gauge/2]). -export([create_delay_...
f79bce2e7b8b1961cbc2fd8a5147692363222c50d9b44f5e981406f8a4b7a7a7
metabase/metabase
sql.clj
(ns metabase.driver.sql "Shared code for all drivers that use SQL under the hood." (:require [metabase.driver :as driver] [metabase.driver.common.parameters.parse :as params.parse] [metabase.driver.common.parameters.values :as params.values] [metabase.driver.sql.parameters.substitute :as sql.params.subs...
null
https://raw.githubusercontent.com/metabase/metabase/18d190cf05df4233aa6d14d6580faa68293ba980/src/metabase/driver/sql.clj
clojure
this is so `cljr-clean-ns` and the linter don't remove the `:require` `:sql` drivers almost certainly don't need to override this method, and instead can implement `unprepare/unprepare-value` for specific classes, or, in extereme cases, `unprepare/unprepare` itself. +------------------------------------------------...
(ns metabase.driver.sql "Shared code for all drivers that use SQL under the hood." (:require [metabase.driver :as driver] [metabase.driver.common.parameters.parse :as params.parse] [metabase.driver.common.parameters.values :as params.values] [metabase.driver.sql.parameters.substitute :as sql.params.subs...
492c6e4e8ad924a196ad1c173e959eae1427bf6af6b1f4fe09a91cae978051a6
danieljharvey/mimsa
Types.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # module Language.Mimsa.Backend.Types ( BackendM, Backend (..), ) where import qualified Data.Aeson as JSON import Data.OpenApi import GHC.Generics import Language.Mimsa.Backend.BackendError type BackendM ann = Either (B...
null
https://raw.githubusercontent.com/danieljharvey/mimsa/8154c07fcd394739d6d9543dd029d06470f738c2/backends/src/Language/Mimsa/Backend/Types.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # module Language.Mimsa.Backend.Types ( BackendM, Backend (..), ) where import qualified Data.Aeson as JSON import Data.OpenApi import GHC.Generics import Language.Mimsa.Backend.BackendError type BackendM ann = Either (BackendError ann) data Backend =...
c94b31166932a0607b6f6d60f3f4e99f6f21b6ef3b6fb6ab68d8e0d6ee84300e
vehicle-lang/vehicle
Class.hs
module Vehicle.Prelude.Logging.Class ( Severity, LoggingLevel (..), Message (..), MonadLogger (..), defaultLoggingLevel, logWarning, logDebug, showMessages, setTextColour, setBackgroundColour, allLoggingLevels, loggingLevelAtLeast, loggingLevelHelp, logCompilerPass,...
null
https://raw.githubusercontent.com/vehicle-lang/vehicle/37cdaca9ddc0cf6a459ec07d526c21e6efa39f50/vehicle/src/Vehicle/Prelude/Logging/Class.hs
haskell
------------------------------------------------------------------------------ Logging settings ------------------------------------------------------------------------------ Logging levels ------------------------------------------------------------------------------ Messages ---------------------------------------...
module Vehicle.Prelude.Logging.Class ( Severity, LoggingLevel (..), Message (..), MonadLogger (..), defaultLoggingLevel, logWarning, logDebug, showMessages, setTextColour, setBackgroundColour, allLoggingLevels, loggingLevelAtLeast, loggingLevelHelp, logCompilerPass,...
35e212c89e06266fa35c1cdaf411f0ed8f6d547a3576702588b37a7ff5aedee7
kitlang/kit
Parser.hs
module Kit.Parser( module Kit.Parser.Base, module Kit.Parser.Lexer, module Kit.Parser.Parser, module Kit.Ast.Span, module Kit.Parser.Token, parseString, parseFile ) where import qualified Data.ByteString.Lazy.Char8 as BL import Kit.Ast import Kit.Parser.Base import Kit.Parser.Lexer import Kit.Parser.Pars...
null
https://raw.githubusercontent.com/kitlang/kit/2769a7a8e51fe4466c50439d1a1ebdad0fb79710/src/Kit/Parser.hs
haskell
module Kit.Parser( module Kit.Parser.Base, module Kit.Parser.Lexer, module Kit.Parser.Parser, module Kit.Ast.Span, module Kit.Parser.Token, parseString, parseFile ) where import qualified Data.ByteString.Lazy.Char8 as BL import Kit.Ast import Kit.Parser.Base import Kit.Parser.Lexer import Kit.Parser.Pars...
045969cab8782eb26284804c79e2bf099a378deae0a51275933e5c8772727ac3
epicallan/hreq
Internal.hs
-- | Specification for an API endpoint as a composition of Request and Response components -- at the Type level. module Hreq.Core.API.Internal where import Data.Kind (Type) import Data.Singletons import GHC.TypeLits import Hreq.Core.API.Request import Hreq.Core.API.Response -- * API type data Api a = Req [ ReqCo...
null
https://raw.githubusercontent.com/epicallan/hreq/f12fcb9b9dd1ad903c6b36a8cf850edb213d4792/hreq-core/src/Hreq/Core/API/Internal.hs
haskell
| Specification for an API endpoint as a composition of Request and Response components at the Type level. * API type * API GADT as a singleton. * SingI instance for API types * API Type combinators Used in concatenation of API types. Examples $setup >>> import Hreq.Core.API >>> import Data.Aeson >>> data...
module Hreq.Core.API.Internal where import Data.Kind (Type) import Data.Singletons import GHC.TypeLits import Hreq.Core.API.Request import Hreq.Core.API.Response data Api a = Req [ ReqContent a] | Res [ ResContent a ] data SApi (a :: Api Type) = forall b . a ~ 'Req b => SReq (Sing b) | forall b . a ~ 'Res...
c5437ad596494ae90378f0c285253ac57515b1e9e754c94a3a6e55ca4dbe114e
stuartsierra/lazytest
java_interop.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/stuartsierra/lazytest/3b0f419ce3d6f259d2ab3cfde475fa491a4db23e/modules/clojure-language-tests/test/clojure/test_clojure/java_interop.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns clojure.test-clojure.java-interop (:use lazytest.deftest)) (deftest test-dot (are [x] (= x "FRED") (.toUpperCase "fred") (. "fred" toUpperCase) (. "fred" (toUpperCase)) ) (are [x] (= x true) (.startsWith "abcde" "ab") (. "a...
7d051e4a132d997606e53aa22c31a1f28e6d991ed66d8589715db7eb63deca8d
mpenet/auspex
impl.clj
(ns qbits.auspex.impl (:require [qbits.auspex.function :as f] [qbits.auspex.protocols :as p]) (:import (java.util.concurrent CompletableFuture Executor CompletionException ExecutionException))) (set! *war...
null
https://raw.githubusercontent.com/mpenet/auspex/62aa94f58c221f13550e9a38f1a98e1827043a07/src/qbits/auspex/impl.clj
clojure
(ns qbits.auspex.impl (:require [qbits.auspex.function :as f] [qbits.auspex.protocols :as p]) (:import (java.util.concurrent CompletableFuture Executor CompletionException ExecutionException))) (set! *war...
21d19738ed41ceb98ba747df7ab7eb85a7e8ca0c6a385c804f40185cb03e9dc4
well-typed-lightbulbs/ocaml-esp32
tls.ml
(* TEST * hassysthreads include systhreads ** bytecode ** native *) let private_data = (Hashtbl.create 17 : (Thread.t, string) Hashtbl.t) let private_data_lock = Mutex.create() let output_lock = Mutex.create() let set_private_data data = Mutex.lock private_data_lock; Hashtbl.add private_data (Thread.self()) dat...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/lib-threads/tls.ml
ocaml
TEST * hassysthreads include systhreads ** bytecode ** native
let private_data = (Hashtbl.create 17 : (Thread.t, string) Hashtbl.t) let private_data_lock = Mutex.create() let output_lock = Mutex.create() let set_private_data data = Mutex.lock private_data_lock; Hashtbl.add private_data (Thread.self()) data; Mutex.unlock private_data_lock let get_private_data () = Hasht...
9226d4071a6a09b0d7040ca26a1979748d533478a9b5def5244f2708b5c74e9d
mxthevs/Caml_bot
file_utils.ml
let read_file file_path = let ch = open_in file_path in let n = in_channel_length ch in let s = really_input_string ch n in close_in ch; s
null
https://raw.githubusercontent.com/mxthevs/Caml_bot/11ade6c037dd6a2646cd7d01a0706efeac940eeb/src/file_utils.ml
ocaml
let read_file file_path = let ch = open_in file_path in let n = in_channel_length ch in let s = really_input_string ch n in close_in ch; s
f2418864a9ebc450888baf3799859b67dcc1f156ed2dfd79eb57f9d5b3d2a38c
iburzynski/EMURGO_73
Game.hs
module Game where import Tick import Data.List (transpose) import Text.Read (readMaybe) import Data.Char (toUpper) type Size = Int type Row = [Tick] type Squares = [Row] type ColIdx = Int type Position = (Int, Int) data Board = Board { getSize :: Int , getSquares :: Squares ...
null
https://raw.githubusercontent.com/iburzynski/EMURGO_73/8bf54a47fd311cedb8b710eb21e0223ff2cf204d/IO/TicTacToe/Game.hs
haskell
getTick (i, j) xs = xs !! i !! j check if an index is within the board size check if the square at the position is empty return a valid position if all validation predicates are satisfied return a new board with updated squares recursive helper function to generate new list of squares if position is in current r...
module Game where import Tick import Data.List (transpose) import Text.Read (readMaybe) import Data.Char (toUpper) type Size = Int type Row = [Tick] type Squares = [Row] type ColIdx = Int type Position = (Int, Int) data Board = Board { getSize :: Int , getSquares :: Squares ...
12de944af19120106197b5a3d13a858391ef80123d62a3a162a8a50ee0775b4b
ghcjs/jsaddle-dom
SVGFEGaussianBlurElement.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGFEGaussianBlurElement (setStdDeviation, pattern SVG_EDGEMODE_UNKNOWN, pattern SVG_EDGEMODE_DUPLICATE, pa...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SVGFEGaussianBlurElement.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/SVGFEGaussianBlurElement.setStdDeviation Mozilla SVGFEGaussianBlurElement.setStdDeviation documentation> | <-US/docs/Web/API/SVGFEGaussianBlurElement.edgeMode Mozilla SVGFEGaussianBlurElement.edgeMode doc...
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGFEGaussianBlurElement (setStdDeviation, pattern SVG_EDGEMODE_UNKNOWN, pattern SVG_EDGEMODE_DUPLICATE, pattern SVG_EDGEMODE_WRAP, pattern SVG_EDGEMODE_NONE, getIn1, getStdDeviationX, getSt...
94e8121a33faf39c961c62b43899636dc94c98c4428edeb0aab5f21db7738deb
alexandergunnarson/quantum
bits.cljc
(ns ^{:doc "Useful bit/binary operations." :attribution "alexandergunnarson"} quantum.core.data.bits (:refer-clojure :exclude [unsigned-bit-shift-right bit-shift-left bit-shift-right bit-or bit-and bit-xor bit-not]) (:require [clojure.core :as core ] [quantum.core.macros :as macros ...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/core/data/bits.cljc
clojure
Because "cannot resolve symbol 'import'" bit-clear bit-and-not bit-test bit-flip bit-set TODO ExceptionInInitializerError somewhere over here... Lisp nil punning & | && || tried to do `& but, "No method in multimethod 'parse' for dispatch value: &" ===== SHIFTS ===== ;; ===== ROTATIONS ===== ;; ===== BU...
(ns ^{:doc "Useful bit/binary operations." :attribution "alexandergunnarson"} quantum.core.data.bits (:refer-clojure :exclude [unsigned-bit-shift-right bit-shift-left bit-shift-right bit-or bit-and bit-xor bit-not]) (:require [clojure.core :as core ] [quantum.core.macros :as macros ...
ecf80a15e8c18497bf54ca645e12712504ba598b9ba4c4fff53637b0ceee0e56
haskell-game/sdl2
Lesson03.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Lazyfoo.Lesson03 (main) where import Control.Monad import Foreign.C.Types import SDL.Vect import qualified SDL import Paths_sdl2 (getDataFileName) screenWidth, screenHeight :: CInt (screenWidth, screenHeight) = (640, 480) main :: IO () main = do S...
null
https://raw.githubusercontent.com/haskell-game/sdl2/569f4160b74ec1e17ad9f28368fbfa202840201f/examples/lazyfoo/Lesson03.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module Lazyfoo.Lesson03 (main) where import Control.Monad import Foreign.C.Types import SDL.Vect import qualified SDL import Paths_sdl2 (getDataFileName) screenWidth, screenHeight :: CInt (screenWidth, screenHeight) = (640, 480) main :: IO () main = do SDL.initialize [SDL.InitVideo] win...
f792326c3a263b08948d5fd34870622983fd884e164727a6ffbf75948411bc9a
osteele/cl-spec
templates.lisp
Copyright 2008 by . Released under the MIT License . (in-package #:cl-spec) ;; A quick and dirty template facilityq that does just enough to ;; enable HTML output from cl-spec. A proper implementation would ;; compile to a function, as well as use a proper parser. (defun copy-template (source-pathname target-...
null
https://raw.githubusercontent.com/osteele/cl-spec/d83b8a89d55771691e439e2fb910ce202dbd6abe/templates.lisp
lisp
A quick and dirty template facilityq that does just enough to enable HTML output from cl-spec. A proper implementation would compile to a function, as well as use a proper parser. TODO: this be somewhat more efficient by only searching lower positions than any match so far; and much more efficient by compiling t...
Copyright 2008 by . Released under the MIT License . (in-package #:cl-spec) (defun copy-template (source-pathname target-pathname dictionary) "Copy the contents of SOURCE-PATHNAME to TARGET-PATHNAME, interpolating ${expr} constructs against the environment in DICTIONARY." (let* ((template (read-template so...
641fb90e24fb29681624e497c79488e4a068a5f855db7882bb06442dec8c5e3e
semilin/layoup
dvimcat.lisp
(MAKE-LAYOUT :NAME "dvimcat" :MATRIX (APPLY #'KEY-MATRIX '("wpdgf,.uoy" "rntsbjheai" "xvmczkl';q")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/dvimcat.lisp
lisp
(MAKE-LAYOUT :NAME "dvimcat" :MATRIX (APPLY #'KEY-MATRIX '("wpdgf,.uoy" "rntsbjheai" "xvmczkl';q")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
8967573e44dc195d323fb9f3d6cb2835c965fb43cbac49cb8e895bca4c544c1f
footprintanalytics/footprint-web
regex_test.clj
(ns metabase.util.regex-test (:require [clojure.test :refer :all] [metabase.util.regex :as u.regex])) (deftest ^:parallel rx-test (let [regex (u.regex/rx (and "^" (or "Cam" "can") (opt #"\s+") #"\d+"))] (is (instance? java.util.regex.Pattern regex)) (is (= (str #"^(?:(?:Cam)|(?:can))(?:\s+)?\d+...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/test/metabase/util/regex_test.clj
clojure
(ns metabase.util.regex-test (:require [clojure.test :refer :all] [metabase.util.regex :as u.regex])) (deftest ^:parallel rx-test (let [regex (u.regex/rx (and "^" (or "Cam" "can") (opt #"\s+") #"\d+"))] (is (instance? java.util.regex.Pattern regex)) (is (= (str #"^(?:(?:Cam)|(?:can))(?:\s+)?\d+...
44e6aefacbea494f1a1c86afff2196de2ebb8375c7e9627c0022417da561e5d2
metaocaml/ber-metaocaml
t110-modint-1.ml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; if 20 mod 3 <> 2 then raise Not_found;; * 0 CONSTINT 42 ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-ocaml/t110-modint-1.ml
ocaml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; if 20 mod 3 <> 2 then raise Not_found;; * 0 CONSTINT 42 ...
2f30e3820d8f8d02782eee0a216ef6ea4a174850fd421d652c6de624091c453f
erlangonrails/devdb
yaws_generated.erl
%%%---------------------------------------------------------------------- %%% File : yaws_generated.template Author : Klacke < > %%% Purpose : Created : 10 Jun 2002 by Klacke < > %%%---------------------------------------------------------------------- %% generated code from some environment variables -mo...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/scalaris/contrib/yaws/src/yaws_generated.erl
erlang
---------------------------------------------------------------------- File : yaws_generated.template Purpose : ---------------------------------------------------------------------- generated code from some environment variables
Author : Klacke < > Created : 10 Jun 2002 by Klacke < > -module(yaws_generated). -author(''). -compile(export_all). version() -> "1.88". vardir() -> "/usr/local/var". etcdir() -> "/usr/local/etc". is_local_install() -> true.
748ea4c9ca24f84154ea26ebe5da5ba651f0ca9ae4fd937c76bd4cf628067136
onedata/op-worker
atm_store_content_browse_options.erl
%%%------------------------------------------------------------------- @author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Record expressing "polymorphic" st...
null
https://raw.githubusercontent.com/onedata/op-worker/2db1516da782d8acc6bdd2418a3791819ff19581/src/modules/automation/store/atm_store_content_browse_options.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Record expressing "polymorphic" store content browse options used in automation machinery. @end ------------------------------------------------------------------- API ...
@author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(atm_store_content_browse_options). -author("Bartosz Walkowicz"). -include("modules/automation/atm_execution.hrl"). -include_lib("ctool/include/errors.hrl"). -export([sanitize/2]). -type ...
ddf99321ba3da7ded1bc150bea534fd53cba9f0cdc239a5d38488cd11f514b09
ml4tp/tcoq
hints.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/tactics/hints.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open CError...
ba68bb1b53584ed1332ef6cc71dfa7e8783c86e318a35e5d833fe06027f010c2
mtolly/onyxite-customs
Util.hs
# LANGUAGE CPP # # LANGUAGE LambdaCase # module Onyx.GUI.Util (askFolder) where #ifdef WINDOWS import Foreign import Foreign.C #else import Control.Monad (forM_) import qualified Data.Text as T import qualified Graphics.UI.FLTK.LowLevel.FL...
null
https://raw.githubusercontent.com/mtolly/onyxite-customs/0c8acd6248fe92ea0d994b18b551973816adf85b/haskell/packages/onyx-exe-toolkit/src/Onyx/GUI/Util.hs
haskell
# LANGUAGE CPP # # LANGUAGE LambdaCase # module Onyx.GUI.Util (askFolder) where #ifdef WINDOWS import Foreign import Foreign.C #else import Control.Monad (forM_) import qualified Data.Text as T import qualified Graphics.UI.FLTK.LowLevel.FL...
ea4019d03bbaf6bec60eeaf06466cd251342369a0584afc75023a0234e4b7acf
puppetlabs/trapperkeeper
internal.clj
(ns puppetlabs.trapperkeeper.internal (:import (clojure.lang ExceptionInfo IFn IDeref) (java.lang ArithmeticException NumberFormatException)) (:require [clojure.tools.logging :as log] [beckon] [plumbing.graph :as graph] [slingshot.slingshot :refer [throw+]] ...
null
https://raw.githubusercontent.com/puppetlabs/trapperkeeper/87802764a33be83d8ed7d02e60ed4ff791bdfc66/src/puppetlabs/trapperkeeper/internal.clj
clojure
Private This is (eww) a global variable that holds a reference to all of the running to allow you to do useful things, and also may be used for other things (such as signal handling). throws an ::invalid-service-graph can be updated by the lifecycle fn call the lifecycle function on the service, and keep a r...
(ns puppetlabs.trapperkeeper.internal (:import (clojure.lang ExceptionInfo IFn IDeref) (java.lang ArithmeticException NumberFormatException)) (:require [clojure.tools.logging :as log] [beckon] [plumbing.graph :as graph] [slingshot.slingshot :refer [throw+]] ...
204bc37f2a3acb7318b7a35b2ddf0ca735dbc843fd902377a52694776294a619
eyedouble/couchdb
edoc_markdown.erl
%%%------------------------------------------------------------------- @author ( C ) 2009 , %%% @doc, %%% %%% @end Created : 10 Sep 2009 by %%%------------------------------------------------------------------- -module(edoc_markdown). -export([conv/1, conv_utf8/1, conv_file/2]). -im...
null
https://raw.githubusercontent.com/eyedouble/couchdb/39830e536e803dfb492bfdb8b3644839cdd7e356/doc/_priv/edoc_markdown.erl
erlang
------------------------------------------------------------------- @doc, @end ------------------------------------------------------------------- the lexer first lexes the input * it chops the lexed strings into lines which it represents as a list of lists * it then types the lines into the following: * norm...
@author ( C ) 2009 , Created : 10 Sep 2009 by -module(edoc_markdown). -export([conv/1, conv_utf8/1, conv_file/2]). -import(lists, [flatten/1, reverse/1]). -include_lib("eunit/include/eunit.hrl"). -define(SPACE, 32). -define(TAB, 9). -define(LF, 10). -define(CR, 13). -defi...
c09d1fc31814fc31eb7dad4e0b4d65f09eda3227a25c2c21c1b65f3f54823343
mchakravarty/hoas-conv
Convert.hs
# LANGUAGE GADTs , ScopedTypeVariables # module Convert (convert, convertSharing) where -- standard libraries import Data.List import Data.Typeable import Data.Maybe -- friends import qualified DeBruijn import qualified HOAS import Sharing -- A layout of an environment an entry for each entry of the environmen...
null
https://raw.githubusercontent.com/mchakravarty/hoas-conv/8f98d562c9ca2a7c08b3a22d471582d5b42ffbe8/Convert.hs
haskell
standard libraries friends A layout of an environment an entry for each entry of the environment. Each entry in the layout holds the deBruijn index that refers to the corresponding entry in the environment. Yield the number of entries in an environment layout Add an entry to a layout, incrementing all indices ...
# LANGUAGE GADTs , ScopedTypeVariables # module Convert (convert, convertSharing) where import Data.List import Data.Typeable import Data.Maybe import qualified DeBruijn import qualified HOAS import Sharing data Layout env env' where EmptyLayout :: Layout env () PushLayout :: Typeable t => Layo...
74dd189ec73f3f85d7e6e6a164c3196bf01011e3cbef01708186df1dfaf60e32
potapenko/playphraseme-site
model.cljs
(ns playphraseme.views.modal.model (:require [re-frame.core :refer [dispatch reg-event-db reg-sub]] [playphraseme.common.localstorage :as localstorage]) (:require-macros [re-frame-macros.core :as mcr]))
null
https://raw.githubusercontent.com/potapenko/playphraseme-site/d50a62a6bc8f463e08365dca96b3a6e5dde4fb12/src/cljs/playphraseme/views/modal/model.cljs
clojure
(ns playphraseme.views.modal.model (:require [re-frame.core :refer [dispatch reg-event-db reg-sub]] [playphraseme.common.localstorage :as localstorage]) (:require-macros [re-frame-macros.core :as mcr]))
b59e79256863f68da437e9f270abc44d441707b760bee37ed8cd74ae9f9b5d95
conal/Fran
Transform3B.hs
-- Lifted 3D transformations -- Last modified We d Nov 19 22:45:53 1997 module Transform3B( Transform3B ,(**%), translate3, scale3 ,identity3, compose3 , ,rotate3, uscale3 , , Scaleable3B , Transformable3B ) where import qualified Transform3 as T import Vector3B , Translateable3...
null
https://raw.githubusercontent.com/conal/Fran/a113693cfab23f9ac9704cfee9c610c5edc13d9d/src/Transform3B.hs
haskell
Lifted 3D transformations transform apply and compose - instance Scaleable3 a => Scaleable3B (Behavior a) where
Last modified We d Nov 19 22:45:53 1997 module Transform3B( Transform3B ,(**%), translate3, scale3 ,identity3, compose3 , ,rotate3, uscale3 , , Scaleable3B , Transformable3B ) where import qualified Transform3 as T import Vector3B , Translateable3 , Scaleable3 import Behavior impo...
0226302d8b0931eaed389da2875989816e0cdb216b3e8ea4980224eb0068e7a8
zeniuseducation/poly-euler
prob82.clj
(ns euler.prob82) (load-file "math.clj") (defn adhoc82 [fname] (let [sf (slurp fname) tmp (str "[" sf "]")] (do (spit "brako.txt" tmp) (->> (read-string tmp) (partition 80) (map #(cons 9999999 %)) (cons (repeat 81 9999999)) (reverse) ...
null
https://raw.githubusercontent.com/zeniuseducation/poly-euler/734fdcf1ddd096a8730600b684bf7398d071d499/clojure/prob82.clj
clojure
(ns euler.prob82) (load-file "math.clj") (defn adhoc82 [fname] (let [sf (slurp fname) tmp (str "[" sf "]")] (do (spit "brako.txt" tmp) (->> (read-string tmp) (partition 80) (map #(cons 9999999 %)) (cons (repeat 81 9999999)) (reverse) ...
c4c1d4226e0de11c6a8f16a46f52e77c00713d11e2c9a6efe486e02300b91ed4
slyrus/mcclim-old
keygen.lisp
;;; -*- Mode: Lisp; -*- ( c ) 2006 ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . ;;; ;;; Th...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/Backends/gtkairo/keygen.lisp
lisp
-*- Mode: Lisp; -*- This library is free software; you can redistribute it and/or either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU License along with this libra...
( c ) 2006 ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy of the GNU Library General Public Free Software Foundation , Inc. , 59 Templ...
ede4844591d11d9a3ba8cb8ab7dfcd7e7e0ed8349e34557d3cf796277e0fa421
Drup/dowsing
ArrowTerm.mli
(** Term and Problem for arrows *) type t = { args: ACTerm.t; ret: Type.t; } type problem = { left: t; right: t; } val make : Pure.t array -> Type.t -> t val make_problem : t -> t -> problem val pp_problem : problem Fmt.t [@@ocaml.toplevel_printer]
null
https://raw.githubusercontent.com/Drup/dowsing/d0de10343aa27e03169523761b1c354fe6087ded/lib/unification/ArrowTerm.mli
ocaml
* Term and Problem for arrows
type t = { args: ACTerm.t; ret: Type.t; } type problem = { left: t; right: t; } val make : Pure.t array -> Type.t -> t val make_problem : t -> t -> problem val pp_problem : problem Fmt.t [@@ocaml.toplevel_printer]
4b95a68449f0aa17afae61b38ec2d144227ecde9554d9411ea751f58f1832ed2
EligiusSantori/L2Apf
change_move_type.scm
(module system racket/base (require "../../packet.scm") (provide game-client-packet/change-move-type) (define (game-client-packet/change-move-type run?) (let ((s (open-output-bytes))) (begin (write-byte #x1c s) (write-int32 (if run? 1 0) #f s) (get-output-bytes s) ) ) ) )
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/game/client/change_move_type.scm
scheme
(module system racket/base (require "../../packet.scm") (provide game-client-packet/change-move-type) (define (game-client-packet/change-move-type run?) (let ((s (open-output-bytes))) (begin (write-byte #x1c s) (write-int32 (if run? 1 0) #f s) (get-output-bytes s) ) ) ) )
4b17419d8c55dcf1b635594e94d34731c83d17107bbd09470bc203498013c8f5
Carnap/Carnap
Allen.hs
# LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses # module Carnap.Languages.PurePropositional.Logic.Allen ( parseAllenSL, parseAllenSLPlus, AllenSLPlus(..), allenSLPlusCalc, AllenSL(..), allenSLCalc) where import Data.Map as M (lookup, Map) import Text.Parsec import Carnap.Core.Data.Typ...
null
https://raw.githubusercontent.com/Carnap/Carnap/99546e377008247c5a1e8de1e294aac8e22584d7/Carnap/src/Carnap/Languages/PurePropositional/Logic/Allen.hs
haskell
skipping derived rules for now various replacement rules with their reverse directions included
# LANGUAGE FlexibleContexts , FlexibleInstances , MultiParamTypeClasses # module Carnap.Languages.PurePropositional.Logic.Allen ( parseAllenSL, parseAllenSLPlus, AllenSLPlus(..), allenSLPlusCalc, AllenSL(..), allenSLCalc) where import Data.Map as M (lookup, Map) import Text.Parsec import Carnap.Core.Data.Typ...
1b9fc489f6dd112e51448604b860b0216a872438a93fdd2cb205104a27771e4b
benoitc/hackney
hackney_cookie.erl
%%% -*- erlang -*- %%% This file is part of released under the Apache 2 license . %%% See the NOTICE for more information. %%% Copyright 2007 Mochi Media , Inc. Copyright 2011 < > Copyright 2013 , < > Copyright 2013 - 2015 , %%% -module(hackney_cookie). -export([setcookie/3]). -export([parse_cookie/...
null
https://raw.githubusercontent.com/benoitc/hackney/6e79b2bb11a77389d3ba9ff3a0828a45796fe7a8/src/hackney_cookie.erl
erlang
-*- erlang -*- See the NOTICE for more information. @doc Convert a cookie name, value and options to its iodata form.
This file is part of released under the Apache 2 license . Copyright 2007 Mochi Media , Inc. Copyright 2011 < > Copyright 2013 , < > Copyright 2013 - 2015 , -module(hackney_cookie). -export([setcookie/3]). -export([parse_cookie/1]). -type cookie_option() :: {max_age, non_neg_integer()} | {domain, ...
2a7032fc2954fe7aeedbba749b17e05220ad3903f7ce85270d83e56eaaddc67d
j3pic/lisp-binary
fake-asdf.lisp
(defun determine-load-order (components &optional load-order) "Given the COMPONENTS (which is just the :components section of the ASDF def above), determine the order in which to load things so that dependencies are always satisfied." (cond ((null components) (reverse load-order)) (t (destructuring-bind (&key ...
null
https://raw.githubusercontent.com/j3pic/lisp-binary/02ce88f285ef4c8e8b3c2be3385217490fab9628/test/fake-asdf.lisp
lisp
(defun determine-load-order (components &optional load-order) "Given the COMPONENTS (which is just the :components section of the ASDF def above), determine the order in which to load things so that dependencies are always satisfied." (cond ((null components) (reverse load-order)) (t (destructuring-bind (&key ...
2dbaff2e1f468dbdb5f87d061019879b7c4f5331f6fe6efecd84a66d478eaffd
facebook/infer
Hack.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/b84a5f8449d21154a073ad5b3866351411c43e46/infer/src/integration/Hack.ml
ocaml
* Utility functions to work with hackc output. * Start of a unit with a given filename * End of a unit with a given filename * Expected number of units in the output * Regular line of output * Utility functions to consume (potentially) multi-file hackc output. * Returns the expected number of units and a lazy seq...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
305286bfa8992e8a2ab2050f7e82ba96e151094a039576c394c429759d4d2f3d
metaocaml/ber-metaocaml
envaux.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/typing/envaux.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format val env_from_summary : Env.summary -> Subs...
c0e38ae254fbe01236bd4851c9cc5d7770a40dbb4118a9b90131f08d10c39dab
silentsignal/DirBustErl
url_tools.erl
-module(url_tools). -export([urljoin/2, subslashes/1, ensure_ends_with_slash/1, has_at_least_n_slashes/2]). -define(REPLACE_LAST_PART(X, Y), lists:reverse(subslashes(lists:reverse(X)), Y)). -define(CLEAN_LAST_PART(X), ?REPLACE_LAST_PART(X, [])). urljoin(Base, [$/, $/ | _] = Path) -> re:replace(Base, "^([^:]+:)//.*$"...
null
https://raw.githubusercontent.com/silentsignal/DirBustErl/bbdfdebb93241036500794e7055aae45a7ac9514/src/url_tools.erl
erlang
-module(url_tools). -export([urljoin/2, subslashes/1, ensure_ends_with_slash/1, has_at_least_n_slashes/2]). -define(REPLACE_LAST_PART(X, Y), lists:reverse(subslashes(lists:reverse(X)), Y)). -define(CLEAN_LAST_PART(X), ?REPLACE_LAST_PART(X, [])). urljoin(Base, [$/, $/ | _] = Path) -> re:replace(Base, "^([^:]+:)//.*$"...
b70226742291d6383098874261831d5e98b637680f7c00c5cc2fceb40625ac83
samrocketman/home
xtns-demartin-liquid-water.scm
; The GIMP -- an image manipulation program Copyright ( C ) 1995 and ; Liquid Water script for GIMP 2.4 Copyright ( C ) 2001 Copyright ( C ) 2001 Copyright ( C ) 2007 Paint corroded version for GIMP 2.4 ; ; Tags: logo ; ; Author statement: ; This is the official English version you 'll find a f...
null
https://raw.githubusercontent.com/samrocketman/home/63a8668a71dc594ea9ed76ec56bf8ca43b2a86ca/dotfiles/.gimp/scripts/xtns-demartin-liquid-water.scm
scheme
The GIMP -- an image manipulation program Tags: logo Author statement: Script-fu Liquid-Water an attempt to realise some funy water effect -------------------------------------------------------------------- -------------------------------------------------------------------- - Initial relase -------...
Copyright ( C ) 1995 and Liquid Water script for GIMP 2.4 Copyright ( C ) 2001 Copyright ( C ) 2001 Copyright ( C ) 2007 Paint corroded version for GIMP 2.4 This is the official English version you 'll find a french version at -fr.org/ Distributed by Gimp FX Foundry project version 0.2 2007...
857771c5ef6ec62d10d7eb53eb4fb9e09ea9fa26cc0726bbf217691a2f4a987b
emina/rosette
bv.rkt
#lang rosette (require "lang/form.rkt" "lang/bvops.rkt") (provide (all-from-out rosette "lang/form.rkt" "lang/bvops.rkt"))
null
https://raw.githubusercontent.com/emina/rosette/a64e2bccfe5876c5daaf4a17c5a28a49e2fbd501/sdsl/bv/bv.rkt
racket
#lang rosette (require "lang/form.rkt" "lang/bvops.rkt") (provide (all-from-out rosette "lang/form.rkt" "lang/bvops.rkt"))
cadc01e7ab9ee6dc8e8fbc27f9d1b2bf693680f6544ae0ae8dc79a3fec13debf
haskell-opengl/OpenGLRaw
FramebufferMultisampleCoverage.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.NV.FramebufferMultisampleCoverage Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- --...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/NV/FramebufferMultisampleCoverage.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.NV.FramebufferMultisampleCoverage License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * En...
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.NV.FramebufferMultisampleCoverage ( glGetNVFramebufferMultisampleCoverage, gl_NV_framebuffer_multisample_coverage, pattern GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV, pattern GL_MULTISAMPLE_COVERAGE_MODES_NV, ...
147cec041b29736ca954bab99238c7a28a965464ef3208e47e28d1fbbe8814f2
shriram/gradescope-racket
lib-grade.rkt
#lang racket (require lang/prim) (require rackunit) (require json) (require racket/engine) (provide produce-report/exit define-var generate-results generate-results/hash test-case-timeout) (provide mirror-macro) test - case - timeout determines maximum amount of time an individual test - case may run in seconds ...
null
https://raw.githubusercontent.com/shriram/gradescope-racket/4d1ecac734b309eab3e8298bb7aec74d732aba54/lib-grade.rkt
racket
runs the test case, but produces test-timeout if test case does not finish in time
#lang racket (require lang/prim) (require rackunit) (require json) (require racket/engine) (provide produce-report/exit define-var generate-results generate-results/hash test-case-timeout) (provide mirror-macro) test - case - timeout determines maximum amount of time an individual test - case may run in seconds ...
bcaa2cdb8e77412c78fe24c7fc6ca426d5be095e83d50def828b26a1db33f2d4
philtomson/vhdl_parser
ast.ml
(* ast.ml - abstract syntax for port parser *) type name = string;; type mode = In | Out | InOut;; type 'a range = Full | Range of ('a * 'a);; aType probably needs to be expanded quite a lot type aTypeVal = Int of (int * int range) | Float of (float * float range) | Vector of ( bool ar...
null
https://raw.githubusercontent.com/philtomson/vhdl_parser/6079befc6b5a8ca45eb51cf2daeb641c58a67645/aurochs/ast.ml
ocaml
ast.ml - abstract syntax for port parser
type name = string;; type mode = In | Out | InOut;; type 'a range = Full | Range of ('a * 'a);; aType probably needs to be expanded quite a lot type aTypeVal = Int of (int * int range) | Float of (float * float range) | Vector of ( bool array * int range) | Str of string ...
aa34e0a38942684dcdca3ae58bd87754aec267d35867ec9a123d6f421c6a12db
DavidAlphaFox/RabbitMQ
cowboy_acceptor.erl
Copyright ( c ) 2011 , < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS A...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/cowboy-wrapper/cowboy-git/src/cowboy_acceptor.erl
erlang
Permission to use, copy, modify, and/or 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. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2011 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN @private -module(cowboy_acceptor). Internal . -spec s...
ed378c5d51eb796ccbc9287a64b2a4bc76951f198a6ade3cf75e52ea95299fca
roburio/ocaml-openpgp
user_attribute_packet.ml
open Rresult type t = Cs.t let pp ppf t = Fmt.pf ppf "{ @[<v>unimplemented user attribute:@ %a@]}" Cs.pp_hex t let parse_packet (buf : Cs.t) : (t, 'error) result = RFC 4880 : 5.12 : The User Attribute packet is made up of one or more attribute subpackets . Each subpacket consists of a subpacket header a...
null
https://raw.githubusercontent.com/roburio/ocaml-openpgp/55459ad98a69f80789c79219c6d3be19ef6ef521/lib/user_attribute_packet.ml
ocaml
we go for that approach, ignoring them entirely:
open Rresult type t = Cs.t let pp ppf t = Fmt.pf ppf "{ @[<v>unimplemented user attribute:@ %a@]}" Cs.pp_hex t let parse_packet (buf : Cs.t) : (t, 'error) result = RFC 4880 : 5.12 : The User Attribute packet is made up of one or more attribute subpackets . Each subpacket consists of a subpacket header a...
982f08edeccc19e71c8efc9343ff250053d015a74acceff982662fbb81959dba
ghollisjr/cl-ana
macro-utils.lisp
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 ;;;; This file is part of cl - ana . ;;;; ;;;; cl-ana is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Li...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/8e8abc17e3d2f8e597f336d7b0f5df39ef2406ee/macro-utils/macro-utils.lisp
lisp
cl-ana is free software: you can redistribute it and/or modify it (at your option) any later version. cl-ana is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License...
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 This file is part of cl - ana . under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License ...
fc2bc6bfc2496b4a4ec4a6758ada092bbf791e5b9e1ffe75364912ee5e735416
grin-compiler/ghc-wpc-sample-programs
Options.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE OverloadedStrings #-} | Module : Text . Pandoc . Options Copyright : Copyright ( C ) 2012 - 2020 License : GNU GPL , version 2 or ab...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/pandoc-11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e/src/Text/Pandoc/Options.hs
haskell
# LANGUAGE CPP # # LANGUAGE DeriveDataTypeable # # LANGUAGE TemplateHaskell # # LANGUAGE OverloadedStrings # ^ Syntax extensions ^ Standalone document with header ^ Number of columns in terminal ^ Tab stop ^ Default classes for indented code blocks ^ Strings to treat as abbreviations ^ Defaul...
# LANGUAGE DeriveGeneric # | Module : Text . Pandoc . Options Copyright : Copyright ( C ) 2012 - 2020 License : GNU GPL , version 2 or above Maintainer : < > Stability : alpha Portability : portable Data structures and functions for representing parser a...
33c16f1d946e044f62498501f46dc5d7ff06df95be7edb4e2c205d141b820878
jordanthayer/ocaml-search
spt_gtk.ml
(** Holds all of the gtk display functionality for easy removal - Jordan*) open Verbosity let gtk_initialized = ref false let dir = ref None let _ = (* Need to set up gtk for use *) try ignore (GtkMain.Main.init()); gtk_initialized := true; with _ -> vprintf verb_optional "Failed to initialize GTK,...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/spt/src/spt_gtk.ml
ocaml
* Holds all of the gtk display functionality for easy removal - Jordan Need to set up gtk for use default window size Scale so that drawing can take place in a normalized aspect ratio. * [create_display plot title] spawns a window with the given title showing the specified plot turns on the button lis...
open Verbosity let gtk_initialized = ref false let dir = ref None let _ = try ignore (GtkMain.Main.init()); gtk_initialized := true; with _ -> vprintf verb_optional "Failed to initialize GTK, is X11 running?\n" let file_dialog ~title ~callback () = let sel = GWindow.file_selection ~title ~modal:t...
79cdefb4740a510f0a7bfa34b541423cb600f5943a61257daa910b4740e761d4
inaka/elvis_core
pass_no_spec_with_records_elvis_attr.erl
-module(pass_no_spec_with_records_elvis_attr). -elvis([{elvis_style, function_naming_convention, disable}]). -dialyzer({nowarn_function, function_2/2}). -elvis([{elvis_style, no_spec_with_records, disable}]). -export([ function_1/1, function_2/2, function_3/2, function_4/2, ...
null
https://raw.githubusercontent.com/inaka/elvis_core/468bd3498f1782fd74ef3d8eb1b36217b0b76c11/test/examples/pass_no_spec_with_records_elvis_attr.erl
erlang
-module(pass_no_spec_with_records_elvis_attr). -elvis([{elvis_style, function_naming_convention, disable}]). -dialyzer({nowarn_function, function_2/2}). -elvis([{elvis_style, no_spec_with_records, disable}]). -export([ function_1/1, function_2/2, function_3/2, function_4/2, ...
b5668b13d412daf21bc81fbc1334b44a3055f1496edc6314b33303651a1547c2
Twinside/Juicy.Pixels
Juicy.hs
{-# LANGUAGE Rank2Types #-} module Main where import Data.Int( Int16 ) import Control.Monad( when ) import Control.Monad.ST import Data.Word import qualified Control.Monad.Trans.State.Strict as S import System.Exit( exitSuccess, exitFailure ) import Test.HUnit import qualified Data.Vector.Storable as V import qualifie...
null
https://raw.githubusercontent.com/Twinside/Juicy.Pixels/ab41b84403699a7f4d290685e690fbaff42ed95f/tests/Juicy.hs
haskell
# LANGUAGE Rank2Types # testBoolWriter = B.unpack . runST . runBoolWriter writerTest :: Test writerTest = test , "Multi 1010" ~: [0xA0] ~=? testBoolWriter (writeBits 0xA 4) , "0 bits" ~: [] ~=? testBoolWriter (writeBits 0xFF 0) , "Simple combination" , "Across" , "Real case" ] exitFailure
module Main where import Data.Int( Int16 ) import Control.Monad( when ) import Control.Monad.ST import Data.Word import qualified Control.Monad.Trans.State.Strict as S import System.Exit( exitSuccess, exitFailure ) import Test.HUnit import qualified Data.Vector.Storable as V import qualified Data.Vector.Storable.Mutab...
0cec137cdf935d28734d8e101a014aa3ae5af32c10ffc574ae614c128b9a7511
evturn/haskellbook
28.06-benchmark-practice.hs
import Criterion.Main import qualified Data.Map as M import qualified Data.Set as S bumpIt (i, v) = (i + 1, v + 1) m :: M.Map Int Int m = M.fromList $ take 10000 stream where stream = iterate bumpIt (0, 0) s :: S.Set Int s = S.fromList $ take 10000 stream where stream = iterate (+1)...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/28/28.06-benchmark-practice.hs
haskell
import Criterion.Main import qualified Data.Map as M import qualified Data.Set as S bumpIt (i, v) = (i + 1, v + 1) m :: M.Map Int Int m = M.fromList $ take 10000 stream where stream = iterate bumpIt (0, 0) s :: S.Set Int s = S.fromList $ take 10000 stream where stream = iterate (+1)...
1aabc7534b737be4627286e8b4953e7710c5de9041c071f1a6f7d24dceac49d7
skypher/blackthorn
dist.lisp
Blackthorn -- Lisp Game Engine ;;;; Copyright ( c ) 2007 - 2011 , < > ;;;; ;;;; Permission is hereby granted, free of charge, to any person ;;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;;;; restriction, including without limita...
null
https://raw.githubusercontent.com/skypher/blackthorn/914b38a95f1d192219f197e4b4a77b1632daa94b/dist.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following conditions:...
Blackthorn -- Lisp Game Engine Copyright ( c ) 2007 - 2011 , < > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRA...
b3d4953b2364997134b24a88d77bcec122f80af8588f5e98c066f34863ae1565
ghosthamlet/algorithm-data-structure
divide_by_two.clj
(ns algorithm-data-structure.algorithms.math.bits.divide-by-two) (defn run [number] (bit-shift-right number 1))
null
https://raw.githubusercontent.com/ghosthamlet/algorithm-data-structure/017f41a79d8b1d62ff5a6cceffa1b0f0ad3ead6b/src/algorithm_data_structure/algorithms/math/bits/divide_by_two.clj
clojure
(ns algorithm-data-structure.algorithms.math.bits.divide-by-two) (defn run [number] (bit-shift-right number 1))
244a64785c2d69c6c2ddcf91d18fbc9bdf75b7add1097f8818efbfabecb43166
craigfe/progress
line_primitives.ml
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — Copyright ( c ) 2020–2021 < > Distributed under the MIT license . See terms at the end of this file . — — — — — — — — — — — — — — — — — — — — — — — — —...
null
https://raw.githubusercontent.com/craigfe/progress/d7129b772d05c5589b8807630031155a6aeb27f0/src/progress/engine/line_primitives.ml
ocaml
* [ticker n] is a function [f] that returns [true] on every [n]th call. Interacting with the state: Threading state through the compuation: The padding {i should} never happen. TODO: be more defensive Here we access a dynamic value before (strictly) starting the process, but it's OK since i...
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — Copyright ( c ) 2020–2021 < > Distributed under the MIT license . See terms at the end of this file . — — — — — — — — — — — — — — — — — — — — — — — — —...
1ac92ac207f777f6eec36908f9def99f50e79f59138411c93669f16ef9ec4750
sordina/Deadpan-DDP
TodoGui2.hs
{-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - unused - do - bind # module Main where Internal import Vty -- External import Web.DDP.Deadpan import Control.Concurrent.STM import Control.Concurrent import qualified Data.HashMap.Lazy as M main :: IO () main = either print start (getURI ":3000/webso...
null
https://raw.githubusercontent.com/sordina/Deadpan-DDP/d0f115cbc7132a87cababc587064d8f851165e85/test/client/TodoGui2.hs
haskell
# LANGUAGE OverloadedStrings # External Don't exit the deadpan app until the parent tells us to NOTE: Updates are written to a chan in order to ensure that they don't clobber each other.
# OPTIONS_GHC -fno - warn - unused - do - bind # module Main where Internal import Vty import Web.DDP.Deadpan import Control.Concurrent.STM import Control.Concurrent import qualified Data.HashMap.Lazy as M main :: IO () main = either print start (getURI ":3000/websocket") start :: Params -> IO () start params =...
2e3077a2236654555bd1878c3d185a3b4884f0610330be6c138491df18bf21d8
neongreen/haskell-ex
Main.hs
import System.IO import Data.Char magickNumber = 13 fPath = "/usr/share/dict/words" isScary :: [Char] -> Bool isScary word | isAlphaOnly word && foldl (\acc c -> acc + ord (toUpper c) - ord 'A' + 1) 0 word == magickNumber = True | otherwise = False where isAlphaOnly = all (isAlpha) main = do withFile...
null
https://raw.githubusercontent.com/neongreen/haskell-ex/345115444fdf370a43390fd942e2851b9b1963ad/week1/scary/maverickchaser/Main.hs
haskell
import System.IO import Data.Char magickNumber = 13 fPath = "/usr/share/dict/words" isScary :: [Char] -> Bool isScary word | isAlphaOnly word && foldl (\acc c -> acc + ord (toUpper c) - ord 'A' + 1) 0 word == magickNumber = True | otherwise = False where isAlphaOnly = all (isAlpha) main = do withFile...
43e13dc3c8a38d6702c8aeddb282e1113665d24386c6fd4c168d852943ede8d8
footprintanalytics/footprint-web
oracle_test.clj
(ns metabase.driver.oracle-test "Tests for specific behavior of the Oracle driver." (:require [clojure.java.jdbc :as jdbc] [clojure.string :as str] [clojure.test :refer :all] [honeysql.core :as hsql] [metabase.api.common :as api] [metabase.driver :as drive...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/modules/drivers/oracle/test/metabase/driver/oracle_test.clj
clojure
in some test cases, the version info isn't set, to the string "null" is the value we want to use a bogus port here on purpose - so that locally, it gets a ConnectionRefused, let's make sure we're actually attempting to generate the correctl HoneySQL for joins and source queries so we don't sit around scratching ou...
(ns metabase.driver.oracle-test "Tests for specific behavior of the Oracle driver." (:require [clojure.java.jdbc :as jdbc] [clojure.string :as str] [clojure.test :refer :all] [honeysql.core :as hsql] [metabase.api.common :as api] [metabase.driver :as drive...
1ab53e98e74aebeab51cb8119b048dc02c5b50132a6f4c59f41f4852b46ef043
darkleaf/publicator
layout.clj
(ns publicator.web.presenters.layout (:require [publicator.use-cases.services.user-session :as user-session] [publicator.web.routing :as routing] [ring.middleware.anti-forgery :as anti-forgery])) (defn present [req] (cond-> {:csrf anti-forgery/*anti-forgery-token*} (user-session/logged-in?) (assoc...
null
https://raw.githubusercontent.com/darkleaf/publicator/e07eee93d8f3d9c07a15d574619d5ea59c00f87d/web/src/publicator/web/presenters/layout.clj
clojure
(ns publicator.web.presenters.layout (:require [publicator.use-cases.services.user-session :as user-session] [publicator.web.routing :as routing] [ring.middleware.anti-forgery :as anti-forgery])) (defn present [req] (cond-> {:csrf anti-forgery/*anti-forgery-token*} (user-session/logged-in?) (assoc...
4a450677d0dd00529e98f4c2aa96100cfff7984cd6e7f6974247573d4e6d054a
FlowForwarding/LINC-Switch
linc_us4_oe.erl
%%------------------------------------------------------------------------------ Copyright 2012 FlowForwarding.org %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %%...
null
https://raw.githubusercontent.com/FlowForwarding/LINC-Switch/9c28e7c8677c03440a62023292dd700fef0c3420/apps/linc_us4_oe/src/linc_us4_oe.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, eithe...
Copyright 2012 FlowForwarding.org Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author Erlang Solutions Ltd. < > 2012 FlowForwarding.org -module(linc_us4_oe). -behaviour(gen_switch). gen_switch callbacks -expo...
13e31cb901730cf26fc5af6d0e37c49519e71ed79ece3f6ba326c1b46ca3cd21
tatut/clj-chrome-devtools
indexed_db.clj
(ns clj-chrome-devtools.commands.indexed-db (:require [clojure.spec.alpha :as s] [clj-chrome-devtools.impl.command :as cmd] [clj-chrome-devtools.impl.connection :as c])) (s/def ::database-with-object-stores (s/keys :req-un [::name ::version ::object-stores])) (s/def ::object-sto...
null
https://raw.githubusercontent.com/tatut/clj-chrome-devtools/0bb4cd7e4de7cc4a4255588fee309f688013fb09/src/clj_chrome_devtools/commands/indexed_db.clj
clojure
(ns clj-chrome-devtools.commands.indexed-db (:require [clojure.spec.alpha :as s] [clj-chrome-devtools.impl.command :as cmd] [clj-chrome-devtools.impl.connection :as c])) (s/def ::database-with-object-stores (s/keys :req-un [::name ::version ::object-stores])) (s/def ::object-sto...
bb2958bd368ef6fb2556194a0149f89e0eacb3e9d8c146ff7a0623f005eb40fc
ml4tp/tcoq
ppannotation.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/printing/ppannotation.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Ppextend open Constrexpr...
b5df0fd078f6ad0653b13016414f62db3c7ad6f2a6e99d301d7aa5bbb87fa1f2
gedge-platform/gedge-platform
rabbit_framing.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% TODO auto - generate -module(rabbit_framing). ...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbit/src/rabbit_framing.erl
erlang
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved . TODO auto - generate -module(rabbit_framing). -expo...
38ec6d62d461868f97626730f297e10ba9de09372e68f8be10cf053a910bfa14
Ericson2314/lighthouse
Keyboard.hs
module Kernel.Driver.Keyboard ( launchKeyboardInterpreter , launchKeyboardDecoder , KeyPress(..) , KModSide(..) , KMod(..) , Key(..) , KeyEvent(..) , unKeyPress ) where P : import Prelude hiding ( putStrLn ) import Prelude hiding (putStrLn) -} import Control.Monad ( mplus )...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/kernel/Kernel/Driver/Keyboard.hs
haskell
? For keys in the printable ascii range ? putStrLn "Unknown scan code sequence" ? Unpretty code either. FIXME! , ([0x00], ?)
module Kernel.Driver.Keyboard ( launchKeyboardInterpreter , launchKeyboardDecoder , KeyPress(..) , KModSide(..) , KMod(..) , Key(..) , KeyEvent(..) , unKeyPress ) where P : import Prelude hiding ( putStrLn ) import Prelude hiding (putStrLn) -} import Control.Monad ( mplus )...
e0068a39e32a1173344bd9f56a1824431e78a75e4e1b5b8670939b4d25f3f94b
DavidAlphaFox/RabbitMQ
rabbit_channel_sup_sup.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/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/src/rabbit_channel_sup_sup.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. ----------------...
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 GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module...
d2d3a5203bc3dca2e5081919bb555b14b344d160a35678885c11e25d2ef04bee
music-suite/music-score
Time.hs
module Music.Time ( module Music.Time.Types, module Music.Time.Transform, module Music.Time.Duration, module Music.Time.Position, module Music.Time.Split, module Music.Time.Reverse, module Music.Time.Juxtapose, module Music.Time.Aligned, module Music.Time.Rest, module Music.Ti...
null
https://raw.githubusercontent.com/music-suite/music-score/aa7182d8ded25c03a56b83941fc625123a7931f8/src/Music/Time.hs
haskell
module Music.Time ( module Music.Time.Types, module Music.Time.Transform, module Music.Time.Duration, module Music.Time.Position, module Music.Time.Split, module Music.Time.Reverse, module Music.Time.Juxtapose, module Music.Time.Aligned, module Music.Time.Rest, module Music.Ti...
f32e5a08318171ccb4e6097f0961af38b64526e0673f3cced042485515f91515
TempusMUD/cl-tempus
nanny.lisp
(in-package #:tempus) (defmacro define-connection-state (state-name &body funcs) (assert (every #'consp funcs)) (assert (symbolp state-name)) (assert (every (lambda (x) (member (first x) '(menu prompt input))) funcs)) (assert (every (lambda (x) (consp (second x))) funcs)) `(progn (pushnew ',state-name ...
null
https://raw.githubusercontent.com/TempusMUD/cl-tempus/c5008c8d782ba44373d89b77c23abaefec3aa6ff/src/textui/nanny.lisp
lisp
send telnet DO ECHO when the new state isn't a password state send telnet DONT ECHO when the new state is a password state Queue up text to be paginated later Normal writing to connection split replacements into lines push each alias expansion into the command queue of the actor (in reverse for proper ordering) ...
(in-package #:tempus) (defmacro define-connection-state (state-name &body funcs) (assert (every #'consp funcs)) (assert (symbolp state-name)) (assert (every (lambda (x) (member (first x) '(menu prompt input))) funcs)) (assert (every (lambda (x) (consp (second x))) funcs)) `(progn (pushnew ',state-name ...
945f25238ae89fa5831d7a554b6e0e6e3422ce9ebbd5ced2930b2b465ea7f8d9
MyDataFlow/ttalk-server
meck_util.erl
%%%============================================================================ Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You may obtain a copy of the License at %%% %%% -2.0 %%% %%% Unless required by applicable law ...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/meck/src/meck_util.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 expre...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @private -module(meck_util). -export_type([match_spec_item/0]). -export([proc_name/1]). -export([original_name/1]). -export([match_spec_item/1]). -type match_spec_item() ...
811abdd099abea869fb9ac830c9fceb04d1d247053965d2ecaec659faa6eeacc
dpiponi/Moodler
test_glass.hs
do restart root <- getRoot let out = "out" let keyboard = "keyboard" let trigger = "trigger" alias0 <- new' "alias" arpeg1 <- new' "arpeg" arpeg2 <- new' "arpeg" audio_id3 <- new' "audio_id" audio_id4 <- new' "audio_id" audio_id5 <- new' "audio_id" audio_id6 <- new' "audi...
null
https://raw.githubusercontent.com/dpiponi/Moodler/a0c984c36abae52668d00f25eb3749e97e8936d3/Moodler/saves/test_glass.hs
haskell
do restart root <- getRoot let out = "out" let keyboard = "keyboard" let trigger = "trigger" alias0 <- new' "alias" arpeg1 <- new' "arpeg" arpeg2 <- new' "arpeg" audio_id3 <- new' "audio_id" audio_id4 <- new' "audio_id" audio_id5 <- new' "audio_id" audio_id6 <- new' "audi...
a2e8a87b2169328c883e16f88776616b9f015137a18d3d2c3dd8a8b966ffe544
anuragsoni/shuttle
tcp_channel.ml
open! Core open! Async let close_channels reader writer = let%bind () = Output_channel.close writer in Input_channel.close reader ;; let collect_errors writer fn = let monitor = Output_channel.monitor writer in Monitor.detach monitor; choose [ choice (Monitor.get_next_error monitor) (fun e -> Error e) ...
null
https://raw.githubusercontent.com/anuragsoni/shuttle/4b6b477cc9cc811ad717e9ac663b4c4e7346f4b6/http11/src/tcp_channel.ml
ocaml
open! Core open! Async let close_channels reader writer = let%bind () = Output_channel.close writer in Input_channel.close reader ;; let collect_errors writer fn = let monitor = Output_channel.monitor writer in Monitor.detach monitor; choose [ choice (Monitor.get_next_error monitor) (fun e -> Error e) ...
10bdec8dc55415969a6e76e1459b2eb4f7d0743044d893b70d722f1b45b785f0
LeastAuthority/haskell-magic-wormhole
Peer.hs
# OPTIONS_HADDOCK not - home # | Interface for communicating with a Magic Wormhole peer . -- Build on this to write an application that uses Magic Wormhole . module MagicWormhole.Internal.Peer ( EncryptedConnection , withEncryptedConnection , sendMessage , receiveMessage , deriveKey ) where import Prot...
null
https://raw.githubusercontent.com/LeastAuthority/haskell-magic-wormhole/781f915a87b3a9ed0cb34bae662de9c8825bbeeb/src/MagicWormhole/Internal/Peer.hs
haskell
XXX: Lots of duplicated code sending JSON data. Either make a typeclass for TODO: I've been playing fast and loose with Text -> ByteString conversions (grep for `toS`) for the details. The Python implementation occasionally more careful. | Establish an encrypted connection between peers. Use this connection wit...
# OPTIONS_HADDOCK not - home # | Interface for communicating with a Magic Wormhole peer . Build on this to write an application that uses Magic Wormhole . module MagicWormhole.Internal.Peer ( EncryptedConnection , withEncryptedConnection , sendMessage , receiveMessage , deriveKey ) where import Protolu...
9a0c7dae04f9cceca11bfd26da5323020321eed248d131133c8d8dda8f8773a4
silky/fashion
RetroHaskell.hs
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleContexts # {-# LANGUAGE TypeFamilies #-} module Nvds.Designs.RetroHaskell where import Nvds.Colours.ColourSets import Control.Monad (replicateM) import Control.Monad.IO.Class (liftIO) import Data.List (intersperse) import Data.List hidin...
null
https://raw.githubusercontent.com/silky/fashion/2b01d1e5c385fe99e8e54f5828114551e9c8e309/RetroHaskell/src/Nvds/Designs/RetroHaskell.hs
haskell
# LANGUAGE TypeFamilies # TODO: Add stars! /#stars TODO: - Some colour themes TODO: Make this less hacky > \ / = dropShadow = id TODO: Use this. scale stack run -- -- -w 500 -h 500 -o ./output/a.png something. bgColour = white
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleContexts # module Nvds.Designs.RetroHaskell where import Nvds.Colours.ColourSets import Control.Monad (replicateM) import Control.Monad.IO.Class (liftIO) import Data.List (intersperse) import Data.List hiding (union) import Diagrams.Backend.Cairo.Cmd...
80683d8a8850f6b92b976d7dada78b3c72209ab1078dee87e70c24caefed019b
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
ReceivedCreditsResourceReversalDetails.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema ReceivedCreditsResourceReversalDetails module StripeAPI.Types.ReceivedCredi...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/ReceivedCreditsResourceReversalDetails.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema ReceivedCreditsResourceReversalDetails | Create a new 'ReceivedCreditsResourceReversalDetails' with all required fields. | Defines the enum schema located at @components.schemas.received_credits_resource_reversal_de...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.ReceivedCreditsResourceReversalDetails where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Inte...
1ea0a0c05ff9179b4d300918574444b75d371e44640047705cdea91cfeedd6c9
soegaard/sketching
saturation.rkt
#lang sketching ; -docs/blob/master/content/examples/Basics/Color/Saturation/Saturation.pde ; Saturation is the strength or purity of the color and represents the ; amount of gray in proportion to the hue. A "saturated" color is pure ; and an "unsaturated" color has a large percentage of gray. ; Move the cursor v...
null
https://raw.githubusercontent.com/soegaard/sketching/94e114ac6e92ede3b85481df755b673be24b226e/sketching-doc/sketching-doc/manual-examples/basics/color/saturation.rkt
racket
-docs/blob/master/content/examples/Basics/Color/Saturation/Saturation.pde Saturation is the strength or purity of the color and represents the amount of gray in proportion to the hue. A "saturated" color is pure and an "unsaturated" color has a large percentage of gray. Move the cursor vertically over each ba...
#lang sketching (define bar-width 20) (define last-bar -1) (define (setup) (size 640 360) (no-stroke) (background 0) (color-mode 'hsb width height 100)) (define (draw) (define which-bar (quotient mouse-x bar-width)) (unless (= which-bar last-bar) (define bar-x (* which-bar bar-width)) (fill bar...
a88b179d4132dfae4cc614e95a1787eccadc609074048a2d9701aeccc4f333ce
thicksteadTHpp/Obvius
gl-ffi-functions.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; gl-functions.lisp ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package 'gl) extern GLXconfig * ( void * , long , GLXconfig * ) ; (def-exported-c-function ("GLXgetconfig" (:return-type (:pointer GLXconfig))) ((:pointe...
null
https://raw.githubusercontent.com/thicksteadTHpp/Obvius/9a91673609def033539c9ebaf098e8f11eb0df6e/gl_ffi/gl-ffi-functions.lisp
lisp
gl-functions.lisp extern void acsize( long ); ??? extern void afunction( long, long ); extern void arc( Coord, Coord, Coord, Angle, Angle ); extern void arcf( Coord, Coord, Coord, Angle, Angle ); extern void attachcursor( Device, Device ); extern void backface( Boolean ); ...
(in-package 'gl) (def-exported-c-function ("GLXgetconfig" (:return-type (:pointer GLXconfig))) ((:pointer void) long (:pointer GLXconfig))) (def-exported-c-function "acbuf" (long float)) (def-exported-c-function "acsize" (long)) (def-exported-c-function "afunction" (long long)) (def-exported-c-fun...
def68ed616e328bbdfbd1b33e097f4172375bf426548d2f56a9f001704ea7fcc
rescript-lang/bucklescript-addons
bs_nativeint.ml
type t = nativeint external parseInt : string -> int -> t = ""[@@bs.val] (* local variables: *) (* compile-command: "npm run postinstall" *) (* end: *)
null
https://raw.githubusercontent.com/rescript-lang/bucklescript-addons/c544020712b9507b8b4900444320c2448f9c7ae5/bindings/bs-string/src/bs_nativeint.ml
ocaml
local variables: compile-command: "npm run postinstall" end:
type t = nativeint external parseInt : string -> int -> t = ""[@@bs.val]
44214214cac9bdc638c736f709b701a1e922b55253eb7c46607a5ff7e4cf2be0
xsc/thrift-clj
reflect.clj
(ns ^{ :doc "Using Reflection to get Thrift Entities." :author "Yannick Scherer" } thrift-clj.utils.reflect (:import (org.reflections Reflections ReflectionUtils) (org.reflections.scanners Scanner SubTypesScanner TypeElementsScanner) (org.reflections.util ClasspathHelper ConfigurationBu...
null
https://raw.githubusercontent.com/xsc/thrift-clj/cc6cf181540cd516c293c448ba07d8b3c023f04e/src/thrift_clj/utils/reflect.clj
clojure
## General Reflection Helpers
(ns ^{ :doc "Using Reflection to get Thrift Entities." :author "Yannick Scherer" } thrift-clj.utils.reflect (:import (org.reflections Reflections ReflectionUtils) (org.reflections.scanners Scanner SubTypesScanner TypeElementsScanner) (org.reflections.util ClasspathHelper ConfigurationBu...
85ffa060f82372a8c2edc5a6f7189b6376618e639c8d323cfb678da0dab14a61
samee/netlist
QueueNative.hs
-- Generates random push/pop on queue circuits and measures circuit size, both for -- the queue here and the naive queue in Test.Util.Simple. Circuit size ignores and not gates as usual import Control.Monad import Circuit.NetList.Gcil import Circuit.Queue import System.Random The two queues to be tested impor...
null
https://raw.githubusercontent.com/samee/netlist/9fc20829f29724dc1148e54bd64fefd7e70af5ba/Benchmark/QueueNative.hs
haskell
Generates random push/pop on queue circuits and measures circuit size, both for the queue here and the naive queue in Test.Util.Simple. Circuit size ignores Generates random push/pop circuits
and not gates as usual import Control.Monad import Circuit.NetList.Gcil import Circuit.Queue import System.Random The two queues to be tested main = do putStrLn "-------------- Queue sizes ------------------" putStrLn "n opcount Naive MyQueue" forM_ [16,32,64,128,256,512,1024,20...
7d0b89ce8d02aef54e65df53b2a0b9553e2fde50a226c71fab5c45b94a37f6ee
cedlemo/OCaml-GI-ctypes-bindings-generator
Font_selection.mli
open Ctypes type t val t_typ : t typ val create : unit -> Widget.t ptr val get_face : t -> Font_face.t ptr val get_face_list : t -> Widget.t ptr val get_family : t -> Font_family.t ptr val get_family_list : t -> Widget.t ptr val get_font_name : t -> string option val get_preview_entry : t -> Widget.t pt...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Font_selection.mli
ocaml
open Ctypes type t val t_typ : t typ val create : unit -> Widget.t ptr val get_face : t -> Font_face.t ptr val get_face_list : t -> Widget.t ptr val get_family : t -> Font_family.t ptr val get_family_list : t -> Widget.t ptr val get_font_name : t -> string option val get_preview_entry : t -> Widget.t pt...
9ebc339edcf1b41c3d06fe01f850b9395daf1698348e1675f13b45ddad13f026
Helium4Haskell/helium
DerivingShow2.hs
import DerivingShow1 main = show A
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/make/DerivingShow2.hs
haskell
import DerivingShow1 main = show A
5b2bf95e2f30854143d7586f0c6f99b64c65d9171adc3734d55b8ecf440f1f6f
crategus/cl-cffi-gtk
gtk.range.lisp
;;; ---------------------------------------------------------------------------- ;;; gtk.range.lisp ;;; ;;; The documentation of this file is taken from the GTK 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK library . ;;; See <>. The API documentation of the Lisp binding is ava...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/gtk/gtk.range.lisp
lisp
---------------------------------------------------------------------------- gtk.range.lisp The documentation of this file is taken from the GTK 3 Reference Manual See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the terms of the...
Version 3.24 and modified to document the Lisp binding to the GTK library . available from < -cffi-gtk/ > . Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for us...
2e35fb328b351ddfb3a2fe0e1352a6298ea9b3a0433bd1d9b5637ae6152cb409
latte-central/latte-sets
algebra.clj
(ns latte-sets.algebra "The boolean algebra operators for sets." (:refer-clojure :exclude [and or not set complement]) (:require [latte.core :as latte :refer [definition defthm defaxiom defnotation defimplicit forall lambda assume have pose qed proof try-p...
null
https://raw.githubusercontent.com/latte-central/latte-sets/59c0d091aa897063e25ee4558399cc1b33db21cd/src/latte_sets/algebra.clj
clojure
(ns latte-sets.algebra "The boolean algebra operators for sets." (:refer-clojure :exclude [and or not set complement]) (:require [latte.core :as latte :refer [definition defthm defaxiom defnotation defimplicit forall lambda assume have pose qed proof try-p...
3f720ad780c57fde7f4fbb86a877992a5ef212a934e02bcd04c6bb353828cd09
lijunsong/fl-compiler
symbol.mli
(** Symbol represents tiger compiler identifiers. Symbol is often used for comparing, so it is designed for fast comparison. Using string as identifier is slower than Symbol. *) open Batteries type t val compare : t -> t -> int val of_string : string -> t * Convert a string to a symbol . Passing two identic...
null
https://raw.githubusercontent.com/lijunsong/fl-compiler/6d2938855012a7a0a8767dc342f6abb454c43eec/frontend/symbol.mli
ocaml
* Symbol represents tiger compiler identifiers. Symbol is often used for comparing, so it is designed for fast comparison. Using string as identifier is slower than Symbol.
open Batteries type t val compare : t -> t -> int val of_string : string -> t * Convert a string to a symbol . Passing two identical strings will return the same symbol . return the same symbol. *) val to_string : t -> string module SymbolTable : sig include (Map.S with type key = t) val look : key ...
168e2d6a9022c69092d855f0f9cbe8e03f9f99292e8a7389537c38f54c7213d9
alexandergunnarson/quantum
find.cljc
(ns quantum.core.string.find) TODO pair with validation ? TODO uncomment #_(defn find-email [possible-email-string] (let [non-spaces "([A-Za-z_0-9]+)" pattern (str "(" non-spaces "@" non-spaces "\\." non-spaces ")+")] (str/re-find-all pattern possible-email-string)))
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/core/string/find.cljc
clojure
(ns quantum.core.string.find) TODO pair with validation ? TODO uncomment #_(defn find-email [possible-email-string] (let [non-spaces "([A-Za-z_0-9]+)" pattern (str "(" non-spaces "@" non-spaces "\\." non-spaces ")+")] (str/re-find-all pattern possible-email-string)))
f13f19c3a5b33c9918ab8771bbd7992650613199380825e5d4e00a063fc9ae40
backtracking/ocamlgraph
topological.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and (* ...
null
https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/src/topological.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking module ty...
4bc6bd5ef6c3f8a703ed1f25dae253d5bff531ac29c89b6dc077cfc0116e97b8
erlang/otp
uri_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2004 - 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/inets/test/uri_SUITE.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 2004 - 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 , ct : run(" .. /inets_test " , ) . -module(uri_SUITE). -include_lib("eunit/include/eunit.hrl"). -include_lib("co...
43bd4760f40a9d5d41183ad8ddb730a94ab71498a0051bb39f84c13b92a82979
parapluu/monadic-typechecker
AST.hs
-- | -- Module : Reader.AST Copyright : © 2019 and License : MIT -- -- Stability : experimental -- Portability : portable -- -- This module includes functionality for creating an Abstract Syntax Tree (AST), -- as well as helper functions for checking different aspects of the AST . # ...
null
https://raw.githubusercontent.com/parapluu/monadic-typechecker/9f737a9ed2a3ac4ff5245e2e48deeac7bc2ee73d/typechecker/src/Reader/AST.hs
haskell
| Module : Reader.AST Stability : experimental Portability : portable This module includes functionality for creating an Abstract Syntax Tree (AST), as well as helper functions for checking different * AST declarations $ Declaration for the Abstract Syntax Tree of the language. This section conta...
Copyright : © 2019 and License : MIT aspects of the AST . # LANGUAGE NamedFieldPuns # module Reader.AST where import Data.Maybe import Data.List import Text.Printf (printf) as an AST . The AST is produced by a parser . For more information on < -7.0.5 > . type Name = String isConstru...
b54ba759e26a0ef3854bb526b124ceaada3ed0cebb869197a84751a8c42ddfd2
draperlaboratory/cbat_tools
z3_utils.ml
(***************************************************************************) (* *) Copyright ( C ) 2018/2019 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/cbat_tools/8e6ab1cd6d5d97179989d86ecac8507fbb60d7e1/wp/lib/bap_wp/src/z3_utils.ml
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2018/2019 The Charles Stark Draper Laboratory , Inc. This work is funded in part by ONR / NAWC Contract N6833518C0107 . Its content does not necessarily reflect the position or policy of the US open !Core open Bap.Std include Self() module Expr = Z3.Expr module Arith = Z3.Arithm...
550760a4873aeb7df5308e5c0b00e9067c879921e69d3ead8bbd6ff4b23e2fff
squaresLab/SynthLift
synth_mips.mli
open Core_kernel.Std open Bap.Std * A convenience module that defines register for MIPS . These can be inferred from the trace . But , we must satisfy the CPU module type for BAP at compile tyime currently , until the CPU module is deprecated , as planned . from the trace. But, we must satisfy the CPU ...
null
https://raw.githubusercontent.com/squaresLab/SynthLift/6831b23db539bfacfcf59acb97d6de04522719db/lib/synth_mips.mli
ocaml
open Core_kernel.Std open Bap.Std * A convenience module that defines register for MIPS . These can be inferred from the trace . But , we must satisfy the CPU module type for BAP at compile tyime currently , until the CPU module is deprecated , as planned . from the trace. But, we must satisfy the CPU ...
1b3cf8558da0bbb623215b12aae2ccc400c4fa5453068492a76052995282e067
riemann/riemann
common.clj
(ns riemann.common "Utility functions. Time/date, some flow control constructs, protocol buffer definitions and codecs, some vector set ops, etc." (:import [java.util Date] (java.io InputStream) [io.riemann.riemann Proto$Query Proto$Event Proto$Msg] [java.net InetAddress]) (:req...
null
https://raw.githubusercontent.com/riemann/riemann/762776fcb789a6acea4799604908db3e33693a33/src/riemann/common.clj
clojure
Platform Events Matching Regexes are matched against strings. Functions are called with the given object. Map types Falls back to object equality Nils match nils only. Vector set operations composing human-readable messages
(ns riemann.common "Utility functions. Time/date, some flow control constructs, protocol buffer definitions and codecs, some vector set ops, etc." (:import [java.util Date] (java.io InputStream) [io.riemann.riemann Proto$Query Proto$Event Proto$Msg] [java.net InetAddress]) (:req...
336cccdaa3c9a48b5e067730d344fd3c3cfd90df7b9a6c0c894796b79c12fec7
jacekschae/learn-reitit-course-files
routes.clj
(ns cheffy.conversation.routes (:require [cheffy.middleware :as mw] [cheffy.conversation.db :as conversation-db] [ring.util.response :as rr] [cheffy.responses :as responses]) (:import (java.util UUID))) (defn routes [env] (let [db (:jdbc-url env)] ["/conversation" {:swag...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/54-start-conversation/src/cheffy/conversation/routes.clj
clojure
(ns cheffy.conversation.routes (:require [cheffy.middleware :as mw] [cheffy.conversation.db :as conversation-db] [ring.util.response :as rr] [cheffy.responses :as responses]) (:import (java.util UUID))) (defn routes [env] (let [db (:jdbc-url env)] ["/conversation" {:swag...
1ec93fc72ac2d450bc9ab0ddfd7d87e581c9a96eebeb2e3530f1f8db4fda8bb6
sshirokov/hinge
http-chunked.lisp
(ql:quickload :hinge) (defpackage :hinge-example (:use :cl :hinge :hinge.http)) (in-package :hinge-example) (let ((server (make-instance 'http-server))) (add-listener server "request" (lambda (request response) (declare (ignorable request)) (write-head response ...
null
https://raw.githubusercontent.com/sshirokov/hinge/4b1d4d2a9b17948402ccc670342cc5684c633226/examples/http-chunked.lisp
lisp
(ql:quickload :hinge) (defpackage :hinge-example (:use :cl :hinge :hinge.http)) (in-package :hinge-example) (let ((server (make-instance 'http-server))) (add-listener server "request" (lambda (request response) (declare (ignorable request)) (write-head response ...
e6542d4caf0597375748b63ccc104152d9c13e59866c023a5d40d39deedf7272
eskimor/purescript-bridge
Spec.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeSynonymInstances #-} module Main where im...
null
https://raw.githubusercontent.com/eskimor/purescript-bridge/b5b71f1864e58021ed3e850559f7b82ed9916e3e/test/Spec.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE RankNTypes # # LANGUAGE TypeSynonymInstances # No record optics for multi-constructors
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # module Main where import qualified Data.Map as Map import Data.Monoid ((<>)) import Data.Proxy import qualified Data.Text as T import Data.Word (W...