_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
bb250290a835bdffd1e0cfcf2143bce1fafb748150de1cb12486b245a3fe9d2c
privet-kitty/dufy
illuminants.lisp
;;; ;;; Supplemental data of standard illuminants All the illuminants are defined under DUFY:+OBS - CIE1931 + ( 2 - degree observer ) ;;; (originally contributed by wasserwerk) ;;; (in-package :dufy/extra-data) ;; The white points of illuminants A, B, C, and D in dufy are calculated with 5 nm intervals . ( See th...
null
https://raw.githubusercontent.com/privet-kitty/dufy/c6ad03a9fca16a759c1c52449ac88420a536feca/src/extra-data/illuminants.lisp
lisp
Supplemental data of standard illuminants (originally contributed by wasserwerk) The white points of illuminants A, B, C, and D in dufy are illuminant B -data the same value as for F11 in next columns.
All the illuminants are defined under DUFY:+OBS - CIE1931 + ( 2 - degree observer ) (in-package :dufy/extra-data) calculated with 5 nm intervals . ( See the comment in the file with the same name in dufy / core package . ) (defparameter +illum-d55+ (make-illuminant :spectrum (gen-illum-d-spectrum 5500 :rectif...
cce05676969c93bbd8c63be050be7de4524c41fe6105956df59d482a5892286f
openmusic-project/openmusic
misc-types.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; misc-types.lisp --- Various tests on the type system. ;;; Copyright ( C ) 2005 - 2006 , loliveira(@)common - lisp.net > ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation fi...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/api/foreign-interface/ffi/CFFI/tests/misc-types.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- misc-types.lisp --- Various tests on the type system. 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, d...
Copyright ( C ) 2005 - 2006 , loliveira(@)common - lisp.net > 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 WARRANTY ...
3480b457b3ef9c9ae3a75dcdb03e4ea5d0e9b975ebfd88e50b82a12f445d9034
jedimahdi/soltan
Log.hs
module Hokm.Api.Network.Wai.Log ( logMiddleware ) where import Colog ( LogAction, usingLoggerT ) import Control.Lens ( (^.) ) import qualified Data.ByteString as W8 import qualified Data.List as List import q...
null
https://raw.githubusercontent.com/jedimahdi/soltan/50a97213ec83c81f5ec79898e2855d0c5e78f06c/backend/hokm-api/src/Hokm/Api/Network/Wai/Log.hs
haskell
module Hokm.Api.Network.Wai.Log ( logMiddleware ) where import Colog ( LogAction, usingLoggerT ) import Control.Lens ( (^.) ) import qualified Data.ByteString as W8 import qualified Data.List as List import q...
775b2f651f70e94bbcaf4fdf4ae27ec03fd893a9eba5a6a76a65895a7736da67
leo-zz-shuu/mfc
Utils.hs
module Macaf.Utils where import Control.Monad.State locally :: MonadState s m => m a -> m a locally computation = do oldState <- get result <- computation put oldState return result
null
https://raw.githubusercontent.com/leo-zz-shuu/mfc/4a9762727b87d079a914d2c5cd411a2e04a1982f/src/Macaf/Utils.hs
haskell
module Macaf.Utils where import Control.Monad.State locally :: MonadState s m => m a -> m a locally computation = do oldState <- get result <- computation put oldState return result
207bda6902b05e9d61ff98673898df0bd9fb6b6224d6ff3855772ad7dfd72062
reborg/clojure-essential-reference
4.clj
< 1 > Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. nil < 2 > 2
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/TheToolbox/clojure.core.server/4.clj
clojure
< 1 > Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. nil < 2 > 2
c78145b5a2327046e710369a5a0544e4278518b267a3c87945d496ef3d1610e6
slipstream/SlipStreamServer
javawrapper.clj
(ns sixsq.slipstream.prs.javawrapper " # Java interface to library for interaction with Placement and Ranking Service. " {:doc/format :markdown} (:require [clojure.data.json :as json] [clojure.string :as str] [clojure.tools.logging :as log] [clojure.walk :as walk]) (:import [com.sixsq.slipst...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/jar-prslib/src/clj/sixsq/slipstream/prs/javawrapper.clj
clojure
(ns sixsq.slipstream.prs.javawrapper " # Java interface to library for interaction with Placement and Ranking Service. " {:doc/format :markdown} (:require [clojure.data.json :as json] [clojure.string :as str] [clojure.tools.logging :as log] [clojure.walk :as walk]) (:import [com.sixsq.slipst...
088bb9a42b6af6343558d9c550de8eed6662b13efb9874ef3c324da30db4fc0a
active-group/active-clojure
debug.clj
(ns active.clojure.debug) (defmacro pret [x] "Print and return the argument." `(let [x# ~x] (println x#) x#))
null
https://raw.githubusercontent.com/active-group/active-clojure/44050a1292fa610dde732d5fbfc42c37ad976d3a/src/active/clojure/debug.clj
clojure
(ns active.clojure.debug) (defmacro pret [x] "Print and return the argument." `(let [x# ~x] (println x#) x#))
b2ce9fd4a46348d94abc6bd502cb3df4406ae6a25aaf9bb20debe39a929f8009
inria-parkas/sundialsml
cvRoberts_dns_constraints.ml
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2008/12/29 22:21:29 $ * ----------------------------------------------------------------- * Programmer(s ): , and * @ LLNL * --------------------------------------------------...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/cvode/serial/cvRoberts_dns_constraints.ml
ocaml
Problem Constants number of equations initial y components scalar relative tolerance vector absolute tolerance components initial time first output time output time factor number of output times number of root functions Set the vector absolute tolerance Call CVodeIn...
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2008/12/29 22:21:29 $ * ----------------------------------------------------------------- * Programmer(s ): , and * @ LLNL * --------------------------------------------------...
5fe4821054098cce9fb6f8a7573c45fe4b7ed89a9dc8b5d5ebcfc87ef2b3b00c
kaznum/programming_in_ocaml_exercise
for.ml
let rec for_to (init : int ref) max body = if !init <= max then begin body (); init := !init + 1; for_to init max body end;; let rec for_downto (init : int ref) min body = if min <= !init then begin body (); init := !init - 1; for_downto init min body end;; let n = ref 1 in for_to n 10 (fun () -> p...
null
https://raw.githubusercontent.com/kaznum/programming_in_ocaml_exercise/6f6a5d62a7a87a1c93561db88f08ae4e445b7d4e/ex8.6/for.ml
ocaml
let rec for_to (init : int ref) max body = if !init <= max then begin body (); init := !init + 1; for_to init max body end;; let rec for_downto (init : int ref) min body = if min <= !init then begin body (); init := !init - 1; for_downto init min body end;; let n = ref 1 in for_to n 10 (fun () -> p...
b78f904af2a505e8d338fca404b147240ba80a77b0fe53e2a4bebed6b4e506b3
vivid-inc/ash-ra-template
ordering.clj
(ns com.acme.ordering) (def ^:const minimum-purchase-dollars 50) (defn minimum-order-qty "Absent-minded calculation of the minimum purchase price." [unit-price] (int (Math/ceil (/ (float minimum-purchase-dollars) (float unit-price)))))
null
https://raw.githubusercontent.com/vivid-inc/ash-ra-template/f64be7efd6f52ccd451cddb851f02511d1665b11/examples/custom-options/src/com/acme/ordering.clj
clojure
(ns com.acme.ordering) (def ^:const minimum-purchase-dollars 50) (defn minimum-order-qty "Absent-minded calculation of the minimum purchase price." [unit-price] (int (Math/ceil (/ (float minimum-purchase-dollars) (float unit-price)))))
e21afd567678ce8dacb3295c42430ac531dd515fdc6f5d47e74e77aff37ea2b8
ivankelly/gambit
web-server.scm
#!/usr/bin/env gsi-script File : " web-server.scm " , Time - stamp : < 2008 - 12 - 17 13:41:03 feeley > Copyright ( c ) 2004 - 2008 by , All Rights Reserved . ; A minimal web server which implements a web-site with a few ; interesting examples. ;================================================================...
null
https://raw.githubusercontent.com/ivankelly/gambit/7377246988d0982ceeb10f4249e96badf3ff9a8f/examples/web-server/web-server.scm
scheme
A minimal web server which implements a web-site with a few interesting examples. ============================================================================== import Gambit procedures and variables import HTTP procedures and variables import HTML procedures and variables import BASE64 procedures and variables ...
#!/usr/bin/env gsi-script File : " web-server.scm " , Time - stamp : < 2008 - 12 - 17 13:41:03 feeley > Copyright ( c ) 2004 - 2008 by , All Rights Reserved . (define main (lambda (arg) (let ((port-number (string->number arg))) (http-server-start! (make-http-server po...
5582d96aad343c1d64359ca84b55c582e019dd4a7918f78ebe09e2090188f918
adamdoupe/find_ear_rails
print_cfg.ml
open Parse_helper open Printf open Cfg open Cfg_printer let _ = if (Array.length Sys.argv) != 2 then begin eprintf "Usage: print_cfg <ruby_file> \n"; exit 1 end; let fname = Sys.argv.(1) in let ast = try Parse_helper.parse_file fname with Invalid_argument(_) -> parse_file fname in le...
null
https://raw.githubusercontent.com/adamdoupe/find_ear_rails/38f892f9962ad415a583973caf24fbab1a011be1/diamondback-ruby-0.20090726/src/print_cfg.ml
ocaml
open Parse_helper open Printf open Cfg open Cfg_printer let _ = if (Array.length Sys.argv) != 2 then begin eprintf "Usage: print_cfg <ruby_file> \n"; exit 1 end; let fname = Sys.argv.(1) in let ast = try Parse_helper.parse_file fname with Invalid_argument(_) -> parse_file fname in le...
7becaf3a783a1bf3e6cd4ceddc1e5cda1c2f14336a70985b85ede3aac8ade1b0
racket/typed-racket
rational-literal.rkt
#;#; #<<END TR opt: rational-literal.rkt 2:0 (+ 3/4 1.2) -- binary float END #<<END 1.95 END #lang typed/racket #:optimize #reader typed-racket-test/optimizer/reset-port ;; rational literals should be promoted to floats at compile time (+ 3/4 1.2)
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/optimizer/tests/rational-literal.rkt
racket
#; rational literals should be promoted to floats at compile time
#<<END TR opt: rational-literal.rkt 2:0 (+ 3/4 1.2) -- binary float END #<<END 1.95 END #lang typed/racket #:optimize #reader typed-racket-test/optimizer/reset-port (+ 3/4 1.2)
90aa393d23ce5b742e0cca76fab68042cd276fc1daa1a494d00957d0dc62c7c0
helium/miner
miner.erl
-module(miner). -behavior(gen_server). -include_lib("blockchain/include/blockchain_vars.hrl"). -include_lib("blockchain/include/blockchain.hrl"). %% API -export([ start_link/0, p2p_status/0, block_age/0, relcast_info/1, relcast_queue/1, hbbft_artifact/0, hbbft_status/0, hbbft_skip/0, ...
null
https://raw.githubusercontent.com/helium/miner/5d9f6132d87d06ac5a0f02ea5da7dbe9f730755d/src/miner.erl
erlang
API gen_server NOTE: a miner may or may not participate in consensus but every miner keeps a timer reference? ---------------------------------------------------------------------------- API ---------------------------------------------------------------------------- TODO: spec TODO: spec if the miner noprocs...
-module(miner). -behavior(gen_server). -include_lib("blockchain/include/blockchain_vars.hrl"). -include_lib("blockchain/include/blockchain.hrl"). -export([ start_link/0, p2p_status/0, block_age/0, relcast_info/1, relcast_queue/1, hbbft_artifact/0, hbbft_status/0, hbbft_skip/0, cre...
259b332a3c9f19ee5329a88fb5a232177a4341d0bb077d1d953e099ac6358b7b
lambdacube3d/lambdacube-edsl
ObjParser.hs
{-# LANGUAGE OverloadedStrings #-} module ObjParser where import System.Environment import Control.Applicative import Control.Monad import Control.Monad.State.Strict import Data.ByteString.Lazy.Char8 (ByteString) import qualified Data.ByteString.Lazy.Char8 as B import LambdaCube.GL -- {- data ObjMesh = ObjMesh ...
null
https://raw.githubusercontent.com/lambdacube3d/lambdacube-edsl/4347bb0ed344e71c0333136cf2e162aec5941df7/lambdacube-gl/src/lib/LambdaCube/GL/ObjParser.hs
haskell
# LANGUAGE OverloadedStrings # data ObjMesh = ObjMesh { points :: [Int] , lines :: [Int] , triangles :: [Int] -- , name } [] -> return () * Supported statements Elements Display/render attributes * Unsupported statements ( for future work ) Vertex data Elements Free - fvorm curve /...
module ObjParser where import System.Environment import Control.Applicative import Control.Monad import Control.Monad.State.Strict import Data.ByteString.Lazy.Char8 (ByteString) import qualified Data.ByteString.Lazy.Char8 as B import LambdaCube.GL data ObjState = ObjState { position :: [V3F] , normal ...
f22e27f6c6bc69353073e564033773503f1d7bd743618b60f39e173cce4847ae
clojang/jiface
object.clj
(ns jiface.erlang.object (:import (com.ericsson.otp.erlang OtpErlangObject OtpErlangExternalFun OtpErlangFun OtpInputStream OtpOutputStream)) (:refer-clojure :exclude [hash])) (defprotocol Erlang...
null
https://raw.githubusercontent.com/clojang/jiface/dcc9e9463eec143b99ce5cf104b5201f7847a1dd/src/jiface/erlang/object.clj
clojure
(ns jiface.erlang.object (:import (com.ericsson.otp.erlang OtpErlangObject OtpErlangExternalFun OtpErlangFun OtpInputStream OtpOutputStream)) (:refer-clojure :exclude [hash])) (defprotocol Erlang...
b0d13f28dcdf971b27fa3e81b5222cf60c31aa0cdbb51ac97f1f363d07a2767c
threatgrid/ctia
data_table.clj
(ns ctia.entity.data-table (:require [ctia.domain.entities :refer [default-realize-fn]] [ctia.http.routes.common :as routes.common] [ctia.http.routes.crud :refer [services->entity-crud-routes]] [ctia.schemas.core :refer [APIHandlerServices def-acl-schema def-stored-schema]] [ctia.schemas.sorting :refer...
null
https://raw.githubusercontent.com/threatgrid/ctia/9e6cd48ffb7d3fd6ca4eac9eba9a19970eef7413/src/ctia/entity/data_table.clj
clojure
(ns ctia.entity.data-table (:require [ctia.domain.entities :refer [default-realize-fn]] [ctia.http.routes.common :as routes.common] [ctia.http.routes.crud :refer [services->entity-crud-routes]] [ctia.schemas.core :refer [APIHandlerServices def-acl-schema def-stored-schema]] [ctia.schemas.sorting :refer...
6cad0577442d41eb177812bafc928f4b40a4de6f95c3b011cdca833c635b4b92
metaocaml/ber-metaocaml
includeclass.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/typing/includeclass.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1997 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Types let class_types env cty1 cty2 = Ctype.match_class_types env cty1 cty2 let class_type_declara...
6aa7308fdd27ee49c6bdb7001cf2ed51cb5ca241de4f564743e2fc3fa8721bfd
c4-project/c4f
global.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/config/test/global.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
e6bc5c6b7ab20c7bcc774f31ce3c0d990c30dc7bc88e42c8909b03b672feb46b
emmabastas/elm-embed
Kernel.hs
# OPTIONS_GHC -Wall # # LANGUAGE BangPatterns , EmptyDataDecls , OverloadedStrings , UnboxedTuples # module Elm.Kernel ( Content(..) , Chunk(..) , fromByteString , countFields ) where import Control.Monad (liftM, liftM2) import Data.Binary (Binary, get, put, getWord8, putWord8) import qualified Data.ByteS...
null
https://raw.githubusercontent.com/emmabastas/elm-embed/c2c4f9dcc5c4f47480f728247ff7b4d0700d7476/compiler/src/Elm/Kernel.hs
haskell
COUNT FIELDS FROM FILE /* */ _ _ \n relies on external checks in chompChunks $ a z FIELDS PROCESS IMPORTS _ _ BINARY
# OPTIONS_GHC -Wall # # LANGUAGE BangPatterns , EmptyDataDecls , OverloadedStrings , UnboxedTuples # module Elm.Kernel ( Content(..) , Chunk(..) , fromByteString , countFields ) where import Control.Monad (liftM, liftM2) import Data.Binary (Binary, get, put, getWord8, putWord8) import qualified Data.ByteS...
5d6e8cc1477a5a824fe5c695d17914c9037061f995f5e698f88ff6b01bcff056
haskus/haskus-system
Error.hs
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE TemplateHaskell # # LANGUAGE LambdaCase # -- | System calls error codes module Haskus.System.Linux.Internals.Error ( ErrorCode (..) ) where import Data.Data import System.IO.Unsafe import Haskus.Binary.Storable ...
null
https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system/src/lib/Haskus/System/Linux/Internals/Error.hs
haskell
# LANGUAGE DeriveDataTypeable # | System calls error codes ============================================================= From linux/include/uapi/asm-generic/errno-base.h and linux/include/uapi/asm-generic/errno.h ============================================================= DO NOT CHANGE THE CONSTRUCTOR OR...
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # # LANGUAGE TemplateHaskell # # LANGUAGE LambdaCase # module Haskus.System.Linux.Internals.Error ( ErrorCode (..) ) where import Data.Data import System.IO.Unsafe import Haskus.Binary.Storable import Haskus.Number.Word import GHC.Ptr import Haskus.Binary.Enum...
bfcbd1f0058896c1fa258c9c2456575a46203ba28c999519455188f5d4abca50
AccelerateHS/accelerate-fft
FFT.hs
# LANGUAGE CPP # {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} # L...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-fft/3c195de6a4528071388d817f55b0a7adf0547cc6/src/Data/Array/Accelerate/Math/FFT.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE EmptyDataDecls # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # | Module : Data.Array.Accelerate.Math.FFT License : BSD3 Stability : experimental For performance, compile against the foreign library bindings (using any number of '-fl...
# LANGUAGE CPP # # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # Copyright : [ 2012 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC e...
41cecb95544571f7a5edb94e3ded4810aafbbf99becd54bfc76df0d5698cf2f0
diku-dk/futhark
Traversals.hs
-- | -- Functions for generic traversals across syntax trees . The -- motivation for this module came from dissatisfaction with rewriting -- the same trivial tree recursions for every module. A possible -- alternative would be to use normal \"Scrap your boilerplate\"-techniques , but these are rejected for two ...
null
https://raw.githubusercontent.com/diku-dk/futhark/b562f0c340748cfbd200ee823201bf727fc76270/src/Language/Futhark/Traversals.hs
haskell
| motivation for this module came from dissatisfaction with rewriting the same trivial tree recursions for every module. A possible alternative would be to use normal \"Scrap your * They are too slow. * More importantly, they do not tell you whether you have missed some cases. tree. The impleme...
Functions for generic traversals across syntax trees . The boilerplate\"-techniques , but these are rejected for two reasons : Instead , this module defines various traversals of the syntax A traversal of the syntax tree is expressed as a record of module Language.Futhark.Traversals ( ASTMapper (..), ...
fe8e4b40c7d28c4b1648b71bc6bfd99c170e4f1dfc36eff0801da7fa06ade862
dimitri/pgloader
ixf-connection.lisp
;;; Tools to handle IBM PC version of IXF file format ;;; (in-package :pgloader.source.ixf) (defclass ixf-connection (fd-connection) () (:documentation "pgloader connection parameters for IXF files.")) (defmethod initialize-instance :after ((ixfconn ixf-connection) &key) "Assign the type slot to dbf." (setf ...
null
https://raw.githubusercontent.com/dimitri/pgloader/3047c9afe141763e9e7ec05b7f2a6aa97cf06801/src/sources/ixf/ixf-connection.lisp
lisp
Tools to handle IBM PC version of IXF file format (in-package :pgloader.source.ixf) (defclass ixf-connection (fd-connection) () (:documentation "pgloader connection parameters for IXF files.")) (defmethod initialize-instance :after ((ixfconn ixf-connection) &key) "Assign the type slot to dbf." (setf (slot-va...
cf9745eb686c0a3926688b7ea802ea9a439799cd0da52e0aee2c000b81843079
byorgey/diagrams-play
SquareSide.hs
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Prelude import Diagrams.Backend.Cairo.CmdLine import Control.Lens dia = mconcat . (element 2 %~ lc blue) . concat . explodePath $ square 1 main = defaultMain (dia # pad 1.1)
null
https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/SquareSide.hs
haskell
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Prelude import Diagrams.Backend.Cairo.CmdLine import Control.Lens dia = mconcat . (element 2 %~ lc blue) . concat . explodePath $ square 1 main = defaultMain (dia # pad 1.1)
8644f7149ad44bf6b1c87e39b50f7bd272c1fd32ea23660e5276d38d44de19b5
thelema/ocaml-community
debugger_config.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Cr...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/debugger/debugger_config.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . excepti...
959d074e9ae8b5321639951628b4b937b46c4c8cfbe64a73e8af82c6e086cf9a
terezka/cherry-core
Result.hs
| Module : Result Description : A ` Result ` is the result of a computation that may fail . This is a great way to manage errors . License : BSD 3 Maintainer : Stability : experimental Portability : POSIX A ` Result ` is the result of a computation that may fail . This is a great way t...
null
https://raw.githubusercontent.com/terezka/cherry-core/d9bd446e226fc9b04783532969fa670211a150c6/src/Result.hs
haskell
* Mapping * Chaining * Handling Errors * Conversions from Haskell Types | A `Result` is either `Ok` meaning the computation succeeded, or it is an `Err` meaning that there was some failure. | Apply a function to a result. If the result is `Ok`, it will be converted. If the result is an `Err`, the same error value ...
| Module : Result Description : A ` Result ` is the result of a computation that may fail . This is a great way to manage errors . License : BSD 3 Maintainer : Stability : experimental Portability : POSIX A ` Result ` is the result of a computation that may fail . This is a great way t...
0cc50fa7ceb657a0ff6f0d9e008c6dc59e088e66743c7f2c8e0f5a42ce1d6481
janestreet/delimited_parsing
read.ml
open Core open Async include Delimited_kernel.Read open Deferred.Let_syntax the maximum read / write I managed to get off of a socket or disk was 65k let buffer_size = 10 * 65 * 1024 module Streaming = struct include Delimited_kernel.Read.Streaming let input_reader t r = let buffer = Bytes.create buffer_si...
null
https://raw.githubusercontent.com/janestreet/delimited_parsing/da781604207173f54a16042910a3605e6176e479/src/read.ml
ocaml
The accumulator is a deferred that waits for all the outstanding row outputs to be consumed. Then you can get good pushback behaviour by waiting for the accumulator before feeding any more input in (which indeed is what the [Pipe.fold] below does). Waiting for the accumulator is not ...
open Core open Async include Delimited_kernel.Read open Deferred.Let_syntax the maximum read / write I managed to get off of a socket or disk was 65k let buffer_size = 10 * 65 * 1024 module Streaming = struct include Delimited_kernel.Read.Streaming let input_reader t r = let buffer = Bytes.create buffer_si...
dbbf7fd8b19f3dad99a461de6649dd86cf9848073d7af0ec27bf6e3566f3db53
pepe/two-in-shadows
material.cljs
(ns two-in-shadows.client.material (:require [rum.core :as rum] ["@material/ripple" :as ripple] ["@material/textfield" :as text-field])) (def fixed-toolbar :header.mdc-toolbar.mdc-toolbar--fixed) (def toolbar-row :div.mdc-toolbar__row) (def toolbar-section-start :section.mdc-toolbar__sectio...
null
https://raw.githubusercontent.com/pepe/two-in-shadows/b49a484cf1cc1a9a2e0a5ffb358acfe0f56d895c/src/two_in_shadows/client/material.cljs
clojure
(ns two-in-shadows.client.material (:require [rum.core :as rum] ["@material/ripple" :as ripple] ["@material/textfield" :as text-field])) (def fixed-toolbar :header.mdc-toolbar.mdc-toolbar--fixed) (def toolbar-row :div.mdc-toolbar__row) (def toolbar-section-start :section.mdc-toolbar__sectio...
579fd21f0f11e79b5285e112ad23b060effd8bb737a99090afc67c9ff2e466c6
valis/hoq
Definitions.hs
module TypeChecking.Definitions ( typeCheckDefs ) where import Data.Void import Syntax import Syntax.ErrorDoc import TypeChecking.Expressions import TypeChecking.Expressions.Utils import TypeChecking.Definitions.Records import TypeChecking.Definitions.DataTypes import TypeChecking.Definitions.Functions import...
null
https://raw.githubusercontent.com/valis/hoq/9d2d2f5dee367ca5a609199856ca5964499bf33a/src/TypeChecking/Definitions.hs
haskell
module TypeChecking.Definitions ( typeCheckDefs ) where import Data.Void import Syntax import Syntax.ErrorDoc import TypeChecking.Expressions import TypeChecking.Expressions.Utils import TypeChecking.Definitions.Records import TypeChecking.Definitions.DataTypes import TypeChecking.Definitions.Functions import...
0e7ea3030cd1599fd62dc4a8becf3ff45eba3ccd27795ec5b027dbb414c8a3eb
pink-gorilla/demo-goldly
quil.cljs
(ns qil-demo (:require [reagent.core :as reagent :refer [atom]] [quil.core :as q :include-macros true] [quil.middleware :as m])) (def w 400) (def h 400) (defn setup [] {:t 1}) (defn update [state] (update-in state [:t] inc)) (defn draw [state] (q/background 255) (q/fill 0) (q/ellipse (rem (:t state) w...
null
https://raw.githubusercontent.com/pink-gorilla/demo-goldly/a3edeefc2a164fa38beb877b60bfa76b9b1faad6/src/notebook/bad/quil.cljs
clojure
- -project/reagent-cookbook/tree/master/recipes/canvas-fills-div - -03-30-Interactive-Sierpinski-Triangle/ - - -sketch-on-a-reagent-canvas - -project/reagent-cookbook/tree/master/recipes/canvas-fills-div - - -02-16-Random-Polygons/ **
(ns qil-demo (:require [reagent.core :as reagent :refer [atom]] [quil.core :as q :include-macros true] [quil.middleware :as m])) (def w 400) (def h 400) (defn setup [] {:t 1}) (defn update [state] (update-in state [:t] inc)) (defn draw [state] (q/background 255) (q/fill 0) (q/ellipse (rem (:t state) w...
bcc4533074c0d605403179f7c5a47dad4f63566cda2b0b887f1bfa046e7cce99
luksamuk/sonic-lisp-engine
globals.lisp
;;;; globals.lisp Copyright ( c ) 2018 - 2020 < > This file is distributed under the MIT License . ;;;; See LICENSE for details. (in-package :sonic-lisp) (defvar +black+ (gamekit:vec4 0 0 0 1)) (defvar +black-transp+ (gamekit:vec4 0 0 0 0.5)) (defvar +white+ (gamekit:vec4 1 1 1 1)) (defvar +cornflower-blue+ ...
null
https://raw.githubusercontent.com/luksamuk/sonic-lisp-engine/28987769a8c60411862a415010e44c495c4ea875/globals.lisp
lisp
globals.lisp See LICENSE for details. Level BGM Engine test BGM Miscellaneous BGM YOU SAY!
Copyright ( c ) 2018 - 2020 < > This file is distributed under the MIT License . (in-package :sonic-lisp) (defvar +black+ (gamekit:vec4 0 0 0 1)) (defvar +black-transp+ (gamekit:vec4 0 0 0 0.5)) (defvar +white+ (gamekit:vec4 1 1 1 1)) (defvar +cornflower-blue+ (gamekit:vec4 (/ 100 255) (/ 1...
e6a99e89f798fdc8fe824d18eb59b84932a4f82dc1eb7cf718851db08a2a5e84
nyu-acsys/drift
app-nonrec.ml
let apply (ab:int) (af: int->unit) ax = af ax let check (cx:int) (cy:int) = assert (cx = cy) let main_p (n:int) = apply n (check n) n let main (w:unit) = let _ = main_p 2 in let _ = for i = 1 to 1000000 do main ( Random.int 1000 ) done for i = 1 to 1000000 do main (Random.int 1000...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/DOrder/high/app-nonrec.ml
ocaml
let apply (ab:int) (af: int->unit) ax = af ax let check (cx:int) (cy:int) = assert (cx = cy) let main_p (n:int) = apply n (check n) n let main (w:unit) = let _ = main_p 2 in let _ = for i = 1 to 1000000 do main ( Random.int 1000 ) done for i = 1 to 1000000 do main (Random.int 1000...
86793292d355ba6b41e489c97b5b7a43dbaee9dbaae9d67314cfa1f2f334328d
mpickering/apply-refact
Default54.hs
yes = id 1
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Default54.hs
haskell
yes = id 1
c1c0424b33fd9c83f7f640e0fe936702a215138ac151ff5a8ff4858b2d2c8620
artyom-poptsov/guile-smc
guix.scm
guix.scm --- GNU Guix package recipe -*- coding : utf-8 -*- ;; Copyright ( C ) 2021 - 2022 Artyom V. Poptsov < > ;; This file is part of Guile - SMC . ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free S...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-smc/f997f138642c77afd430af0b52dea8b2b7a6875f/guix.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Publi...
guix.scm --- GNU Guix package recipe -*- coding : utf-8 -*- Copyright ( C ) 2021 - 2022 Artyom V. Poptsov < > This file is part of Guile - SMC . it 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 recei...
7a8b91378d6fe7d16fff401f62936b41bb582f0774bea97de7bd70685db70d31
sky-big/RabbitMQ
rabbit_connection_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/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/src/rabbit_connection_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...
9edfbd488aac245607bd9d7ca40b29f830e1b64370d7ca1a373feaa77c248f35
ds-wizard/engine-backend
DocumentDTO.hs
module Wizard.Api.Resource.Document.DocumentDTO where import Data.Time import qualified Data.UUID as U import GHC.Generics import GHC.Int import Wizard.Api.Resource.DocumentTemplate.DocumentTemplateSimpleDTO import Wizard.Api.Resource.DocumentTemplate.DocumentTemplateSimpleJM () import Wizard.Api.Resource.Submission....
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/src/Wizard/Api/Resource/Document/DocumentDTO.hs
haskell
module Wizard.Api.Resource.Document.DocumentDTO where import Data.Time import qualified Data.UUID as U import GHC.Generics import GHC.Int import Wizard.Api.Resource.DocumentTemplate.DocumentTemplateSimpleDTO import Wizard.Api.Resource.DocumentTemplate.DocumentTemplateSimpleJM () import Wizard.Api.Resource.Submission....
36b999c4946e4b7609cec309091249005dff03d086cf570efe08b2fcb06bda27
ghcjs/ghcjs
carryOverflow.hs
# LANGUAGE MagicHash , UnboxedTuples # import GHC.Prim import GHC.Word import GHC.Exts import Control.Monad import Data.Bits import Data.List import System.Exit allEqual :: Eq a => [a] -> Bool allEqual [] = error "allEqual: nothing to compare" allEqual (x:xs) = all (== x) xs testWords :: [Word] testWords = map head...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/numeric/carryOverflow.hs
haskell
plusWord2# (Word# carry) addIntC# (Int# addition overflow) subIntC# (Int# subtraction overflow)
# LANGUAGE MagicHash , UnboxedTuples # import GHC.Prim import GHC.Word import GHC.Exts import Control.Monad import Data.Bits import Data.List import System.Exit allEqual :: Eq a => [a] -> Bool allEqual [] = error "allEqual: nothing to compare" allEqual (x:xs) = all (== x) xs testWords :: [Word] testWords = map head...
3ed2d97e43a5014f6e2d79b80bd19e2e18f7d44d6220808886ab2f934ed26ba5
albertoruiz/easyVision
Image.hs
module Image ( Image(), Size(..), ROI(..), Pixel(..), Point(..), I8u, I8u3, I32f, Word24(..), Gray, RGB, Channels(..), size, roi, modifyROI, setROI, saveImage, loadRGB, img2mat, mat2img, ) where import Image.Core import Image.Convert import Util.Geometry(Point(..)) data Channels = CHIm { y...
null
https://raw.githubusercontent.com/albertoruiz/easyVision/26bb2efaa676c902cecb12047560a09377a969f2/packages/base/src/Image.hs
haskell
module Image ( Image(), Size(..), ROI(..), Pixel(..), Point(..), I8u, I8u3, I32f, Word24(..), Gray, RGB, Channels(..), size, roi, modifyROI, setROI, saveImage, loadRGB, img2mat, mat2img, ) where import Image.Core import Image.Convert import Util.Geometry(Point(..)) data Channels = CHIm { y...
97c669be0c6ac3e490fde2e73d5de3c0732ad1bf8b5713cadc4256f038980e29
sorawee/fmt
kws.rkt
#lang racket/base (provide get-kws) (require racket/match pprint-compact (only-in fmt/conventions all-kws)) (define (flow xs) (match xs ['() empty-doc] [(cons x xs) (let loop ([xs xs] [acc (text x)]) (match xs ['() acc] [(list x xs ...) (define elem...
null
https://raw.githubusercontent.com/sorawee/fmt/2a068a29a7e043d88317a31d3fc0b6cc3de6d592/scribblings/kws.rkt
racket
#lang racket/base (provide get-kws) (require racket/match pprint-compact (only-in fmt/conventions all-kws)) (define (flow xs) (match xs ['() empty-doc] [(cons x xs) (let loop ([xs xs] [acc (text x)]) (match xs ['() acc] [(list x xs ...) (define elem...
136d9818582f8bdfdd02e6c43ba84aa42cda67acea84c227fa7a7a5a60e0f00d
symbiont-io/detsys-testkit
LineariseWithFault.hs
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE ScopedTypeVariables # module Lec04.LineariseWithFault where import Control.Concurrent.STM (TQueue, atomically, writeTQueue) import Data.Tree (Forest, Tree(Node)) import Test.QuickCheck hiding (Result) import Lec01SMTesting (Command, Response) import L...
null
https://raw.githubusercontent.com/symbiont-io/detsys-testkit/08a43616994595c08965e7f9a543dff4af271051/doc/advanced-testing-mini-course/src/Lec04/LineariseWithFault.hs
haskell
---------------------------------------------------------------------- should this has a cmd? ------------------------------------------------------------------------------ Testing ------------------------------------------------------------------------------ ----------------------------------------------------------...
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE ScopedTypeVariables # module Lec04.LineariseWithFault where import Control.Concurrent.STM (TQueue, atomically, writeTQueue) import Data.Tree (Forest, Tree(Node)) import Test.QuickCheck hiding (Result) import Lec01SMTesting (Command, Response) import L...
91396207f64cc81b60bbeb1b1bddb69b3d006bc8c38f24f743cb2fa3fdaead05
buntine/Simply-Scheme-Exercises
20-7.scm
; Another problem with ask-user is that it allows a user to request a square that ; isn't free. If the user does this, what happens? Fix ask-user to ensure that this can't ; happen. (define (ask-user position letter) (print-position position) (display letter) (display "’s move: ") (let ((answer (read))) (i...
null
https://raw.githubusercontent.com/buntine/Simply-Scheme-Exercises/c6cbf0bd60d6385b506b8df94c348ac5edc7f646/20-input-and-output/20-7.scm
scheme
Another problem with ask-user is that it allows a user to request a square that isn't free. If the user does this, what happens? Fix ask-user to ensure that this can't happen.
(define (ask-user position letter) (print-position position) (display letter) (display "’s move: ") (let ((answer (read))) (if (member? answer '(1 2 3 4 5 6 7 8 9)) (if (equal? (item answer position) '_) answer (fail-and-retry "Sorry, that square is taken." ask...
f41fe80bdb1d3d7b35cfb85a64239c901a102833fa84404b9225f7dd0569e4e9
gsakkas/rite
3322.ml
let rec mulByDigit i l = match List.rev l with | [] -> [] | h::t -> [mulByDigit i (List.rev l); h * i];; (* fix let rec mulByDigit i l = match List.rev l with | [] -> [] | h::t -> (mulByDigit i (List.rev l)) @ [h * i];; *) changed spans ( 5,13)-(5,47 ) mulByDigit i ( List.rev l ) @ ...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/data/sp14/3322.ml
ocaml
fix let rec mulByDigit i l = match List.rev l with | [] -> [] | h::t -> (mulByDigit i (List.rev l)) @ [h * i];;
let rec mulByDigit i l = match List.rev l with | [] -> [] | h::t -> [mulByDigit i (List.rev l); h * i];; changed spans ( 5,13)-(5,47 ) mulByDigit i ( List.rev l ) @ [ h * i ] AppG [ AppG [ EmptyG , EmptyG],ListG [ EmptyG ] ] (5,13)-(5,47) mulByDigit i (List.rev l) @ [h * i] ...
baf4b760c36ff627038f16e8de6dfade939567bfdfb11740d4fcfbf3e7e697cc
clojure-interop/google-cloud-clients
VideoIntelligenceServiceStubSettings.clj
(ns com.google.cloud.videointelligence.v1.stub.VideoIntelligenceServiceStubSettings "Settings class to configure an instance of VideoIntelligenceServiceStub. The default instance has everything set to sensible defaults: The default service address (videointelligence.googleapis.com) and default port (443) are...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.videointelligence/src/com/google/cloud/videointelligence/v1/stub/VideoIntelligenceServiceStubSettings.clj
clojure
"
(ns com.google.cloud.videointelligence.v1.stub.VideoIntelligenceServiceStubSettings "Settings class to configure an instance of VideoIntelligenceServiceStub. The default instance has everything set to sensible defaults: The default service address (videointelligence.googleapis.com) and default port (443) are...
10c2575035f06411cdac38a0e3eec09d61329f8f2fe9a91f8e307b7dd7955450
ucsd-progsys/nate
records.3.ml
(*F*) type 'a t = { a : 'a ; mutable b : 'a ; c : 'a list ; d : int ; } type s = { x : unit } let x : int t = { a = 0; b = 0; c = [0]; d = 0; x = () } let () = x.b <- 1
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/easyocaml-additional/exams/records.3.ml
ocaml
F
type 'a t = { a : 'a ; mutable b : 'a ; c : 'a list ; d : int ; } type s = { x : unit } let x : int t = { a = 0; b = 0; c = [0]; d = 0; x = () } let () = x.b <- 1
a54e6b8c05e6fe19734527f9e177690a85d65eb49a100d5029a17d7d038e7d25
GrammaTech/sel
cpp-project.lisp
cpp-project.lisp --- C++ Projects ;;; (defpackage :software-evolution-library/software/cpp-project (:nicknames :sel/software/cpp-project :sel/sw/cpp-project) (:use :gt/full :cl-json :functional-trees/attrs :software-evolution-library :software-evolution-library/software/simple ...
null
https://raw.githubusercontent.com/GrammaTech/sel/f2d82b139ca6c05e81c482fd1bbc04fc8d9a6270/software/cpp-project.lisp
lisp
somewhere else. #+:TREE-SITTER-CPP
cpp-project.lisp --- C++ Projects (defpackage :software-evolution-library/software/cpp-project (:nicknames :sel/software/cpp-project :sel/sw/cpp-project) (:use :gt/full :cl-json :functional-trees/attrs :software-evolution-library :software-evolution-library/software/simple ...
d3549fb20aa988a1259f5ffb37ebc78fd6d8256fc0e4e46c4fd27155902d9b32
Zilliqa/scilla
Polynomial.ml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
null
https://raw.githubusercontent.com/Zilliqa/scilla/011323ac5da48ee16890b71424e057ffbc4216da/src/polynomials/Polynomial.ml
ocaml
Library to create and operate on multivariate polynomials A polynomial is a sum of terms. * NOTE: * The representation used here does not in itself guarantee * a canonicalized form. Use canonicalize_* below as needed. If a variable occurs more than once in a term, * combine the occurrences by adding the pow...
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
46613856e6678fa6eacbed39e2a65bb4f3400b15fc6fe7de17a281e37a78f36a
rd--/hsc3
iRandN.help.hs
riRandN ; two channel sin tones ; harmonic series sinOsc ar (55 * X.randN 2 1 17) 0 * 0.1 riRandN ; 5 - channel sin tones ; harmonic series splay (sinOsc ar (55 * X.randN 15 1 5) 0) 1 0.1 0 True riRandN ; 15 - channel sin tones ; harmonic series splay (sinOsc ar (55 * X.randN 12 1 17) 0) 1 0.1 0 True riRandN...
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/iRandN.help.hs
haskell
riRandN ; two channel sin tones ; harmonic series sinOsc ar (55 * X.randN 2 1 17) 0 * 0.1 riRandN ; 5 - channel sin tones ; harmonic series splay (sinOsc ar (55 * X.randN 15 1 5) 0) 1 0.1 0 True riRandN ; 15 - channel sin tones ; harmonic series splay (sinOsc ar (55 * X.randN 12 1 17) 0) 1 0.1 0 True riRandN...
d305259a6f55ca2a051cf5a8296b7f0f070acc6fd97d5386ebb02fa9e01bd27f
f4814/Tetris
Field.hs
module Tetris.Field ( Field(..) , Fail(..) , createField , emptyField ) where import Data.Matrix import Tetris.Piece import Tetris.Color import System.Random data Fail = RotationImpossible | DropImpossible | ShiftImpossible | No...
null
https://raw.githubusercontent.com/f4814/Tetris/b7e8fd82d46760e9c77f67a28d81aff137189e15/src/Tetris/Field.hs
haskell
| Create a field with predefined pieces. Only for testing
module Tetris.Field ( Field(..) , Fail(..) , createField , emptyField ) where import Data.Matrix import Tetris.Piece import Tetris.Color import System.Random data Fail = RotationImpossible | DropImpossible | ShiftImpossible | No...
dae1207c96a04ca11dc8da0eb57945129928440c8e8e77e57cd1fe7eb93c34bb
progman1/genprintlib
time_travel.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.10.0/time_travel.ml
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 Int64ops open Instruct open Events open Debugcom o...
a0b4bdbf2bd7ca96708dbf4440b0226d7ef1ee7808bd68c05bf689de88e7809f
realworldocaml/book
bench.ml
open! Base let%bench_module "Overheads" = (module struct (* Using [%bench_fun] to bind the input outside the benchmarked code actually has less overhead then using [%bench] naively. *) let%bench_fun "int overhead" = let n = Sys.opaque_identity (Random.int Int.max_value) in fun () -> Fn.id ...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ocaml_intrinsics/bench/bench.ml
ocaml
Using [%bench_fun] to bind the input outside the benchmarked code actually has less overhead then using [%bench] naively. ocaml_intrinsics library Base ocaml_intrinsics library Base ocaml_intrinsics library Base ocaml_intrinsics library ocaml_intrinsics library Time_stamp_counter ocaml_intr...
open! Base let%bench_module "Overheads" = (module struct let%bench_fun "int overhead" = let n = Sys.opaque_identity (Random.int Int.max_value) in fun () -> Fn.id n ;; let%bench_fun "int64 overhead" = let n = Sys.opaque_identity (Random.int64 Int64.max_value) in fun () -> Fn.id n ...
7b8c581fe6d7729b197c7d21f3f84ff504091ee035449edb0db25f17ad867304
input-output-hk/offchain-metadata-tools
Main.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} module Main where import Control.Monad.IO.Class ( liftIO ) import Control.Monad.Logger ( runStdoutLoggingT ) import qualified Data.ByteString.C...
null
https://raw.githubusercontent.com/input-output-hk/offchain-metadata-tools/794f08cedbf555e9d207bccc45c08abbcf98add9/metadata-webhook/src/Main.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes #
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module Main where import Control.Monad.IO.Class ( liftIO ) import Control.Monad.Logger ( runStdoutLoggingT ) import qualified Data.ByteString.Char8 as C8 import qualified Data.Text as T import qualified Database.Persist.Postgresq...
6e30f68a8dd57bbfdea25246532a6a49fc59aa6640c825dae1c4690c9373f3ff
yawaramin/re-web
Let.ml
module Option = struct let (let*) = Option.bind let (let+) option f = Option.map f option end module Result = struct let (let*) result f = match result with | Ok value -> f value | Error e -> Error e let (let+) result f = match result with | Ok value -> Ok (f value) | Error e -> Error e end
null
https://raw.githubusercontent.com/yawaramin/re-web/7b407c1b98ddfac32a81c32481c40cc535c7452a/ReWeb/Let.ml
ocaml
module Option = struct let (let*) = Option.bind let (let+) option f = Option.map f option end module Result = struct let (let*) result f = match result with | Ok value -> f value | Error e -> Error e let (let+) result f = match result with | Ok value -> Ok (f value) | Error e -> Error e end
c701179aba534e824f9c83d59e9e22deac7258539564fcfff4a47829d6242e2e
SonarQubeCommunity/sonar-erlang
branchesofrecursion.erl
-module(a). quicksort([H|T]) -> {Smaller_Ones,Larger_Ones} = a:split(H,T,{[],[]}), lists:append( quicksort(Smaller_Ones), [H | quicksort(Larger_Ones)] ); quicksort([]) -> []. split(Pivot, [H|T], {Acc_S, Acc_L}) -> if Pivot > H -> New_Acc = { [H|Acc_S] , Acc_L }; tru...
null
https://raw.githubusercontent.com/SonarQubeCommunity/sonar-erlang/279eb7ccd84787c1c0cfd34b9a07981eb20183e3/erlang-squid/src/test/resources/metrics/branchesofrecursion.erl
erlang
-module(a). quicksort([H|T]) -> {Smaller_Ones,Larger_Ones} = a:split(H,T,{[],[]}), lists:append( quicksort(Smaller_Ones), [H | quicksort(Larger_Ones)] ); quicksort([]) -> []. split(Pivot, [H|T], {Acc_S, Acc_L}) -> if Pivot > H -> New_Acc = { [H|Acc_S] , Acc_L }; tru...
334acb56c5ac6bbc85b02e55e60f195f36e2a9cd17fc10966b045a205d0dd301
scalaris-team/scalaris
bench_load.erl
2007 - 2014 Zuse Institute Berlin 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 di...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/bench_load.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 gov...
2007 - 2014 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(bench_load). -author(''). -vsn('$Id$'). -export([start/1]). -include("scalaris.hrl"). -spec start(Gap::pos...
7aefab948fd7314a4d68d5ca249170a49f01a62d075468b45ac4f11d3acea8e9
zenspider/schemers
exercise.4.66.scm
#!/usr/bin/env csi -s (require rackunit) (require-library logic-eval) (import logic-eval) (initialize-data-base microshaft-data-base) Exercise 4.66 has been generalizing the query system to ;; provide statistics about the company. For example, to find the ;; total salaries of all the computer programmers one w...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_4/exercise.4.66.scm
scheme
provide statistics about the company. For example, to find the total salaries of all the computer programmers one will be able to say (sum ?amount (and (job ?x (computer programmer)) (salary ?x ?amount))) (accumulation-function <VARIABLE> <QUERY...
#!/usr/bin/env csi -s (require rackunit) (require-library logic-eval) (import logic-eval) (initialize-data-base microshaft-data-base) Exercise 4.66 has been generalizing the query system to In general , 's new system allows expressions of the form or ` maximum ' . reasons that it should be a cinch to im...
42b438c3869de74be58ada1c290e90fd2fca94512efca3796b526b54b64dd28b
typedclojure/typedclojure
typedclojure_config.cljc
{:spec1-extensions [typed-example.register-spec1-extensions]}
null
https://raw.githubusercontent.com/typedclojure/typedclojure/1bac938743fd98bbf494fdab68ca58846993d1f1/example-projects/spec1-type-providers/src/typedclojure_config.cljc
clojure
{:spec1-extensions [typed-example.register-spec1-extensions]}
82766968c089fc0068596cba8c5b6263f1e7a5b2b189871bed98049afd5fd0ee
falsetru/htdp
25.2.2.scm
(define (quick-sort alon) (cond [(empty? alon) empty] [(empty? (rest alon)) alon] [else (append (quick-sort (smaller-items alon (first alon))) (list (first alon)) (quick-sort (larger-items alon (first alon))))])) (define (larger-items alon threshold) (...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/25/25.2.2.scm
scheme
(define (quick-sort alon) (cond [(empty? alon) empty] [(empty? (rest alon)) alon] [else (append (quick-sort (smaller-items alon (first alon))) (list (first alon)) (quick-sort (larger-items alon (first alon))))])) (define (larger-items alon threshold) (...
a4cb09bf9425562e30a3f2d13cf795dc68544ef73947dfefec57d5bd4a1bdff8
phoe/safe-read
package.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; GATEWAY " phoe " Herda 2016 package.lisp (defpackage #:safe-read (:use #:cl :trivial-garbage) (:export #:safe-read #:with-temp-package #:buffer-of #:*stream-buffers* #:*max-input-size*))
null
https://raw.githubusercontent.com/phoe/safe-read/5a128cb1199ddca182cc970af29240e43f4def49/package.lisp
lisp
GATEWAY
" phoe " Herda 2016 package.lisp (defpackage #:safe-read (:use #:cl :trivial-garbage) (:export #:safe-read #:with-temp-package #:buffer-of #:*stream-buffers* #:*max-input-size*))
27e7523e55976b057218a9e54faa8b130e91c7f2fbaca45ca194a5fd1b57f15e
cdepillabout/password
Validate.hs
# LANGUAGE CPP # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # | Module : Data . Password . Validate Copyright : ( c ) , 2020 ; , 2020 License : BSD - style ( see LICENSE file ) Maintainer : ...
null
https://raw.githubusercontent.com/cdepillabout/password/e90b7481af2d63de6b2d9ead3c03ddb798707d22/password/src/Data/Password/Validate.hs
haskell
# LANGUAGE OverloadedStrings # \# LANGUAGE TemplateHaskell \# * Validating passwords | The main function of this module is probably 'isValidPassword', as it is simple and straightforward. Though if you'd want to know why a 'Password' failed to validate, because you'd maybe like to communicate those 'InvalidReas...
# LANGUAGE CPP # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # | Module : Data . Password . Validate Copyright : ( c ) , 2020 ; , 2020 License : BSD - style ( see LICENSE file ) Maintainer : Stability : experimental Po...
8a622b1c2e47b8915cf7cb02bf979da22ec8192b7cfc2c4e3d94b8b69939cc8c
TrustInSoft/tis-kernel
tis_kernel_init.ml
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_internals/runtime/tis_kernel_init.ml
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
75bee3844e0e1ab81f58b3c1eb46b933f0d1c3635caa741f83b6c6a06e6b8288
cky/guile
box-mixed.scm
;;; examples/box-dynamic-module/box-mixed.scm -- Scheme module using some functionality from the shared library libbox - module , but do not ;;; export procedures from the module. ;;; Commentary: ;;; This is the Scheme module box-mixed. It uses some functionality from the shared library libbox - module , but...
null
https://raw.githubusercontent.com/cky/guile/89ce9fb31b00f1f243fe6f2450db50372cc0b86d/examples/box-dynamic-module/box-mixed.scm
scheme
examples/box-dynamic-module/box-mixed.scm -- Scheme module using some export procedures from the module. Commentary: This is the Scheme module box-mixed. It uses some functionality Code: list of boxes. The result is a list of freshly allocated boxes, Export the procedures, so that they can be used by other...
functionality from the shared library libbox - module , but do not from the shared library libbox - module , but does not export it . Author : Date : 2001 - 06 - 08 Changed : 2001 - 06 - 14 by , some commenting , cleanup and integration . (define-module (box-mixed)) First , load the library . (lo...
5ae99469ebaa31caf3c4a2d1d8db454bb4ac18be23d92eb99a1b43a6d7908f23
jnjcc/cl-qrencode-deprecated
qr-data-bstring.lisp
Copyright ( C ) 2010 , 2011 johnc < > ;; ;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 , or ( at your option ) ;; any later version. ;; ;; This program is distributed in ...
null
https://raw.githubusercontent.com/jnjcc/cl-qrencode-deprecated/b31498adf81d771310be871ff6a50bd54f574336/src/qr-data-bstring.lisp
lisp
This program is free software; you can redistribute it and/or modify either version 2 , or ( at your option ) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Se...
Copyright ( C ) 2010 , 2011 johnc < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License This file contains utilies that convert QR - INPUT to binary string ( bstring , In particular , this file contains the four functions f...
bb1f163531d4cacd75b95b5d5c1c95bc14f99fd95317f5829c42994f57994e76
cljfx/cljfx
button.clj
(ns cljfx.fx.button "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.fx.button-base :as fx.button-base] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce]) (:import [javafx.scene.control Button] [javafx.scene AccessibleRole])) (set! *wa...
null
https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/button.clj
clojure
overrides definitions
(ns cljfx.fx.button "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.fx.button-base :as fx.button-base] [cljfx.lifecycle :as lifecycle] [cljfx.coerce :as coerce]) (:import [javafx.scene.control Button] [javafx.scene AccessibleRole])) (set! *wa...
6159d1b1b4d1ba51aabe7f3acef9bc3d49ebf97eeb67f1112ed469da80d5030d
xguerin/netml
NetML_Layer_IV_UDP.mli
type t = { source : int; destination : int; length : int; checksum : int; } [@@deriving yojson] val decode : Bitstring.t -> t option val expand : Bitstring.t -> Bitstring.t option
null
https://raw.githubusercontent.com/xguerin/netml/de9d277d2f1ac055aea391b89391df6830f80eff/src/NetML_Layer_IV_UDP.mli
ocaml
type t = { source : int; destination : int; length : int; checksum : int; } [@@deriving yojson] val decode : Bitstring.t -> t option val expand : Bitstring.t -> Bitstring.t option
539ddcbc87de4020eb709b0ecf19e72e49a969e926d21cc5812aeddf0ee65698
input-output-hk/plutus
Scope.hs
-- editorconfig-checker-disable-file {-# LANGUAGE BangPatterns #-} # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module UntypedPlutusCore.Check.Scope (checkScope) where import Control.Lens hiding (index) import UntypedPlutusCore.Core.Type as UPLC import UntypedPlutusCore.DeBruijn as UPLC i...
null
https://raw.githubusercontent.com/input-output-hk/plutus/c8d4364d0e639fef4d5b93f7d6c0912d992b54f9/plutus-core/untyped-plutus-core/src/UntypedPlutusCore/Check/Scope.hs
haskell
editorconfig-checker-disable-file # LANGUAGE BangPatterns # the current level as a reader value var index must be larger than 0
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module UntypedPlutusCore.Check.Scope (checkScope) where import Control.Lens hiding (index) import UntypedPlutusCore.Core.Type as UPLC import UntypedPlutusCore.DeBruijn as UPLC import Control.Monad.Error.Lens import Control.Monad.Except | A pass to ...
a30902ca4d91fcb02bd67fc51bf5cb91c3cfcc6e257f416d55aba68b45355e4d
manuel-serrano/bigloo
btags.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / bde / btags / btags.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/bde/btags/btags.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / bde / btags / btags.scm * / * Author : * / * Creation : Thu May 28 07:24:34 1998 * / * Last change : We d Jul 24 07:42:08 2013 ( serrano ) * / * Cop...
bc2ce7df5210c97aaf4c2c9a7e64fbb423b99e6e9f5b42278408268f851c17ba
facebook/flow
autofix_prop_typo.ml
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/services/code_action/autofix_prop_typo.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and 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) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
1738b02b47efa86153ba1ae04307a71393b3959859b605f2ed3f8fcf959acda2
elaforge/karya
ValType.hs
Copyright 2015 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Type descriptions of the 'Val'. -- This is in its own module so " Derive . Deriver . " can import it without importing " Derive . " . module Derive.ValType where import qualifi...
null
https://raw.githubusercontent.com/elaforge/karya/471a2131f5a68b3b10b1a138e6f9ed1282980a18/Derive/ValType.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Type descriptions of the 'Val'. | Text string, with enum values if it's an enum. | This is the \"any\" type. for documentation. up as a call argument. get this, as a plain description. | These are kind...
Copyright 2015 This is in its own module so " Derive . Deriver . " can import it without importing " Derive . " . module Derive.ValType where import qualified Data.Text as Text import qualified Util.Texts as Texts import Derive.DeriveT (Val(..)) import qualified Derive.ScoreT as ScoreT import qual...
9a243987809646cf507359cb5dfd12dd68b48197ae43f8d632bfb494932c3142
cfcs/mirage-framebuffer
framebuffer__S.ml
module Keycodes = Framebuffer__Keycodes type backend_event = | Clipboard_paste of string (** When the user pastes [string] in the window*) | Clipboard_request (** When the backend requests our window's clipboard *) | Keypress of { pressed : bool ; (** pressed (true) || released (false) *) scanc...
null
https://raw.githubusercontent.com/cfcs/mirage-framebuffer/f63d54dd86f4ab723cc471fbf127d5fc105aa656/lib/framebuffer__S.ml
ocaml
* When the user pastes [string] in the window * When the backend requests our window's clipboard * pressed (true) || released (false) * The scancode exposed by the backend * The modifier mask exposed by the backend * The parsed modifier mask * The parsed keysym * When a keyboard key is pressed or released * When...
module Keycodes = Framebuffer__Keycodes type backend_event = | Mouse_button of { x : int; y : int} * When a mouse button is pressed or released . y = 0 at the top . TODO Need to expose which button , and the state ( pressed / released ) etc TODO Need to expose which button, and the state (pressed/r...
0e613f19bff24614ba03502ceed9987a7eb278864193bbaeceec93013c4c4ffd
juxt/reap
rfc4647.clj
Copyright © 2020 , JUXT LTD . (ns juxt.reap.alpha.decoders.rfc4647 (:require [juxt.reap.alpha.regex :as re] [juxt.reap.alpha.combinators :as p] [juxt.reap.alpha.decoders.rfc5234 :as rfc5234 :refer [ALPHA DIGIT]])) ;; alphanum = ALPHA / DIGIT (def alphanum (rfc5234/merge-alternatives ALPHA DIGIT)) lang...
null
https://raw.githubusercontent.com/juxt/reap/29ffc8664df26041ebd93a53f009d2606d1a5b6c/src/juxt/reap/alpha/decoders/rfc4647.clj
clojure
alphanum = ALPHA / DIGIT
Copyright © 2020 , JUXT LTD . (ns juxt.reap.alpha.decoders.rfc4647 (:require [juxt.reap.alpha.regex :as re] [juxt.reap.alpha.combinators :as p] [juxt.reap.alpha.decoders.rfc5234 :as rfc5234 :refer [ALPHA DIGIT]])) (def alphanum (rfc5234/merge-alternatives ALPHA DIGIT)) language - range = ( 1 * 8ALP...
b0f1bf44bb70d62b1056ffc895973a3e60fce5dffb6d20cd89f56b01af0ab3f3
metosin/sormilla
swing.clj
(ns sormilla.swing (:require [clojure.java.io :as io] [sormilla.world :refer [world]]) (:import [java.awt Graphics2D Shape Color KeyboardFocusManager KeyEventDispatcher Toolkit] [java.awt.geom Path2D$Double Ellipse2D$Double] [java.awt.event KeyEvent])) (set! *warn-on-reflection* t...
null
https://raw.githubusercontent.com/metosin/sormilla/e50930930c41f64272f06c4bd02a4e3ab58e923f/src/sormilla/swing.clj
clojure
Keys
(ns sormilla.swing (:require [clojure.java.io :as io] [sormilla.world :refer [world]]) (:import [java.awt Graphics2D Shape Color KeyboardFocusManager KeyEventDispatcher Toolkit] [java.awt.geom Path2D$Double Ellipse2D$Double] [java.awt.event KeyEvent])) (set! *warn-on-reflection* t...
761ff098c0c3871349fa8cc1d3c6c0940de1cd87e05dd7e15f565a28143b868b
josephwilk/musical-creativity
midnight.clj
(ns data.midnight (:require [midi-mash.core :refer :all])) (def midnight (map (fn [event] [(:time event) (:pitch event) (:velocity event) (:channel event) (:instrument event)]) (csv->events...
null
https://raw.githubusercontent.com/josephwilk/musical-creativity/c2e6aab2a26d69ee2e51f4fad84fa3a71805e6ca/src/data/midnight.clj
clojure
(ns data.midnight (:require [midi-mash.core :refer :all])) (def midnight (map (fn [event] [(:time event) (:pitch event) (:velocity event) (:channel event) (:instrument event)]) (csv->events...
59b63a9e7091040a5c5f403ad8728f00ccc7d694010cce592644d9357590b705
rd--/hsc3
Composite.hs
-- | Common unit generator graphs. module Sound.Sc3.Ugen.Bindings.Composite where import Data.List {- base -} import Data.Maybe {- base -} import Sound.Sc3.Common.Enum import Sound.Sc3.Common.Envelope import Sound.Sc3.Common.Math import Sound.Sc3.Common.Math.Filter.Beq import Sound.Sc3.Common.Math.Operator import Sou...
null
https://raw.githubusercontent.com/rd--/hsc3/03aca8ef471cb82094c9ec0778bb3beaf8781428/Sound/Sc3/Ugen/Bindings/Composite.hs
haskell
| Common unit generator graphs. base base | Generate a localBuf and use setBuf to initialise it. | Buffer reader (no interpolation). | Buffer reader (linear interpolation). | Buffer reader (cubic interpolation). | Triggers when a value changes | 'liftUid' of 'choose'. | 'clearBuf' of 'localBuf'. | Demand r...
module Sound.Sc3.Ugen.Bindings.Composite where import Sound.Sc3.Common.Enum import Sound.Sc3.Common.Envelope import Sound.Sc3.Common.Math import Sound.Sc3.Common.Math.Filter.Beq import Sound.Sc3.Common.Math.Operator import Sound.Sc3.Common.Rate import Sound.Sc3.Common.Uid import Sound.Sc3.Common.Unsafe import Sound....
30350fb25fc8d2642027b094e2be918c784e89e9bda45b8f48ca40c815cf9040
tek/proteome
ReplaceTest.hs
module Proteome.Test.ReplaceTest where import Control.Lens.Regex.Text (group, regex) import qualified Data.Text as Text import qualified Data.Text.IO as Text import Path (Abs, File, Path, reldir, relfile, toFilePath) import qualified Polysemy.Test as Test import Polysemy.Test (Hedgehog, UnitTest, (===)) import Prelude...
null
https://raw.githubusercontent.com/tek/proteome/019928432bd5f5ba87d35eab19e341a5c98b1bba/packages/proteome/test/Proteome/Test/ReplaceTest.hs
haskell
module Proteome.Test.ReplaceTest where import Control.Lens.Regex.Text (group, regex) import qualified Data.Text as Text import qualified Data.Text.IO as Text import Path (Abs, File, Path, reldir, relfile, toFilePath) import qualified Polysemy.Test as Test import Polysemy.Test (Hedgehog, UnitTest, (===)) import Prelude...
881ca675fe73a1572e6f34d22526d05abb80f1cdb47633f5c3102c3b2e46e889
sharplispers/ironclad
testfuns.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- (in-package :crypto-tests) (defun hex-string-to-byte-array (string &key (start 0) (end nil)) This function disappears from profiles if SBCL can inline the ;; POSITION call, so declare SPEED high enough to trigger that. (declare (type string string) (optimize (speed ...
null
https://raw.githubusercontent.com/sharplispers/ironclad/bf4a2366518b0fcaa3476b10e5d2d8ab33131355/testing/testfuns.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- POSITION call, so declare SPEED high enough to trigger that. test vector files cipher testing encryption mode consistency checking digest testing routines Calling produce-digest twice should not give a wrong hash mac testing routines PRNG testing routines Public key t...
(in-package :crypto-tests) (defun hex-string-to-byte-array (string &key (start 0) (end nil)) This function disappears from profiles if SBCL can inline the (declare (type string string) (optimize (speed 2))) (let* ((end (or end (length string))) (length (/ (- end start) 2)) (key (make-array leng...
f11ab9251201b2adee416f8c95c0188f8d426965b4a06eb187673f8a7842f9c6
Frama-C/Frama-C-snapshot
sign_domain.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/domains/sign_domain.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
eaf5eb53e173a4f60f91d21a38e836e304e235df79bae77e101d0e6ff09a7665
haskell/cabal
ForeignLibOption.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} module Distribution.Types.ForeignLibOption( ForeignLibOption(..) ) where import Prelude () import Distribution.Compat.Prelude import Distribution.Pretty import Distribution.Parsec import qualified Distribution.Comp...
null
https://raw.githubusercontent.com/haskell/cabal/23536274bb7baabe5c33140620471e897cf34cf2/Cabal-syntax/src/Distribution/Types/ForeignLibOption.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # | Merge in all dependent libraries (i.e., use @ghc -shared -static@ rather than just record the dependencies, ala @ghc -shared -dynamic@). on other platforms.
# LANGUAGE DeriveGeneric # module Distribution.Types.ForeignLibOption( ForeignLibOption(..) ) where import Prelude () import Distribution.Compat.Prelude import Distribution.Pretty import Distribution.Parsec import qualified Distribution.Compat.CharParsing as P import qualified Text.PrettyPrint as Disp data For...
8dc0e99f5bd5fbb29fdd8cea676d4031da9f362e2a656210222d68eab6b08e44
emqx/emqx
emqx_logger_textfmt.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/73d5592b5af0cbbf347e5dc2b9b865b41228249f/apps/emqx/src/emqx_logger_textfmt.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_logger_textfmt). -export([format/2]). -export([check_config/1]). -export([try_form...
7477158b3dfda5f2fe3c3e6a36482526a3f9384bda6a113e00823ca772cfea29
zhongwencool/mipush
mipush.erl
%%%------------------------------------------------------------------- %%%------------------------------------------------------------------- -module(mipush). -author(''). -include("mipush.hrl"). -define(MAX_TOPIC_LEN, 5). %% API -export([connect/1]). -export([disconnect/1]). %% 推送单条消息 -export([push_to_regid/4])....
null
https://raw.githubusercontent.com/zhongwencool/mipush/c69e6c15f3f36f2b4a157bbf393b261bc641f89c/src/mipush.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- API 推送单条消息 推送多条消息 Job 操作 Util 消息的内容.(注意:需要对payload字符串做urlencode处理) 通知栏展示的通知的描述 可以是DEFAULT_ALL或者以下其他几种的OR组合 相同notify_id的通知栏消息会覆盖之前的 如:"android.resource"铃声只能使用当前app内的资源, 可选项, 开启/关闭ap...
-module(mipush). -author(''). -include("mipush.hrl"). -define(MAX_TOPIC_LEN, 5). -export([connect/1]). -export([disconnect/1]). -export([push_to_regid/4]). -export([push_to_alias/4]). -export([push_to_account/4]). -export([push_to_topic/4]). -export([push_to_multi_topic/5]). -export([push_to_all/3]). -export([mu...
7c6f1d1f08e999b8aa6198a44e832dd5c4bf5f03adf498e16ebf7102c6d4f387
Tclv/HaskellBook
Hangman.hs
module Hangman where import Data.List (intersperse) data Puzzle = Puzzle String [Maybe Char] [Char] Int instance Show Puzzle where show (Puzzle _ discovered guessed guessesLeft) = (intersperse ' ' $ fmap renderPuzzleChar discovered) ++ " Guessed so far: " ++ guessed ++ " Guesses left: " ++ show guessesLeft ...
null
https://raw.githubusercontent.com/Tclv/HaskellBook/78eaa5c67579526b0f00f85a10be3156bc304c14/ch14/hangman/src/Hangman.hs
haskell
module Hangman where import Data.List (intersperse) data Puzzle = Puzzle String [Maybe Char] [Char] Int instance Show Puzzle where show (Puzzle _ discovered guessed guessesLeft) = (intersperse ' ' $ fmap renderPuzzleChar discovered) ++ " Guessed so far: " ++ guessed ++ " Guesses left: " ++ show guessesLeft ...
897ebe869888aef36eb20747ecea61b07bfc62b0a44336c593df30351fd43cf5
input-output-hk/project-icarus-importer
Types.hs
-- | Auxiliary types. module Bench.Cardano.Wallet.Types ( CompleteConfig (..) , EndpointConfig (..) , WalletAccount (..) , Wallet (..) , WalletsConfig (..) , CLOptions (..) , BenchEndpoint (..) , EndpointClient , Response , ResponseReport (..) ) where import Unive...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/wallet-new/bench/Bench/Cardano/Wallet/Types.hs
haskell
| Auxiliary types. | Complete configuration for benchmarking. | Endpoint configuration, obtained from the .csv-file. | Name of the benchmark, used in the report file. | Number of measures in benchmark. This delay will be used as a pause between calls of a client. This delay will be used as a pause between calls ...
module Bench.Cardano.Wallet.Types ( CompleteConfig (..) , EndpointConfig (..) , WalletAccount (..) , Wallet (..) , WalletsConfig (..) , CLOptions (..) , BenchEndpoint (..) , EndpointClient , Response , ResponseReport (..) ) where import Universum import ...
c1774bd00be454f9cd59e9c5d2b1430c164ba0c78f5d6ee394eb746f91bf7989
patrikja/AFPcourse
Promotion.hs
# LANGUAGE TypeFamilies , GADTs , DataKinds # module Promotion where data Nat = Zero | Suc Nat With the extension " DataKinds " data - definitions are " promoted " : So we get a new _ kind _ with ( empty ) datatypes Zero : : Suc : : The family is unchanged from Families.hs data Vec a n where N...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L13/src/Promotion.hs
haskell
Some simple functions Providing a Nil case would be a type error Does the definition look familiar? The type family now has a stronger "type" Now we are "protected" from "kind-incorrect" cases: Exercise: implement Fin and vector indexing. no constructor for Fin Zero Some example values -------------- Vector...
# LANGUAGE TypeFamilies , GADTs , DataKinds # module Promotion where data Nat = Zero | Suc Nat With the extension " DataKinds " data - definitions are " promoted " : So we get a new _ kind _ with ( empty ) datatypes Zero : : Suc : : The family is unchanged from Families.hs data Vec a n where N...
734c5d0a3e8c54f058074904f0ab6f6ccf4efc07c5bde101e542adffebf32fab
EasyCrypt/easycrypt
ecPhlRnd.ml
(* -------------------------------------------------------------------- *) open EcUtils open EcParsetree open EcTypes open EcModules open EcFol open EcPV open EcCoreGoal open EcLowGoal open EcLowPhlGoal module TTC = EcProofTyping (* -------------------------------------------------------------------- *) type chl_inf...
null
https://raw.githubusercontent.com/EasyCrypt/easycrypt/5524b72dcb5c8404e686b74628647d881063785c/src/phl/ecPhlRnd.ml
ocaml
-------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -----------------------------------...
open EcUtils open EcParsetree open EcTypes open EcModules open EcFol open EcPV open EcCoreGoal open EcLowGoal open EcLowPhlGoal module TTC = EcProofTyping type chl_infos_t = (form, form option, form) rnd_tac_info type bhl_infos_t = (form, ty -> form option, ty -> form) rnd_tac_info type rnd_infos_t = (pformula, pfor...
4416a534e8c10c31dbd29163fa79fafb33ebb90bcdb1ee53bfcadbb02ea44f1e
BIMSBbioinfo/guix-bimsb-nonfree
juicer.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2019 < > ;;; ;;; This file is NOT part of GNU Guix, but is supposed to be used with GNU ;;; Guix and thus has the same license. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
null
https://raw.githubusercontent.com/BIMSBbioinfo/guix-bimsb-nonfree/78e3316d58b91f94b3052f6fc8fd5ec2df6e0843/non-free/juicer.scm
scheme
GNU Guix --- Functional package management for GNU This file is NOT part of GNU Guix, but is supposed to be used with GNU Guix and thus has the same license. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope t...
Copyright © 2019 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (non-free juicer) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages)...
672862b18f4f4045416eda7f54fe7699758ae29aed6d328c45cf8255c72f4c4a
ygmpkk/house
StdMenuReceiver.hs
module StdMenuReceiver(MenuElements(..)) where Clean Object I / O library , version 1.2 import CommonDef import StdIOCommon import StdReceiverAttribute import StdMenuElementClass import StdMenuDef import MenuHandle import ReceiverAccess(newReceiverHandle, newReceiver2Handle) instance MenuElements ...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/hslibs/object-io/ObjectIO/StdMenuReceiver.hs
haskell
module StdMenuReceiver(MenuElements(..)) where Clean Object I / O library , version 1.2 import CommonDef import StdIOCommon import StdReceiverAttribute import StdMenuElementClass import StdMenuDef import MenuHandle import ReceiverAccess(newReceiverHandle, newReceiver2Handle) instance MenuElements ...
02bd419c36900bcdbe49e854ea25f2024bf01717909325d42d0e97c51214b0ff
helium/helium-packet-router
hpr_http_roaming_utils.erl
%%%------------------------------------------------------------------- @author jonathanruttenberg ( C ) 2022 , Nova Labs %%% @doc %%% %%% @end Created : 17 . Sep 2022 10:56 AM %%%------------------------------------------------------------------- -module(hpr_http_roaming_utils). -author("jonathanruttenberg"). -...
null
https://raw.githubusercontent.com/helium/helium-packet-router/d6458e1a7e6460d4e95ad3a08b3c67030702f360/src/protocols/http/hpr_http_roaming_utils.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API ------------------------------------------------------------------ ------------------------------------------------------------------
@author jonathanruttenberg ( C ) 2022 , Nova Labs Created : 17 . Sep 2022 10:56 AM -module(hpr_http_roaming_utils). -author("jonathanruttenberg"). -define(RESPONSE_STREAM_ETS, hpr_http_response_stream_ets). -export([ hexstring/1, binary_to_hexstring/1, format_time/1, uint32/1, hexstring_to_...
d66babc031cae1a86eb533bc115623fc01eef060d2f1d148be1019a6a9c7a121
serokell/blockchain-util
Validate.hs
# LANGUAGE AllowAmbiguousTypes # module Snowdrop.Core.Validate ( valid , validateIff , validateAll , StructuralValidationException (..) , structuralPreValidator , StructuralConstr ) where import Control.Monad.Except (MonadError (..)) import Univers...
null
https://raw.githubusercontent.com/serokell/blockchain-util/a6428c6841e7002605a115002f58eff78ff9f128/snowdrop-core/src/Snowdrop/Core/Validate.hs
haskell
------------------------- Helpers for validation ------------------------- | Helper, which can be used for a validator to specify success case. | Helper, which can be used for a validator to specify conditional success case. Error will be returned iff the given boolean is 'False'. | Helper, which can be used for a...
# LANGUAGE AllowAmbiguousTypes # module Snowdrop.Core.Validate ( valid , validateIff , validateAll , StructuralValidationException (..) , structuralPreValidator , StructuralConstr ) where import Control.Monad.Except (MonadError (..)) import Univers...
318a2d4132c1252afdf7489eb3da2c4f0c6a786548908794df790ad7a5b6a264
ocaml/oasis-db
MyAccount.ml
* Web services to manage account @author @author Sylvain Le Gall *) open Lwt open XHTML.M open Eliom_services open Eliom_parameters open Eliom_sessions open Eliom_predefmod.Xhtml open CalendarLib open ODBGettext open Lwt open Template open Context open OCAAccount open Lwt_log let () = Sqlexpr.r...
null
https://raw.githubusercontent.com/ocaml/oasis-db/f8b19d431102b5c5b7dced00a5242a5366ad263f/src/web/MyAccount.ml
ocaml
* Web services to manage account @author @author Sylvain Le Gall *) open Lwt open XHTML.M open Eliom_services open Eliom_parameters open Eliom_sessions open Eliom_predefmod.Xhtml open CalendarLib open ODBGettext open Lwt open Template open Context open OCAAccount open Lwt_log let () = Sqlexpr.r...
b113a85eb83a3b99366959a50113545e12a003512bf56890bea73eb7ace99f32
ChrisPenner/proton
Kaleidoscope.hs
# LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # module Proton.Kaleidoscope (Reflector(..), Kaleidoscope, Kaleidoscope', pointWise) where -- ala -syco5/slides/roman.pdf -- import Data.Profunctor import Control.Applicative import Data.Profunctor.Reflector type Kaleidoscope s t a b = forall p. Reflector p =...
null
https://raw.githubusercontent.com/ChrisPenner/proton/4ce22d473ce5bece8322c841bd2cf7f18673d57d/src/Proton/Kaleidoscope.hs
haskell
ala -syco5/slides/roman.pdf => Optic' p (f a) a collapse p = cotabulate done where func :: g (f a) -> (f a) func = cosieve (convolving p) done :: g (f a) -> f a
# LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # module Proton.Kaleidoscope (Reflector(..), Kaleidoscope, Kaleidoscope', pointWise) where import Data.Profunctor import Control.Applicative import Data.Profunctor.Reflector type Kaleidoscope s t a b = forall p. Reflector p => p a b -> p s t type Kaleidoscope'...
c8d85b99eee1f36315da3322610289ad7dc15b33ae2e43b6c0155ae83ed19a5f
felipereigosa/mock-mechanics
mechanical-tree.clj
(ns mockmechanics.core (:require [mockmechanics.library.vector :as vector])) (declare compute-subtree-transforms) (defn compute-children-transforms [world part-name transform key] (reduce (fn [w [child-name relative-transform]] (let [new-transform (combine-transforms ...
null
https://raw.githubusercontent.com/felipereigosa/mock-mechanics/93070a789f5b24a7b34643bc11f47f8cf6112f8d/src/mockmechanics/mechanical-tree.clj
clojure
(ns mockmechanics.core (:require [mockmechanics.library.vector :as vector])) (declare compute-subtree-transforms) (defn compute-children-transforms [world part-name transform key] (reduce (fn [w [child-name relative-transform]] (let [new-transform (combine-transforms ...
b3b222e9bef5fa806d21431541c34b84d82cc199572554d2758a289c8dd8e5d4
Phaetec/pogo-cruncher
utils.cljs
(ns cruncher.communication.utils (:require [cruncher.config :as config] [clojure.walk :refer [keywordize-keys]] [cognitect.transit :as transit])) (defn make-url "Prefix url with host." [url] (str (:host config/api) url)) ;;;; Conversions (defn clj->json "Convert CLJS to valid JSON."...
null
https://raw.githubusercontent.com/Phaetec/pogo-cruncher/a93bd16cc4d118d2ec57c2a641bd1b11be0d133d/frontend/src/cruncher/communication/utils.cljs
clojure
Conversions
(ns cruncher.communication.utils (:require [cruncher.config :as config] [clojure.walk :refer [keywordize-keys]] [cognitect.transit :as transit])) (defn make-url "Prefix url with host." [url] (str (:host config/api) url)) (defn clj->json "Convert CLJS to valid JSON." [col] (.stri...
5d47de8cc797c4ef01055d3d4395a288a8d1937f55c03322c4d86f899465d312
mput/sicp-solutions
2_04.test.rkt
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_04.rkt") (define tests (test-suite "Test for exercise 2_04" (test-case "Test for piculiar pair realisation" (define testpair (n-cons 5 10)) (check-equal? (n-car testpair) 5) ...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/tests/2_04.test.rkt
racket
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_04.rkt") (define tests (test-suite "Test for exercise 2_04" (test-case "Test for piculiar pair realisation" (define testpair (n-cons 5 10)) (check-equal? (n-car testpair) 5) ...
f4ee4a49b0c510d86de8b7ec62dda973a3412720f27fef8427565ad6f961167a
rcherrueau/APE
surface-lang3.rkt
#lang racket/base ;; @InProceedings{CPN98, author = { and and } , ;; title = {Ownership Types for Flexible Alias Protection}, booktitle = { Proceedings of the 1998 { ACM } { SIGPLAN } Conference on Object - Oriented Programming Systems , Langu...
null
https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/CPN98/attic/surface-lang3.rkt
racket
@InProceedings{CPN98, title = {Ownership Types for Flexible Alias Protection}, url = {}, doi = {10.1145/286936.286947} } Naming conventions: -- Syntax checker in the form of -lang.org/syntax/syntax-helpers.html#%28part._stxkeyword%29 A check procedure consumes the syntax to check and a c...
#lang racket/base author = { and and } , booktitle = { Proceedings of the 1998 { ACM } { SIGPLAN } Conference on Object - Oriented Programming Systems , Languages { \ & } Applications { ( OOPSLA } ' 98 ) , Vancouver...
422792b523e9829856ee9f5c2b639c03709125f3bf4bfb782b0a103c12b07e98
zack-bitcoin/amoveo
governance.erl
-module(governance). -export([tree_number_to_value/1, max/1, is_locked/1, genesis_state/0, name2number/1, number2name/1,%custom for this tree get_value/2, get/2, write/2,%update tree stuff dict_get/2,dict_get/3,dict_write/2, dict_get_value/2, dict_lock/2, dict_unlock/2, dict_change/3, %update dict stuff ...
null
https://raw.githubusercontent.com/zack-bitcoin/amoveo/257f3e8cc07f1bae9df1a7252b8bc67a0dad3262/apps/amoveo_core/src/consensus/trees/governance.erl
erlang
custom for this tree update tree stuff update dict stuff common tree stuff Blockchain variables VM variables how many functions can the vm make how many variables can the vm store Transaction fees these store the minimum fee for each transaction type. "create_acc_tx" is the name of the record of the create_account_tx. ...
-module(governance). verify_proof/4,make_leaf/3,key_to_int/1, serialize/1,deserialize/1, new/2, -define(name, governance). -define(fee, constants:encoded_fee()). -include("../../records.hrl"). genesis_state() -> {MinimumOracleTime, MaximumOracleTime, BlockPeriod} = case application:get_env(amov...
54d6107e41c1c2f7f9ac99049043d3e161b752b8a48ff7b580a681f4edfc8d5c
appleshan/cl-http
report.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Package : http ; Base : 10 ; Default - character - style : ( : fix : : normal ) -*- ( C ) Copyright 1994 - 99 , 2003 , 2005 - 2006 , ;;; All Rights Reserved. ;;; (in-package :http) ;;;------------------------------------------------------------------- ;;...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/server/report.lisp
lisp
Syntax : ANSI - Common - Lisp ; Package : http ; Base : 10 ; Default - character - style : ( : fix : : normal ) -*- All Rights Reserved. ------------------------------------------------------------------- REPORTING RELATED TO HTTP CONDITIONS PROXY-~]AUTHORIZATION header.~ PROXY-~]AUTHORIZATION: ~{~&~10T~A: ...
( C ) Copyright 1994 - 99 , 2003 , 2005 - 2006 , (in-package :http) (defmacro server-supports-chunking-p (server) `(and #+disable-chunking nil (client-http-version-meets-p ,server :http/1.1))) (defgeneric report-status-line (http-condition stream) (:documentation "Primitive that sends a status...
4eb422214874c4fe5e8ced4350bcbdfaec93b767a42ab983eaf8fee179e658af
emqx/ekka
ekka_cluster_etcd_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/ekka/2a2dec9b434855f0d5d507a19d5b8d05d5ff9ddb/test/ekka_cluster_etcd_SUITE.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2019 - 2022 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ekka_cluster_etcd_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_...
b6008636d80937d5c46183f7d7187e25a3b53c1483f8ec3a0aee7ab5f43a2827
godotclj/godotclj
context.clj
(ns godotclj.context (:gen-class :extends godotclj.context$Directives)) (defn -getHeaderFiles [_] ["<wrapper.h>"])
null
https://raw.githubusercontent.com/godotclj/godotclj/23e9c62e7083f7be9aff8bb205d2a270dd5b5e39/src/clojure/godotclj/context.clj
clojure
(ns godotclj.context (:gen-class :extends godotclj.context$Directives)) (defn -getHeaderFiles [_] ["<wrapper.h>"])
a443e5af4723f681da57eae198f9f1b755a644e542df0c83b766e367863dcd5d
janestreet/bonsai
multi_factor_intf.ml
open! Core open! Import * A [ Multi_factor.t ] is a collection of [ Single_factor.t]s ( referred to as a " subwidget " in this module ) , indexed by the [ Arg . Key ] type . This widget provides focus tracking among the different subwidgets . in this module), indexed by the [Arg.Key] type. This widge...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/web_ui/multi_select/src/multi_factor_intf.ml
ocaml
* The human-language name of your type. E.g. if [t] represents some attributes of a trade, you could use something like "trade property" here. * As above, but in the plural. * [selection] is the set of all selected items, by key.
open! Core open! Import * A [ Multi_factor.t ] is a collection of [ Single_factor.t]s ( referred to as a " subwidget " in this module ) , indexed by the [ Arg . Key ] type . This widget provides focus tracking among the different subwidgets . in this module), indexed by the [Arg.Key] type. This widge...
bff5d77c2b9d1b6cdfab31eb4be9f8faa4cb265bb6201341b49827c53be9637e
VisionsGlobalEmpowerment/webchange
handler.clj
(ns webchange.secondary.handler (:require [compojure.core :refer [GET POST PUT DELETE defroutes routes]] [ring.util.response :refer [file-response bad-request response]] [webchange.secondary.core :as core] [webchange.common.handler :refer [current-user]] [webchange.auth...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/bfc1897e371c44aa9707b645f2f376558374f66e/src/clj/webchange/secondary/handler.clj
clojure
(ns webchange.secondary.handler (:require [compojure.core :refer [GET POST PUT DELETE defroutes routes]] [ring.util.response :refer [file-response bad-request response]] [webchange.secondary.core :as core] [webchange.common.handler :refer [current-user]] [webchange.auth...