_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
510ed41a1228deb50ae2649d8e3d185f65628b0345e79e68e69e7c606b9774d8
dbuenzli/vz
evidence_diamonds.mli
--------------------------------------------------------------------------- Copyright ( c ) 2022 The vz programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/dbuenzli/vz/11056a7b5927519b4b7fa7ae762cdd2b7532936b/samples/evidence_diamonds.mli
ocaml
* [carat] is the diamond weight. * [color] is the diamond color from ["D"] (best) to ["J"] (worst). * [table] is the width of top of diamond relative to widest point. * [price] is the diamond price in USD.
--------------------------------------------------------------------------- Copyright ( c ) 2022 The vz programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
8f4e911b7abfa82417a19148554acbf79906cd910230894114f515fc814884b4
fulcrologic/fulcro-rad-tutorial
database_queries.clj
(ns com.example.components.database-queries (:require [com.fulcrologic.rad.database-adapters.datomic :as datomic] [datomic.api :as d] [taoensso.timbre :as log] [taoensso.encore :as enc])) (defn get-all-accounts [env query-params] (if-let [db (some-> (get-in env [::datomic/databases :production]) ...
null
https://raw.githubusercontent.com/fulcrologic/fulcro-rad-tutorial/809b8f8833363be7dc0c9a66307b1fa164da4d70/src/main/com/example/components/database_queries.clj
clojure
(ns com.example.components.database-queries (:require [com.fulcrologic.rad.database-adapters.datomic :as datomic] [datomic.api :as d] [taoensso.timbre :as log] [taoensso.encore :as enc])) (defn get-all-accounts [env query-params] (if-let [db (some-> (get-in env [::datomic/databases :production]) ...
23c48897b3b2a8d20da910681c51cf1b80ef5e82389c947e2c1b4eecd3c1a29f
boot-clj/boot
gpg.clj
(ns boot.gpg (:require [clojure.java.io :as io] [clojure.java.shell :as shell] [boot.pod :as pod] [boot.util :as util]) (:import [java.io StringReader File])) (defn ^{:boot/from :technomancy/leiningen} gpg-program "Lookup the gpg program to use, defaulting to 'gpg'" [] (or (boo...
null
https://raw.githubusercontent.com/boot-clj/boot/64334b4d5744b1444634f4a5a5a52b3ae67dddeb/boot/pod/src/boot/gpg.clj
clojure
(ns boot.gpg (:require [clojure.java.io :as io] [clojure.java.shell :as shell] [boot.pod :as pod] [boot.util :as util]) (:import [java.io StringReader File])) (defn ^{:boot/from :technomancy/leiningen} gpg-program "Lookup the gpg program to use, defaulting to 'gpg'" [] (or (boo...
8f3ee4d3139aea8a58f73c91cc91973ee2fb8f8c9707f1215c8ed968d42d2719
nomnom-insights/nomnom.duckula
swagger_test.clj
(ns duckula.swagger-test (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.test :refer [deftest is testing]] [duckula.swagger :as swag] [duckula.test.server :as test.server])) (deftest it-generates-a-swagger-config (testing "empty endpoints" (let [conf (swag/generate {:name "empt...
null
https://raw.githubusercontent.com/nomnom-insights/nomnom.duckula/a6c8ee965da5717c5909bfbda5745be7a287d2ce/test/duckula/swagger_test.clj
clojure
:same as: mangle-names? true or snake-case-names? false
(ns duckula.swagger-test (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.test :refer [deftest is testing]] [duckula.swagger :as swag] [duckula.test.server :as test.server])) (deftest it-generates-a-swagger-config (testing "empty endpoints" (let [conf (swag/generate {:name "empt...
b798cff54603bb6fcff799ed3697af131d7fbd57275b14f9282a3068639a2a56
pietervdvn/ALGT
TypeSystemData.hs
module TypeSystem.TypeSystemData (module TypeSystem) where {- This module reexports all things you need -} import TypeSystem.Types as TypeSystem import TypeSystem.BNF as TypeSystem import TypeSystem.Syntax as TypeSystem import TypeSystem.SyntaxStyle as TypeSystem import TypeSystem.ParseTree as TypeSystem import Ty...
null
https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/TypeSystem/TypeSystemData.hs
haskell
This module reexports all things you need
module TypeSystem.TypeSystemData (module TypeSystem) where import TypeSystem.Types as TypeSystem import TypeSystem.BNF as TypeSystem import TypeSystem.Syntax as TypeSystem import TypeSystem.SyntaxStyle as TypeSystem import TypeSystem.ParseTree as TypeSystem import TypeSystem.Expression as TypeSystem import TypeSyst...
8cf8ef33edb7ebddf14386b75644d3d05e0c5a4ee00138a11bad98824c4e4c7d
donnerpeter/Constructor
Sense.hs
module Constructor.Sense (Sense(..), Frame(..), Fact(..), allFrames, allFrameFacts, toFrame, fDeclaredValue, sDeclaredValue, earlier, usages, usage, allUsages, usageFacts, isFrameReachable, reachableFrames, framesTo, makeSense, composeSense) where import Constructor.Variable import Data.List (intercala...
null
https://raw.githubusercontent.com/donnerpeter/Constructor/5b76403eb2356127fcf2a6d86c23cf3447a77402/src_hs/Constructor/Sense.hs
haskell
module Constructor.Sense (Sense(..), Frame(..), Fact(..), allFrames, allFrameFacts, toFrame, fDeclaredValue, sDeclaredValue, earlier, usages, usage, allUsages, usageFacts, isFrameReachable, reachableFrames, framesTo, makeSense, composeSense) where import Constructor.Variable import Data.List (intercala...
3a48368ed7bd28a6f4a22e14edeb350bb9a5c9a0471f486b7969a3a91991794a
juspay/atlas
RegistrationToken.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # | Copyright 2022 Juspay Technologies Pvt Ltd 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 Licen...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/driver-offer-bpp/src/Domain/Types/RegistrationToken.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # | Copyright 2022 Juspay Technologies Pvt Ltd 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 requi...
0e3c175715e06b7d9eafd8ea52dd4f0a9d8d98d1ffe5c16e16df60cad8e8ccc2
scalar-labs/scalar-jepsen
transfer_test.clj
(ns scalardl.transfer-test (:require [clojure.test :refer :all] [jepsen.client :as client] [jepsen.checker :as checker] [scalardl.cassandra :as cassandra] [scalardl.core :as dl] [scalardl.transfer :as transfer] [spy.core :as spy]) (:import (com...
null
https://raw.githubusercontent.com/scalar-labs/scalar-jepsen/1a21df4c3b5b5cd069d71161bda6d6b989469fe8/scalardl/test/scalardl/transfer_test.clj
clojure
setup isn't executed
(ns scalardl.transfer-test (:require [clojure.test :refer :all] [jepsen.client :as client] [jepsen.checker :as checker] [scalardl.cassandra :as cassandra] [scalardl.core :as dl] [scalardl.transfer :as transfer] [spy.core :as spy]) (:import (com...
0851ec1ec357f339a7fc69d8f72d527fcf770b94bfc8f5c2e93822fb77baf311
jarofghosts/clojure-koans
06_functions.clj
(defn multiply-by-ten [n] (* 10 n)) (defn square [n] (* n n)) (meditations "Calling a function is like giving it a hug with parentheses" (= 81 (square 9)) "Functions are usually defined before they are used" (= 20 (multiply-by-ten 2)) "But they can also be defined inline" (= 10 ((fn [n] (* 5 n)) 2)) ...
null
https://raw.githubusercontent.com/jarofghosts/clojure-koans/9bc2a46414f479021ff27ac8744d36dce507ad7f/06_functions.clj
clojure
(defn multiply-by-ten [n] (* 10 n)) (defn square [n] (* n n)) (meditations "Calling a function is like giving it a hug with parentheses" (= 81 (square 9)) "Functions are usually defined before they are used" (= 20 (multiply-by-ten 2)) "But they can also be defined inline" (= 10 ((fn [n] (* 5 n)) 2)) ...
a6981f102b3ce08b6a2bbf9b234b629c44912048bcb6b26106efe32c9adfeeae
inhabitedtype/ocaml-aws
purchaseReservedInstancesOffering.mli
open Types type input = PurchaseReservedInstancesOfferingRequest.t type output = PurchaseReservedInstancesOfferingResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/ec2/lib/purchaseReservedInstancesOffering.mli
ocaml
open Types type input = PurchaseReservedInstancesOfferingRequest.t type output = PurchaseReservedInstancesOfferingResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
2cf4cb52d8aa5c50d73b013205539445d2049827b49d10e119f952d293f2af8e
haskell-mafia/projector
QQ.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Projector.Html.Syntax.QQ ( template ) where import qualified Data.Text as T import P import qualified Prelude import Projector.Html.Syntax (templateFromText) import Language.Haskell.TH (Loc (..), locatio...
null
https://raw.githubusercontent.com/haskell-mafia/projector/6af7c7f1e8a428b14c2c5a508f7d4a3ac2decd52/projector-html/src/Projector/Html/Syntax/QQ.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # module Projector.Html.Syntax.QQ ( template ) where import qualified Data.Text as T import P import qualified Prelude import Projector.Html.Syntax (templateFromText) import Language.Haskell.TH (Loc (..), location) import Language.Haskel...
4e1693dedd1cd48ee9a5f00dfbe65ba3088ed350ea955f17f9143be4abcb9fb9
gregtatcam/imaplet-lwt
imaplet_irmin_read.ml
* Copyright ( c ) 2013 - 2014 < > * * 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...
null
https://raw.githubusercontent.com/gregtatcam/imaplet-lwt/d7b51253e79cffa97e98ab899ed833cd7cb44bb6/servers/imaplet_irmin_read.ml
ocaml
| "expunge" -> GitMailbox.expunge mbox >>= fun deleted -> List.iter deleted ~f:(fun i -> Printf.printf "deleted %d\n%!" i); selected user mailbox mbox
* Copyright ( c ) 2013 - 2014 < > * * 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...
1dffb1aa09356f28800c548305c8f004ea9a086f697a17bdf4ea2b81f203656c
scymtym/clim.flamegraph
package.lisp
(cl:defpackage #:clim.flamegraph.view.flat (:use #:cl) (:local-nicknames (#:model #:clim.flamegraph.model) (#:view #:clim.flamegraph.view)))
null
https://raw.githubusercontent.com/scymtym/clim.flamegraph/03b5e4f08b53af86a98afa975a8e7a29d0ddd3a7/src/view/flat/package.lisp
lisp
(cl:defpackage #:clim.flamegraph.view.flat (:use #:cl) (:local-nicknames (#:model #:clim.flamegraph.model) (#:view #:clim.flamegraph.view)))
c3d652f7cec74eaac23d3285c008b57149f4083fef04d75f1c15bc35284ad54b
rwmjones/guestfs-tools
cache.mli
virt - builder * Copyright ( C ) 2013 - 2023 Red Hat Inc. * * 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 option ) any la...
null
https://raw.githubusercontent.com/rwmjones/guestfs-tools/57423d907270526ea664ff15601cce956353820e/builder/cache.mli
ocaml
* This module represents a local cache. * [clean_cachedir dir] clean the specified cache directory. * The abstract data type. * Create the abstract type. * [cache_of_name t name arch revision] return the filename of the cached file. (Note: It doesn't check if the filename exists, this is just a simple stri...
virt - builder * Copyright ( C ) 2013 - 2023 Red Hat Inc. * * 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 option ) any la...
2ec13434942dfd0782fcd5339adcf85e467646af37f279dce67f89681d1aaccc
apauley/hledger-flow
Types.hs
# LANGUAGE FlexibleInstances # module Hledger.Flow.Types where import qualified Turtle (ExitCode, NominalDiffTime, Shell, Line) import qualified Data.Text as T import Hledger.Flow.PathHelpers type BaseDir = AbsDir type RunDir = RelDir data LogMessage = StdOut T.Text | StdErr T.Text | Terminate deriving (Show) type...
null
https://raw.githubusercontent.com/apauley/hledger-flow/bec3ec0ac223d097f6f784297314ae2e108f1016/src/Hledger/Flow/Types.hs
haskell
# LANGUAGE FlexibleInstances # module Hledger.Flow.Types where import qualified Turtle (ExitCode, NominalDiffTime, Shell, Line) import qualified Data.Text as T import Hledger.Flow.PathHelpers type BaseDir = AbsDir type RunDir = RelDir data LogMessage = StdOut T.Text | StdErr T.Text | Terminate deriving (Show) type...
ec01995c7940b1947e7641e7e1c41c3d4ec8633d6bb44c961bdbfcbe87a1394e
Kappa-Dev/KappaTools
run_cli_args.ml
(******************************************************************************) (* _ __ * The Kappa Language *) | |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF (* | ' / ********************************************************************...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/cli/run_cli_args.ml
ocaml
**************************************************************************** _ __ * The Kappa Language | ' / ******************************************************************** | . \ * This file is distributed under the terms of the |_|\_\ * GN...
| |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF type t = { mutable inputKappaFileNames : string list; mutable minValue : float option; mutable maxValue : float option; mutable plotPeriod : float option; mutable outputDataFile : string option...
d8aecc1708c8036fa547b0bae7650d92e26718a2717630071737445f8748a224
Perry961002/SICP
exe3.69-triples.scm
;首先我们描述一下(triples S T U),也是将它分成三部分 序对(S0 , T0 , U0),第一个平面里面所有其他序对,其他序对 , Ti , Uj ) , i < = j , i > = 0 , j > = 1 , Tr , Ur ) (define (triples s t u) (stream-cons (list (stream-car s) (stream-car t) (stream-car u)) (interleave (stream-map (lambda (x) (cons (stream-car s) x)) ...
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap3/exercise/exe3.69-triples.scm
scheme
首先我们描述一下(triples S T U),也是将它分成三部分 Pythagoras三元组 只能算这么多,后面溢出了
序对(S0 , T0 , U0),第一个平面里面所有其他序对,其他序对 , Ti , Uj ) , i < = j , i > = 0 , j > = 1 , Tr , Ur ) (define (triples s t u) (stream-cons (list (stream-car s) (stream-car t) (stream-car u)) (interleave (stream-map (lambda (x) (cons (stream-car s) x)) (pairs t (stream-cdr ...
851155fb0aad836d5b01499cda1a10a5391b28803cc749eebd065035ddc256a5
falgon/htcc
Spec.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Codec.Binary.UTF8.String (decodeString) import Control.Exception (finally) import qualified Data.ByteString.Char8 as B import qualified Data.Text as T import qualified Data.Text.IO as T import ...
null
https://raw.githubusercontent.com/falgon/htcc/3cef6fc362b00d4bc0ae261cba567bfd9c69b3c5/test/Spec.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Codec.Binary.UTF8.String (decodeString) import Control.Exception (finally) import qualified Data.ByteString.Char8 as B import qualified Data.Text as T import qualified Data.Text.IO as T import Dhall.JSON (omitNull...
ae3a06cf5d1063fea309a2380b9c60f8bbe5f5955b805eeadafccf30e400089b
tanakh/ICFP2011
Random.hs
{-# OPTIONS -Wall #-} import Control.Monad import Data.Vector ((!)) import qualified Data.Vector as V import LTG import Prelude hiding (putStrLn) import System.Environment import System.Random slotRange :: Int slotRange = 8 main :: IO () main = do -- uncomment next line to fix the seed -- setStdGen $ mkStdGen ...
null
https://raw.githubusercontent.com/tanakh/ICFP2011/db0d670cdbe12e9cef4242d6ab202a98c254412e/nushio/Random.hs
haskell
# OPTIONS -Wall # uncomment next line to fix the seed setStdGen $ mkStdGen 0x9b
import Control.Monad import Data.Vector ((!)) import qualified Data.Vector as V import LTG import Prelude hiding (putStrLn) import System.Environment import System.Random slotRange :: Int slotRange = 8 main :: IO () main = do (side:_) <- fmap (map read) getArgs when (side==(1::Int)) skip play slotRange s...
f94e1867b383978204f400d242cde5116acaca335f95c847b046248b573b2e53
clj-commons/camel-snake-kebab
core.cljc
(ns camel-snake-kebab.core (:require [clojure.string] [camel-snake-kebab.internals.misc :as misc] #?(:clj [camel-snake-kebab.internals.macros :refer [defconversion]] :cljs [camel-snake-kebab.internals.alter-name])) ;; Needed for expansion of defconversion #?(:cljs (:require-ma...
null
https://raw.githubusercontent.com/clj-commons/camel-snake-kebab/5f1b76358fac9eb71f0d870c892106cdd430f2a8/src/camel_snake_kebab/core.cljc
clojure
Needed for expansion of defconversion These are fully qualified to workaround some issue with ClojureScript:
(ns camel-snake-kebab.core (:require [clojure.string] [camel-snake-kebab.internals.misc :as misc] #?(:clj [camel-snake-kebab.internals.macros :refer [defconversion]] #?(:cljs (:require-macros [camel-snake-kebab.internals.macros :refer [defconversion]]))) (declare ->PascalCase ->Camel_Sn...
944944f8c3f36d400a6917bebf38a96d2b591e79a83d68f071c5f594eda001ad
malcolmreynolds/GSLL
monte-carlo.lisp
Monte Carlo Integration Sat Feb 3 2007 - 17:42 Time - stamp : < 2009 - 06 - 06 09:27:29EDT monte-carlo.lisp > $ Id$ (in-package :gsl) ;;; /usr/include/gsl/gsl_monte.h ;;; /usr/include/gsl/gsl_monte_plain.h /usr / include / gsl / gsl_monte_miser.h /usr / include / gsl / gsl_monte_vegas.h ;;;;*********...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/calculus/monte-carlo.lisp
lisp
/usr/include/gsl/gsl_monte.h /usr/include/gsl/gsl_monte_plain.h **************************************************************************** **************************************************************************** **************************************************************************** MISER ****************...
Monte Carlo Integration Sat Feb 3 2007 - 17:42 Time - stamp : < 2009 - 06 - 06 09:27:29EDT monte-carlo.lisp > $ Id$ (in-package :gsl) /usr / include / gsl / gsl_monte_miser.h /usr / include / gsl / gsl_monte_vegas.h PLAIN (defmobject monte-carlo-plain "gsl_monte_plain" ((dim sizet)) "pla...
42a66ff578f029798334db2cf2266bda77521a1993531c01221a3115e84b4082
tisnik/clojure-examples
project.clj
; ( C ) Copyright 2018 , 2020 , 2021 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (defproject cucumber+expect9 ...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/78061b533c0755d0165002961334bbe98d994087/cucumber%2Bexpect9/project.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2018 , 2020 , 2021 -v10.html (defproject cucumber+expect9 "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/data.j...
c46ba4185581120da1d5fbfa7ec23c4771db63f753492fd20882b742322988f3
dcastro/twenty48
Bench.hs
{-# LANGUAGE OverloadedStrings #-} module Bench where import ClassyPrelude import Criterion.Main import qualified Data.Strict.Maybe as M import Game.AlphaBeta import Game.Optimized.Board import Game.Types groups :: [Benchmark] groups = [ bgroup ("alpha-beta: fin...
null
https://raw.githubusercontent.com/dcastro/twenty48/d4a58bfa389bb247525fd18f80ef428d84ef5fe9/benchmark/Bench.hs
haskell
# LANGUAGE OverloadedStrings #
module Bench where import ClassyPrelude import Criterion.Main import qualified Data.Strict.Maybe as M import Game.AlphaBeta import Game.Optimized.Board import Game.Types groups :: [Benchmark] groups = [ bgroup ("alpha-beta: find best move") $ flip map [7 .. ...
437846b14fd5192d0ebc1b46f49c64f52223f8587c9c4bd2dfae97ee9fc3b265
yav/hobbit
Utils.hs
module Parsing.Utils where import AST import Parsing.Lexer import Parsing.Range import Error import Utils import MonadLib import List type ParseM = ExceptionT String Id run txt p = runId $ runExceptionT $ p $ layout [] $ lexer txt parseError :: String -> ParseM a parseError = raise happyError :: [Lexeme] -> Pars...
null
https://raw.githubusercontent.com/yav/hobbit/31414ba1188f4b39620c2553b45b9e4d4aa40169/src/Parsing/Utils.hs
haskell
Modules --------------------------------------------------------------------- Note: Expects that the argument is reversed. This matters when we join the equations that belong to a definition. Expressions ----------------------------------------------------------------- Patterns ------------------------------------...
module Parsing.Utils where import AST import Parsing.Lexer import Parsing.Range import Error import Utils import MonadLib import List type ParseM = ExceptionT String Id run txt p = runId $ runExceptionT $ p $ layout [] $ lexer txt parseError :: String -> ParseM a parseError = raise happyError :: [Lexeme] -> Pars...
b707a78fde2f320e70bef4667ef41644d14e88aafb641c90cde7828d3fa23e55
TyOverby/mono
client.ml
open Base open Async_kernel open Async_unix module Request = struct include Cohttp.Request include (Make(Io) : module type of Make(Io) with type t := t) end module Response = struct include Cohttp.Response include (Make(Io) : module type of Make(Io) with type t := t) end module Net = struct let lookup uri...
null
https://raw.githubusercontent.com/TyOverby/mono/8d6b3484d5db63f2f5472c7367986ea30290764d/vendor/mirage-ocaml-cohttp/cohttp-async/src/client.ml
ocaml
Build a response pipe for the body Create a request, then make the request. Figure out an appropriate transfer encoding Don't used chunked encoding with an empty body Use chunked encoding if there is a body
open Base open Async_kernel open Async_unix module Request = struct include Cohttp.Request include (Make(Io) : module type of Make(Io) with type t := t) end module Response = struct include Cohttp.Response include (Make(Io) : module type of Make(Io) with type t := t) end module Net = struct let lookup uri...
b4b01501ca196795f3760ce71e9873fc816162c56df61fab1e1a1b1dcfa7080e
Viasat/halite
test_analysis.clj
Copyright ( c ) 2022 Viasat , Inc. Licensed under the MIT license (ns com.viasat.halite.test-analysis (:require [clojure.test :refer :all] [com.viasat.halite.analysis :as analysis] [com.viasat.halite.envs :as envs] [com.viasat.halite.var-types :as var-types] [schem...
null
https://raw.githubusercontent.com/Viasat/halite/5a434fa2276f5f2654c4d91045595ae5bbc6580e/test/com/viasat/halite/test_analysis.clj
clojure
this expression references no fields, so no field constraints are extracted field assignments come out as enum values multiple fields can be teased apart as long as the clauses are independent multiple ands can be walked through even if there are constraints that are not extraced partial ranges are extracted ...
Copyright ( c ) 2022 Viasat , Inc. Licensed under the MIT license (ns com.viasat.halite.test-analysis (:require [clojure.test :refer :all] [com.viasat.halite.analysis :as analysis] [com.viasat.halite.envs :as envs] [com.viasat.halite.var-types :as var-types] [schem...
fa253141553e789fb088312671c41a920c1a5c117c9c1c32353a3cc2eca07c5f
OCamlPro/operf-micro
equations.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/OCamlPro/operf-micro/d5d2bf2068204b889321b0c5a7bc0d079c0fca80/share/operf-micro/benchmarks/kb/equations.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt 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 . open Terms type rule = { number: in...
f69414e1ffeb5fd20baf86cbde5f95638dd7be52dad17f7b6346d80a8c0c3c98
cognitect-labs/aws-api
ec2_metadata_utils.clj
Copyright ( c ) Cognitect , Inc. ;; All rights reserved. (ns ^:skip-wiki cognitect.aws.ec2-metadata-utils "Impl, don't call directly" (:require [clojure.string :as str] [clojure.data.json :as json] [clojure.core.async :as a] [cognitect.aws.http :as http] [cognitect...
null
https://raw.githubusercontent.com/cognitect-labs/aws-api/40d5fcf228302de66fee698935ae6ecad8474925/src/cognitect/aws/ec2_metadata_utils.clj
clojure
All rights reserved. TODO: handle unhappy paths -JS
Copyright ( c ) Cognitect , Inc. (ns ^:skip-wiki cognitect.aws.ec2-metadata-utils "Impl, don't call directly" (:require [clojure.string :as str] [clojure.data.json :as json] [clojure.core.async :as a] [cognitect.aws.http :as http] [cognitect.aws.util :as u] ...
eaebc0a75a7f3f51ac2454cb51cdee3d932c2a187401468674d97ee7672570a2
theobat/massalia
SpecAPI.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # import Data.Morpheus.Types (GQLRequest (..)) import MassaliaMigration (findAndRunAllMigration, defaultMigrationP...
null
https://raw.githubusercontent.com/theobat/massalia/66d65c3431132091107d07e041f33c907f9d08cb/test/integration/SpecAPI.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE NoImplicitPrelude # import Data.Morpheus.Types (GQLRequest (..)) import MassaliaMigration (findAndRunAllMigration, defaultMigrationPattern, GlobalMigrationError) import MigrationTypes ( MigrationPa...
9c8e2f6f912809676aaef4eb381443540cc17057fc24cc64266ec59a26a799a3
nkaretnikov/OOHaskell
Circle.hs
( C ) 2004 - 2005 , Oleg Kiselyov & 's overlooked object system module Circle where import Shape -- The composed type of circles data CircleData = CircleData { shapeData :: ShapeData , radiusData :: Int } -- A "closed" constructor circle x y r = CircleData { shapeData = shape x y ...
null
https://raw.githubusercontent.com/nkaretnikov/OOHaskell/ddf42cfa62f8bd27643ff6db136dec6c14466232/repository/shapes/Haskell/Shapes7/Circle.hs
haskell
The composed type of circles A "closed" constructor A circle is a shape An interface in case more kinds of circles show up
( C ) 2004 - 2005 , Oleg Kiselyov & 's overlooked object system module Circle where import Shape data CircleData = CircleData { shapeData :: ShapeData , radiusData :: Int } circle x y r = CircleData { shapeData = shape x y , radiusData = r } instance Shape CircleD...
a3329c1cc72058a2be4f755d0b9356f324e9df3807fdae3bef57e3851cb9ff7c
joearms/elib1
elib1_search.erl
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(elib1_search). -compile(export_all). -import(elib1_mysql, [start/4, cmd/2, stop/1]). make_data_base() -> {ok, Pid} = start("localhost", 3306, password:username(mysql), password:password(mysql)), cmd(Pid, "use test...
null
https://raw.githubusercontent.com/joearms/elib1/d617d0ec70a058ef102749eadf51c024444c28d9/src/elib1_search.erl
erlang
don't call this mod
Copyright ( c ) 2006 - 2009 See MIT - LICENSE for licensing information . -module(elib1_search). -compile(export_all). -import(elib1_mysql, [start/4, cmd/2, stop/1]). make_data_base() -> {ok, Pid} = start("localhost", 3306, password:username(mysql), password:password(mysql)), cmd(Pid, "use test...
c473aeea0fa19202ac79ce9ba1cbe216d834bb15d7cf5c30b053e43cc2b08f83
grin-compiler/grin
NametableSpec.hs
module NametableSpec where import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Monadic import Test.Test import Grin.Nametable import Grin.Pretty runTests :: IO () runTests = hspec spec spec :: Spec spec = do describe "Property" $ do it "restore . convert == id" $ property $ forAll genProg $ ...
null
https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/test/NametableSpec.hs
haskell
module NametableSpec where import Test.Hspec import Test.QuickCheck import Test.QuickCheck.Monadic import Test.Test import Grin.Nametable import Grin.Pretty runTests :: IO () runTests = hspec spec spec :: Spec spec = do describe "Property" $ do it "restore . convert == id" $ property $ forAll genProg $ ...
a041fb640d2575eca06778f86ddd57104bd0a666a11a3d88afc1afaf5730a360
isovector/transitive-anns
InstanceSpec.hs
# LANGUAGE MultiParamTypeClasses # module InstanceSpec where import qualified Data.Set as S import Data.Set (Set) import TransitiveAnns.Types import Test.Hspec import GHC.TypeLits import InstanceVia test :: forall (comp :: Symbol) (name :: Symbol) x. AddAnnotation 'Remote comp name x => Int test = 5 class Hello wh...
null
https://raw.githubusercontent.com/isovector/transitive-anns/b491b7b264745efd447831c4ce10105461712e6f/test/InstanceSpec.hs
haskell
# LANGUAGE MultiParamTypeClasses # module InstanceSpec where import qualified Data.Set as S import Data.Set (Set) import TransitiveAnns.Types import Test.Hspec import GHC.TypeLits import InstanceVia test :: forall (comp :: Symbol) (name :: Symbol) x. AddAnnotation 'Remote comp name x => Int test = 5 class Hello wh...
18eb4d40b5e04dcd31fd37fa9a14d2880d016a6a1789e7f233b19900c6cdd89c
JHU-PL-Lab/jaylang
main.ml
open Core open Fix open Share module F = Fix.Make (ClauseMap) (IdSet) module FE = Fix . Make ( ExprMap ) ( IdSet ) let id_of_var (Jayil.Ast.Var (id, _)) = id let rec clause_uses clause request = let open Jayil.Ast in let (Clause (_var, cbody)) = clause in match cbody with | Value_body (Value_int _) -> Set.e...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/src/analysis/main.ml
ocaml
SSet.(add empty (Ident "_"))
open Core open Fix open Share module F = Fix.Make (ClauseMap) (IdSet) module FE = Fix . Make ( ExprMap ) ( IdSet ) let id_of_var (Jayil.Ast.Var (id, _)) = id let rec clause_uses clause request = let open Jayil.Ast in let (Clause (_var, cbody)) = clause in match cbody with | Value_body (Value_int _) -> Set.e...
41c35c0d6dc2b569c0ddfd0ff73880e43673e07fa9814597c594dc5edd00d4fb
josefs/Gradualizer
exhaustive.erl
-module(exhaustive). -export([integer_0/1,integer_1/1 ,pos_integer/1, neg_integer/1 ,tuple_1/1 ,union_atom/1, union_nil/1, union_mix/1 ,annotated/1 ,char/1]). -spec integer_0(integer()) -> {}. integer_0(0) -> {}. -spec integer_1(integer()) -> {}. integer_1(1) -> {}. -spec pos_integer(pos_integer()) -> ...
null
https://raw.githubusercontent.com/josefs/Gradualizer/208f5816b0157f282212fc036ba7560f0822f9fc/test/should_fail/exhaustive.erl
erlang
-module(exhaustive). -export([integer_0/1,integer_1/1 ,pos_integer/1, neg_integer/1 ,tuple_1/1 ,union_atom/1, union_nil/1, union_mix/1 ,annotated/1 ,char/1]). -spec integer_0(integer()) -> {}. integer_0(0) -> {}. -spec integer_1(integer()) -> {}. integer_1(1) -> {}. -spec pos_integer(pos_integer()) -> ...
9166a2bd94fa981417f5dc9faa4ccd46c6224d52ec3858afd8c897e8641c89b8
mortuosplango/frankentone
genetic.clj
(ns frankentone.examples.genetic.genetic (:use [frankentone.genetic analysis simplegp simplegp-functions utils dspgp] [frankentone utils ugens dsp instruments patterns samples]) (:require [incanter core charts stats] [hiphip.double :as dbl] clojure.java.io)) (do (def reference...
null
https://raw.githubusercontent.com/mortuosplango/frankentone/6602e9623c23f3543b9f779fea7851a043ad7fca/resources/examples/genetic/genetic.clj
clojure
nothing: 500 ms mfcc: spf: rms: (future-done? evol) (reset! *evolution* false) (start-dsp) (stop-dsp) Run it:
(ns frankentone.examples.genetic.genetic (:use [frankentone.genetic analysis simplegp simplegp-functions utils dspgp] [frankentone utils ugens dsp instruments patterns samples]) (:require [incanter core charts stats] [hiphip.double :as dbl] clojure.java.io)) (do (def reference...
93f91317f61478c800db516833ff953abcffd65ef9d62c9a7e5df2a1dcb3c15b
nubank/vessel
data_readers.clj
{lib1/url lib1.url/string->url}
null
https://raw.githubusercontent.com/nubank/vessel/40036928d20cfd07b31b99bb2389d5421c49d26d/test/resources/lib1/data_readers.clj
clojure
{lib1/url lib1.url/string->url}
b077a76ad5d89d71d8618e0d34994310d479bd6412c3b77af519d94240faa0bb
hoytech/antiweb
parser.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- $ Header : /usr / cvs / hcsw / antiweb / bundled / cl - ppcre / parser.lisp , v 1.1 2008/04/26 02:40:56 ;;; The parser will - with the help of the lexer - parse a regex ;;; string and convert it into a "parse tree" (see docs for det...
null
https://raw.githubusercontent.com/hoytech/antiweb/53c38f78ea01f04f6d1a1ecdca5c012e7a9ae4bb/bundled/cl-ppcre/parser.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- The parser will - with the help of the lexer - parse a regex string and convert it into a "parse tree" (see docs for details about the syntax of these trees). Note that the lexer might return illegal parse trees. It is assumed that the conversion proces...
$ Header : /usr / cvs / hcsw / antiweb / bundled / cl - ppcre / parser.lisp , v 1.1 2008/04/26 02:40:56 Copyright ( c ) 2002 - 2007 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in...
809a1aef321cd6b7250c0bb5c0e052cb92fe9d8251bb944580950a838dec6124
tolitius/mount
project.clj
(defproject mount "0.1.17" :description "managing Clojure and ClojureScript app state since (reset)" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :source-paths ["src"] :dependencies [] ;; for visual clarity :tach {:test-runner-ns 'mount.test-self-host :source-pa...
null
https://raw.githubusercontent.com/tolitius/mount/8a3fc385a2824a2f9dc47009628dc1d7506753eb/project.clj
clojure
for visual clarity :classifier "aot"] :asset-path "js/compiled/out"
(defproject mount "0.1.17" :description "managing Clojure and ClojureScript app state since (reset)" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :source-paths ["src"] :tach {:test-runner-ns 'mount.test-self-host :source-paths ["test/core"]} :profiles {:dev {:s...
0746a092f905de08b7d11490ad6afd2b4205875b6a4bf9f4351fe893c9410e61
sonowz/advent-of-code-haskell
Day02.hs
module Y2021.Day02 where import Lib.IO import Lib.Types import Lib.Vector2D import Relude import Relude.Extra.Bifunctor import Relude.Extra.Foldable1 import Relude.Extra.Map import Relude.Extra.Newtype import Relude.Extra.Tuple ----------------------- -- Type declarations -- ----------------------- data Command = CF...
null
https://raw.githubusercontent.com/sonowz/advent-of-code-haskell/af2e439bb7d2d18c769e9c50eef712f92c5508dc/src/Y2021/Day02.hs
haskell
--------------------- Type declarations -- --------------------- ---------- Part 1 -- ---------- Note that down is positive ---------- ---------- ------------------ ------------------
module Y2021.Day02 where import Lib.IO import Lib.Types import Lib.Vector2D import Relude import Relude.Extra.Bifunctor import Relude.Extra.Foldable1 import Relude.Extra.Map import Relude.Extra.Newtype import Relude.Extra.Tuple data Command = CForward Int | CUp Int | CDown Int newtype Pos = Pos (Int, Int) deriving (...
321e3c2c32baa108491071f7f7865249afc362960213d1317e237322539de998
quark-lang/quark
Closure.hs
module Core.Closure.Definition.Closure where import Data.Map import Core.Inference.Type.AST data Closure = Closure { name :: String, environment :: Map String Type, arguments :: Map String Type, body :: TypedAST }
null
https://raw.githubusercontent.com/quark-lang/quark/e3dc7fff4e4dfba3e5c9ab71f10ede8bc5a30a44/app/Core/Closure/Definition/Closure.hs
haskell
module Core.Closure.Definition.Closure where import Data.Map import Core.Inference.Type.AST data Closure = Closure { name :: String, environment :: Map String Type, arguments :: Map String Type, body :: TypedAST }
aa8b3a73a426df7600097aafd065a5eb19c72f64dbfb8a62a6b996f6d8d61208
Eonblast/Scalaxis
fd.erl
2007 - 2011 Zuse Institute Berlin 2009 onScale solutions GmbH 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/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/src/fd.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...
2007 - 2011 Zuse Institute Berlin 2009 onScale solutions GmbH Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @doc Failure detector based on . -module(fd). -author(''). -vsn('$Id$')...
4967f5a803a09d5d3bb77e50e6d9357d6323ed0620bfd4bca584b1aec9f834b5
simonmar/parconc-examples
FiniteMap.hs
-- -- Adapted from the program "infer", believed to have been originally authored by , and used in the nofib benchmark suite since at least the late 90s . -- module FiniteMap (FM, emptyFM, unitFM, extendFM, makeFM, unmakeFM, thenFM, plusFM, lookupFM, lookupElseFM, mapFM, domFM, ranFM, disjointFM) wh...
null
https://raw.githubusercontent.com/simonmar/parconc-examples/840a3f508f9bb6e03961e1b90311a1edd945adba/parinfer/FiniteMap.hs
haskell
Adapted from the program "infer", believed to have been originally
authored by , and used in the nofib benchmark suite since at least the late 90s . module FiniteMap (FM, emptyFM, unitFM, extendFM, makeFM, unmakeFM, thenFM, plusFM, lookupFM, lookupElseFM, mapFM, domFM, ranFM, disjointFM) where data FM a b = MkFM [(a,b)] emptyFM :: ...
0b7b68e414d095fcb69e0e2e2e4b490a4a5c7ee87f6b32b8f53c787134ef7448
rcherrueau/rastache
inverted.rkt
#lang racket/base (require rastache) (define template #<<HERESTRING {{#admin}}Admin.{{/admin}} {{^admin}}Not Admin.{{/admin}} {{#person}}Hi {{name}}!{{/person}} HERESTRING ) (rast-compile/render (open-input-string template) #hash{ (admin . #f) (person . #hash{(name . ...
null
https://raw.githubusercontent.com/rcherrueau/rastache/059d00c83416f8ba27cc38fa7f8321b075756d14/examples/inverted.rkt
racket
#lang racket/base (require rastache) (define template #<<HERESTRING {{#admin}}Admin.{{/admin}} {{^admin}}Not Admin.{{/admin}} {{#person}}Hi {{name}}!{{/person}} HERESTRING ) (rast-compile/render (open-input-string template) #hash{ (admin . #f) (person . #hash{(name . ...
5bed7717d3e4b16611e2e9ce9588f43e653ef02352f9d3de97744db60a923d10
bpr/kd_tree
two_d.ml
module type Location = sig type point = float * float type elt val to_point : elt -> point end module Make(L : Location) : ( Multidim.S with type real = float with type range = (float * float) array with type elt = L.elt with type point = float * float) = str...
null
https://raw.githubusercontent.com/bpr/kd_tree/d0450aadd4617c635fd0c1c1c759137207ebb8d7/two_d.ml
ocaml
x0 > x1, invalid range
module type Location = sig type point = float * float type elt val to_point : elt -> point end module Make(L : Location) : ( Multidim.S with type real = float with type range = (float * float) array with type elt = L.elt with type point = float * float) = str...
71aabd9f9a1766ec6ae7b0d2528c2da76d76528f25fa39e319b1320ba7666725
nuprl/gradual-typing-performance
array-struct-make-array.rkt
#lang racket/base (provide make-array) ;; ----------------------------------------------------------------------------- (require "data-array.rkt" (only-in "array-utils-check-array-shape.rkt" check-array-shape) (only-in "array-struct-unsafe-build-simple-array.rkt" unsafe-build-simple-array)) ;; ========...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/micro/synth/untyped/array-struct-make-array.rkt
racket
----------------------------------------------------------------------------- =============================================================================
#lang racket/base (provide make-array) (require "data-array.rkt" (only-in "array-utils-check-array-shape.rkt" check-array-shape) (only-in "array-struct-unsafe-build-simple-array.rkt" unsafe-build-simple-array)) (define (make-array ds v) (let ([ds (check-array-shape ds (λ () (raise-arg...
781be7a4fa64057535c5c7db7b9b8971fee5e138d8feee3517688530bdcb0eac
dbuenzli/vz
pkg.ml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = Pkg.describe "vz" @@ fun c -> Ok [ Pkg.mllib "src/vz.mllib"; Pkg.mllib "src/vz_plot.mllib" ~dst_dir:"plot"; Pkg.mllib "src/vz_doc.mllib" ~dst_dir:"doc"; Pkg.mllib "src/evidence.mllib" ~dst_dir:"evidence"; Pkg.lib "src/evid...
null
https://raw.githubusercontent.com/dbuenzli/vz/f4e62392d84d9b0dd86622063f9b935e7bc64810/pkg/pkg.ml
ocaml
#!/usr/bin/env ocaml #use "topfind" #require "topkg" open Topkg let () = Pkg.describe "vz" @@ fun c -> Ok [ Pkg.mllib "src/vz.mllib"; Pkg.mllib "src/vz_plot.mllib" ~dst_dir:"plot"; Pkg.mllib "src/vz_doc.mllib" ~dst_dir:"doc"; Pkg.mllib "src/evidence.mllib" ~dst_dir:"evidence"; Pkg.lib "src/evid...
8470a1d1ad46a6c94366ebde2504651d8892811763e2c2f5afb172320052f7be
dmitryvk/sbcl-win32-threads
insts.lisp
the instruction set definition for MIPS This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/mips/insts.lisp
lisp
more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Constants, types, conversion functions, some disassembler stuff. this gets used for output only Constants used by instruction emitters. diss...
the instruction set definition for MIPS This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") (setf *assem-scheduler-p* t) (setf *assem-max-locations* 68) ...
67bdac9d5bd4cfabb7c5bd61b07d1e0169975e77e209bf456e5a5f290c662965
acl2/acl2
casesplitter@useless-runes.lsp
(RP::CASESPLITTER-AUX (705 13 (:REWRITE RP::RP-TERMP-IMPLIES-SUBTERMS)) (682 11 (:DEFINITION QUOTEP)) (650 4 (:LINEAR APPLY$-BADGEP-PROPERTIES . 1)) (646 2 (:DEFINITION APPLY$-BADGEP)) (394 2 (:DEFINITION SUBSETP-EQUAL)) (368 28 (:DEFINITION MEMBER-EQUAL)) (234 14 (:REWRITE MEMBER-EQUAL-NEWVAR-COMPONENTS-1)) (2...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/projects/rp-rewriter/meta/.sys/casesplitter%40useless-runes.lsp
lisp
(RP::CASESPLITTER-AUX (705 13 (:REWRITE RP::RP-TERMP-IMPLIES-SUBTERMS)) (682 11 (:DEFINITION QUOTEP)) (650 4 (:LINEAR APPLY$-BADGEP-PROPERTIES . 1)) (646 2 (:DEFINITION APPLY$-BADGEP)) (394 2 (:DEFINITION SUBSETP-EQUAL)) (368 28 (:DEFINITION MEMBER-EQUAL)) (234 14 (:REWRITE MEMBER-EQUAL-NEWVAR-COMPONENTS-1)) (2...
4e56b341e42c011b47983e229d80677a98a51413336853452fac83fd31f63c5d
skanev/playground
08-tests.scm
(require rackunit rackunit/text-ui) (load "helpers/simulator.scm") (load "../08.scm") (define sicp-5.08-tests (test-suite "Tests for SICP exercise 5.08" (check-exn (regexp "Duplicate label: here") (lambda () (make-machine '(a) '() ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/tests/08-tests.scm
scheme
(require rackunit rackunit/text-ui) (load "helpers/simulator.scm") (load "../08.scm") (define sicp-5.08-tests (test-suite "Tests for SICP exercise 5.08" (check-exn (regexp "Duplicate label: here") (lambda () (make-machine '(a) '() ...
e8dcfa19de89ce96d3eb1e94918d6dcbe57b17a181b7a585f22d7766ef8e431c
Zulu-Inuoe/raw-bindings-sdl2
sdl-temp-string.lisp
raw - bindings - sdl2 - FFI bindings to Written in 2017 by < > ;;; ;;;To the extent possible under law, the author(s) have dedicated all copyright ;;;and related and neighboring rights to this software to the public domain ;;;worldwide. This software is distributed without any warranty. You should have rec...
null
https://raw.githubusercontent.com/Zulu-Inuoe/raw-bindings-sdl2/fd219b896f3a0a9daef83cd1b303d806eeffa75a/src/sdl-temp-string.lisp
lisp
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. with this software. If not, see </>.
raw - bindings - sdl2 - FFI bindings to Written in 2017 by < > You should have received a copy of the CC0 Public Domain Dedication along (in-package #:raw-bindings-sdl2) (cffi:define-foreign-type sdl-temp-string-type () () (:documentation "Type for certain SDL functions which return a char* st...
da9fd90a5d0ffbc55859ad83b507c238ebb09eb0539c0568f6b706045de61e42
haskell/haskell-platform
Templates.hs
# LANGUAGE RecordWildCards # module Templates ( ctxEmpty, ctxAppend, ctxConcat , errorCtx , assocListContext, mapListContext, mapListStrContext , releaseContext, buildConfigContext, platformContext , copyExpandedFile, copyExpandedDir ) where import Control.Monad (foldM, forM_, unless) import...
null
https://raw.githubusercontent.com/haskell/haskell-platform/6357fb6645782278f43fc8340bf46771f1c2768d/hptool/src/Templates.hs
haskell
| Create a context from an association list.
# LANGUAGE RecordWildCards # module Templates ( ctxEmpty, ctxAppend, ctxConcat , errorCtx , assocListContext, mapListContext, mapListStrContext , releaseContext, buildConfigContext, platformContext , copyExpandedFile, copyExpandedDir ) where import Control.Monad (foldM, forM_, unless) import...
4ab616e45caa513ae110d237ddef8d82cf7ebc0721698558c596f52096606ece
homegrownlabs/sim-template
sim.clj
(ns {{namespace}}.sim "This namespace contains the logic for creating and running a simulation." (:require [clojure.tools.logging :as l] [simulant.sim :as sim] [simulant.util :refer [e tx-ent]] [datomic.api :as d] [cheshire.core :as json] [clj-http.client ...
null
https://raw.githubusercontent.com/homegrownlabs/sim-template/2ddba7c1a3c2a17aff1e1ed30bada941bcb938a3/src/leiningen/new/sim_test/src/sim.clj
clojure
Create a simulation.target-system namespace, and perform any necessary actions on it. Make sure to return an original or modified context from those functions. For example: (-> context target-system/create-accounts) == Sim retrieval ========================================
(ns {{namespace}}.sim "This namespace contains the logic for creating and running a simulation." (:require [clojure.tools.logging :as l] [simulant.sim :as sim] [simulant.util :refer [e tx-ent]] [datomic.api :as d] [cheshire.core :as json] [clj-http.client ...
9de72f9264e5e88e1c96116aadb299f1eaa0a00c0aaa4306f6f018e1554ee650
killme2008/clj-rate-limiter
core.clj
(ns clj-rate-limiter.core (:import (java.util TimerTask Timer)) (:require [taoensso.carmine :as car] [clojure.core.cache :as cache])) (defn- ttl-cache [interval] (atom (cache/ttl-cache-factory {} :ttl interval))) (defprotocol RateLimiter "Rate limiter for clojure." (allow? [this id] "R...
null
https://raw.githubusercontent.com/killme2008/clj-rate-limiter/26f3689b9efa9cce8b3f38a7f679e3e27a4d75f5/src/clj_rate_limiter/core.clj
clojure
It must not be in flood cache
(ns clj-rate-limiter.core (:import (java.util TimerTask Timer)) (:require [taoensso.carmine :as car] [clojure.core.cache :as cache])) (defn- ttl-cache [interval] (atom (cache/ttl-cache-factory {} :ttl interval))) (defprotocol RateLimiter "Rate limiter for clojure." (allow? [this id] "R...
c160d9242dfbe6464a9049db378034cdc0d45198c47a7c276d203c007ed455c1
larcenists/larceny
macros.body.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; To simplify interoperability between R7RS and R6RS , this implementation of define - record - type supports all four of ;;; these specifications of define-record-type: ;;; SRFI 9 ;;; ERR5RS ;;; R6RS (deprecated) ;;; R7RS ;;;...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/lib/R6RS/larceny/r7rs/macros.body.scm
scheme
these specifications of define-record-type: ERR5RS R6RS (deprecated) R7RS R6RS syntax (deprecated) From src/Compiler/usual.sch conversion procedure, which is done by passing the no-conversion symbol as an extra argument. That extra argument is recognized only by real parameters, so we h...
To simplify interoperability between R7RS and R6RS , this implementation of define - record - type supports all four of SRFI 9 (define-syntax define-record-type (syntax-rules (fields parent protocol sealed opaque nongenerative parent-rtd) ((_ (<name> <constructor> <p...
7eaf04b1089a6888cd036d8f384bd95a42f8a2a1e51d6e66b3fa8e3d3386c7a2
picty/parsifal
struct-0f.ml
struct s = { x : uint8; dump_checkpoint : debug_dump; }
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/syntax/unit/struct-0f.ml
ocaml
struct s = { x : uint8; dump_checkpoint : debug_dump; }
d0f8535150bfc345a847dc053ad7b1513dd3850c7020860a832c29d5e0e3645a
malgo-lang/malgo
TypeRep.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE PatternSynonyms # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # module Malgo.Infer.TypeRep ( PrimT (..), Kind, TypeVar, KindCtx, insertKind, Type (..), MetaVar (..), HasType (..), HasKind (..), Scheme (..), TypeDef (....
null
https://raw.githubusercontent.com/malgo-lang/malgo/002f522bf6376edf67716cef99033d87b46112f4/src/Malgo/Infer/TypeRep.hs
haskell
# LANGUAGE DeriveAnyClass # ------------------------------ Common tag representations -- ------------------------------ | Primitive Types ------------------------ Type representations -- ------------------------ | Definition of `Type` type level operator | application of type constructor | type variable (qualifi...
# LANGUAGE PatternSynonyms # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # module Malgo.Infer.TypeRep ( PrimT (..), Kind, TypeVar, KindCtx, insertKind, Type (..), MetaVar (..), HasType (..), HasKind (..), Scheme (..), TypeDef (..), typeConstructor, typ...
93f88e1d13b3894b6cae534c2ffe8d4ff7afcdab7615c2eab98b13787206526e
RyanHope/ACT-R
simple-dynamic-model.lisp
(clear-all) (define-model dynamic-introduction (sgp :v t :trace-detail high :cst t :style-warnings nil) (chunk-type fact context data) (chunk-type step step destination) (chunk-type result data1 data2) (add-dm (first isa chunk) (second isa chunk) (destination isa chunk) (data2 isa chun...
null
https://raw.githubusercontent.com/RyanHope/ACT-R/c65f3fe7057da0476281ad869c7963c84c0ad735/tutorial/unit8/simple-dynamic-model.lisp
lisp
(clear-all) (define-model dynamic-introduction (sgp :v t :trace-detail high :cst t :style-warnings nil) (chunk-type fact context data) (chunk-type step step destination) (chunk-type result data1 data2) (add-dm (first isa chunk) (second isa chunk) (destination isa chunk) (data2 isa chun...
8da80dcdb14b74590f4b82c18ce02a000c33186d9a26e7d5cd0dd010dc16de77
squint-cljs/squint
main.cljs
(ns main) (println "Hello world!") (prn (apply map vector [[1 2 3] [4 5 6] [7 8 9]]))
null
https://raw.githubusercontent.com/squint-cljs/squint/bdbac2a3dd97542abf135d5e07237040a512e008/examples/quickjs/main.cljs
clojure
(ns main) (println "Hello world!") (prn (apply map vector [[1 2 3] [4 5 6] [7 8 9]]))
254df72034174d10ad12e7ea82385aa66ba4554f04c2b5b59df445f08c892ee8
zotonic/zotonic
scomp_survey_poll.erl
@author < > 2011 - 2021 Copyright 2011 - 2021 %% 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 wr...
null
https://raw.githubusercontent.com/zotonic/zotonic/ec8c25581afdbc20eb8b755b2b1af81300759e93/apps/zotonic_mod_survey/src/scomps/scomp_survey_poll.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 perm...
@author < > 2011 - 2021 Copyright 2011 - 2021 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(scomp_survey_poll). -behaviour(zotonic_scomp). -export([vary/2, render/3]). -export([single_result/3]). -...
13f974e9fabccf5c62143d944b784951130b92669970cf1915ec373d3d63dd6b
input-output-hk/project-icarus-importer
Delegation.hs
{-# LANGUAGE RankNTypes #-} -- | Send and receive for delegation. module Pos.Diffusion.Full.Delegation ( delegationListeners , delegationOutSpecs , sendPskHeavy ) where import Universum import qualified Network.Broadcast.OutboundQueue as OQ import Pos.Binary () impor...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/lib/src/Pos/Diffusion/Full/Delegation.hs
haskell
# LANGUAGE RankNTypes # | Send and receive for delegation. | Listeners for requests related to delegation processing. motif required for communication. The 'Logic m' isn't *really* needed, it's just an artefact of the design.
module Pos.Diffusion.Full.Delegation ( delegationListeners , delegationOutSpecs , sendPskHeavy ) where import Universum import qualified Network.Broadcast.OutboundQueue as OQ import Pos.Binary () import Pos.Communication.Limits (mlHeavyDlgIndex, mlProxySecr...
19ecdda0551d811e562f1fe3f483a21045f6944c3463b2e590f2ecbc0ee5e032
atzedijkstra/chr
VecAlloc.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # ------------------------------------------------------------------------------------------- | Vector intended for densily filled entries close to 0 , > 0 . -- In situ updates are not supposed to happen often. ----------------------------------------------...
null
https://raw.githubusercontent.com/atzedijkstra/chr/ad465828b1560831e90c4056e12338231872e8db/chr-data/src/CHR/Data/VecAlloc.hs
haskell
----------------------------------------------------------------------------------------- In situ updates are not supposed to happen often. ----------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------...
# LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # | Vector intended for densily filled entries close to 0 , > 0 . module CHR.Data.VecAlloc ( VecAlloc , empty , alter , lookup , toList , fromList , null , size ) where import Prelude hiding (look...
75ea6bc969f9d9c98a1ce37ff68fa7fe075ab3cdf9ba3158fd264f30f47fdaa1
joelburget/lvca
Ast_operations.ml
module Model = struct let initial_model = () end module View = struct open Brr.El let view _model = div [ txt' "substitution" ; txt' "opening" ; txt' "closing" ; txt' "structural induction" ; txt' "folding" ; txt' "is open? (free vars)" ; txt' "renaming" ; txt...
null
https://raw.githubusercontent.com/joelburget/lvca/0bf86d981cab5d45d1c21918305f0d448ba57ca4/pages/Ast_operations.ml
ocaml
module Model = struct let initial_model = () end module View = struct open Brr.El let view _model = div [ txt' "substitution" ; txt' "opening" ; txt' "closing" ; txt' "structural induction" ; txt' "folding" ; txt' "is open? (free vars)" ; txt' "renaming" ; txt...
2803106cb6688a03130aebf94fefb86931683e68282434e0b7c3095ff94a72d9
peti/postmaster
Main.hs
| Module : Main Copyright : ( C ) 2004 - 2019 License : GNU AFFERO GPL v3 or later Maintainer : Stability : experimental Portability : non - portable Module: Main Copyright: (C) 2004-2019 Peter Simons License: GNU AFFERO GPL v3 or later M...
null
https://raw.githubusercontent.com/peti/postmaster/65867f01fa5084b2895340e7d98c601a5e0ab1e3/src/Main.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # --- Helper functions | Parse a listen address specification into a (host name, service name) tuple suitable for resolution with 'getAddrInfo'. >>> parseListenAddr "0.0.0.0:25" (Just "0.0.0.0","25") (Nothing,"25") >>> parseListenAddr "localhost:smtp" ...
| Module : Main Copyright : ( C ) 2004 - 2019 License : GNU AFFERO GPL v3 or later Maintainer : Stability : experimental Portability : non - portable Module: Main Copyright: (C) 2004-2019 Peter Simons License: GNU AFFERO GPL v3 or later M...
e5a59e8944b454b505e18887f27d39b0c61a20fe426f99a5713c5c30fc9a587f
nvim-treesitter/nvim-treesitter
highlights.scm
[ (path_mod) "||" "&&" "=" "<" ">" "<=" ">=" "+" "-" "*" "/" "!" "|" "^" ] @operator [ "_:" (namespace) ] @namespace [ "UNDEF" "a" ] @variable.builtin [ "ADD" "ALL" "AS" "ASC" "ASK" "BIND" "BY" "CLEAR" "CONSTRUCT" "COPY" "CREATE" "DEFAULT" "DELETE" "...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/ddc0f1b606472b6a1ab85ee9becfd4877507627d/queries/sparql/highlights.scm
scheme
Could this be summarized?
[ (path_mod) "||" "&&" "=" "<" ">" "<=" ">=" "+" "-" "*" "/" "!" "|" "^" ] @operator [ "_:" (namespace) ] @namespace [ "UNDEF" "a" ] @variable.builtin [ "ADD" "ALL" "AS" "ASC" "ASK" "BIND" "BY" "CLEAR" "CONSTRUCT" "COPY" "CREATE" "DEFAULT" "DELETE" "...
0bc5843abc7a9f4099ab05637bc9667c0280026f7fe6d9a9d377c02073adb603
input-output-hk/cardano-sl
Production.hs
-- | Definition of a 'Reporter IO' which uses log-warper to gather logs and -- uses the HTTP backend to send them to some server(s). module Pos.Reporting.Production ( ProductionReporterParams (..) , productionReporter ) where import Universum import Control.Exception.Safe (catchIO) i...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/lib/src/Pos/Reporting/Production.hs
haskell
| Definition of a 'Reporter IO' which uses log-warper to gather logs and uses the HTTP backend to send them to some server(s). ^ Used to get status info, not to do any network stuff.
module Pos.Reporting.Production ( ProductionReporterParams (..) , productionReporter ) where import Universum import Control.Exception.Safe (catchIO) import Pos.Crypto (ProtocolMagic) import Pos.Infra.Diffusion.Types (Diffusion) import Pos.Infra.Reportin...
a41efc0940c785f88fa4ee93e77d9fdb2bbd66669634b080f4261677efc85aba
fossas/fossa-cli
PodfileLockSpec.hs
module Cocoapods.PodfileLockSpec ( spec, ) where import Data.ByteString qualified as BS import Data.Map.Strict qualified as Map import Data.Text (Text) import Data.Yaml (decodeEither') import DepTypes ( DepType (GitType, PodType), Dependency (..), VerConstraint (CEq), ) import GraphUtil (expectDeps, expectDir...
null
https://raw.githubusercontent.com/fossas/fossa-cli/a346525293f7f5dff232371842017c87ac265693/test/Cocoapods/PodfileLockSpec.hs
haskell
module Cocoapods.PodfileLockSpec ( spec, ) where import Data.ByteString qualified as BS import Data.Map.Strict qualified as Map import Data.Text (Text) import Data.Yaml (decodeEither') import DepTypes ( DepType (GitType, PodType), Dependency (..), VerConstraint (CEq), ) import GraphUtil (expectDeps, expectDir...
2278026c20d2282e837251fdf90988f1443bf67ac3c3cf0c88b3384741ebbcd3
diffusionkinetics/open
AST.hs
# LANGUAGE DeriveAnyClass , DeriveGeneric , FlexibleInstances # module Stan.AST where import Data.Hashable import GHC.Generics (Generic) import Data.String type Var = String data Stan = Data [Decl] | TransformedData [Decl] | Parameters [Decl] | TransformedParameters [Decl] | ...
null
https://raw.githubusercontent.com/diffusionkinetics/open/673d9a4a099abd9035ccc21e37d8e614a45a1901/stanhs/lib/Stan/AST.hs
haskell
# LANGUAGE DeriveAnyClass , DeriveGeneric , FlexibleInstances # module Stan.AST where import Data.Hashable import GHC.Generics (Generic) import Data.String type Var = String data Stan = Data [Decl] | TransformedData [Decl] | Parameters [Decl] | TransformedParameters [Decl] | ...
28bf36170c76b5dac3823a9e52b2209ee5883789d041cebb4ea28dffa60d6b97
ndmitchell/ghc-make
BootChild.hs
module BootChild where
null
https://raw.githubusercontent.com/ndmitchell/ghc-make/5164c721efa38a02be33d340cc91f5c737c29156/tests/complex/children/BootChild.hs
haskell
module BootChild where
3f17d8b4966b36e8fc4d95107882d516379cf291e96efb74e2b5d3b8cb23f14e
atgeller/WASM-Redex
SimpleOps.rkt
#lang racket (require racket/flonum redex/reduction-semantics "AdministrativeSyntax.rkt" "../Utilities.rkt" "SizedOps.rkt" "ConstUtilities.rkt") (provide (all-defined-out)) to implement all of the WebAssembly operations ; equivalent to unop_t(c) (define-metafunction W...
null
https://raw.githubusercontent.com/atgeller/WASM-Redex/81f882f9fd95b645a10baf2565f27efc8f8766e5/Semantics/SimpleOps.rkt
racket
equivalent to unop_t(c) equivalent to binop_t(c1, c2)
#lang racket (require racket/flonum redex/reduction-semantics "AdministrativeSyntax.rkt" "../Utilities.rkt" "SizedOps.rkt" "ConstUtilities.rkt") (provide (all-defined-out)) to implement all of the WebAssembly operations (define-metafunction WASM-Admin eval-unop : un...
3b6163965ec0a0e6129754cd9d8676e9fa595b6c6a09c6e6e0f560f76bd4274a
bananu7/Hate
Events.hs
module Hate.Events ( initialEventsState , setCallbacks , fetchEvents , allowedEvent , module Hate.Events.Types ) where import qualified Graphics.UI.GLFW as GLFW import Control.Concurrent.STM (TQueue, atomically, newTQueueIO, tryReadTQueue, writeTQueue) import Hate.Events.Types ...
null
https://raw.githubusercontent.com/bananu7/Hate/4aa4ec0cf1e9bcb32d8cc807ab2ee092807c7ddb/src/Hate/Events.hs
haskell
| Some events aren't meant to impact the user, and should be handled internally by framework instead.
module Hate.Events ( initialEventsState , setCallbacks , fetchEvents , allowedEvent , module Hate.Events.Types ) where import qualified Graphics.UI.GLFW as GLFW import Control.Concurrent.STM (TQueue, atomically, newTQueueIO, tryReadTQueue, writeTQueue) import Hate.Events.Types ...
c9b246088d3153ee7b2792098d034f13847b41732b52c420d39851cf762961bd
MercuryTechnologies/ghc-specter
GHC.hs
{- FOURMOLU_DISABLE -} # LANGUAGE CPP # # LANGUAGE LambdaCase # module GHCSpecter.Util.GHC ( -- * pretty print showPpr, printPpr, -- * module name getModuleName, mkModuleNameMap, formatName, formatImportedNames, -- * module graph getTopSortedModules, extractModuleSources, extractModuleGraphIn...
null
https://raw.githubusercontent.com/MercuryTechnologies/ghc-specter/5fbabc11a78011095298cebdfff1b53d431ece73/plugin/src/GHCSpecter/Util/GHC.hs
haskell
FOURMOLU_DISABLE * pretty print * module name * module graph pretty print module name For hs-boot and hsig, we rely on stringy suffix ".hs-boot" and ".hsig". NOTE: As we want to have resultant text directly copied and pasted to the source code, the operator identifiers should be wrapped with ...
# LANGUAGE CPP # # LANGUAGE LambdaCase # module GHCSpecter.Util.GHC ( showPpr, printPpr, getModuleName, mkModuleNameMap, formatName, formatImportedNames, getTopSortedModules, extractModuleSources, extractModuleGraphInfo, ) where import Control.Monad.IO.Class (MonadIO (liftIO)) import Data.Char (is...
29db957277a46bcba2999fe585bd07b85888919ee1359b489b35c5e2b5065642
janestreet/merlin-jst
old_command.ml
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
null
https://raw.githubusercontent.com/janestreet/merlin-jst/9c3b60c98d80b56af18ea95c27a0902f0244659a/src/frontend/ocamlmerlin/old/old_command.ml
ocaml
Document selection Printer verbosity Printer width Actual dispatch
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
93966e7c82e270e9ed52d95cd88da71935a65d30abe0e1000b2fd3a2d4665b9e
tweag/sparkle
Main.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE LinearTypes #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE StaticPointers # # LANGUAGE QualifiedDo # module Main where import Control.Distributed.Closure import qualified Control.Distributed.Spark as Spark import Control.Distributed.Spark.Sa...
null
https://raw.githubusercontent.com/tweag/sparkle/7ad678c6830cfe689b3bed03e008728e59c40cfc/apps/rdd-ops-safe/Main.hs
haskell
# LANGUAGE LinearTypes # # LANGUAGE OverloadedStrings # Does not work, because we don't have reify and reflect instances for
# LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE StaticPointers # # LANGUAGE QualifiedDo # module Main where import Control.Distributed.Closure import qualified Control.Distributed.Spark as Spark import Control.Distributed.Spark.Safe.RDD as RDD import Control.Distributed.Spark.Safe.Context imp...
792af1f682dab95c2119909fd70e495cd41a9495c4567e4134ab93be5fedbeab
mflatt/shrubbery-rhombus-0
transformer-result.rkt
#lang racket/base (require "private/transform.rkt") (provide check-transformer-result)
null
https://raw.githubusercontent.com/mflatt/shrubbery-rhombus-0/39886de4660e8d303e5345680524389cd1dcf3cc/enforest/transformer-result.rkt
racket
#lang racket/base (require "private/transform.rkt") (provide check-transformer-result)
fe75e48249d64bd10fc44e28bf697513b004c0c10cf000afb8adb81980b40ed8
electric-sql/vaxine
clocksi_interactive_coord.erl
%% ------------------------------------------------------------------- %% Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal %% > %% This file is provided...
null
https://raw.githubusercontent.com/electric-sql/vaxine/9dcf353fffb8fb98979a3046e13454ce2c6fc343/apps/antidote/src/clocksi_interactive_coord.erl
erlang
------------------------------------------------------------------- > Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either expressed or implied. See the License for the specific language governing perm...
Copyright < 2013 - 2018 > < Technische Universität Kaiserslautern , Germany , France Universidade NOVA de Lisboa , Portugal Université catholique de Louvain ( UCL ) , Belgique , Portugal This file is provided to you under the Apache License , except in compliance with the License . You...
a0a6a67bffc083524ff6d337fcc4a1413bcaa819d72775adbbc0e86be12cf49a
janestreet/memtrace_viewer_with_deps
ipaddr.ml
* Copyright ( c ) 2013 - 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...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/ipaddr/lib/ipaddr.ml
ocaml
ignore the sign parsing string conversion Int16 Host constant string conversion TODO: this could be optimized with something trie-like TODO: Perhaps represent with bytestring? parsing :: check if it starts with :: trailing :: string conversion byte conversion TODO : from cstruct {{:#...
* Copyright ( c ) 2013 - 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...
6fce07728f8dd45cc284922ba847230f310c2dfc2bf60ebe2ec6a07ab3190b28
ndmitchell/rattle
Types.hs
# LANGUAGE RecordWildCards # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving , DeriveTraversable # {-# LANGUAGE StandaloneDeriving, DeriveGeneric #-} # OPTIONS_GHC -Wno - orphans # module Development.Rattle.Types( Trace(..), Touch(..), fsaTrace, normalizeTouch, TouchSet, tsRead, tsWrite, n...
null
https://raw.githubusercontent.com/ndmitchell/rattle/f1f10504ef175dd005c8affdddfc1fb615c040f2/src/Development/Rattle/Types.hs
haskell
# LANGUAGE StandaloneDeriving, DeriveGeneric # # UNPACK # # UNPACK # # UNPACK # We want to get normalized traces. On Linux, things come out normalized, and we just want to dedupe them We know the file names are already normalized from Shake so avoid a redundant conversion and since we are sorting, try and avoid doin...
# LANGUAGE RecordWildCards # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving , DeriveTraversable # # OPTIONS_GHC -Wno - orphans # module Development.Rattle.Types( Trace(..), Touch(..), fsaTrace, normalizeTouch, TouchSet, tsRead, tsWrite, newTouchSet, addTouchSet, Cmd(..), mkCmd, Ru...
5a128b24167860ec5b8bf5d147f279ccb4672df1d83858a3f3e88945d12a1074
input-output-hk/cardano-sl
Cluster.hs
module Test.Integration.Framework.Cluster ( startCluster , waitForNode ) where import Universum hiding (init) import Control.Concurrent (threadDelay) import Control.Concurrent.Async (race) import Data.Map.Strict ((!)) import qualified Data.Map.Strict as Map import q...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/wallet/test/integration/Test/Integration/Framework/Cluster.hs
haskell
| All those can be overriden by environment variables. These values correspond to command line arguments that would be passed to underlying processes. As an example, if you wanted to enable the @--wallet-debug@ option for the underlying node, you would add an entry in this list: > ("WALLET_DEBUG", "True") a l...
module Test.Integration.Framework.Cluster ( startCluster , waitForNode ) where import Universum hiding (init) import Control.Concurrent (threadDelay) import Control.Concurrent.Async (race) import Data.Map.Strict ((!)) import qualified Data.Map.Strict as Map import q...
4066667b7226981220e8eb4bb252f8bf485bde704f105a30f383025944bf3a44
Eventuria/demonstration-gsd
OverEventStore.hs
# LANGUAGE FlexibleContexts # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # module Eventuria.GSD.Monitoring.Service.OverEventStore where import Control.Exception import Streamly hiding (Streaming) import qualified Eventuria.Libraries.PersistedStreamE...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/GSD/Monitoring/Service/OverEventStore.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # module Eventuria.GSD.Monitoring.Service.OverEventStore where import Control.Exception import Streamly hiding (Streaming) import qualified Eventuria.Libraries.PersistedStreamE...
9e22057d3e180b68fd4d57c19eac6677be29de60e0c54441431927f1e40ea022
alanmarazzi/perfect
generics.clj
(ns perfect.reader.generics (:require [clojure.spec.alpha :as s] [expound.alpha :as expound] [expound.specs :as exspec]) (:import (java.lang IllegalArgumentException) (org.apache.poi.ss.util WorkbookUtil) (org.apache.poi.ss.usermodel Workbook Sheet ...
null
https://raw.githubusercontent.com/alanmarazzi/perfect/c3caecbf64383a1befd0dc1fef8f414e55d3dfa2/src/perfect/reader/generics.clj
clojure
(ns perfect.reader.generics (:require [clojure.spec.alpha :as s] [expound.alpha :as expound] [expound.specs :as exspec]) (:import (java.lang IllegalArgumentException) (org.apache.poi.ss.util WorkbookUtil) (org.apache.poi.ss.usermodel Workbook Sheet ...
c70fbc69995dfc94004e0673914366103fe89ef5f727c17bb031b1db3e9e5574
naoto-ogawa/h-xproto-mysql
Example03_data.hs
module Example.Example03_data where -- +----+----------+-------------+----------+-------------------------+ -- | ID | Name | CountryCode | District | Info | -- +----+----------+-------------+----------+-------------------------+ | 1 | Kabul | AFG | Kabol | { " Population " :...
null
https://raw.githubusercontent.com/naoto-ogawa/h-xproto-mysql/1eacd6486c99b849016bf088788cb8d8b166f964/src/Example/Example03_data.hs
haskell
+----+----------+-------------+----------+-------------------------+ | ID | Name | CountryCode | District | Info | +----+----------+-------------+----------+-------------------------+ | 2 | Qandahar | AFG | Qandahar | {"Population": 237500} | +----+----------+-------------+--------...
module Example.Example03_data where | 1 | Kabul | AFG | Kabol | { " Population " : 1780000 } | data MyRecord = MyRecord {id :: Int, name :: String, country_code :: String, district :: String, info :: String} deriving (Show, Eq)
1a5826a430fe59cd58be30af295bf5de894f06d5904856f76c996341dd65e657
wfnuser/sicp-solutions
e3-24.scm
(define (assoc key records same-key?) (cond ((null? records) false) ((same-key? key (caar records)) (car records)) (else (assoc key (cdr records))) ) ) (define (make-table same-key?) (let ((local-table (list '*table*))) (define (assoc key records) (cond ...
null
https://raw.githubusercontent.com/wfnuser/sicp-solutions/2c94b28d8ee004dcbfe7311f866e5a346ee01d12/ch3/e3-24.scm
scheme
(define (assoc key records same-key?) (cond ((null? records) false) ((same-key? key (caar records)) (car records)) (else (assoc key (cdr records))) ) ) (define (make-table same-key?) (let ((local-table (list '*table*))) (define (assoc key records) (cond ...
082998f2668f1de6a079f062e6f47fea6d3a0f1a4356097addedce4b0a8e6431
pgujjula/hilbert
Partition.hs
| Module : Math . . Digit Description : Counting partitions of an integer . Copyright : ( c ) , 2020 License : BSD-3 - Clause Maintainer : Stability : experimental Counting partitions of an integer . Description : Counting partitions of an integer. Copyr...
null
https://raw.githubusercontent.com/pgujjula/hilbert/ea64f2d06ceeb96da11fe6f2b868cef1cd817e28/src/Math/Combinatorics/Partition.hs
haskell
or any negative number or any negative number use the partition function formula -- see Wikipedia recursively call the partition function with these arguments alternate positive and negative pentagonal numbers | Enumerate the partitions of n. >>> partitions 4 [[4],[3,1],[2,2],[2,1,1],[1,1,1,1]]
| Module : Math . . Digit Description : Counting partitions of an integer . Copyright : ( c ) , 2020 License : BSD-3 - Clause Maintainer : Stability : experimental Counting partitions of an integer . Description : Counting partitions of an integer. Copyr...
12ee9e2c5137dc68e74381a86121fedf324f87c4c5e07c13ea703a57551aa58b
screenshotbot/screenshotbot-oss
promoter.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :screenshotbot/pro/bitbucket/promoter (:nicknames :screenshotbot/bitbuc...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/182e8c70f2a428859b42e592f1281d988f4c41d1/src/screenshotbot/bitbucket/promoter.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc. error
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :screenshotbot/pro/bitbucket/promoter (:nicknames :screenshotbot/bitbucket/promoter) (:use #:cl #:screenshotbot/abstrac...
d3818b2d0f1c958485d77cc380cd456cc41cbe6004a7aff422a5120fa968bda8
JonyEpsilon/darwin
reproduction.clj
; This file is part of . ; Copyright ( C ) 2014- , Imperial College , London , All rights reserved . ; Contributors : ; Released under the MIT license .. ; (ns darwin.evolution.reproduction "The purpose of a reproduction step is to take a mating pool - a set of individuals that have somehow been selecte...
null
https://raw.githubusercontent.com/JonyEpsilon/darwin/2b27aa83ec0b7bbc37effed243bf92673de586ea/src/darwin/evolution/reproduction.clj
clojure
This file is part of . Copyright ( C ) 2014- , Imperial College , London , All rights reserved . Contributors : Released under the MIT license .. (ns darwin.evolution.reproduction "The purpose of a reproduction step is to take a mating pool - a set of individuals that have somehow been selected from the...
dde36b71d58f88253afd75dd2dca8dfebada7030913c1bd589f12f8c7c6ccf6a
Decentralized-Pictures/T4L3NT
roll_storage_legacy.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_012_Psithaca/lib_protocol/roll_storage_legacy.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2019 AG < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT W...
b60c4b6132ccd305676d7ed3ead583f20e7d695a707ad973c3da2a7935cf20c0
haskell-foundation/foundation
Collection.hs
-- | -- Module : Foundation.Collection.Collection -- License : BSD-style -- Maintainer : Foundation -- Stability : experimental -- Portability : portable -- -- Provide basic collection information. It's difficult to provide a -- unified interface to all sorts of collection, but when creating this -- API we ...
null
https://raw.githubusercontent.com/haskell-foundation/foundation/39985b94b4de4d02e8decb5e378b53ad3f72c0cc/foundation/Foundation/Collection/Collection.hs
haskell
| Module : Foundation.Collection.Collection License : BSD-style Maintainer : Foundation Stability : experimental Portability : portable Provide basic collection information. It's difficult to provide a unified interface to all sorts of collection, but when creating this API we had the following ty...
# LANGUAGE FlexibleContexts # # LANGUAGE ExistentialQuantification # # LANGUAGE StandaloneDeriving # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeOperators # module Foundation.Collection.Collection ( Collection(..) * NonEmpty Property , NonEmpty , getNonEmpty , nonEmpty , nonEmpty_ ,...
935c4fdd1c475191bd2830124039088fdbebecbb54bbfa6b51f7ecc57e382acd
hyperfiddle/electric
missionary_contrib.cljc
(ns contrib.missionary-contrib "staging area, to be considered for missionary inclusion?" (:require [clojure.core.async :as a] [missionary.core :as m] [hyperfiddle.rcf :refer [tests]]) (:import (missionary Cancelled))) (defn iterator-consumer "blocking iterable pattern" [^java.util.Iter...
null
https://raw.githubusercontent.com/hyperfiddle/electric/1c6c3891cbf13123fef8d33e6555d300f0dac134/src/contrib/missionary_contrib.cljc
clojure
xs is iterable Core.async interop we will put a value on this chan to cancel reading from `chan` if the winning chan is the cancelation one, then task has been cancelled task has been cancelled, must produce a failure state complete task with value from chan if this task is cancelled by its parent process, close...
(ns contrib.missionary-contrib "staging area, to be considered for missionary inclusion?" (:require [clojure.core.async :as a] [missionary.core :as m] [hyperfiddle.rcf :refer [tests]]) (:import (missionary Cancelled))) (defn iterator-consumer "blocking iterable pattern" [^java.util.Iter...
2e18378f04fea460c414822bed62f3d10e6acee010fc9b280c84ca6dd084580a
senapk/funcional_arcade
main.hs
import Data.List pertence x xs = not $ null [ y | y < - xs , y = = x ] -- pertence x xs = not $ null $ filter (== x) xs -- pertence _ [] = False pertence x ( y : xs ) = x = = y || pertence x xs -- pertence x xs = foldl fn False xs -- where fn y z = y || z == x
null
https://raw.githubusercontent.com/senapk/funcional_arcade/89625b4559b3e590d88dd70a27b6cbdc07cc2988/base/015/main.hs
haskell
pertence x xs = not $ null $ filter (== x) xs pertence _ [] = False pertence x xs = foldl fn False xs where fn y z = y || z == x
import Data.List pertence x xs = not $ null [ y | y < - xs , y = = x ] pertence x ( y : xs ) = x = = y || pertence x xs
19988e3773ccc35cccb5ad24168692b5bb150b96a46fe484a711446a7b9d7fd4
dimitri/pgloader
retry.lisp
;;; Test cases for issue ;;; ;;; #| CREATE TABLE `retry` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `content` text, PRIMARY KEY (`id`) ); |# (defpackage #:pgloader.test.retry (:use #:cl #:pgloader.params #:pgloader.mysql) (:export #:produce-data)) (in-package #:pgloader.test.retry) (defvar *inject-...
null
https://raw.githubusercontent.com/dimitri/pgloader/3047c9afe141763e9e7ec05b7f2a6aa97cf06801/test/data/retry.lisp
lisp
Test cases for issue CREATE TABLE `retry` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `content` text, PRIMARY KEY (`id`) );
(defpackage #:pgloader.test.retry (:use #:cl #:pgloader.params #:pgloader.mysql) (:export #:produce-data)) (in-package #:pgloader.test.retry) (defvar *inject-null-bytes* (coerce (loop for previous = 0 then (+ previous offset) for offset in '(15769 54 7 270 8752) collect (+ previous o...
bad2fcdf27b918b83a128925a84da7073f80888fc120454ebb7794510207bad6
RyanMcG/lein-npm
plugin.clj
(ns lein-npm.plugin (:require [leiningen.npm :as npm] [leiningen.npm.node-exec :as exec])) (defn hooks [] (npm/install-hooks) (exec/install-hooks))
null
https://raw.githubusercontent.com/RyanMcG/lein-npm/aca88a27a7eace2f0f4fc19a095b9c51bd19bd46/src/lein_npm/plugin.clj
clojure
(ns lein-npm.plugin (:require [leiningen.npm :as npm] [leiningen.npm.node-exec :as exec])) (defn hooks [] (npm/install-hooks) (exec/install-hooks))
cfa26c641cc6cef2733ce2c6b43bd98426ac7a5d77ec7f3f8408fe1de61d58ed
disco-lang/disco
Graph.hs
{-# LANGUAGE OverloadedStrings #-} ----------------------------------------------------------------------------- -- | Module : Disco . . Graph -- Copyright : disco team and contributors -- Maintainer : -- SPDX - License - Identifier : BSD-3 - Clause -- -- A thin layer on top of graphs from the @fgl@...
null
https://raw.githubusercontent.com/disco-lang/disco/300195cdb385ca1178a01d85a72f91b2c4e98dd2/src/Disco/Typecheck/Graph.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------------- | Copyright : disco team and contributors Maintainer : A thin layer on top of graphs from the @fgl@ package, which allows dealing with vertices by label instead of by integer @Node@ values. -----...
Module : Disco . . Graph SPDX - License - Identifier : BSD-3 - Clause module Disco.Typecheck.Graph where import Prelude hiding (map, (<>)) import qualified Prelude as P import Control.Arrow ((&&&)) import ...
c7d8934568dec50ace5b79ff8c7201522142f3a7277f5a4c7a1e3e983f505da2
agda/agda
Common.hs
| Common syntax highlighting functions for Emacs and JSON module Agda.Interaction.Highlighting.Common ( toAtoms , chooseHighlightingMethod ) where import Agda.Interaction.Highlighting.Precise import Agda.Syntax.Common import Agda.TypeChecking.Monad (HighlightingMethod(..)) import Data.Maybe (maybeToList) impo...
null
https://raw.githubusercontent.com/agda/agda/cbba4e4c6f658e8d9d332ed6173caf98ea075904/src/full/Agda/Interaction/Highlighting/Common.hs
haskell
| Converts the 'aspect' and 'otherAspects' fields to strings that are friendly to editors.
| Common syntax highlighting functions for Emacs and JSON module Agda.Interaction.Highlighting.Common ( toAtoms , chooseHighlightingMethod ) where import Agda.Interaction.Highlighting.Precise import Agda.Syntax.Common import Agda.TypeChecking.Monad (HighlightingMethod(..)) import Data.Maybe (maybeToList) impo...
1a4372f71dd73c168606394b9b40b360983e7c151e83bd981fe9a2c760965bab
clojure-interop/google-cloud-clients
CloudRedisStub.clj
(ns com.google.cloud.redis.v1beta1.stub.CloudRedisStub "Base stub class for Google Cloud Memorystore for Redis API. This class is for advanced usage and reflects the underlying API directly." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.redis.v1beta1.stub CloudRedisStub])) (defn...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.clj
clojure
(ns com.google.cloud.redis.v1beta1.stub.CloudRedisStub "Base stub class for Google Cloud Memorystore for Redis API. This class is for advanced usage and reflects the underlying API directly." (:refer-clojure :only [require comment defn ->]) (:import [com.google.cloud.redis.v1beta1.stub CloudRedisStub])) (defn...
12a9c300ea084c6377a53feeb65882a59cb50d77d863bbee1b4aa4b4c1d87477
anurudhp/CPHaskell
c.hs
# LANGUAGE LambdaCase # import Control.Applicative (liftA2) import Control.Arrow ((>>>)) import Control.Monad.State import qualified Data.ByteString.Lazy.Char8 as C import Data.List (group) import Data.Maybe (fromJust, fromMaybe) chunksOf _ [] = [] chunksOf k xs = let (hs, ts) = splitAt k xs in hs : chunksOf k ts ma...
null
https://raw.githubusercontent.com/anurudhp/CPHaskell/67a55ab34c0365d42fb092c2378bc3972186970c/contests/codeforces/1550/c.hs
haskell
- Template ---
# LANGUAGE LambdaCase # import Control.Applicative (liftA2) import Control.Arrow ((>>>)) import Control.Monad.State import qualified Data.ByteString.Lazy.Char8 as C import Data.List (group) import Data.Maybe (fromJust, fromMaybe) chunksOf _ [] = [] chunksOf k xs = let (hs, ts) = splitAt k xs in hs : chunksOf k ts ma...
a4c8dc0eccbad687ae8df3029f183061ae64fd48b292e8a628b76b132e179f7f
alexanderjamesking/clj-wiremock
core.clj
(ns clj-wiremock.core (:require [cheshire.core :refer [generate-string parse-string]] [clj-http.client :as client]) (:import com.github.tomakehurst.wiremock.WireMockServer com.github.tomakehurst.wiremock.core.WireMockConfiguration)) (defn config "Creates a new instance of WireMockConfigura...
null
https://raw.githubusercontent.com/alexanderjamesking/clj-wiremock/9384bdfada3181002db31043c361b5efe69489e3/src/clj_wiremock/core.clj
clojure
(ns clj-wiremock.core (:require [cheshire.core :refer [generate-string parse-string]] [clj-http.client :as client]) (:import com.github.tomakehurst.wiremock.WireMockServer com.github.tomakehurst.wiremock.core.WireMockConfiguration)) (defn config "Creates a new instance of WireMockConfigura...
3e945dc8f56c933ac20faae39a74db3cafb998746ce1ce441c232789bc3d346f
yutopp/rill
codegen_context.ml
* Copyright yutopp 2015 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2015 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/_migrating/codegen_context.ml
ocaml
* Copyright yutopp 2015 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2015 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
8e494962ac9e74fc5394f07cc1450d2ac535811392f98d31edd01e25904bc9b2
LdBeth/star-lisp
no-bang-bang.lisp
-*- SYNTAX : COMMON - LISP ; MODE : LISP ; BASE : 10 ; PACKAGE : * LISP - I ; MUSER : YES -*- ;;;> ************************************************************************************ > Copyright 1990 Thinking Machines Corporation , Inc. of Cambridge , Massachusetts . ;;;> All rights reserved ;;;> ******************...
null
https://raw.githubusercontent.com/LdBeth/star-lisp/034fb97fe8780d6e9fbff7c1d8c4a6b8c331797b/source/no-bang-bang.lisp
lisp
MODE : LISP ; BASE : 10 ; PACKAGE : * LISP - I ; MUSER : YES -*- > ************************************************************************************ > All rights reserved > ************************************************************************************ No-Bang-Bang.lisp The global variables and macros define...
> Copyright 1990 Thinking Machines Corporation , Inc. of Cambridge , Massachusetts . (in-package :*lisp-i) By , with pointers from JP Massar Created : 3/19/90 Revised : 4/3/90 - I decided to do things more generically . WRS 8/90 - Added simple - pvar - argument ! ! for simulator functions . WRS ...
a449895350f2bd0b2ce6ccca4d761ff9b0f29505cb051e6e67e64e55f891612d
Tener/deeplearning-thesis
Agent.hs
module Agent where import Board import CairoRender import CommonDatatypes import Control.Monad (when) import Text.Printf import System.Random.MWC import Data.Ord import Data.List (sortBy) import qualified Data.Tree.Game_tree.Negascout as GTreeAlgo -- plansza i aktualny kolor gracza data AgentRandom = AgentRandom...
null
https://raw.githubusercontent.com/Tener/deeplearning-thesis/c56866bf6f48db3185b4b62348d292bf39a7a2af/lib/Agent.hs
haskell
plansza i aktualny kolor gracza saveBoard (unwrap brd) "board-stuck.svg" print ("random",chosen) saveBoard (unwrap brd) "board-stuck.svg" print ( " negmax finish " , ) | isFinished brd = evalBoard col brd | otherwise = do ------------------------
module Agent where import Board import CairoRender import CommonDatatypes import Control.Monad (when) import Text.Printf import System.Random.MWC import Data.Ord import Data.List (sortBy) import qualified Data.Tree.Game_tree.Negascout as GTreeAlgo data AgentRandom = AgentRandom { gen :: GenIO, color :: Color } d...