_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
e3157d8c4eacbbc3518e176a550255d40616805b1623853c0de1a5ad389f966c
rametta/retros
Config.hs
module Config where import IHP.Prelude import IHP.Environment import IHP.FrameworkConfig config :: ConfigBuilder config = do option Development option (AppHostname "localhost")
null
https://raw.githubusercontent.com/rametta/retros/624290889df98cd2eb3c37848eeae15281eeda54/Config/Config.hs
haskell
module Config where import IHP.Prelude import IHP.Environment import IHP.FrameworkConfig config :: ConfigBuilder config = do option Development option (AppHostname "localhost")
40d2d6abc4a06fc2803e3103014adc01fe8ab68b0666f0921efea095eb4d0447
clojure-interop/google-cloud-clients
StreamingVideoIntelligenceServiceStubSettings.clj
(ns com.google.cloud.videointelligence.v1p3beta1.stub.StreamingVideoIntelligenceServiceStubSettings "Settings class to configure an instance of StreamingVideoIntelligenceServiceStub. The default instance has everything set to sensible defaults: The default service address (videointelligence.googleapis.com) a...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.videointelligence/src/com/google/cloud/videointelligence/v1p3beta1/stub/StreamingVideoIntelligenceServiceStubSettings.clj
clojure
"
(ns com.google.cloud.videointelligence.v1p3beta1.stub.StreamingVideoIntelligenceServiceStubSettings "Settings class to configure an instance of StreamingVideoIntelligenceServiceStub. The default instance has everything set to sensible defaults: The default service address (videointelligence.googleapis.com) a...
a662e597dab3747b9361906ae5ec2548fc9e735979793a8734c4f9b6ff79febb
sjl/coding-math
vectors.lisp
(in-package #:coding-math.3d.vectors) ;; Wrappers around sb-cga (declaim (inline vec3-x vec3-y vec3-z vec3-r vec3-a vec3-h (setf vec3-x) (setf vec3-y) (setf vec3-z) (setf vec3-r) (setf vec3-a) (setf vec3-h))) (defun vec-x (v) (aref v 0)) (defun vec-y (v) (aref v 1)...
null
https://raw.githubusercontent.com/sjl/coding-math/8e2add14d033da41cb3ac0aac63ad67edb4dd66a/src/3d/vectors.lisp
lisp
Wrappers around sb-cga ,@body))) (if (null bindings) (with-vec3s ,remaining ,@body))))) thanks squirl
(in-package #:coding-math.3d.vectors) (declaim (inline vec3-x vec3-y vec3-z vec3-r vec3-a vec3-h (setf vec3-x) (setf vec3-y) (setf vec3-z) (setf vec3-r) (setf vec3-a) (setf vec3-h))) (defun vec-x (v) (aref v 0)) (defun vec-y (v) (aref v 1)) (defun vec-z (v) (aref v...
5eac78379063a5ef3ec3af15ddb80007566a4713f79d6251bcb6c937b5a1b592
gedge-platform/gedge-platform
jose_jwk_openssh_key.erl
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- %% vim: ts=4 sw=4 ft=erlang noet %%%------------------------------------------------------------------- @author < > 2014 - 2016 , %%% @doc Private key format for OpenSSH %%% See -portable/blob/master/PROTOCOL.key %%% @...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/jose/src/jwk/jose_jwk_openssh_key.erl
erlang
vim: ts=4 sw=4 ft=erlang noet ------------------------------------------------------------------- @doc Private key format for OpenSSH See -portable/blob/master/PROTOCOL.key @end ------------------------------------------------------------------- API =================================================================...
-*- mode : erlang ; tab - width : 4 ; indent - tabs - mode : 1 ; st - rulers : [ 70 ] -*- @author < > 2014 - 2016 , Created : 16 Jan 2016 by < > -module(jose_jwk_openssh_key). -export([from_binary/1]). -export([to_binary/1]). Macros -define(AUTH_MAGIC, "openssh-key-v1"). -define(OPENSSH_HEAD, "--...
d45a99a951c557f3302dafd06e278a6842b809eb226cea8d53201072d003e836
mainland/nikola
ParseConfig.hs
module ParseConfig (parseArgs) where import Control.Applicative import Control.Monad (void) import Data.Char (toLower) import Data.Monoid import System.Console.GetOpt import System.Environment (getProgName) import System.Exit (ExitCode(..), exitWith) import System.IO (stderr) import Text.Printf (HPrintfType, hPrintf) ...
null
https://raw.githubusercontent.com/mainland/nikola/d86398888c0a76f8ad1556a269a708de9dd92644/examples/mandelbrot/ParseConfig.hs
haskell
| The standard options accepted on the command line. help\" for usage information\n" =<< getProgName | Parse a backend | Parse a positive number.
module ParseConfig (parseArgs) where import Control.Applicative import Control.Monad (void) import Data.Char (toLower) import Data.Monoid import System.Console.GetOpt import System.Environment (getProgName) import System.Exit (ExitCode(..), exitWith) import System.IO (stderr) import Text.Printf (HPrintfType, hPrintf) ...
2cfc4eec239358c00ee26aa86297094cdaaf60f611c54b3208d0ddf2e0d33481
rems-project/lem
hol_preload.ml
val _ = load "HolDoc"; val _ = load "stringTheory"; val _ = load "res_quanTheory"; val _ = load "finite_mapTheory"; val _ = load "wordsTheory"; val _ = PolyML.shareCommonData PolyML.rootFunction; fun main () = (List.app use (CommandLine.arguments ()); PolyML.rootFunction ()); val _ = PolyML.export ("hol_preload"...
null
https://raw.githubusercontent.com/rems-project/lem/a839114e468119d9ac0868d7dc53eae7f3cc3a6c/tests/backends/hol_preload.ml
ocaml
val _ = load "HolDoc"; val _ = load "stringTheory"; val _ = load "res_quanTheory"; val _ = load "finite_mapTheory"; val _ = load "wordsTheory"; val _ = PolyML.shareCommonData PolyML.rootFunction; fun main () = (List.app use (CommandLine.arguments ()); PolyML.rootFunction ()); val _ = PolyML.export ("hol_preload"...
9fff673e75a647429d0e7d59991c687879dbc541cb555eba3a3b8e3639d44dfb
bcc32/advent-of-code
grid.ml
open! Core open! Import module T : sig type 'a t = private 'a array array [@@deriving compare, equal, sexp_of] include Invariant.S1 with type 'a t := 'a t val of_matrix_exn : 'a array array -> 'a t val width : _ t -> int val height : _ t -> int val is_in_bounds_internal : _ t -> row:int -> col:int -> boo...
null
https://raw.githubusercontent.com/bcc32/advent-of-code/653c0f130e2fb2f599d4e76804e02af54c9bb19f/2020/lattice/grid.ml
ocaml
open! Core open! Import module T : sig type 'a t = private 'a array array [@@deriving compare, equal, sexp_of] include Invariant.S1 with type 'a t := 'a t val of_matrix_exn : 'a array array -> 'a t val width : _ t -> int val height : _ t -> int val is_in_bounds_internal : _ t -> row:int -> col:int -> boo...
b0b3114c61a8284036e555f92c61ab5f3ee7fc6359bcce23341ee6cf99abc31c
tomjaguarpaw/haskell-opaleye
Order.hs
# OPTIONS_HADDOCK not - home # module Opaleye.Internal.Order where import Data.Function (on) import qualified Data.Functor.Contravariant as C import qualified Data.Functor.Contravariant.Divisible as Divisible import qualified Data.List.NonEmpty as NL import...
null
https://raw.githubusercontent.com/tomjaguarpaw/haskell-opaleye/6edcc5bd25c05d9a323417d0a5dec19ba0013852/src/Opaleye/Internal/Order.hs
haskell
type is "too big". We never actually look at the 'a' (in the | Order the results of a given query exactly, as determined by the given list of input fields. Note that this list does not have to contain an entry for every result in your query: you may exactly order only a subset of results, if you wish. Rows that a...
# OPTIONS_HADDOCK not - home # module Opaleye.Internal.Order where import Data.Function (on) import qualified Data.Functor.Contravariant as C import qualified Data.Functor.Contravariant.Divisible as Divisible import qualified Data.List.NonEmpty as NL import...
d85d9afae8a396edcae60801917505a43d3e9d9dd755140e7baea7c46334f08e
Horrocubes/horrocubes-mint-policy-script
plutus-horrocubes-tokens-counter.hs
{-| Module : plutus-horrocubes-tokens. Description : Application to generate NFTs using smart contracts. License : Apache-2.0 Maintainer : Stability : experimental -} -- LANGUAGE EXTENSIONS -------------------------------------------------------- {-# LANGUAGE OverloadedStrings #-} -- IMPORTS -----------...
null
https://raw.githubusercontent.com/Horrocubes/horrocubes-mint-policy-script/d10cffd6800db5f8f0a40a3ff5f04d613fa78b48/app/plutus-horrocubes-tokens-counter.hs
haskell
| Module : plutus-horrocubes-tokens. Description : Application to generate NFTs using smart contracts. License : Apache-2.0 Maintainer : Stability : experimental LANGUAGE EXTENSIONS -------------------------------------------------------- # LANGUAGE OverloadedStrings # IMPORTS --------------------------...
import Cardano.Api hiding (TxId) import Data.String (IsString (..)) import Ledger import Ledger.Bytes (getLedgerBytes) import Prelude import System.Environment (getArgs) import Data.Hex import qualified Plutus.V1.Ledger.Api as Plutus import qu...
eb5655db2aceb0f8ebb3c2f1c46fa768987d5b64e433ab116873b4a338186679
panicz/grasp
indexable.scm
(import (srfi :11)) (import (srfi :17)) (import (define-interface)) (import (define-type)) (import (define-object)) (import (define-property)) (import (default-value)) (import (define-parameter)) (import (keyword-arguments)) (import (match)) (import (infix)) (import (assert)) (import (for)) (import (examples)) (import ...
null
https://raw.githubusercontent.com/panicz/grasp/e77e8ce57b1767549d6401ad9cf771758ffb2bf7/src/indexable.scm
scheme
the methods provided by these interfaces should be thought of as implicitly parameterized with (the-painter), (the-cursor) and (the-selection-anchor) parameters (cursor-above* path::Cursor)::Cursor* (cursor-below* path::Cursor)::Cursor* := (traversal:advance/extent! (extent)) `the-cursor` and `the-document` a...
(import (srfi :11)) (import (srfi :17)) (import (define-interface)) (import (define-type)) (import (define-object)) (import (define-property)) (import (default-value)) (import (define-parameter)) (import (keyword-arguments)) (import (match)) (import (infix)) (import (assert)) (import (for)) (import (examples)) (import ...
94372cc62e3e8fa742200e560d6c99f7771a6c7e4e2a7933b35723adcf28f55d
bartima3us/gen_bittorrent
gen_bittorrent_utp_multiplexer.erl
%%%------------------------------------------------------------------- @author ( C ) 2020 , %%% @doc %%% uTP () seeder multiplexer. Multiplexer purpose is to forward received uTP data to appropriate FSM by connection i d. %%% @end Created : 27 . Oct 2020 16.13 %%%---------------------------------------------...
null
https://raw.githubusercontent.com/bartima3us/gen_bittorrent/e06c99a042c9312f37b75162171606cd8f24c576/src/gen_bittorrent_utp_multiplexer.erl
erlang
------------------------------------------------------------------- @doc uTP () seeder multiplexer. @end ------------------------------------------------------------------- API gen_server callbacks =================================================================== API ============================================...
@author ( C ) 2020 , Multiplexer purpose is to forward received uTP data to appropriate FSM by connection i d. Created : 27 . Oct 2020 16.13 -module(gen_bittorrent_utp_multiplexer). -author("bartimaeus"). -behaviour(gen_server). -export([ start_link/1 ]). -export([ init/1, handle_call/3, h...
70abd35dbfee8360bc652f97ce9db4ba7bd757b43387341f8f581798b82a4179
NoRedInk/jetpack
Message.hs
module Message ( warning , success , error , list ) where import Data.Foldable (traverse_) import Data.Monoid ((<>)) import qualified Data.Text as T import qualified Data.Text.IO as TIO import Rainbow ( Chunk , Radiant , back , black , brightGreen , brightRed , brightWhite , chunk , cyan ...
null
https://raw.githubusercontent.com/NoRedInk/jetpack/721d12226b593c117cba26ceb7c463c7c3334b8b/src/Message.hs
haskell
module Message ( warning , success , error , list ) where import Data.Foldable (traverse_) import Data.Monoid ((<>)) import qualified Data.Text as T import qualified Data.Text.IO as TIO import Rainbow ( Chunk , Radiant , back , black , brightGreen , brightRed , brightWhite , chunk , cyan ...
731ad69bee2a16227a3013ce2d5e11d387947c5daddd855a6ef9462cca127f27
racket/rhombus-prototype
line-shape.rkt
#lang racket/base (require scribble/core "defining-element.rkt") (provide make-line-shape line-shape-step line-shape-newline line-shape-apply) (struct elem-shape (len style) #:transparent) (struct line-shape (first-line prev-line rev-line)...
null
https://raw.githubusercontent.com/racket/rhombus-prototype/999b67cec6b14689f4fe389ee6213b540834bd3c/scribble/private/line-shape.rkt
racket
#lang racket/base (require scribble/core "defining-element.rkt") (provide make-line-shape line-shape-step line-shape-newline line-shape-apply) (struct elem-shape (len style) #:transparent) (struct line-shape (first-line prev-line rev-line)...
f5c230462116cc0dab0df17f11ea01eaf780b1b2ccb2df74f0da5454b987c57c
screenshotbot/screenshotbot-oss
package.lisp
(in-package :cl-user) (defpackage :bknr.utils (:use :cl :cl-ppcre :cl-interpol :md5 #+sbcl :sb-ext #+openmcl :ccl) #+openmcl (:shadow :ccl #:copy-file #:make-process) (:shadowing-import-from :cl-interpol quote-meta-chars) (:export #:define-bknr-class ;; byt...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/1faeba2a45c639354e1298eb8a75aa82805a9ad5/third-party/bknr.datastore/src/utils/package.lisp
lisp
byte size formatting date format shell functions filesystem functions list functions hash table randomize md5 content-types strings stream smbpasswd actor reader Package cleaning for the build process mp compatibility class utils norvig misc
(in-package :cl-user) (defpackage :bknr.utils (:use :cl :cl-ppcre :cl-interpol :md5 #+sbcl :sb-ext #+openmcl :ccl) #+openmcl (:shadow :ccl #:copy-file #:make-process) (:shadowing-import-from :cl-interpol quote-meta-chars) (:export #:define-bknr-class #:scal...
a290cedc5518b6579ea3d4e51de30191ee983b64def1dd4f48e6e8d1adf78d12
ivanjovanovic/sicp
e-3.18.scm
Exercise 3.18 . ; ; Write a procedure that examines a list and ; determines whether it contains a cycle, that is, whether a ; program that tried to find the end of the list by taking successive would go into an infinite loop . Exercise 3.13 ; constructed such lists. ; ----------------------------------------------...
null
https://raw.githubusercontent.com/ivanjovanovic/sicp/a3bfbae0a0bda414b042e16bbb39bf39cd3c38f8/3.3/e-3.18.scm
scheme
Write a procedure that examines a list and determines whether it contains a cycle, that is, whether a program that tried to find the end of the list by taking constructed such lists. ------------------------------------------------------------ I guess, the way to go there is to go through the list and if we end...
Exercise 3.18 . successive would go into an infinite loop . Exercise 3.13 (load "../helpers.scm") (load "3.3.scm") (define (cycled? l) (cond ((or (null? l) (not (pair? l))) '#f) ((null? (cdr l)) '#f) (((history 'visited?) (cdr l)) '#t) (else (begin ((history 'add) l) ...
3eddea204a10e310f5127a2a228388889f3fbee3c61764ec3781ce73ba91a2c2
morpheusgraphql/morpheus-graphql
Utils.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # module Subscription.Utils ( SimulationState (..), simulate, expectedResponse, SubM, testResponse, inputsAreConsumed, storeIsEmpty, storedSingle, stored, storeSubs...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/cfaadc6f8491548bccab856757e95584946681b7/morpheus-graphql/test/Subscription/Utils.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # module Subscription.Utils ( SimulationState (..), simulate, expectedResponse, SubM, testResponse, inputsAreConsumed, storeIsEmpty, storedSingle, stored, storeSubscriptions, simulatePublish, apolloStart, apoll...
354f43955bebb8eb2be78d9ba7e223742244854aa1e1d74af8e45d462ab3474f
plaidfinch/ComonadSheet
Z3.hs
# LANGUAGE MultiParamTypeClasses , FlexibleInstances # module Z3 ( module Generic , Z3(..) , wrapZ3 ) where import Generic import Z1 import Z2 newtype Z3 c r l a = Z3 { fromZ3 :: Z1 l (Z2 c r a) } wrapZ3 :: (Z1 l (Z2 c r a) -> Z1 l' (Z2 c' r' a')) -> Z3 c r l a -> Z3 c' r' l' a' wrapZ3 = (Z3 .) . (. fromZ3) ...
null
https://raw.githubusercontent.com/plaidfinch/ComonadSheet/1cc9a91dc311bc1c692df4faaea091238b7871c2/Old/Z3.hs
haskell
# LANGUAGE MultiParamTypeClasses , FlexibleInstances # module Z3 ( module Generic , Z3(..) , wrapZ3 ) where import Generic import Z1 import Z2 newtype Z3 c r l a = Z3 { fromZ3 :: Z1 l (Z2 c r a) } wrapZ3 :: (Z1 l (Z2 c r a) -> Z1 l' (Z2 c' r' a')) -> Z3 c r l a -> Z3 c' r' l' a' wrapZ3 = (Z3 .) . (. fromZ3) ...
875981e4b7158d2d79857d1d7b4e18b9ac3f2bea3ac3c754581c6dab4a9c4539
poscat0x04/telegram-types
AnswerShippingQuery.hs
module Web.Telegram.Types.Internal.API.AnswerShippingQuery where import Common import Web.Telegram.Types.Internal.ShippingOption data AnswerShippingQuery = AnswerShippingQuery { shippingQueryId :: Text, ok :: Bool, shippingOptions :: Maybe [ShippingOption], errorMessage :: Maybe Text } deriving stoc...
null
https://raw.githubusercontent.com/poscat0x04/telegram-types/3de0710640f5303638a83e409001b0342299aeb8/src/Web/Telegram/Types/Internal/API/AnswerShippingQuery.hs
haskell
module Web.Telegram.Types.Internal.API.AnswerShippingQuery where import Common import Web.Telegram.Types.Internal.ShippingOption data AnswerShippingQuery = AnswerShippingQuery { shippingQueryId :: Text, ok :: Bool, shippingOptions :: Maybe [ShippingOption], errorMessage :: Maybe Text } deriving stoc...
37344566e9df6179bc8fdad9a56452a64b736f3a3ad29721196b93ec89d9925d
hellonico/origami-fun
seesaw2.clj
(ns opencv4.seesaw2 (:require [opencv4.core :refer :all :exclude [add!]] [opencv4.utils :as u]) (:use seesaw.core)) (def state (atom { :img (-> "resources/nico.jpg" (imread 0)) :bitwise false :a 0 :b 300})) (def frame (-> (frame :title "Small OpenCV Pannel" :on-close :dispose :content (vertica...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/seesaw2.clj
clojure
(clojure.pprint/pprint new-state) (remove-watch state :state)
(ns opencv4.seesaw2 (:require [opencv4.core :refer :all :exclude [add!]] [opencv4.utils :as u]) (:use seesaw.core)) (def state (atom { :img (-> "resources/nico.jpg" (imread 0)) :bitwise false :a 0 :b 300})) (def frame (-> (frame :title "Small OpenCV Pannel" :on-close :dispose :content (vertica...
729751343e0461f3954e3351990a115eec3b5adf9ef162bae9bfd982dcd24914
Holworth/SICP_Solutions
exercise2-56.rkt
#lang sicp (define (variable? x) (symbol? x)) (define (same-variable? v1 v2) (and (variable? v1) (variable? v2) (eq? v1 v2))) (define (=number? exp num) (and (number? exp) (= exp num))) ;; Sum expression related (define (make-sum a1 a2) (cond ((=number? a1 0) a2) ((=number? a2 0) a1) ((and (num...
null
https://raw.githubusercontent.com/Holworth/SICP_Solutions/ee20c01eb9ade5785140e301e147186747828283/solutions/chap2/code/exercise2-56.rkt
racket
Sum expression related Muliplication expression related Define derive process
#lang sicp (define (variable? x) (symbol? x)) (define (same-variable? v1 v2) (and (variable? v1) (variable? v2) (eq? v1 v2))) (define (=number? exp num) (and (number? exp) (= exp num))) (define (make-sum a1 a2) (cond ((=number? a1 0) a2) ((=number? a2 0) a1) ((and (number? a1) (number? a2)) (+ ...
9e831d18d32d0f115b638cca1b9737e91501cae0a4143b104cd44bf5398b71ae
jaspervdj/hakyll
Tests.hs
-------------------------------------------------------------------------------- module Hakyll.Web.CompressCss.Tests ( tests ) where -------------------------------------------------------------------------------- import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit ...
null
https://raw.githubusercontent.com/jaspervdj/hakyll/af9e29b5456c105dc948bc46c93e989a650b5ed1/tests/Hakyll/Web/CompressCss/Tests.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ com...
module Hakyll.Web.CompressCss.Tests ( tests ) where import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit ((@=?)) import Hakyll.Web.CompressCss import TestSuite.Util tests :: TestTree tests = testGroup "Hakyll.Web.CompressCss.Tests" $ con...
ed5d53c5a506a772a4d48b5f1f695adef2566efeb095dcbf5e96d024945dab9e
CrypticButter/snoop
build.clj
(ns build (:require [clojure.tools.build.api :as b] [juxt.pack.cli.api :as pack] [deps-deploy.deps-deploy :as deps-deploy])) (def lib 'com.crypticbutter/snoop) (def basis (b/create-basis {:project "deps.edn"})) (def version "21-353-alpha") (def jar-file (format "target/build/%s-%s.jar" (name lib) version)) ...
null
https://raw.githubusercontent.com/CrypticButter/snoop/cb38811c21fbd8db7f96da94bbb550f26cdf434d/build.clj
clojure
:class-dir class-dir
(ns build (:require [clojure.tools.build.api :as b] [juxt.pack.cli.api :as pack] [deps-deploy.deps-deploy :as deps-deploy])) (def lib 'com.crypticbutter/snoop) (def basis (b/create-basis {:project "deps.edn"})) (def version "21-353-alpha") (def jar-file (format "target/build/%s-%s.jar" (name lib) version)) ...
440baee0ec782ca74f5a9812c6a044a724164eb025ee74a8d253e50e80c97f93
jessitron/qconsf-22
hipstershop_payment_service_bhvr.erl
%%%------------------------------------------------------------------- @doc Behaviour to implement for grpc service hipstershop . PaymentService . %% @end %%%------------------------------------------------------------------- %% this module was generated and should not be modified manually -module(hipstershop_payme...
null
https://raw.githubusercontent.com/jessitron/qconsf-22/53df65c9c33ebaee33b7bf67304a89882709aee9/src/featureflagservice/src/hipstershop_payment_service_bhvr.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- this module was generated and should not be modified manually Unary RPC
@doc Behaviour to implement for grpc service hipstershop . PaymentService . -module(hipstershop_payment_service_bhvr). -callback charge(ctx:t(), ffs_demo_pb:charge_request()) -> {ok, ffs_demo_pb:charge_response(), ctx:t()} | grpcbox_stream:grpc_error_response().
ffed921fb8011a4f7bce493147637ebd4f469eedea55f0a631cecd555fd72640
ocaml/oasis
OASISBuildSection.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/oasis/OASISBuildSection.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
847ab89550a30036c9d0c76860e9300e13239bd144aa5a529ce43654e4fa660e
mu-chaco/ReWire
X.hs
module Mods.X (X(..), Y(..), x) where import Mods.C.X
null
https://raw.githubusercontent.com/mu-chaco/ReWire/a8dcea6ab0989474988a758179a1d876e2c32370/tests/regression/Mods/X.hs
haskell
module Mods.X (X(..), Y(..), x) where import Mods.C.X
105f7b2236fd828342435b19f041cdb827665e9e482490af90c2160219342708
susanemcg/pandoc-tufteLaTeX2GitBook
LaTeX.hs
# LANGUAGE OverloadedStrings , ScopedTypeVariables # Copyright ( C ) 2006 - 2014 < > 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 of the License , or ( at your opti...
null
https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/src/Text/Pandoc/Writers/LaTeX.hs
haskell
true if we're in a note true if in a blockquote true if in minipage notes in a minipage level of ordered list nesting writer options, so they don't have to be parameter true if document has verbatim text in note true if document has a table true if document has strikeout true if document has visible URL link ...
# LANGUAGE OverloadedStrings , ScopedTypeVariables # Copyright ( C ) 2006 - 2014 < > 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 of the License , or ( at your opti...
d110d961a5328fe48a853320e3858674e15e065d0bd71ac2556502a0f95a0349
uw-unsat/serval
logical-arithmetic-register-shifted-register.rkt
#lang racket/base (require "lib.rkt") (define tests (test-suite+ "Logical Arithmetic (three register, register shift)" (arm32-case* [choose-reg/no-r15 choose-reg/no-r15 choose-reg/no-r15 choose-stype choose-reg/no-r15] orr-register-shifted-register orrs-register-shifted-register) (arm32-case* ...
null
https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/test/arm32/logical-arithmetic-register-shifted-register.rkt
racket
#lang racket/base (require "lib.rkt") (define tests (test-suite+ "Logical Arithmetic (three register, register shift)" (arm32-case* [choose-reg/no-r15 choose-reg/no-r15 choose-reg/no-r15 choose-stype choose-reg/no-r15] orr-register-shifted-register orrs-register-shifted-register) (arm32-case* ...
57c4c7867048342a1016fc4332962c914c91044209bed3c8deb3f049de5e2838
serokell/haskell-with-utf8
Internal.hs
SPDX - FileCopyrightText : 2020 > - - SPDX - License - Identifier : MPL-2.0 - - SPDX-License-Identifier: MPL-2.0 -} # LANGUAGE LambdaCase # # LANGUAGE ViewPatterns # -- | Internal functions that implement encoding selection logic. module System.IO.Utf8.Internal ( EncodingAction (..) , chooseB...
null
https://raw.githubusercontent.com/serokell/haskell-with-utf8/63b26842bec2da71f4b822d2dff14640e63a63e5/lib/System/IO/Utf8/Internal.hs
haskell
| Internal functions that implement encoding selection logic. | What to do with the encoding of the handle. We return new encoding as string to simplify testing, because, it turns out, when you make an encoding with some name, the resulting encoding can have a different name. that the encoding is set to a new o...
SPDX - FileCopyrightText : 2020 > - - SPDX - License - Identifier : MPL-2.0 - - SPDX-License-Identifier: MPL-2.0 -} # LANGUAGE LambdaCase # # LANGUAGE ViewPatterns # module System.IO.Utf8.Internal ( EncodingAction (..) , chooseBestEncPure , chooseBestEnc ) where import Data.List (isSuffi...
5e063045573849cb55da70e705583109bfb816628e300d96da37a480b94b8061
hugoduncan/makejack
default_test.clj
(ns mj.test.default-test (:require [babashka.fs :as fs] [clojure.set :as set] [clojure.string :as str] [clojure.test :refer [deftest is testing]] [makejack.tasks :as tasks] [makejack.jarfile.api :as jarfile])) ;; helper so we can run tests from polylith root repl (def dir (or (some-> (fs/path *file...
null
https://raw.githubusercontent.com/hugoduncan/makejack/ad735ef5f19bc60475bc55949a4c3f737436155c/projects/makejack-jar/test-resources/default/test/mj/test/default_test.clj
clojure
helper so we can run tests from polylith root repl
(ns mj.test.default-test (:require [babashka.fs :as fs] [clojure.set :as set] [clojure.string :as str] [clojure.test :refer [deftest is testing]] [makejack.tasks :as tasks] [makejack.jarfile.api :as jarfile])) (def dir (or (some-> (fs/path *file*) fs/parent ...
7cc856349b12300869864867091c328bd992c5cdbcb6bb9adecb7fdd8bdaa636
alvatar/spheres
bignum.scm
! ! ! encoding ;;! Encode a bignum as a list of fixnums .author (define (bignum->fixnum-list x radix-minus-1) (let* ((big-radix (+ radix-minus-1 1)) (square-series (let loop ((square big-radix) (square-list (list big-radix))) (let ((new-square ...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/spheres/dataenc/bignum.scm
scheme
! Encode a bignum as a list of fixnums ! Decode a bignum from a list of fixnums Note: a divide-and-conquer algorithm would be faster for large numbers. ! Decode a bignum from a list of fixnums
! ! ! encoding .author (define (bignum->fixnum-list x radix-minus-1) (let* ((big-radix (+ radix-minus-1 1)) (square-series (let loop ((square big-radix) (square-list (list big-radix))) (let ((new-square (* square square))) ...
868884b2a220dfde321381e432d1e5ace7bb85d5e2df27d426de95846672cd1c
Opetushallitus/ataru
view.cljs
(ns ataru.virkailija.error.view (:require [re-frame.core :refer [subscribe]])) (defn error [] [:div [:div.editor-form__container.panel-content [:div.editor-form__form-header-row [:h1.editor-form__form-heading @(subscribe [:editor/virkailija-translation :odottamaton-virhe-otsikko])] ] [:div @(s...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/src/cljs/ataru/virkailija/error/view.cljs
clojure
(ns ataru.virkailija.error.view (:require [re-frame.core :refer [subscribe]])) (defn error [] [:div [:div.editor-form__container.panel-content [:div.editor-form__form-header-row [:h1.editor-form__form-heading @(subscribe [:editor/virkailija-translation :odottamaton-virhe-otsikko])] ] [:div @(s...
f685d39becbccb073b3cfb0f5f77bd53d41d58f787b51a510417f538de07f1b2
ocaml-flambda/flambda-backend
closure_conversion_aux.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/527c173ab2d4943c372256b769e17bee98ccfc62/middle_end/flambda2/from_lambda/closure_conversion_aux.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2019 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the module IR = struct type simple = | Var of Ident.t | Const ...
392397f530672b9f422000ba6600d8478b0d3cd2fc3c83ffed491e1d2ca5adb5
imdea-software/leap
Log.mli
(***********************************************************************) (* *) LEAP (* *) , IMDEA ...
null
https://raw.githubusercontent.com/imdea-software/leap/5f946163c0f80ff9162db605a75b7ce2e27926ef/src/misc/Log.mli
ocaml
********************************************************************* ...
LEAP , IMDEA Software Institute Copyright 2011 IMDEA Software Institute Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compl...
ca0ce5ee969d713e600ae61229ea3b53571bd14045114c64e767a3fc2161f0a8
tolysz/prepare-ghcjs
Setup.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # {-# LANGUAGE RankNTypes #-} # LANGUAGE DeriveGeneric # ----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.Setup Copyright : ( c ) 2005 -- License : BSD-like -- -- Maintainer ...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/cabal/cabal-install/Distribution/Client/Setup.hs
haskell
# LANGUAGE RankNTypes # --------------------------------------------------------------------------- | Module : Distribution.Client.Setup License : BSD-like Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- T...
# LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # # LANGUAGE DeriveGeneric # Copyright : ( c ) 2005 module Distribution.Client.Setup ( globalCommand, GlobalFlags(..), defaultGlobalFlags , RepoContext(..), withRepoContext , configureCommand, ConfigFlags(..), filterConfigureFlags , co...
74a07f77434482db18f526e0e010db35c63e974f6c6745622ed0147200fd07e3
haskell/cabal
cabal.test.hs
import Test.Cabal.Prelude main = cabalTest $ cabal "new-test" []
null
https://raw.githubusercontent.com/haskell/cabal/c21dbcd2a9d54962eb39f598dfce2d012ff7fd1c/cabal-testsuite/PackageTests/Regression/T5213ExeCoverage/cabal.test.hs
haskell
import Test.Cabal.Prelude main = cabalTest $ cabal "new-test" []
591e68281c47d771db1e7d540347d8d4de9e7a1adb4dbefd7717d304b64e9c2d
PrecursorApp/precursor
urls.clj
(ns pc.http.urls (:require [cemerick.url :as url] [clojure.string :as str] [pc.profile :as profile])) (defn make-url [path & {:keys [query subdomain]}] (str (url/map->URL (merge {:host (str (when subdomain (str subdomain ".")) ...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src/pc/http/urls.clj
clojure
(ns pc.http.urls (:require [cemerick.url :as url] [clojure.string :as str] [pc.profile :as profile])) (defn make-url [path & {:keys [query subdomain]}] (str (url/map->URL (merge {:host (str (when subdomain (str subdomain ".")) ...
8a9a7c09ca30e25b4b8c8ad35e73e526d6c9775979953929ff04f68f4ce34bda
fossas/fossa-cli
Extra.hs
module Data.Aeson.Extra ( forbidMembers, TextLike (..), encodeJSONToText, ) where import Control.Applicative ((<|>)) import Control.Monad (when) import Data.Aeson qualified as Aeson import Data.Aeson.KeyMap qualified as Object import Data.Aeson.Types (FromJSON (parseJSON), Key, Object, Parser, ToJSON) import Dat...
null
https://raw.githubusercontent.com/fossas/fossa-cli/36830917bf9c54c77cf4127714b6bf891fc7defc/src/Data/Aeson/Extra.hs
haskell
| A Text-like field Sometimes fields in yaml files get incorrectly classified as numbers instead of text @ @ This makes things really hard to parse. As a workaround, we try parsing as Text, then Int, then Double | Parser insert to prevent specific fields from being used in parsers > MyDataType <$> obj ....
module Data.Aeson.Extra ( forbidMembers, TextLike (..), encodeJSONToText, ) where import Control.Applicative ((<|>)) import Control.Monad (when) import Data.Aeson qualified as Aeson import Data.Aeson.KeyMap qualified as Object import Data.Aeson.Types (FromJSON (parseJSON), Key, Object, Parser, ToJSON) import Dat...
fbfec064e2e1ed1ebbe975f82810cbbb8a2a41fe20254248369bff0b742687cd
babashka/babashka
pod.clj
(ns pod (:refer-clojure :exclude [read read-string]) (:require [babashka.pods :as pods] [bencode.core :as bencode] [cheshire.core :as cheshire] [clojure.edn :as edn] [clojure.java.io :as io]) (:import [java.io PushbackInputStream]) (:gen-class)) (def debug? false...
null
https://raw.githubusercontent.com/babashka/babashka/c081367304ad534360d6451e3cfad0355bd7a638/test-resources/pod.clj
clojure
(ns pod (:refer-clojure :exclude [read read-string]) (:require [babashka.pods :as pods] [bencode.core :as bencode] [cheshire.core :as cheshire] [clojure.edn :as edn] [clojure.java.io :as io]) (:import [java.io PushbackInputStream]) (:gen-class)) (def debug? false...
0a3a4feac9b83b6de78a1c18efd46ef4658202f1f60d7a214d90be57a87e637a
sadiqj/ocaml-esp32
generic_array.ml
let rec x = let _y = [| |] in ();; let rec x = let y = [| |] in y :: x;;
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/testsuite/tests/letrec/generic_array.ml
ocaml
let rec x = let _y = [| |] in ();; let rec x = let y = [| |] in y :: x;;
bec287acc2d19932abad724a8dceb5e0796f55fd9a1de02e102ba97bc539847b
aryx/lfs
common_transducer.ml
open Common type property = Prop of string type transducer = (filecontent -> property set) and filecontent = string let (interact_transducer: transducer -> unit) = fun trans -> match (Array.to_list Sys.argv ) with | [_;x] -> read_file x +> trans +> map (fun (Prop s) -> s) +> join "/" +> print_endline | _...
null
https://raw.githubusercontent.com/aryx/lfs/b931530c7132b77dfaf3c99d452dc044fce37589/p_transducer/common_transducer.ml
ocaml
open Common type property = Prop of string type transducer = (filecontent -> property set) and filecontent = string let (interact_transducer: transducer -> unit) = fun trans -> match (Array.to_list Sys.argv ) with | [_;x] -> read_file x +> trans +> map (fun (Prop s) -> s) +> join "/" +> print_endline | _...
af5116345e63a23f4c17f426bca5bbc3f9e5f5b18df7180f2dfbc4692cda290d
facebookincubator/retrie
CPP.hs
Copyright ( c ) Facebook , Inc. and its affiliates . -- This source code is licensed under the MIT license found in the -- LICENSE file in the root directory of this source tree. -- # LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Retrie.CPP ( CPP(..) , addImportsCPP , p...
null
https://raw.githubusercontent.com/facebookincubator/retrie/fb58d0484935a6a0dcbe93035ffc0fdc30b7bf03/Retrie/CPP.hs
haskell
LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings # ** Internal interface exported for tests We can't just run the pre-processor on files and then rewrite them, because actually parse it (it looks for the pragma and then delegates to the pre-processor). To solve this, we inst...
Copyright ( c ) Facebook , Inc. and its affiliates . This source code is licensed under the MIT license found in the # LANGUAGE CPP # # LANGUAGE RecordWildCards # module Retrie.CPP ( CPP(..) , addImportsCPP , parseCPPFile , parseCPP , printCPP , cppFork ) where import Data.Char (isSpace) import Data....
680c733a48f4e8bd9080107483ffd93e0207b1ef6f7c48ed5a468b91da62a6c8
theodormoroianu/SecondYearCourses
lab3-sol.hs
import Data.List import Test.QuickCheck factori n =[x | x<- [1..(abs n)], n`mod` x ==0] prim n = factori n == [1,n] numerePrime n = [x | x <- [2..(abs n)], prim x] numerePrimeCiur n = sieve [2..n] where sieve [] = [] sieve (p:xs) = p : sieve [x | x <- xs, rem x p > 0] -- ord...
null
https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/99185b0e97119135e7301c2c7be0f07ae7258006/Haskell/l/lab3/lab3-sol.hs
haskell
------------------------------------------------------ ------FUNCTII ----------------------- ------------------------------------------------------ aplica2 f x = f (f x) aplica2 f = f.f aplica2 f = \x -> f (f x)
import Data.List import Test.QuickCheck factori n =[x | x<- [1..(abs n)], n`mod` x ==0] prim n = factori n == [1,n] numerePrime n = [x | x <- [2..(abs n)], prim x] numerePrimeCiur n = sieve [2..n] where sieve [] = [] sieve (p:xs) = p : sieve [x | x <- xs, rem x p > 0] ordonareNa...
647e20af9aa3bb44b859711117dfd6df681114c5de59feda0ed28a80b81552d6
clojure-interop/google-cloud-clients
project.clj
(defproject clojure-interop/com.google.cloud.webrisk "1.0.0" :description "Clojure to Java Interop Bindings for com.google.cloud.webrisk" :url "-interop/google-cloud-client-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source-paths [...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.webrisk/project.clj
clojure
(defproject clojure-interop/com.google.cloud.webrisk "1.0.0" :description "Clojure to Java Interop Bindings for com.google.cloud.webrisk" :url "-interop/google-cloud-client-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source-paths [...
dd2b74b977aa917ba3c1f3eb38a8dd26aea614a709890fd5aeced6641da14074
ramalho/mac316
Parse-RVCFAE.scm
Rotina auxiliar (define (read-prog arq) (call-with-input-file arq (lambda (a) (read a)))) Parser (define (parse sexp) (cond [(symbol? sexp) (id sexp)] [(number? sexp) (num sexp)] [(list? sexp) (case (first sexp) [(+) (add (parse (second sexp)) (parse (third sexp)))] [(-) (sub (parse (s...
null
https://raw.githubusercontent.com/ramalho/mac316/4c925557064c788c4d29e3408a6b1d327386d98b/gubi/Parse-RVCFAE.scm
scheme
param body valor
Rotina auxiliar (define (read-prog arq) (call-with-input-file arq (lambda (a) (read a)))) Parser (define (parse sexp) (cond [(symbol? sexp) (id sexp)] [(number? sexp) (num sexp)] [(list? sexp) (case (first sexp) [(+) (add (parse (second sexp)) (parse (third sexp)))] [(-) (sub (parse (s...
15d8caaa3a004332126cfc27100716f6a498b727153c53e02d82b020c9057d23
BrianChevalier/numpy-clj
environment.clj
(ns numpy-clj.environment (:require [libpython-clj.python :as py] [clojure.string :as str])) (def user-home (System/getProperty "user.home")) (def user-dir (System/getProperty "user.dir")) (def os-name (System/getProperty "os.name")) (defn system-path [] (let [home (case (str/starts-with? user-dir "...
null
https://raw.githubusercontent.com/BrianChevalier/numpy-clj/f9d9fb82bd6e80704d44c72ad7aecf80321c409f/src/numpy_clj/environment.clj
clojure
(ns numpy-clj.environment (:require [libpython-clj.python :as py] [clojure.string :as str])) (def user-home (System/getProperty "user.home")) (def user-dir (System/getProperty "user.dir")) (def os-name (System/getProperty "os.name")) (defn system-path [] (let [home (case (str/starts-with? user-dir "...
87ca4990ed8cfca181eb8f9f3910b86f513e6b6d81e50e0c728dff61402606be
dstarcev/stepic-haskell
Task29.hs
module Module4.Task29 where import Prelude hiding (lookup) class MapLike m where empty :: m k v lookup :: Ord k => k -> m k v -> Maybe v insert :: Ord k => k -> v -> m k v -> m k v delete :: Ord k => k -> m k v -> m k v fromList :: Ord k => [(k,v)] -> m k v fromList [] = empty fromList ((k,v)...
null
https://raw.githubusercontent.com/dstarcev/stepic-haskell/6a8cf4b3cc17333ac4175e825db57dbe151ebae0/src/Module4/Task29.hs
haskell
module Module4.Task29 where import Prelude hiding (lookup) class MapLike m where empty :: m k v lookup :: Ord k => k -> m k v -> Maybe v insert :: Ord k => k -> v -> m k v -> m k v delete :: Ord k => k -> m k v -> m k v fromList :: Ord k => [(k,v)] -> m k v fromList [] = empty fromList ((k,v)...
19eae6a676464a5b3f8491c70f790552686f886f50df75c72b499e89aca3a82f
kbaba1001/todo
main.clj
(ns todo.main (:gen-class) (:require [clojure.java.io :as io] [duct.core :as duct])) (duct/load-hierarchy) (defn -main [& args] (let [keys (or (duct/parse-keys args) [:duct/daemon])] (-> (duct/read-config (io/resource "todo/config.edn")) (duct/prep keys) (duct/exec keys))))
null
https://raw.githubusercontent.com/kbaba1001/todo/bf48c99a97ece1726bdd4b2e2ce0e53ae9e93a31/src/todo/main.clj
clojure
(ns todo.main (:gen-class) (:require [clojure.java.io :as io] [duct.core :as duct])) (duct/load-hierarchy) (defn -main [& args] (let [keys (or (duct/parse-keys args) [:duct/daemon])] (-> (duct/read-config (io/resource "todo/config.edn")) (duct/prep keys) (duct/exec keys))))
940b5b4cefaaf57b7783ad4fc8f9c5aeafeede7ed3ec64b28ba1576aa35b038d
denisidoro/rosebud
service_test.clj
(ns rosebud.service-test (:require [clojure.test :as t] [matcher-combinators.midje :refer [match]] [midje.sweet :refer :all] [rosebud.components.system :as components.system] [rosebud.http-helpers :refer [GET POST]])) (components.system/ensure-system-up! :test) TODO...
null
https://raw.githubusercontent.com/denisidoro/rosebud/90385528d9a75a0e17803df487a4f6cfb87e981c/server/test/rosebud/service_test.clj
clojure
(ns rosebud.service-test (:require [clojure.test :as t] [matcher-combinators.midje :refer [match]] [midje.sweet :refer :all] [rosebud.components.system :as components.system] [rosebud.http-helpers :refer [GET POST]])) (components.system/ensure-system-up! :test) TODO...
0a6da1a25a040c335dbeef1e105a96781e684f19f91ea6c831b33b112be34b06
ethereum/act
CLI.hs
{-# LANGUAGE DeriveGeneric #-} {-# Language DataKinds #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleInstances # # LANGUAGE StandaloneDeriving # {-# Language TypeOperators #-} # LANGUAGE OverloadedLists # # LANGUAGE ApplicativeDo # module CLI (main, ...
null
https://raw.githubusercontent.com/ethereum/act/7dbda2daff428a8a3938cb46197a4b282e6506f0/src/CLI.hs
haskell
# LANGUAGE DeriveGeneric # # Language DataKinds # # LANGUAGE GADTs # # LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # Language TypeOperators # command line options --------------------- *** Dispatch *** --- --------------------- ------------------------------- *** CLI implementation *** --- -------------...
# LANGUAGE FlexibleInstances # # LANGUAGE StandaloneDeriving # # LANGUAGE OverloadedLists # # LANGUAGE ApplicativeDo # module CLI (main, compile, proceed) where import Data.Aeson hiding (Bool, Number) import EVM.SymExec (ProofResult(..)) import GHC.Generics import System.Exit ( exitFailure ) import System.IO (hPutS...
d3c6c8314d47baad8ca2ee8461bb9f2b1a864a9730143596a7b8a4b5edac3374
abridgewater/nq-clim
mirror-functions.lisp
;;; nq - clim / sheet / mirror - functions ;;; CLIM II 9.4.1 . ;;; (cl:defpackage :nq-clim/sheet/mirror-functions (:use :cl :nq-clim/sheet/sheet :nq-clim/sheet/sheet-hierarchy-protocol :nq-clim/port/port) (:export "SHEET-DIRECT-MIRROR" "SHEET-MIRRORED-ANCESTOR" "SHEET-MIRROR" ...
null
https://raw.githubusercontent.com/abridgewater/nq-clim/11d339fd0ac77b6d624fc5537b170294a191a3de/sheet/mirror-functions.lisp
lisp
associated with the oddity. Ignoring them for now. (defgeneric raise-mirror (port sheet)) (defgeneric bury-mirror (port sheet))
nq - clim / sheet / mirror - functions CLIM II 9.4.1 . (cl:defpackage :nq-clim/sheet/mirror-functions (:use :cl :nq-clim/sheet/sheet :nq-clim/sheet/sheet-hierarchy-protocol :nq-clim/port/port) (:export "SHEET-DIRECT-MIRROR" "SHEET-MIRRORED-ANCESTOR" "SHEET-MIRROR" "REALIZE-M...
74c3ee5afaa9a54ad6b2dabdf15048c2c3eed7b3840de3fe4aff08cde664452c
cj1128/sicp-review
2.54.scm
(define (equal? l1 l2) (cond ((and (null? l1) (null? l2)) true) ((and (pair? l1) (pair? l2)) (if (eq? (car l1) (car l2)) (equal? (cdr l1) (cdr l2)) false)) (else (eq? l1 l2)))) (display (equal? 'a 'a)) (newline) (display (equal? (cons 1 2) (cons 1 2))) (ne...
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.3/2.54.scm
scheme
(define (equal? l1 l2) (cond ((and (null? l1) (null? l2)) true) ((and (pair? l1) (pair? l2)) (if (eq? (car l1) (car l2)) (equal? (cdr l1) (cdr l2)) false)) (else (eq? l1 l2)))) (display (equal? 'a 'a)) (newline) (display (equal? (cons 1 2) (cons 1 2))) (ne...
394df42b21d1e306a06359cc84ac020c864e46f943508161f47b220d23742a4b
Ashe/HSRogue
Components.hs
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module Components ( AllComps , Time(..) , WindowSize(..) , MessageBit(..) , MBit(..) , Messages(..) , GameState(..) , Renderer(..) , Textures(..) , Fonts(..) , GameMode(..) , Tile(..) , GameMap(..) , Player(..) , PlayerReady(..) , PlayerPath(..) , Relationships(...
null
https://raw.githubusercontent.com/Ashe/HSRogue/ced7b7631a3dd4f0e6919ae98bda1c4316c8be38/src/Components.hs
haskell
Easy type for all non-global, non-player components Global component, exists outside of entities Used for managing the passage of time This component acts as a flag for when the player can move Global store of window size Global component used for reporting events Global store of renderer Global store of all te...
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module Components ( AllComps , Time(..) , WindowSize(..) , MessageBit(..) , MBit(..) , Messages(..) , GameState(..) , Renderer(..) , Textures(..) , Fonts(..) , GameMode(..) , Tile(..) , GameMap(..) , Player(..) , PlayerReady(..) , PlayerPath(..) , Relationships(...
dda849dd99bf2a53631ff6b946118990bb4a1d96fb556725cfac0b852d781b9d
fccm/glMLite
blending.ml
(* From the Red Book: *) OCaml version by open GL ;; open Glu ;; open Glut ;; let left_first = ref true ;; Initialize alpha blending function . let init() = glEnable GL_BLEND; glBlendFunc Sfactor.GL_SRC_ALPHA Dfactor.GL_ONE_MINUS_SRC_ALPHA; glShadeModel GL_FLAT; glClearColor 0.0 0.0 0.0 0....
null
https://raw.githubusercontent.com/fccm/glMLite/c52cd806909581e49d9b660195576c8a932f6d33/RedBook-Samples/blending.ml
ocaml
From the Red Book: draw cyan triangle on RHS of screen Escape
OCaml version by open GL ;; open Glu ;; open Glut ;; let left_first = ref true ;; Initialize alpha blending function . let init() = glEnable GL_BLEND; glBlendFunc Sfactor.GL_SRC_ALPHA Dfactor.GL_ONE_MINUS_SRC_ALPHA; glShadeModel GL_FLAT; glClearColor 0.0 0.0 0.0 0.0; ;; let drawLeftTriangle(...
484a610409f58e59a4ea31d51e0e2b28a0226446ec3272bf4b35049c3d30b7c9
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
SourceTypeWechat.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema SourceTypeWechat module StripeAPI.Types.SourceTypeWechat where import qual...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/SourceTypeWechat.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema SourceTypeWechat | Defines the object schema located at @components.schemas.source_type_wechat@ in the specification. | prepay_id | qr_code_url | statement_descriptor | Create a new 'SourceTypeWechat' with all re...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.SourceTypeWechat where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Internal import qualified ...
163677067782922fe9f1a0dbb1731288b33f6532417d2a51178fe177690de169
hstreamdb/hstream
Types.hs
# LANGUAGE PatternSynonyms # module HStream.Gossip.Types ( module HStream.Gossip.Types , module G ) where import Control.Concurrent (MVar, ThreadId) import Control.Concurrent.STM (TChan, TMVar, TQueue, TVar) import Data.ByteString (ByteString) imp...
null
https://raw.githubusercontent.com/hstreamdb/hstream/35b2284d122202a6ad7efc98e6c6304b68a0e49d/hstream-gossip/src/HStream/Gossip/Types.hs
haskell
The Server list for the library user | ServerAlive | ServerLeaving -- Not yet needed | ServerLeft -- Not yet needed | ServerFailed deriving (Show, Eq) Server Context Event Context Bootstrap Context -----------------------------------------------------------------------------
# LANGUAGE PatternSynonyms # module HStream.Gossip.Types ( module HStream.Gossip.Types , module G ) where import Control.Concurrent (MVar, ThreadId) import Control.Concurrent.STM (TChan, TMVar, TQueue, TVar) import Data.ByteString (ByteString) imp...
b63bbc38c6466a59fc42b96119dda4a381a205286412fe3d144d40cd01ebea81
rabbitmq/ra-kv-store
store.clj
(ns jepsen.store "Persistent storage for test runs and later analysis." (:refer-clojure :exclude [load]) (:require [clojure.data.fressian :as fress] [clojure.pprint :refer [pprint]] [clojure.java.io :as io] [clojure.tools.logging :refer :all] [clj-time.core :as time...
null
https://raw.githubusercontent.com/rabbitmq/ra-kv-store/faf36863bb3822ef4dcd99de5635007273d35997/jepsen/jepsen/src/jepsen/store.clj
clojure
did you just tell me to go fuck myself
(ns jepsen.store "Persistent storage for test runs and later analysis." (:refer-clojure :exclude [load]) (:require [clojure.data.fressian :as fress] [clojure.pprint :refer [pprint]] [clojure.java.io :as io] [clojure.tools.logging :refer :all] [clj-time.core :as time...
6cf4f3006de0030e963f7d4f156a0171cdbceafa9e9ccf4bf1449164a3340cd0
racket/racket7
form.rkt
#lang racket/base (require "../common/performance.rkt" "../syntax/syntax.rkt" "../syntax/scope.rkt" "../syntax/taint.rkt" "../syntax/property.rkt" "../syntax/match.rkt" "../common/phase.rkt" "../namespace/namespace.rkt" "../namespace/module.rkt" ...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/compile/form.rkt
racket
Compiles a module body or sequence of top-level forms, returning a linklet directory to cover all phases covered by the forms encoded root context, if any to support submodules Accumulate syntax objects across all phases: For each phase, keep track of all compiled expressions for the phase phase -> list of S-ex...
#lang racket/base (require "../common/performance.rkt" "../syntax/syntax.rkt" "../syntax/scope.rkt" "../syntax/taint.rkt" "../syntax/property.rkt" "../syntax/match.rkt" "../common/phase.rkt" "../namespace/namespace.rkt" "../namespace/module.rkt" ...
ae8b3ace47eb6d8e59384b59482a3aa9317bc969974ef5ce742e5605fc7712b9
caiorss/Functional-Programming
trigdeg.hs
Applied Haskell -- rearning by implementing Statical , -- Finance Functions -- ------------------------------------------ -- Arithmetic Mean of a Sequence -- -- mean :: Fractional b => [b] -> b mean lst = sum lst / fromIntegral (length lst) -- Geometric Mean of Squence geomean lst = (product lst)^(fromIntegra...
null
https://raw.githubusercontent.com/caiorss/Functional-Programming/ef3526898e3014e9c99bf495033ff36a4530503d/codes/trigdeg.hs
haskell
Finance Functions ---------------------------------------- Arithmetic Mean of a Sequence mean :: Fractional b => [b] -> b Geometric Mean of Squence Convert from decimal to percent Lagged Difference of a time serie lagddif [xi] = [x_i+1 - x_i] Growth of a Time Serie - - Perncentual Growth Task:#Haskell ...
Applied Haskell rearning by implementing Statical , mean lst = sum lst / fromIntegral (length lst) geomean lst = (product lst)^(fromIntegral (length lst)) to_percent lst = map (100.0 *) lst lagdiff lst = zipWith (-) (tail lst) lst growth lst = zipWith (/) (lagdiff lst) lst growthp = to_percent . growth Tim...
167a88e83ddf5acdef0de201717f0424fe18829e5b08ba84ad9bb00f579b1878
INRIA/zelus
obc.ml
(***********************************************************************) (* *) (* *) (* Zelus, a synchronous language for hybrid systems *) (* ...
null
https://raw.githubusercontent.com/INRIA/zelus/685428574b0f9100ad5a41bbaa416cd7a2506d5e/compiler/gencode/obc.ml
ocaml
********************************************************************* Zelus, a synchronous language for hybrid systems ...
( c ) 2020 Paris ( see the file ) Automatique . All rights reserved . This file is distributed under the terms of the INRIA Non - Commercial License Agreement ( see the open Zlocation open Zmisc open Zident type name = string with two fields : [ x.der ] for its derivative ...
96da6b743f5aaad5603564eb78fceeeffdf7503a356f9f40f41664e531a2de07
maximedenes/native-coq
uint63_amd64.ml
type t = int let _ = assert (Sys.word_size = 64) let uint_size = 63 let maxuint63 = Int64.of_string "0x7FFFFFFFFFFFFFFF" let maxuint31 = 0x7FFFFFFF (* conversion from an int *) let to_uint64 i = Int64.logand (Int64.of_int i) maxuint63 let of_int i = i let to_int i = i let to_int2 i = (0,i) let of_int64 i = asse...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/kernel/uint63_amd64.ml
ocaml
conversion from an int Compiles an unsigned int to OCaml code logical shift subtraction multiplication division modulo comparison exact multiplication TODO: check that none of these additions could be a logical or We can have a carry head tail
type t = int let _ = assert (Sys.word_size = 64) let uint_size = 63 let maxuint63 = Int64.of_string "0x7FFFFFFFFFFFFFFF" let maxuint31 = 0x7FFFFFFF let to_uint64 i = Int64.logand (Int64.of_int i) maxuint63 let of_int i = i let to_int i = i let to_int2 i = (0,i) let of_int64 i = assert false conversion of an uint...
ab624b6ddaa151ca655e6eb26db211b0fb2e0d2b4a1dcc370a0b05fc50336874
RileyEv/CircuitFlow
Task.hs
{-# LANGUAGE BangPatterns #-} | Module : Pipeline . Task Description : To create tasks Copyright : ( c ) , 2020 License : BSD 3 - Clause Maintainer : Contains the tools needed to create , interact with and stop a network . Module : Pipeline.Task Description : To create tasks Copyr...
null
https://raw.githubusercontent.com/RileyEv/CircuitFlow/6847931fd8fe2a35810b8c971e6b6bfc57e08e8d/src/Pipeline/Task.hs
haskell
# LANGUAGE BangPatterns # $task-description * Misc ^ The function to execute ^ The function to execute $task-description A 'Task', is one of the key components of this system. They will be converted into threads in the process network. A task should: * use 'fetch'' to retrieve all the inputs from the 'D...
| Module : Pipeline . Task Description : To create tasks Copyright : ( c ) , 2020 License : BSD 3 - Clause Maintainer : Contains the tools needed to create , interact with and stop a network . Module : Pipeline.Task Description : To create tasks Copyright : (c) Riley Evans, 2020...
750f34ba9c03d8d80d9af16b9a076ed5050e72ca3c7f670fccb82e825263ce0b
venantius/glow
parse_test.clj
(ns glow.parse-test (:require [clojure.test :refer :all] [glow.parse :as parse])) ;; what else is there? (deftest keyword-edge-cases-parse (is (= (parse/parse ":nil") '(:file (:form (:literal (:keyword ":nil")))))) (is (= (parse/parse ":1") '(:file (:form (:literal (:keyword ":1")))))) (is (= (pars...
null
https://raw.githubusercontent.com/venantius/glow/17698a3621ba2f7d09f7c786764a21b13f90f6c3/test/glow/parse_test.clj
clojure
what else is there?
(ns glow.parse-test (:require [clojure.test :refer :all] [glow.parse :as parse])) (deftest keyword-edge-cases-parse (is (= (parse/parse ":nil") '(:file (:form (:literal (:keyword ":nil")))))) (is (= (parse/parse ":1") '(:file (:form (:literal (:keyword ":1")))))) (is (= (parse/parse ":a%/a") '(:fil...
922820e2be29d02cb571266ceaacdd5913018b6aef263f572a22fc4b780e3064
Bogdanp/racket-http-easy
info.rkt
#lang info (define license 'BSD-3-Clause) (define version "0.4.1") (define collection "net") (define deps '("base" "net-cookies-lib" ["resource-pool-lib" #:version "0.1"] "unix-socket-lib"))
null
https://raw.githubusercontent.com/Bogdanp/racket-http-easy/e874a6198d8d8d412b9cddb6d000bd5fba070211/http-easy-lib/info.rkt
racket
#lang info (define license 'BSD-3-Clause) (define version "0.4.1") (define collection "net") (define deps '("base" "net-cookies-lib" ["resource-pool-lib" #:version "0.1"] "unix-socket-lib"))
48d9cf3aa0dfad8e0754d9b0d6a43d4787a2deddf9a06b752b1dd3ead7cad220
facebookarchive/pfff
gObj.mli
(**************************************************************************) (* Lablgtk *) (* *) (* This program is free software; you can redistribute it *) and/or ...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/ocamlgtk/src/gObj.mli
ocaml
************************************************************************ Lablgtk This program is free software; you can redistribute it comes with the library. ...
and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation version 2 , with the exception described in file COPYING which GNU Library General Public License for more details . You should have r...
b84dd937c3f95b9ac7aec58f2be4d59e284bf8a6c37a538f0478f5789aef87ed
masaeedu/monoidal
Iso.hs
module Control.Category.Iso where import Prelude hiding ((.), id) import Control.Category data Iso p a b = Iso { fwd :: p a b, bwd :: p b a } instance Category p => Category (Iso p) where id = Iso id id Iso a b . Iso c d = Iso (a . c) (d . b)
null
https://raw.githubusercontent.com/masaeedu/monoidal/c48fa8745a08bad58e6d37041e59a0e88d10805d/src/Control/Category/Iso.hs
haskell
module Control.Category.Iso where import Prelude hiding ((.), id) import Control.Category data Iso p a b = Iso { fwd :: p a b, bwd :: p b a } instance Category p => Category (Iso p) where id = Iso id id Iso a b . Iso c d = Iso (a . c) (d . b)
9c86f1ed68f475121a6b6fef03c83a8987038092ddeca05582197eabc7cf2523
koto-bank/lbge
patches.lisp
;;; Special files for adding functionality missing from dependencies . Pull - request merges and auiklisp ;;; updates have significant lag, so this file should ;;; contain everything needed while changes are en route ;;; to the repos and the quicklisp. (in-package :cl-opengl) (definline draw-elements-base-vertex (m...
null
https://raw.githubusercontent.com/koto-bank/lbge/6be4b3212ea87288b1ee2a655e9a1bb30a74dd27/src/patches.lisp
lisp
Special files for adding functionality missing updates have significant lag, so this file should contain everything needed while changes are en route to the repos and the quicklisp.
from dependencies . Pull - request merges and auiklisp (in-package :cl-opengl) (definline draw-elements-base-vertex (mode array base-vertex &key (count (gl-array-size array)) (offset 0)) (%gl:draw-elements-base-vertex mode count...
ce870839b3425e98336fd0f287db65a6be651fb3b871f98996baa39954524bb3
15Galan/asignatura-204
SetDemo.hs
------------------------------------------------------------------------------- -- Simple client module using a Set -- Data Structures . en Informática . UMA . , 2012 ------------------------------------------------------------------------------- module Demos.Set.SetDemo where import DataStructures.Set.LinearS...
null
https://raw.githubusercontent.com/15Galan/asignatura-204/894f33ff8e0f52a75d8f9ff15155c656f1a8f771/Pr%C3%A1cticas/Demos/Set/SetDemo.hs
haskell
----------------------------------------------------------------------------- Simple client module using a Set ----------------------------------------------------------------------------- Iterating over elements of a set
Data Structures . en Informática . UMA . , 2012 module Demos.Set.SetDemo where import DataStructures.Set.LinearSet import DataStructures.Set.SetAxioms(setAxioms) s1 :: Set Int s1 = insert 1 (insert 2 (insert 3 (insert 1 empty))) setToList :: Set a -> [a] setToList = fold (:) [] sumSet :: (Num a) => Set a...
f7a07d3277721194a0f00a03ed63b9ad00b31a446b0551a328ef9bc080c88611
daveyarwood/ezzmq
util.clj
(ns ezzmq.util) (defn errfmt [msg & fmt-args] (throw (Exception. (apply format msg fmt-args)))) (defn as-byte-array [x] (condp = (class x) (Class/forName "[B") x String (.getBytes x) (errfmt "Can't convert %s (%s) into a byte array." x (class x))))
null
https://raw.githubusercontent.com/daveyarwood/ezzmq/7ad3c234bb39c7425fec4cc93228a80268dc1902/src/ezzmq/util.clj
clojure
(ns ezzmq.util) (defn errfmt [msg & fmt-args] (throw (Exception. (apply format msg fmt-args)))) (defn as-byte-array [x] (condp = (class x) (Class/forName "[B") x String (.getBytes x) (errfmt "Can't convert %s (%s) into a byte array." x (class x))))
cf881396fec2392baf3240d05235f1ecfcd4c8d9e323c352b222ebc00172f676
mirage/irmin-krypto
irmin_krypto.ml
* Copyright ( c ) 2013 - 2015 < > * Copyright ( c ) 2015 Allah < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * *...
null
https://raw.githubusercontent.com/mirage/irmin-krypto/223db2b01961d8fb01ae59a1d0faab49517793fb/lib/irmin_krypto.ml
ocaml
* Copyright ( c ) 2013 - 2015 < > * Copyright ( c ) 2015 Allah < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * *...
87aa7085aefcdd81d0df908721635707508614a059f3ad2ede969d18d926eba1
Eduap-com/WordMat
mhayat.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/mhayat.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; ***********...
(in-package :maxima) (macsyma-module mhayat macro) * * ( c ) Copyright 1980 Massachusetts Institute of Technology * * ( ( MRAT SIMP < varlist > < genvar > < tlist > trunc ) < poly - form > ) be displayed they are RATDISREPed and passed to . pairs as shown below . The PS is used to distinguish pow...
e045e36ca359e6139b4ad80339f6ca5dc79737f48e1ee79082aa3dfe0d0b28e3
euhmeuh/virtual-mpu
structs.rkt
#lang racket/base (provide (struct-out reg-info) (struct-out status-info) (struct-out interrupts-info)) (struct reg-info (name size) #:transparent) (struct status-info (register bits) #:transparent) (struct interrupts-info (bit interrupts) #:transparent)
null
https://raw.githubusercontent.com/euhmeuh/virtual-mpu/d8056f928a646bb9ac96fdb78cde794efc82d144/private/mpu-lang/structs.rkt
racket
#lang racket/base (provide (struct-out reg-info) (struct-out status-info) (struct-out interrupts-info)) (struct reg-info (name size) #:transparent) (struct status-info (register bits) #:transparent) (struct interrupts-info (bit interrupts) #:transparent)
557a5c2df3b7a41ae575a81a6e3b55f3cb0c0320bde6eca8a601baf166d0e458
alexandergunnarson/quantum
tree.cljc
(ns quantum.untyped.core.collections.tree (:require [quantum.untyped.core.collections :as ucoll] [quantum.untyped.core.core :as ucore] [quantum.untyped.core.reducers :as ur])) (ucore/log-this-ns) ; ----- WALK ----- ; (def walk ucore/walk) (def postwalk ucore/postwalk) (def prewalk ucore/...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src-untyped/quantum/untyped/core/collections/tree.cljc
clojure
----- WALK ----- ; TODO `tree-sequence-prewalk`
(ns quantum.untyped.core.collections.tree (:require [quantum.untyped.core.collections :as ucoll] [quantum.untyped.core.core :as ucore] [quantum.untyped.core.reducers :as ur])) (ucore/log-this-ns) (def walk ucore/walk) (def postwalk ucore/postwalk) (def prewalk ucore/prewalk) TODO ` pr...
cc45d3b6608a6f744cfdcabf27ed6c7ad3d9681a570c729768738a07156813b4
CatalinStefan/LearnErlang
age.erl
-module(age). %% API -export([getAge/1]). getAge(Name) -> AgeMap = #{"Alice" => 23, "Bob" => 25, "Carol" => 29}, maps:get(Name, AgeMap, -1).
null
https://raw.githubusercontent.com/CatalinStefan/LearnErlang/cfa810e12eba345c323e90315b0def013a79afc8/src/age.erl
erlang
API
-module(age). -export([getAge/1]). getAge(Name) -> AgeMap = #{"Alice" => 23, "Bob" => 25, "Carol" => 29}, maps:get(Name, AgeMap, -1).
c1f69d1e324ba6f9ffd869a17b26c25a094eeb56d0e321802c7b66d7ae568570
softwarelanguageslab/maf
R5RS_scp1_simpson-integral-5.scm
; Changes: * removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((incr (lambda (x) (+ x 1))) (sum (lambda (term a next b) (<change> () sum) (if (> a b)...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_simpson-integral-5.scm
scheme
Changes: * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 1 * swaps : 0 * negated predicates : 1 (letrec ((incr (lambda (x) (+ x 1))) (sum (lambda (term a next b) (<change> () sum) (if (> a b) 0 (+ (term a) (sum ...
78554b8baf2cc1fe0198e43146d1a13705e301b963f1515cd776915f6787263a
hyperfiddle/electric
monad_rw.clj
(ns dustin.y2020.monad-rw (:require [clojure.walk :refer [walk prewalk postwalk]] [contrib.do :refer [via* Do-via *this !]] [datomic.api :as d] [dustin.fiddle :refer :all] [dustin.hf-nav :refer :all] [hyperfiddle.api :as hf] [meander.epsilon :as m :refer [match rewrite]] [minitest :ref...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/scratch/dustin/y2020/monad_rw.clj
clojure
-01-21-writer-monad.html mappend here for scope that unwinds mappend here for state that carries forward mv :: scope -> a; f :: a -> b *this fmap neither reads nor writes
(ns dustin.y2020.monad-rw (:require [clojure.walk :refer [walk prewalk postwalk]] [contrib.do :refer [via* Do-via *this !]] [datomic.api :as d] [dustin.fiddle :refer :all] [dustin.hf-nav :refer :all] [hyperfiddle.api :as hf] [meander.epsilon :as m :refer [match rewrite]] [minitest :ref...
42d375e5eb09429454952f8895464f5f87433edd239e6d224eb9805e5cd9493e
DanielG/ghc-mod
Modules.hs
module GhcMod.Exe.Modules (modules) where import Control.Arrow import Data.List import GhcMod.Convert import GhcMod.Types import GhcMod.Monad import GhcMod.Gap ( listVisibleModuleNames , lookupModulePackageInAllPackages ) import qualified GHC as G ...
null
https://raw.githubusercontent.com/DanielG/ghc-mod/391e187a5dfef4421aab2508fa6ff7875cc8259d/GhcMod/Exe/Modules.hs
haskell
-------------------------------------------------------------- | Listing installed modules. ^ 'detailed', if 'True', also prints packages that modules belong to.
module GhcMod.Exe.Modules (modules) where import Control.Arrow import Data.List import GhcMod.Convert import GhcMod.Types import GhcMod.Monad import GhcMod.Gap ( listVisibleModuleNames , lookupModulePackageInAllPackages ) import qualified GHC as G ...
ee88e874094c71fa5f835f9bc614450dab586c2e42cdcd8c60c81474088b3373
dsheets/ocaml-unix-dirent
unix_dirent_bindgen.ml
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/dsheets/ocaml-unix-dirent/b3749486aa44642b911b7740193cd8133c6e144a/lib_gen/unix_dirent_bindgen.ml
ocaml
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
85254c1b20a6fecb4652a6748177162c5cee1df67a543680310e8cd25ad975ed
Lysxia/test-monad-laws
Mutants.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Monad.State.Mutants where import Control.Monad.State import Data.Functor.Identity import Test.QuickCheck.HigherOrd...
null
https://raw.githubusercontent.com/Lysxia/test-monad-laws/1cb9e116769771cb49fbd1614f50b05e120a2709/src/Test/Monad/State/Mutants.hs
haskell
* 'StateT' mutant Can't get 'get' wrong. | Fails: > 'put_get' Passes (wrongly): > 'bad_get_put_get' > 'bad_put_put' # OVERLAPPING # "oops"
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Test.Monad.State.Mutants where import Control.Monad.State import Data.Functor.Identity import Test.QuickCheck.HigherOrd...
1c7bf240651311344f6e255baa67222da7344b420f29784f4ec8861e9158d24a
NorfairKing/validity
Validity.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # -- | To use the 'Spec' functions in this module, you will need @TypeApplications@. -- -- -- The most interesting functions in this module for most uses are: -- * ' genValidSpec ' -- * 'eqSpec' -- * 'ordSpec' -- * 'producesValidsOnValids' -- * 'forAl...
null
https://raw.githubusercontent.com/NorfairKing/validity/35bc8d45b27e6c21429e4b681b16e46ccd541b3b/genvalidity-hspec/src/Test/Validity.hs
haskell
| To use the 'Spec' functions in this module, you will need @TypeApplications@. The most interesting functions in this module for most uses are: * 'eqSpec' * 'ordSpec' * 'producesValidsOnValids' * 'forAllValid' * 'shouldBeValid' * Writing properties ** Cheap generation with shrinking ** Cheap assertions *...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # * ' genValidSpec ' module Test.Validity forAllValid, shouldBeValid, shouldBeInvalid, * Tests for GenValidity instances genValidSpec, genValidGeneratesValid, genGeneratesValid, shrinkValidSpec, shrinkValidSpecWith...
5c2db1772dd3dfb9ea816818a8fcec3b31e00e6845d5310920c15be7af77e044
bytekid/mkbtt
xsltproc.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/util/src/xsltproc.ml
ocaml
** GLOBALS *****************************************************************
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
60ca7624f398778e3a8446177791b4aa9af3ac5492bda08f1859b6b25f8fffd2
alephcloud/hs-yet-another-logger
NoBackend.hs
Copyright ( c ) 2013 - 2015 PivotCloud , Inc. All Rights Reserved . -- -- NOTICE: The dissemination, reproduction, or copying of this file and the -- information contained herein, in any medium, is strictly forbidden. -- -- The intellectual property and technical concepts contained herein are proprietary to PivotCl...
null
https://raw.githubusercontent.com/alephcloud/hs-yet-another-logger/bdeb95980b69839b1acf1a8cef53426bbd073531/test/NoBackend.hs
haskell
NOTICE: The dissemination, reproduction, or copying of this file and the information contained herein, in any medium, is strictly forbidden. The intellectual property and technical concepts contained herein are | Module: NoBackend License: All Rights Reserved, see LICENSE file of the package Stability: experim...
Copyright ( c ) 2013 - 2015 PivotCloud , Inc. All Rights Reserved . proprietary to PivotCloud and are protected by U.S. and Foreign law . Copyright : Copyright ( c ) 2013 - 2015 PivotCloud , Inc. All Rights Reserved . Maintainer : # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE RecordWildCards ...
db1dbeb64646e21b0b5040edbdef34bf1060683af3596b7a270a26a7ca83d2fd
ocamllabs/ocaml-modular-implicits
t16ok.ml
(* PR#4450 *) module PR_4450_1 = struct module type MyT = sig type 'a t = Succ of 'a t end module MyMap(X : MyT) = X module rec MyList : MyT = MyMap(MyList) end;; module PR_4450_2 = struct module type MyT = sig type 'a wrap = My of 'a t and 'a t = private < map : 'b. ('a -> 'b) ->'b wrap; .. > val...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/typing-recmod/t16ok.ml
ocaml
PR#4450
module PR_4450_1 = struct module type MyT = sig type 'a t = Succ of 'a t end module MyMap(X : MyT) = X module rec MyList : MyT = MyMap(MyList) end;; module PR_4450_2 = struct module type MyT = sig type 'a wrap = My of 'a t and 'a t = private < map : 'b. ('a -> 'b) ->'b wrap; .. > val create : 'a l...
58044fdcbd3e166f61390b61e2bb0211690e24770b3dcc707bfbfd56a9ea87cd
NSO-developer/genet
aop.erl
-*- erlang - indent - level : 8 -*- %% Copyright ( C ) 2011 by ( ) %% 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 a...
null
https://raw.githubusercontent.com/NSO-developer/genet/bc22f28c56b9cc9373b8580536e6d99cb724da4e/src/erlang-lib/ec_genet/src/logging/aop.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
-*- erlang - indent - level : 8 -*- Copyright ( C ) 2011 by ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @since 2011 - 06 - 13 2011 @author < > [ / ] This is a main module of AOP for Erlang tool ...
7e821f4b773f5c790f2ec4a86be783df53355ca60cb418c657a00587b20ba4a6
mysql-otp/mysql-otp
mysql_conn.erl
MySQL / OTP – MySQL client library for Erlang / OTP Copyright ( C ) 2014 - 2021 %% %% This file is part of MySQL/OTP. %% MySQL / OTP is free software : you can redistribute it and/or modify it under %% the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either ver...
null
https://raw.githubusercontent.com/mysql-otp/mysql-otp/32327c217f4f785a401e9a3766b22a757f35e4bc/src/mysql_conn.erl
erlang
This file is part of MySQL/OTP. the terms of the GNU Lesser General Public License as published by the Free any later version. This program is distributed in the hope that it will be useful, but WITHOUT FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. along with this pro...
MySQL / OTP – MySQL client library for Erlang / OTP Copyright ( C ) 2014 - 2021 MySQL / OTP is free software : you can redistribute it and/or modify it under Software Foundation , either version 3 of the License , or ( at your option ) ANY WARRANTY ; without even the implied warranty of MERCHANTABILITY or ...
4ed9fff448979b8aa824c6775af254a938007e555102cbb87c19bbd15a4310a4
mukul-rathi/bolt
good_comments.ml
open Core open Print_parsed_ast let%expect_test "Comments interspersed with code" = print_parsed_ast " void main(){ /* This is a comment - it should not be parsed */ let x = 4;// Can occur after a line let y /*Or even midway*/ = 5; /* Or before */ x /* Comments Can Span ...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/tests/frontend/expect/parsing/good_comments.ml
ocaml
open Core open Print_parsed_ast let%expect_test "Comments interspersed with code" = print_parsed_ast " void main(){ /* This is a comment - it should not be parsed */ let x = 4;// Can occur after a line let y /*Or even midway*/ = 5; /* Or before */ x /* Comments Can Span ...
ee57c4a9242b8d7e39948ff10d99b29432b0cc08253cbe8c9e0d8fa65ffc7277
anoma/juvix
Keywords.hs
module Juvix.Compiler.Backend.Geb.Pretty.Keywords where import Juvix.Compiler.Backend.Geb.Language import Juvix.Data.CodeAnn import Juvix.Extra.Strings qualified as Str keywords :: [Doc Ann] keywords = [ kwInitial, kwTerminal, kwProd, kwCoprod, kwHom, kwInteger, kwEq, kwLt, kwAbsurd,...
null
https://raw.githubusercontent.com/anoma/juvix/23f34403f521c0aaab481b7e4071d0736da08508/src/Juvix/Compiler/Backend/Geb/Pretty/Keywords.hs
haskell
module Juvix.Compiler.Backend.Geb.Pretty.Keywords where import Juvix.Compiler.Backend.Geb.Language import Juvix.Data.CodeAnn import Juvix.Extra.Strings qualified as Str keywords :: [Doc Ann] keywords = [ kwInitial, kwTerminal, kwProd, kwCoprod, kwHom, kwInteger, kwEq, kwLt, kwAbsurd,...
617ff6ac82e2707eb7329224d6828abc2cd0a8d8d22bb97ee88a7ecf92771bdd
olieidel/hcloud
readme.clj
(ns readme "Utilities for populating the README with docs from the source." (:require [clojure.string :as str] [flatland.ordered.map :refer [ordered-map]] hcloud.core)) (def ^:private ^:const readme-path "Path to the `README.md`." "./README.md") (def ^:private ^:const begin-string "...
null
https://raw.githubusercontent.com/olieidel/hcloud/d4daf006cb0e1a63339dc2fefe57a5a51bea5663/dev/readme.clj
clojure
sort by `:order` because `ns-interns` gives us a map of things defined in the namespace which
(ns readme "Utilities for populating the README with docs from the source." (:require [clojure.string :as str] [flatland.ordered.map :refer [ordered-map]] hcloud.core)) (def ^:private ^:const readme-path "Path to the `README.md`." "./README.md") (def ^:private ^:const begin-string "...
868f4571f28cc98a91c7af4407fee2305116c35eac49c46af4480d86923dc85c
clojurecup2014/parade-route
main.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/clojurecup2014/parade-route/adb2e1ea202228e3da07902849dee08f0bb8d81c/Assets/Clojure/Internal/Plugins/clojure/test_clojure/main.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . Author : (ns clojure.test-clojure.main (:use clojure.test [clojure.test-helper :only [platform-newlines]]) (:require [clojure.main :as main])) (deftest eval-opt (testing "evals and prints forms" (is (= (platform-newlines "2\n4\n") (with-out-str (#'...
e23dfa2b582af76c1fe69ebbe397f07e7c532db01fa3dd433b25f73a97842d4c
candera/khordr
filter.clj
(ns khordr.filter "Defines the interface for khordr filters") (defprotocol Filter (filter-event [this data] "Filter `data` a map containing keys :event and :state. Returns another map containing the same keys. If present, values of those keys replace the current value in the processing pipeline."))
null
https://raw.githubusercontent.com/candera/khordr/cd9ad9df3dc6692b583b844244260b5b619745f7/src/clj/khordr/filter.clj
clojure
(ns khordr.filter "Defines the interface for khordr filters") (defprotocol Filter (filter-event [this data] "Filter `data` a map containing keys :event and :state. Returns another map containing the same keys. If present, values of those keys replace the current value in the processing pipeline."))
c80a773607bec12a2b7c3787b1cb6a73e4c7efc8f0436c4aa8d5fa44110a816b
Commonfare-net/macao-social-wallet
helpers.clj
(ns freecoin.journey.helpers (:require [taoensso.timbre :as log] [freecoin-lib.core :as blockchain] [freecoin.journey.kerodon-checkers :as kc] [freecoin.journey.kerodon-selectors :as ks] [freecoin.routes :as routes] [freecoin.test-helpers.integration :as ih...
null
https://raw.githubusercontent.com/Commonfare-net/macao-social-wallet/d3724d6c706cdaa669c59da439fe48b0373e17b7/test/freecoin/journey/helpers.clj
clojure
TODO: at the moment the only way to give an account a flag is by directly accessing the DB. Thats not suitable for the journey tests
(ns freecoin.journey.helpers (:require [taoensso.timbre :as log] [freecoin-lib.core :as blockchain] [freecoin.journey.kerodon-checkers :as kc] [freecoin.journey.kerodon-selectors :as ks] [freecoin.routes :as routes] [freecoin.test-helpers.integration :as ih...
194589db38da3d1036e0118313bf71ea200938752ff19a3619a35a43914d1fad
ggreif/omega
AtkeyScriptHOASType.hs
this mosaic explores the way laid out by in -- -04-19-algebraic-approach-typechecking-and-elaboration.html -- The Algebraic Theory of Typechecking around slide 30 -- (for previous slides consult revision history) # LANGUAGE FlexibleInstances , TypeSynonymInstances , TypeOperators , KindSignatur...
null
https://raw.githubusercontent.com/ggreif/omega/016a3b48313ec2c68e8d8ad60147015bc38f2767/mosaic/AtkeyScriptHOASType.hs
haskell
-04-19-algebraic-approach-typechecking-and-elaboration.html The Algebraic Theory of Typechecking (for previous slides consult revision history) (e.g. corresponding to a Term) Type section deriving Show deriving Show FAIL (because of self-application) FAIL (because of wrong assert) FAIL (because of wrong a...
this mosaic explores the way laid out by in around slide 30 # LANGUAGE FlexibleInstances , TypeSynonymInstances , TypeOperators , KindSignatures , GADTs , DataKinds , StandaloneDeriving , ViewPatterns # , KindSignatures, GADTs, DataKinds, StandaloneDeriving , Vie...
f860e8f584d43fcfd182c522c640ca0e5e6aa2d9dc8f0e2f0cee1f35b29e9ed4
jaked/froc
froc.ml
* This file is part of froc , a library for functional reactive programming * Copyright ( C ) 2009 - 2010 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation ; either ...
null
https://raw.githubusercontent.com/jaked/froc/6068a1fab883ed9254bfeb53a1f9c15e8af0bb20/src/froc/froc.ml
ocaml
don't run the queue until f is done ? ?
* This file is part of froc , a library for functional reactive programming * Copyright ( C ) 2009 - 2010 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation ; either ...
6b588578161900e547657a562e78f2c28fc73fdab328985b1051d60872d6ff94
NorfairKing/the-notes
Inverse.hs
module Functions.Inverse where import Notes hiding (inverse) import Functions.Application.Macro import Functions.Basics.Macro import Functions.Basics.Terms import Functions.Jections.Terms import Functions.Inverse.Macro import ...
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Functions/Inverse.hs
haskell
module Functions.Inverse where import Notes hiding (inverse) import Functions.Application.Macro import Functions.Basics.Macro import Functions.Basics.Terms import Functions.Jections.Terms import Functions.Inverse.Macro import ...
ae4f4c1a638081c5999fd10a333eeb378d093ca95d95a51115bd6ce0fa8823d3
bob-cd/wendy
client_test.clj
(ns wendy.client-test (:require [clojure.test :as t] [wendy.client :as client])) (t/deftest making-request-args (t/testing "make a lookup for args" (t/is (= {:foo "path" :bar "query"} (client/args-lookup [{:ignore 42 :option "foo" :in "path"} {:also-ignore...
null
https://raw.githubusercontent.com/bob-cd/wendy/9e7399a261d836d994a3154b1c2084cda37d72fb/test/wendy/client_test.clj
clojure
(ns wendy.client-test (:require [clojure.test :as t] [wendy.client :as client])) (t/deftest making-request-args (t/testing "make a lookup for args" (t/is (= {:foo "path" :bar "query"} (client/args-lookup [{:ignore 42 :option "foo" :in "path"} {:also-ignore...
809c5ec380566362079cc052c45b0e504be4e3f56c4c808b26504859871935be
zmeadows/sunwm
XMobar.hs
# LANGUAGE GeneralizedNewtypeDeriving , BangPatterns , DeriveDataTypeable , TemplateHaskell , TypeOperators # module Sunwm.Plugins.Bars.XMobar where import Sunwm.Core import Sunwm.FocusMap import Sunwm.STree import Sunwm.Plugin import Prelude hiding ((.), id) import Control.Category ((.)) import Control.Applicative...
null
https://raw.githubusercontent.com/zmeadows/sunwm/d905dbe97ea5bb090d3d83c0f3b29d0ce48c96f6/src/Sunwm/Plugins/Bars/XMobar.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving , BangPatterns , DeriveDataTypeable , TemplateHaskell , TypeOperators # module Sunwm.Plugins.Bars.XMobar where import Sunwm.Core import Sunwm.FocusMap import Sunwm.STree import Sunwm.Plugin import Prelude hiding ((.), id) import Control.Category ((.)) import Control.Applicative...
d1e2784660278305bf773afebcc1485f066e2a0a9a9156596a77aedabe567268
1Jajen1/Brokkr
Conversion.hs
# LANGUAGE TemplateHaskell # # LANGUAGE DataKinds # # OPTIONS_GHC -Wno - missing - export - lists -Wno - unused - local - binds -Wno - unused - matches # --{-# OPTIONS_GHC -ddump-simpl -dsuppress-all #-} module Block.Internal.Conversion ( propsToId , HighestBlockStateId ) where import Block.Internal.TH genPaletteMa...
null
https://raw.githubusercontent.com/1Jajen1/Brokkr/fe56efaf450f29a5571cc34fa01f7301678f3eaf/data/src/Block/Internal/Conversion.hs
haskell
{-# OPTIONS_GHC -ddump-simpl -dsuppress-all #-}
# LANGUAGE TemplateHaskell # # LANGUAGE DataKinds # # OPTIONS_GHC -Wno - missing - export - lists -Wno - unused - local - binds -Wno - unused - matches # module Block.Internal.Conversion ( propsToId , HighestBlockStateId ) where import Block.Internal.TH genPaletteMapping
c9536b0b6104adb920f4144048921835cdeae1e54845201687864f438de7e5ab
doomeer/kalandralang
pool.ml
type 'a t = { values: 'a array; mutable remaining: int; } let create_from_list list = let values = Array.of_list list in { values; remaining = Array.length values; } let pick pool = if pool.remaining <= 0 then None else let index = Random.int pool.remaining in let value = poo...
null
https://raw.githubusercontent.com/doomeer/kalandralang/28ce45dd6e1f2f247fb864147c0d02c96fde6554/src/pool.ml
ocaml
Remove the value by replacing it with the last value.
type 'a t = { values: 'a array; mutable remaining: int; } let create_from_list list = let values = Array.of_list list in { values; remaining = Array.length values; } let pick pool = if pool.remaining <= 0 then None else let index = Random.int pool.remaining in let value = poo...
746ded84810b0536c9237ea3396ee36fa3219d5dfa16199737ccada79140f0b4
mcorbin/meuse
json.clj
(ns meuse.interceptor.json (:require [cheshire.core :as json])) (def json {:name ::json :leave (fn [ctx] (if (coll? (get-in ctx [:response :body])) (-> (update-in ctx [:response :body] json/generate-string) (update-in [:response :headers] assoc "content-type" ...
null
https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/src/meuse/interceptor/json.clj
clojure
(ns meuse.interceptor.json (:require [cheshire.core :as json])) (def json {:name ::json :leave (fn [ctx] (if (coll? (get-in ctx [:response :body])) (-> (update-in ctx [:response :body] json/generate-string) (update-in [:response :headers] assoc "content-type" ...
c091429ca197696e4792861a2aedac443731b375c4f1fc828ea7a0f6c54c160f
binaryage/chromex
vpn_provider.clj
(ns chromex.app.vpn-provider "Use the chrome.vpnProvider API to implement a VPN client. * available since Chrome 43 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex.callgen :refer [gen-call-helper gen...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/apps/chromex/app/vpn_provider.clj
clojure
-- events ----------------------------------------------------------------------------------------------------------------- docs: /#tapping-events -- convenience ------------------------------------------------------------------------------------------------------------ --------------------------------------------...
(ns chromex.app.vpn-provider "Use the chrome.vpnProvider API to implement a VPN client. * available since Chrome 43 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex.callgen :refer [gen-call-helper gen...
05cc1bdbfacf79c89ace18068a4fbbf6aaf2011a4a5c45bb767e41fe78ecb904
clojure-interop/aws-api
AmazonWorkspacesClientBuilder.clj
(ns com.amazonaws.services.workspaces.AmazonWorkspacesClientBuilder "Fluent builder for AmazonWorkspaces. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.workspaces AmazonWorkspacesClientBuilder])) (...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.workspaces/src/com/amazonaws/services/workspaces/AmazonWorkspacesClientBuilder.clj
clojure
(ns com.amazonaws.services.workspaces.AmazonWorkspacesClientBuilder "Fluent builder for AmazonWorkspaces. Use of the builder is preferred over using constructors of the client class." (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.workspaces AmazonWorkspacesClientBuilder])) (...