_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
5ed789fa8a317b844e3875a63c0d7035ef4c0859abd6d29006e0ded4604e91b4
ghc/testsuite
tcrun040.hs
found this example ; a mistake in typechecking -- lazy patterns made functions too strict in a version of GHC 6.7 module Main where import Foreign -- Strangely enough, this works if newtype is used... data Elem a = Elem a instance Storable a => Storable (Elem a) where sizeOf ~(Elem r) = 3 * sizeOf r ali...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_run/tcrun040.hs
haskell
lazy patterns made functions too strict in a version of Strangely enough, this works if newtype is used...
found this example ; a mistake in typechecking GHC 6.7 module Main where import Foreign data Elem a = Elem a instance Storable a => Storable (Elem a) where sizeOf ~(Elem r) = 3 * sizeOf r alignment ~(Elem r) = alignment r peek ptr = do r <- peekElemOff (castPtr ptr) 0; return (Elem r) poke ptr (El...
8035a5b3f014fa637b2803354c508767a65603408ae1eb0165190284e2686777
kowainik/policeman
Spec.hs
module Main (main) where import Hedgehog (Group (..), checkParallel) import Test.Hspec (describe, hspec) import Test.Policeman.Cabal (cabalSpec) import Test.Policeman.Version (versionRoundtripInts, versionRoundtripText, versionSpec) main :: IO () main = do hspec $ describe "Policeman" $ do cabalSpec ...
null
https://raw.githubusercontent.com/kowainik/policeman/26a92678c76b145ad9ae30054bf978a0d6ec2a58/test/Spec.hs
haskell
property tests
module Main (main) where import Hedgehog (Group (..), checkParallel) import Test.Hspec (describe, hspec) import Test.Policeman.Cabal (cabalSpec) import Test.Policeman.Version (versionRoundtripInts, versionRoundtripText, versionSpec) main :: IO () main = do hspec $ describe "Policeman" $ do cabalSpec ...
0178b9a24417d091e48f213d6e7090b42848726f99a57fc9f7228e13637f3cb3
magnetcoop/hydrogen-ce
encryption_toy.cljs
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 / (ns hyd.client.encryption-toy (:require [re-frame.core :as re-frame] [reagent.core :as reagent] [ajax.core :as ajax] ...
null
https://raw.githubusercontent.com/magnetcoop/hydrogen-ce/83450437eaeaaa47171e4de152b2951d32cf2c7a/src/hyd/client/encryption_toy.cljs
clojure
file, You can obtain one at /
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 (ns hyd.client.encryption-toy (:require [re-frame.core :as re-frame] [reagent.core :as reagent] [ajax.core :as ajax] [hyd.client.view :as v...
2a8711f57b7933e75a05f715d7747cbce2b63d84ce58d73a0ae3719332a56666
mcorbin/tour-of-clojure
when_do.clj
;; you can use do for i/o for example (println (if (= 1 1) (do (println "hello from do!") (println "1 + 1 =" 2) "returned value")) "\n") the 2 first expressions are useless (println (do "this will do nothing" (+ 10 10) ;; do nothing (+ 30 30)) ;; returned value "\n") ;; condition is ...
null
https://raw.githubusercontent.com/mcorbin/tour-of-clojure/57f97b68ca1a8c96904bfb960f515217eeda24a6/resources/public/pages/code/when_do.clj
clojure
you can use do for i/o for example do nothing returned value condition is true condition is false, return nil
(println (if (= 1 1) (do (println "hello from do!") (println "1 + 1 =" 2) "returned value")) "\n") the 2 first expressions are useless (println (do "this will do nothing" "\n") (println (when (= 1 1) (println "you can have multiple expressions in when !") "1 == 1 !") "\n") (println...
6bba1149819bcd732e209588c61023bc359207a9f85522ae2ae238411c0b9207
pedestal/samples
start.cljs
Copyright 2013 Relevance , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; 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 licens...
null
https://raw.githubusercontent.com/pedestal/samples/caaf04afe255586f8f4e1235deeb0c1904179355/chat/chat-client/app/src/chat_client/simulated/start.cljs
clojure
The use and distribution terms for this software are covered by the 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 this notice, or any other, from this software. T...
Copyright 2013 Relevance , Inc. Eclipse Public License 1.0 ( ) (ns chat-client.simulated.start (:require [io.pedestal.app.render.push.handlers.automatic :as d] [chat-client.start :as start] [chat-client.rendering :as rendering] [chat-client.simulated.services :as services] ...
e3ad4edae64243157228bf71caf14188d0508e8da7b0d59b248c37342db593a1
slipstream/SlipStreamServer
user_template_mitreid.clj
(ns com.sixsq.slipstream.ssclj.resources.user-template-mitreid " Resource that is used to create a user account from the standard OIDC authentication workflow as implemented by a MITREid server. " (:require [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.resou...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/user_template_mitreid.clj
clojure
resource description initialization: register this User template multimethods for validation
(ns com.sixsq.slipstream.ssclj.resources.user-template-mitreid " Resource that is used to create a user account from the standard OIDC authentication workflow as implemented by a MITREid server. " (:require [com.sixsq.slipstream.ssclj.resources.common.utils :as u] [com.sixsq.slipstream.ssclj.resources.resou...
235bba7d11894c8398653747ad68c841715f5019addb3e97133e622a049cbb09
input-output-hk/plutus
Common.hs
{-# LANGUAGE OverloadedStrings #-} module Hedgehog.Laws.Common where import Hedgehog (Property, cover, forAll, property) import Hedgehog qualified import Prelude implies :: Bool -> Bool -> Bool implies x y = not x || y prop_idempotent :: (Show a, Eq a) => Hedgehog.Gen a -> (a -> a -> a) -> Property prop_idempotent g...
null
https://raw.githubusercontent.com/input-output-hk/plutus/441b849f2146bd72a4f73bf4b83fc1b9593578b0/plutus-tx/testlib/Hedgehog/Laws/Common.hs
haskell
# LANGUAGE OverloadedStrings #
module Hedgehog.Laws.Common where import Hedgehog (Property, cover, forAll, property) import Hedgehog qualified import Prelude implies :: Bool -> Bool -> Bool implies x y = not x || y prop_idempotent :: (Show a, Eq a) => Hedgehog.Gen a -> (a -> a -> a) -> Property prop_idempotent g op = property $ do x <- forAll g...
492e56f71278038728d974e8994707486057597fff9388ae2fa7c9c18684b732
mbj/stratosphere
Container.hs
module Stratosphere.MediaStore.Container ( module Exports, Container(..), mkContainer ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.MediaStore.Container.CorsRuleProperty as Exports import {-# SOURC...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/mediastore/gen/Stratosphere/MediaStore/Container.hs
haskell
# SOURCE # # SOURCE #
module Stratosphere.MediaStore.Container ( module Exports, Container(..), mkContainer ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data Contai...
da9c4302238fbb93caf24e0f5942b1729779b25d0bea09b46d5a591c664d8f0a
vyorkin/tiger
temp.ml
open Core_kernel module S = Symbol We use the word " temporary " to mean a value that is temporarily held in a register and the word " label " to mean some machine - language location whose exact address is yet to be determined , just like a label in assembly language . This module manages...
null
https://raw.githubusercontent.com/vyorkin/tiger/54dd179c1cd291df42f7894abce3ee9064e18def/chapter7/lib/temp.ml
ocaml
We represent a "temporary" as a pair of integer (identifier) and an optional name, which is used for registers (and is helpful for tracing)
open Core_kernel module S = Symbol We use the word " temporary " to mean a value that is temporarily held in a register and the word " label " to mean some machine - language location whose exact address is yet to be determined , just like a label in assembly language . This module manages...
495cde667fc20a53260e77a6d5d41aa3b047a7fcb9682bd4497e7ba9c2ae4e87
ruuvi/ruuvitracker_server
configuration.clj
(ns ruuvi-server.configuration (:require [clojure.java.io :as io] [ruuvi-server.database.pool :as pool] ) (:use [clojure.tools.logging :only (debug info warn error)]) (:import [java.io PushbackReader] java.net.URI ) ) (defn read-config-with-eval "Reads a configur...
null
https://raw.githubusercontent.com/ruuvi/ruuvitracker_server/269041aa2ff450c0f35183de0264d82a5c3881f1/src/ruuvi_server/configuration.clj
clojure
Heroku DATABASE_URL looks like this: This creates the configuration object automatically when this namespace is imported.
(ns ruuvi-server.configuration (:require [clojure.java.io :as io] [ruuvi-server.database.pool :as pool] ) (:use [clojure.tools.logging :only (debug info warn error)]) (:import [java.io PushbackReader] java.net.URI ) ) (defn read-config-with-eval "Reads a configur...
603cf2d4c503d853b63b8cfdb08c229eed44fd47d050ba266f3c0052d5056bbb
3b/3bgl-misc
test.lisp
(defpackage #:compute-test (:use :cl :basecode)) (in-package #:compute-test) (defclass compute-test (basecode-glop perspective-projection basecode-clear fps-graph basecode-draw-ground-plane freelook-camera basecode-exit-on-esc ...
null
https://raw.githubusercontent.com/3b/3bgl-misc/e3bf2781d603feb6b44e5c4ec20f06225648ffd9/smoothlife/test.lisp
lisp
(%gl:bind-image-texture 0 tex 0 nil 0 :write-only :rg32f) for i2 = (floor i 8) (basecode-run (make-instance 'compute-test))
(defpackage #:compute-test (:use :cl :basecode)) (in-package #:compute-test) (defclass compute-test (basecode-glop perspective-projection basecode-clear fps-graph basecode-draw-ground-plane freelook-camera basecode-exit-on-esc ...
1ad7ec546952cc14f01e4cd324aa57c3fe9e683df0ea07bb14509955f6e6b2e5
dongcarl/guix
gnunet.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 Sree < > Copyright © 2015 , 2017 , 2018 , 2019 , 2020 < > Copyright © 2015 , 2017 , 2019 , 2020 , 2021 < > Copyright © 2016 < > Copyright © 2016 < > Copyright © 2016 , 2017 , 2018 ...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/packages/gnunet.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2015 < > Copyright © 2014 Sree < > Copyright © 2015 , 2017 , 2018 , 2019 , 2020 < > Copyright © 2015 , 2017 , 2019 , 2020 , 2021 < > Copyright © 2016 < > Copyright © 2016 < > Copyright © 2016 , 2017 , 2018 , 2019 , 2020 Nikita < > Copyright © 2016 , 2017 , 2...
b048bbf741e0b28857bdfc2252c359fea2428c621aebc337a7ae7f5ec663a18d
jimrthy/frereth
networking.clj
(ns server.networking (:require [clojure.pprint :refer [pprint]] [clojure.spec.alpha :as s] [frereth.cp.message.specs :as msg-specs] [frereth.cp [server :as server] [shared :as shared]] [frereth.cp.server.state :as srvr-state] [frer...
null
https://raw.githubusercontent.com/jimrthy/frereth/e1c4a5c031355ff1ff3bb60741eb03dff2377e1d/apps/log-viewer/src/clj/server/networking.clj
clojure
Internal Helpers Public It seems odd to split these up. Unless maybe they're the read/write portions of socket stream? For my original tests, trying to use a single stream for this wreaked havoc on things. Probably because it wasn't a duplex stream. This gives us a chance to close the socket on a failure Q:...
(ns server.networking (:require [clojure.pprint :refer [pprint]] [clojure.spec.alpha :as s] [frereth.cp.message.specs :as msg-specs] [frereth.cp [server :as server] [shared :as shared]] [frereth.cp.server.state :as srvr-state] [frer...
155591dd0abfac922297c892a4f287a95adc13740ac7bca03dda5851b1883099
2600hz/kazoo
amqp_cron_task.erl
%%%----------------------------------------------------------------------------- ( C ) 2012- , %%% 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 req...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/amqp_cron/src/amqp_cron_task.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 exp...
( C ) 2012- , Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > are one shot , sleeper , and cron mode . A one - shot schedule executes a task once after sleeping a specified A cron mode schedule act...
129e07682af21f20aecf36f9800e147aae2f00a5a49f8f1c98aaae09a41fe9b9
cstar/ejabberd-old
ejabberd_auth_internal.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_auth_internal.erl Author : < > %%% Purpose : Authentification via mnesia Created : 12 Dec 2004 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne %%% %%% This program is free software; you can...
null
https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/ejabberd_auth_internal.erl
erlang
---------------------------------------------------------------------- File : ejabberd_auth_internal.erl Purpose : Authentification via mnesia This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be...
Author : < > Created : 12 Dec 2004 by < > ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
2ee1bb5446bf2713aa32986668bb48bdf2c3ca365335c4b343b1bc1b32183e68
ygmpkk/house
PM.hs
module Util.PM(PM,tokenP,manyP,parsePM,runPM,render') where import Control.Monad(liftM,MonadPlus(..),ap) import Text.PrettyPrint {-+ An implementation of fairly conventional monadic parsing combinators -------------------------------------------------------------------- This fairly simple. There is a complication in ...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Util/PM.hs
haskell
+ An implementation of fairly conventional monadic parsing combinators -------------------------------------------------------------------- This fairly simple. There is a complication in the error to case get descent error messages. On success, a parser function returns the result and the remaining input. On error, t...
module Util.PM(PM,tokenP,manyP,parsePM,runPM,render') where import Control.Monad(liftM,MonadPlus(..),ap) import Text.PrettyPrint newtype PM res = PM {unPM ::[String] -> Either ([String],[String]) (res,[String])} runPM p = either fail id . parsePM p parsePM p args = case unPM p args of Right (r,[]) -> Right r...
8610299094901ee83372227270dec48f78d6d6508c64526612060d9b6a699013
takikawa/racket-ppa
base-env-numeric.rkt
#lang s-exp "env-lang.rkt" (begin (require (for-syntax racket/base racket/syntax syntax/parse) (only-in "../rep/type-rep.rkt" Type?) (only-in "../rep/values-rep.rkt" make-Values) racket/list racket/math racket/flonum racket/extflonum racket/unsafe/ops racket/sequence racket/match (for-template racket/...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/share/pkgs/typed-racket-lib/typed-racket/base-env/base-env-numeric.rkt
racket
TODO having definitions only at the top is really inconvenient. convenient to build large case-lambda types for fixnum-specific operations. if they return at all, we know their args were fixnums. otherwise, an error would have been thrown for the moment, this is only useful if the result is used as a test once we...
#lang s-exp "env-lang.rkt" (begin (require (for-syntax racket/base racket/syntax syntax/parse) (only-in "../rep/type-rep.rkt" Type?) (only-in "../rep/values-rep.rkt" make-Values) racket/list racket/math racket/flonum racket/extflonum racket/unsafe/ops racket/sequence racket/match (for-template racket/...
feef92e37d5ead841045fdba70d195824ef20b51fa1cb885a6cf72de044d8f9a
ollef/sixty
Representation.hs
# LANGUAGE BlockArguments # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ViewPatterns # module ClosureConverted.Representation where import Boxity import qualified Builtin import ClosureConverted.Context (Context) import qualified C...
null
https://raw.githubusercontent.com/ollef/sixty/5d630ca6fde91da5a691dc7cd195f5cbf6491eb0/src/ClosureConverted/Representation.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # TODO: Handle these special cases in a nicer way a closure ----------------------------------------------------------------------------- -----------------------------------------------------------------------------
# LANGUAGE BlockArguments # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # module ClosureConverted.Representation where import Boxity import qualified Builtin import ClosureConverted.Context (Context) import qualified ClosureConverted.Context as Context import qualified ClosureConv...
99fdf5abd9120973594cab2cddce1d5d70c9de54631bc23eb4ed9959256fd3f2
AndrasKovacs/ELTE-func-lang
Notes10.hs
# language DeriveFunctor , DeriveFoldable , DeriveTraversable , InstanceSigs , BangPatterns # {-# language ScopedTypeVariables #-} # options_ghc -Wincomplete - patterns # Teams chat : / 2 előadás témájára -- monád transzformerek programozás lencsék ( lenses ) fordítás Haskell - ről ( ) ...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/6201975309735e559d84b42b3276be995e8f2e3e/2021-22-2/ea/Notes10.hs
haskell
# language ScopedTypeVariables # monád transzformerek ------------------------------------------------------------------------------ Ponthatár ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------...
# language DeriveFunctor , DeriveFoldable , DeriveTraversable , InstanceSigs , BangPatterns # # options_ghc -Wincomplete - patterns # Teams chat : / 2 előadás témájára programozás lencsék ( lenses ) fordítás Haskell - ről ( ) parser lib kiegészítése informatív hibaüzenetekkel :...
e6f59dca329dcc9b80eba11e6e97e3596ffcbc277e350b609378cd32622dbc26
evturn/haskellbook
23.08-chapter-exercises.hs
newtype State s a = State { runState :: s -> (a, s) } ----------------------------------------------------------------------------- 1 . get :: State s s get = State $ \x -> (x, x) ----------------------------------------------------------------------------- 2 . put :: s -> State s () put x = State $ \_ -> ((), ...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/23/23.08-chapter-exercises.hs
haskell
--------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------------------------------------------------------------- --------------------------------------------------------------------------- ----------------...
newtype State s a = State { runState :: s -> (a, s) } 1 . get :: State s s get = State $ \x -> (x, x) 2 . put :: s -> State s () put x = State $ \_ -> ((), x) 3 . exec :: State s a -> s -> s exec (State sa) s = snd $ runState (State $ \_ -> sa s) s 4 . eval :: State s a -> s -> a eval (State sa) = \x -> f...
4de336e2e01741d386961f71ab24e898f959c72da979140a1188290d4f493ca9
hasktorch/hasktorch
Spec.hs
module Main where import Test.Hspec (hspec) import qualified Torch.GraduallyTyped.NN.TransformerSpec import qualified Torch.GraduallyTyped.IndexingSpec import qualified Torch.GraduallyTyped.TensorSpec main :: IO () main = hspec $ do Torch.GraduallyTyped.TensorSpec.spec Torch.GraduallyTyped.IndexingSpec.spec Tor...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/7bc22b779f0dcf67f9dbd2ca48b5ea40a8852f14/experimental/gradually-typed/test/Spec.hs
haskell
module Main where import Test.Hspec (hspec) import qualified Torch.GraduallyTyped.NN.TransformerSpec import qualified Torch.GraduallyTyped.IndexingSpec import qualified Torch.GraduallyTyped.TensorSpec main :: IO () main = hspec $ do Torch.GraduallyTyped.TensorSpec.spec Torch.GraduallyTyped.IndexingSpec.spec Tor...
9e085f48cac4368f6204abb7e5021f09fbc1651ab4ec3cea7f1567904a65252b
haskell/cabal
Json.hs
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} -- | Extremely simple JSON helper. Don't do anything too fancy with this! module Distribution.Utils.Json ( Json(..) , (.=) , renderJson ) where import Distribution.Compat.Prelude import qualified Data.ByteString.Lazy as LBS import Data.Byt...
null
https://raw.githubusercontent.com/haskell/cabal/fd185f3850fc5ec991219697cbce69b5e6e79b61/Cabal/src/Distribution/Utils/Json.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # | Extremely simple JSON helper. Don't do anything too fancy with this!
module Distribution.Utils.Json ( Json(..) , (.=) , renderJson ) where import Distribution.Compat.Prelude import qualified Data.ByteString.Lazy as LBS import Data.ByteString.Builder ( Builder, stringUtf8, intDec, toLazyByteString ) data Json = JsonArray [Json] | JsonBool !Bool | ...
b6cf85b1982b3f79eea59f47719446badf44670396f59231b9afb06f9c03dc19
dmitryvk/sbcl-win32-threads
float.lisp
;;;; the HPPA VM definition of floating point operations 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 th...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/hppa/float.lisp
lisp
the HPPA VM definition of floating point operations 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. Move functions. (note-next-instruction vop :internal-error) (note-next-instruction vop :in...
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") (define-move-fun (load-fp-zero 1) (vop x y) ((fp-single-zero) (single-reg) (fp-double-zero) (doub...
04466b55ff3580d86b2c74d437ca9de2a6f39fcd4061af4397158ba48acef34b
scotty-web/scotty
options.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import Web.Scotty import Network.Wai.Middleware.RequestLogger -- install wai-extra if you don't have this import Data.Default.Class (def) import Network.Wai.Handler.Warp (setPort) Set some settings opts :: Options opts = def { verbose = 0 , s...
null
https://raw.githubusercontent.com/scotty-web/scotty/480ed62a17dbadd5128b67f9a448339e52930c1f/examples/options.hs
haskell
# LANGUAGE OverloadedStrings # install wai-extra if you don't have this This won't display anything at startup, and will listen on localhost:4000
module Main (main) where import Web.Scotty import Data.Default.Class (def) import Network.Wai.Handler.Warp (setPort) Set some settings opts :: Options opts = def { verbose = 0 , settings = setPort 4000 $ settings def } main :: IO () main = scottyOpts opts $ do middleware logStdoutDev ...
f2399c3514b4d43ceed9c921638124dc0244803420fff2ebdf841bfce75c34bc
input-output-hk/cardano-sl
ChronoSpec.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE KindSignatures # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeFamilies #-} -- | Pos.Util specification module Test.Pos.Core.ChronoSpec ( spec ) where import Universum import qualified Data.List.NonEmpty as NE import qualified GHC.Exts as IL (I...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/core/test/Test/Pos/Core/ChronoSpec.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE RankNTypes # # LANGUAGE TypeFamilies # | Pos.Util specification
# LANGUAGE KindSignatures # module Test.Pos.Core.ChronoSpec ( spec ) where import Universum import qualified Data.List.NonEmpty as NE import qualified GHC.Exts as IL (IsList (..)) import Pos.Core.Chrono (Chrono (..), NE, NewestFirst (..), OldestFirst (..)) im...
d59c41e0724aa652650a8f57fbd50287d3215da2efebf1ce7345369c232439de
ocaml-community/obus
nm_ip4_config.mli
* nm_ip4_config.mli * ----------------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * nm_ip4_config.mli * ----------------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of ...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/bindings/network-manager/nm_ip4_config.mli
ocaml
* Ip4 configuration
* nm_ip4_config.mli * ----------------- * Copyright : ( c ) 2010 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * nm_ip4_config.mli * ----------------- * Copyright : (c) 2010, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of ...
6f542ca30130cf03bd10c81408449164cba8ac4cdf8a5fdd12d1f482db9b5cd1
damballa/parkour
sample.clj
(ns parkour.remote.sample (:require [parkour (conf :as conf) (wrapper :as w) (reducers :as pr)]) (:import [java.util ArrayList Collections Random] [org.apache.hadoop.mapreduce InputFormat] [parkour.hadoop IInputFormat] [parkour.hadoop Sample$InputFormat])) (defn input-format [] ...
null
https://raw.githubusercontent.com/damballa/parkour/2b3c5e1987e18b4c4284dfd4fcdaba267a4d7fbc/src/clojure/parkour/remote/sample.clj
clojure
(ns parkour.remote.sample (:require [parkour (conf :as conf) (wrapper :as w) (reducers :as pr)]) (:import [java.util ArrayList Collections Random] [org.apache.hadoop.mapreduce InputFormat] [parkour.hadoop IInputFormat] [parkour.hadoop Sample$InputFormat])) (defn input-format [] ...
7d2498d20e7af425cfd9620b4719bfc7b50abcf563faad5e90d7c5651106b851
hexlet-basics/exercises-clojure
index.clj
(ns index) ;BEGIN (defn max-delta [xs ys] (reduce (fn [acc [x y]] (max acc (Math/abs (- x y)))) 0 (map list xs ys))) ;END
null
https://raw.githubusercontent.com/hexlet-basics/exercises-clojure/ede14102d01f9ef736e0af811cd92f5b22a83bc2/modules/25-lists/40-reduce/index.clj
clojure
BEGIN END
(ns index) (defn max-delta [xs ys] (reduce (fn [acc [x y]] (max acc (Math/abs (- x y)))) 0 (map list xs ys)))
b8510330e8d3f079a796cc45f30d7c5d3e396089b62a1ead7361d780008df2cb
xhtmlboi/yocaml
try.mli
(** A specialised version of [Result] (with {!type:Error.t} as [Error] part). [Try] is very useful for producing sequential validations, where as soon as a step produces an error, the computation sequence is interrupted.*) * { 1 Type } (** A specialised version of [Result]. *) type 'a t = ('a, Error.t) Prefac...
null
https://raw.githubusercontent.com/xhtmlboi/yocaml/3d169cdaaec6f84f841b4212d232c1ee6f749b01/lib/yocaml/try.mli
ocaml
* A specialised version of [Result] (with {!type:Error.t} as [Error] part). [Try] is very useful for producing sequential validations, where as soon as a step produces an error, the computation sequence is interrupted. * A specialised version of [Result]. * {1 Constructors} Production of valid ([Ok]) or i...
* { 1 Type } type 'a t = ('a, Error.t) Preface.Result.t val ok : 'a -> 'a t val error : Error.t -> 'a t * { 1 Conversions } val to_validate : 'a t -> ('a, Error.t Preface.Nonempty_list.t) Preface.Validation.t val from_validate : ('a, Error.t Preface.Nonempty_list.t) Preface.Validation.t -> 'a t val ...
b0cbd29a756137ccd4af28088871cd411a0ad488cbffb8546f8caed65066c1e9
mfoemmel/erlang-otp
ssl_alert.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/ssl/src/ssl_alert.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2007 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " data to the application . All data on th...
5f2d9e658fdc797bc3754ed3c0a02fdedcb2a8994dcbb539624b1ac9716b48ce
srid/reflex-dom-pandoc
Raw.hs
{-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # -- | This module exists primarily so as to provid...
null
https://raw.githubusercontent.com/srid/reflex-dom-pandoc/63ff62ee9c7f4a8c231db16bb91b858c8a39aebd/src/Reflex/Dom/Pandoc/Raw.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | This module exists primarily so as to provide an alternative to `elDynHtml'` that works with the static builder. `elRawHtml` is pretty much | Class to define how to render pandoc raw nodes | The constraints required to render | Render...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # what you typically need ; and if you are on GHCJS , you should define how it will behave via writing instances for ` PandocRaw ` . modul...
0b4950c319c8db7149be00cac92cdb4493ed03d4f6d34c83ad61a16fd4f29fb0
mewa/clojure-k8s
core.clj
(ns kubernetes.api.core (:require [kubernetes.core :refer [call-api check-required-params with-collection-format]]) (:import (java.io File))) (defn get-core-api-versions-with-http-info " get available API versions" [] (call-api "/api/" :get {:path-params {} :header-params {} ...
null
https://raw.githubusercontent.com/mewa/clojure-k8s/a7e8d82f0e0bc47e5678c72d7d9b8216080ccffc/src/kubernetes/api/core.clj
clojure
(ns kubernetes.api.core (:require [kubernetes.core :refer [call-api check-required-params with-collection-format]]) (:import (java.io File))) (defn get-core-api-versions-with-http-info " get available API versions" [] (call-api "/api/" :get {:path-params {} :header-params {} ...
97c1c114a9fa95ab6a940e83a8d8aafee21010a2ad9150403ca0fc460f0de58a
bmeurer/ocaml-experimental
frx_req.mli
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of Objective Caml (* *) , , and ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/otherlibs/labltk/frx/frx_req.mli
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of Objective Caml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
6832b5fae4e6703acac07c5be762087653e2f0b78d37db8aa7d93f06e6b033d9
default-kramer/plisqin
query-tests-typed.rkt
#lang racket (require plisqin "helpers.rkt") (define-syntax-rule (make Type [content ...]) (let ([token (%%scalar content ...)]) (>> token #:cast Type))) (check-sql (from a 'A (select (count a))) #:all "select count(*) from A a") (check-sql (from a 'A (sel...
null
https://raw.githubusercontent.com/default-kramer/plisqin/26421c7c42656c873c4e0a4fc7f48c0a3ed7770f/plisqin-test%7E/query-tests-typed.rkt
racket
#lang racket (require plisqin "helpers.rkt") (define-syntax-rule (make Type [content ...]) (let ([token (%%scalar content ...)]) (>> token #:cast Type))) (check-sql (from a 'A (select (count a))) #:all "select count(*) from A a") (check-sql (from a 'A (sel...
a5370bc6bd76b0c1dcea77697da1686a852f0ae17bfa45eb51e825b37279aec4
LPCIC/matita
nDiscriminationTree.mli
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/ng_refiner/nDiscriminationTree.mli
ocaml
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
601bf22e1222fe0f77df32f07b1f3e146387e096cf10fdda80cb2c8239b1befe
Z572/guile-wlroots
pointer.scm
(define-module (wlroots types pointer) #:use-module (oop goops) #:duplicates (merge-accessors merge-generics replace warn-override-core warn last) #:use-module (wlroots types) #:use-module (wlroots types input-device) #:use-module (wlroots utils) #:use-module (wayland util) #:use-module (bytestructures gu...
null
https://raw.githubusercontent.com/Z572/guile-wlroots/dc6cd05d5c46f811d75cbc30d1464820b19b1de8/wlroots/types/pointer.scm
scheme
(define-module (wlroots types pointer) #:use-module (oop goops) #:duplicates (merge-accessors merge-generics replace warn-override-core warn last) #:use-module (wlroots types) #:use-module (wlroots types input-device) #:use-module (wlroots utils) #:use-module (wayland util) #:use-module (bytestructures gu...
793f970de285d3dd0ef9bafeff3ed6939835777551f658b6673625850814c1aa
BioHaskell/hPDB
Common.hs
-- | Common datatype aliases. module Bio.PDB.Common(String(..), V3(..)) where import Linear import Prelude hiding(String) import qualified Data.ByteString.Char8 as BS import Control.DeepSeq(NFData(..)) import Bio.PDB.Util.MissingInstances() | We use only strict ' ByteString ' as strings in PDB parser . type Stri...
null
https://raw.githubusercontent.com/BioHaskell/hPDB/5be747e2f2c57370b498f4c11f9f1887fdab0418/Bio/PDB/Common.hs
haskell
| Common datatype aliases. | Datatype for 3D locations ( numbers are in ångströms . ) rnf (V3 (x, y, z)) = x `seq` y `seq` z `seq` ()
module Bio.PDB.Common(String(..), V3(..)) where import Linear import Prelude hiding(String) import qualified Data.ByteString.Char8 as BS import Control.DeepSeq(NFData(..)) import Bio.PDB.Util.MissingInstances() | We use only strict ' ByteString ' as strings in PDB parser . type String = BS.ByteString instance N...
ab7e8ff4312c9d0395d32aa00581f6a269f16be8c42bec5097dfb0e5572993fb
gerritjvv/tcp-driver
conn_test.clj
(ns ^{:doc "Test the TCP connection implementation"} tcp-driver.io.conn-test (:require [tcp-driver.io.stream :as tcp-stream] [tcp-driver.io.conn :as tcp-conn] [tcp-driver.test.util :as test-util] [clojure.test :refer :all])) (defn test-send-receive [] (test-util/with-echo-server (fn [serv...
null
https://raw.githubusercontent.com/gerritjvv/tcp-driver/2a9373cda20d176bfb5b00e63f4816fa83c88591/test/tcp_driver/io/conn_test.clj
clojure
(ns ^{:doc "Test the TCP connection implementation"} tcp-driver.io.conn-test (:require [tcp-driver.io.stream :as tcp-stream] [tcp-driver.io.conn :as tcp-conn] [tcp-driver.test.util :as test-util] [clojure.test :refer :all])) (defn test-send-receive [] (test-util/with-echo-server (fn [serv...
f2d36fbb5a6323f4aeec348d27e001f875f5d0b5d1b3696b76b27df0009f59d4
Eduap-com/WordMat
buildq.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/buildq.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; TRANS5 > *****...
(in-package :maxima) (macsyma-module buildq) Exported functions are $ BUILDQ and MBUILDQ - SUBST * * * * * * BUILDQ : A backquote - like construct for * * * * * * SIMPLIFICATION : (defprop $buildq simpbuildq operators) (defprop %buildq simpbuildq operators) (defun simpbuildq (x ign...
ccb4ffbfc1b5aab8f0989098246a7b32bc38b2d40ad4c3e9872ff982b6a3642c
mentat-collective/emmy
simplify.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.simplify (:require [emmy.expression :as x] [emmy.expression.analyze :as a] [emmy.polynomial :as poly] [emmy.polynomial.factor :as factor] [emmy.rational-function :as rf] [emmy.simplify.rules :as rules] ...
null
https://raw.githubusercontent.com/mentat-collective/emmy/535b237a8e3fd7067b9c0ade8b2a4b3419f9f132/src/emmy/simplify.cljc
clojure
everything else is done. It's not right to get operator multiplication going and then attempt to canonicalize the expression, even if it sort of works.
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.simplify (:require [emmy.expression :as x] [emmy.expression.analyze :as a] [emmy.polynomial :as poly] [emmy.polynomial.factor :as factor] [emmy.rational-function :as rf] [emmy.simplify.rules :as rules] ...
826ff4930276af19e29777f82c2f5ceceddb994f3652abf65182c189f6265be2
jimcrayne/jhc
read015.hs
-- !!! Testing whether the parser likes empty declarations.. module ShouldCompile where { ;;;;;x=let{;;;;;y=2;;;;}in y;;;;;}
null
https://raw.githubusercontent.com/jimcrayne/jhc/1ff035af3d697f9175f8761c8d08edbffde03b4e/regress/tests/0_parse/2_pass/ghc/read015.hs
haskell
!!! Testing whether the parser likes empty declarations..
module ShouldCompile where { ;;;;;x=let{;;;;;y=2;;;;}in y;;;;;}
17c9610e7a51499978a9e78f5fca8c5ce05f38c41160bee406478b03eae6b9ab
sarabander/p2pu-sicp
Ex1.42.scm
(define (compose f g) (λ (x) (f (g x)))) (define (square x) (* x x)) = > 49 ((compose sin sqrt) 7)
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/1.3/Ex1.42.scm
scheme
(define (compose f g) (λ (x) (f (g x)))) (define (square x) (* x x)) = > 49 ((compose sin sqrt) 7)
47931257e196b5af46f8cc39c7fca00135cbce8437979bd91599562708627acb
haskell-gi/haskell-gi
Alias.hs
module Data.GI.GIR.Alias ( documentListAliases ) where import qualified Data.Map as M import Data.Maybe (fromMaybe) import Data.Text (Text) import qualified Data.Text as T import Text.XML (Element(elementAttributes), Document(documentRoot)) import Data.GI.GIR.BasicTypes (Alias(..), Type(..), BasicType(..)) im...
null
https://raw.githubusercontent.com/haskell-gi/haskell-gi/bff8f3b92bf2594ea3d6745c346a8de594fc3709/lib/Data/GI/GIR/Alias.hs
haskell
| Find all aliases in a given namespace. | Parse all the aliases in the current namespace | Parse a single alias | Find all aliases in a given document.
module Data.GI.GIR.Alias ( documentListAliases ) where import qualified Data.Map as M import Data.Maybe (fromMaybe) import Data.Text (Text) import qualified Data.Text as T import Text.XML (Element(elementAttributes), Document(documentRoot)) import Data.GI.GIR.BasicTypes (Alias(..), Type(..), BasicType(..)) im...
2d07d32aa50e9982c25f3eb80d19aa8ba162bf2ffb096dfc92926a072178258b
mhaemmerle/grimoire
client.cljs
(ns grimoire-client.core) (defn- on-open [event] (.log js/console "connection open")) (defn- on-message [event] (.log js/console "received message" event)) (defn- on-error [event] (.log js/console "error" event)) (defn ^:export init [user-id] (let [source (js/EventSource. (str ":4000/" user-id "/eve...
null
https://raw.githubusercontent.com/mhaemmerle/grimoire/1fe3506838ec125888fe9241bb14ad57018c3835/src-cljs/grimoire-client/client.cljs
clojure
(ns grimoire-client.core) (defn- on-open [event] (.log js/console "connection open")) (defn- on-message [event] (.log js/console "received message" event)) (defn- on-error [event] (.log js/console "error" event)) (defn ^:export init [user-id] (let [source (js/EventSource. (str ":4000/" user-id "/eve...
f2d45a8d5f7d6b109fce99562c5fb4674f6d02f743b446ca3fb65a9c1d3e0c33
neongreen/haskell-ex
Main.hs
{- README -- Code Kata : JSON Print Define a data type for JSON and print it as JSON (without indentation). Don't forget that you should support floating-point numbers and escaping in strings. -} module Main where import Data.Map (Map) import qualified Data.Map as Map import qualified Data.List as List import qualif...
null
https://raw.githubusercontent.com/neongreen/haskell-ex/345115444fdf370a43390fd942e2851b9b1963ad/week4/json-print/jasonkuhrt/Main.hs
haskell
README -- Code Kata : JSON Print Define a data type for JSON and print it as JSON (without indentation). Don't forget that you should support floating-point numbers and escaping in strings. | Stringify a JSON type to a valid JSON string. String Handling -- Helpers -- Test --
module Main where import Data.Map (Map) import qualified Data.Map as Map import qualified Data.List as List import qualified Data.Char as Char import Text.Printf (printf) data JSON = Nil | B Bool | S String | N Double | L [JSON] | O (Map String JSON) deriving (Show) stringify :: JSON -> String ...
b383f014f0081e605246895e2a1d651333cf6b4e880624b2894a58cdae6524d2
conscell/hugs-android
Either.hs
# OPTIONS_GHC -fno - implicit - prelude # ----------------------------------------------------------------------------- -- | -- Module : Data.Either Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : ex...
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/packages/base/Data/Either.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Either License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable The Either type, and associated operations. -----------------------------...
# OPTIONS_GHC -fno - implicit - prelude # Copyright : ( c ) The University of Glasgow 2001 module Data.Either ( Either(..), ) where
1e6602bd2ce7114b042b7ef3039e5f82b06844a61ce3de45cbc747e40ca29c7a
fission-codes/fission
Path.hs
module Fission.CLI.Environment.Path ( globalBinaryDir , globalIPFSBin , globalIPFSRepo , globalTmpDir , globalKeyDir , getSigningKeyPath , globalUCANDir , globalWNFSDir , ucanStorePath , wnfsKeyStorePath * , module Fission.CLI.Environment.Class ) where import qualified Network.IPFS.BinPath.T...
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-cli/library/Fission/CLI/Environment/Path.hs
haskell
module Fission.CLI.Environment.Path ( globalBinaryDir , globalIPFSBin , globalIPFSRepo , globalTmpDir , globalKeyDir , getSigningKeyPath , globalUCANDir , globalWNFSDir , ucanStorePath , wnfsKeyStorePath * , module Fission.CLI.Environment.Class ) where import qualified Network.IPFS.BinPath.T...
de1212ffd8b1f3be0ed1b415bb78e6ff439c4d1ed6acbe504c00ea37fa012169
weavejester/ragtime
project.clj
(defproject dev.weavejester/ragtime "0.9.3" :description "A database-independent migration library" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[dev.weavejester/ragtime.core "0.9.3"] [dev.weavejester/ragtime.jdbc "0.9.3"] [dev.w...
null
https://raw.githubusercontent.com/weavejester/ragtime/091a7a7e09e6dc1011c1d3805f3c8ae0e51f199c/project.clj
clojure
(defproject dev.weavejester/ragtime "0.9.3" :description "A database-independent migration library" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[dev.weavejester/ragtime.core "0.9.3"] [dev.weavejester/ragtime.jdbc "0.9.3"] [dev.w...
adfa6c4b415a98be46e0845dd8626216883a9568185b9f7a9904276f725606ed
GaloisInc/hpb
Main_hpb.hs
# LANGUAGE CPP # module Main (main) where import Control.Exception import Control.Lens import Control.Monad (when) import qualified Data.ByteString.Lazy as LazyBS import Data.Foldable (forM_) import Data.Maybe import Data.Sequence (Seq) import qualified Data.Sequence as Seq import qualified Data.Text as Text import Da...
null
https://raw.githubusercontent.com/GaloisInc/hpb/60485aa40569f283ca9dfe84677cc4fc9422f528/hpb/Main_hpb.hs
haskell
| Initial arguments if nothing is specified. | Action to use for assigning. | List of paths to output. | List of directories to use for searching for imports. | List of directories to use for searching for imports. | List of directories to use for searching for imports.
# LANGUAGE CPP # module Main (main) where import Control.Exception import Control.Lens import Control.Monad (when) import qualified Data.ByteString.Lazy as LazyBS import Data.Foldable (forM_) import Data.Maybe import Data.Sequence (Seq) import qualified Data.Sequence as Seq import qualified Data.Text as Text import Da...
bfda783808ed5489b4f00551961e9f4cdeaaa772415df2e3707a7912bcc93f3a
originrose/think.datatype
base_macros.clj
(ns think.datatype.base-macros (:require [clojure.core.matrix :as m])) (defmacro try-catch-any [try-body & catch-body] `(try ~try-body (catch Throwable ~(first catch-body) ~@(rest catch-body)))) (defmacro check-range [item offset elem-count] `(when-not (<= (+ ~offset ~elem-count) ...
null
https://raw.githubusercontent.com/originrose/think.datatype/31372d6e18fe3a5146262693c0df5256a2a58095/src/think/datatype/base_macros.clj
clojure
(ns think.datatype.base-macros (:require [clojure.core.matrix :as m])) (defmacro try-catch-any [try-body & catch-body] `(try ~try-body (catch Throwable ~(first catch-body) ~@(rest catch-body)))) (defmacro check-range [item offset elem-count] `(when-not (<= (+ ~offset ~elem-count) ...
1d144782099e4cf1e1a5abec6c7eb4b3d4d5354c1cc2fd2aeb8343c1abca437f
michiakig/LispInSmallPieces
chap8c.scm
$ I d : chap8c.scm , v 4.3 2006/11/24 18:41:11 ;;;(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) ;;; This file is part of the files that accompany the book: LISP Implantation Semantique Programmation ( InterEditions , France ) By Christian Queinnec < > ;;; Newest version may be...
null
https://raw.githubusercontent.com/michiakig/LispInSmallPieces/0a2762d539a5f4c7488fffe95722790ac475c2ea/src/chap8c.scm
scheme
(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) This file is part of the files that accompany the book: Newest version may be retrieved from: Check the README file before using this file. (((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) Modification of chap6d.scm t...
$ I d : chap8c.scm , v 4.3 2006/11/24 18:41:11 LISP Implantation Semantique Programmation ( InterEditions , France ) By Christian Queinnec < > ( IP 128.93.2.54 ) ftp.inria.fr : INRIA / Projects / icsla / Books / LiSP*.tar.gz (define (meaning e r tail?) (if (atom? e) (if (symbol? e) (meaning...
3b6ca59df0ef55ac866b5f3819cb474e6e04d0a9f2ddea7e33fe81164a611ccc
sosy-lab/tbf
heapify.inferred.mli
val mkSimpleField : Cil.compinfo -> string -> Cil.typ -> Cil.location -> Cil.fieldinfo val heapifyNonArrays : bool ref val containsArray : Cil.typ -> bool class heapifyModifyVisitor : Cil.lhost -> Cil.fieldinfo list -> (Cil.varinfo * int) list -> Cil.exp -> Cil.fundec -> object method queueInstr : Cil...
null
https://raw.githubusercontent.com/sosy-lab/tbf/18d08d6cee6fbfbad4d4ebfa7aed235521edec2b/tbf/tools/crest/cil/_build/src/ext/heapify.inferred.mli
ocaml
val mkSimpleField : Cil.compinfo -> string -> Cil.typ -> Cil.location -> Cil.fieldinfo val heapifyNonArrays : bool ref val containsArray : Cil.typ -> bool class heapifyModifyVisitor : Cil.lhost -> Cil.fieldinfo list -> (Cil.varinfo * int) list -> Cil.exp -> Cil.fundec -> object method queueInstr : Cil...
fdcadf8008c1c88444a741030d388fb41ee7c46f1f9999f901a0b9ca0c70c74f
unnohideyuki/bunny
sample282.hs
main = do putStrLn $ showList [1] "" where showList xs = (++) (showlist' xs) where showlist' [] = "[]" showlist' [x] = "[" ++ show x ++ "]" showlist' (x:xs) = "[" ++ foldl (\s t -> s ++ "," ++ show t) (show x) xs ++ "]"
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample282.hs
haskell
main = do putStrLn $ showList [1] "" where showList xs = (++) (showlist' xs) where showlist' [] = "[]" showlist' [x] = "[" ++ show x ++ "]" showlist' (x:xs) = "[" ++ foldl (\s t -> s ++ "," ++ show t) (show x) xs ++ "]"
8d88a24b40af799bd87a7c72c9775e5619b2127b3540438de1e64f14598877ab
erleans/erleans
erleans_sup.erl
%%%---------------------------------------------------------------------------- Copyright 2019 . All Rights Reserved . %%% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You may obtain a copy of the License at %%% %%% ...
null
https://raw.githubusercontent.com/erleans/erleans/7d640d84654b45a27399ca258406c31005d600df/src/erleans_sup.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 ...
Copyright 2019 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(erleans_sup). -behaviour(supervisor). -export([start_link/1]). -export([init/1]). -define(SERVER, ?MODULE). -spec start...
ef65a539eb9bb2fe413a2fb1388c5867f2f4fd4b31ef0a61f2be0070f9c275b6
spawnfest/eep49ers
wxHtmlWindow.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2009 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxHtmlWindow.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2009 - 2020 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(wxHtmlWindow). -include("wxe.hrl"). -export([appendToPage/2,destroy/1,getOpenedAnchor/1,getOpenedPage/1,getO...
5c6076991741d549c3aa1f77fa4980452a2d34e5258e76b56991e592a5553204
mainland/language-c-quote
gen-instances.hs
# LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE StandaloneDeriving # module Main where import Data.Generics import Language.C.Syntax import Derive main :: IO () main = do #undef DERIVE #define DERIVE(a) deriveM deriveLocated (undefined::a) DERIVE(Id) DERIVE(StringLit) DERIVE(Storage) ...
null
https://raw.githubusercontent.com/mainland/language-c-quote/af3db8f3e3394447d2c191868d2ec9afaa38f6b4/bin/gen-instances.hs
haskell
# LANGUAGE DeriveDataTypeable #
# LANGUAGE CPP # # LANGUAGE StandaloneDeriving # module Main where import Data.Generics import Language.C.Syntax import Derive main :: IO () main = do #undef DERIVE #define DERIVE(a) deriveM deriveLocated (undefined::a) DERIVE(Id) DERIVE(StringLit) DERIVE(Storage) DERIVE(TypeQual) DERIVE(Sign) ...
c934c3b5d957338204dc9f34a27129e789499375e36873373865139816ca9c07
lspitzner/brittany
Test387.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } func :: [ ( lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd , lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd , lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd ) ]
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test387.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
func :: [ ( lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd , lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd , lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd ) ]
bf1f65dd5e46d0c8977e8420bb751bcd206d4dd6df9f009f9e797bbbb99aeee0
VisionsGlobalEmpowerment/webchange
icon_page_text_over_image_at_bottom.cljs
(ns webchange.ui.components.icon.layout.icon-page-text-over-image-at-bottom) (def data [:svg {:xmlns "" :width "104" :height "142" :viewBox "0 0 104 142" :fill "none" :stroke "#DCE3F5" :stroke-width "2" :class-name "stroke-colored"} [:g [:rect {:x "1" :y "1" :width "...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/0df52dd08d54f14d4ec5d2717f48031849a7ee16/src/cljs/webchange/ui/components/icon/layout/icon_page_text_over_image_at_bottom.cljs
clojure
(ns webchange.ui.components.icon.layout.icon-page-text-over-image-at-bottom) (def data [:svg {:xmlns "" :width "104" :height "142" :viewBox "0 0 104 142" :fill "none" :stroke "#DCE3F5" :stroke-width "2" :class-name "stroke-colored"} [:g [:rect {:x "1" :y "1" :width "...
c23bbf74fe5076df6dbb225011dae7159a755ef63daf55303d5a6213597a649a
janestreet/accessor_base
accessor_ordering.mli
open! Base open! Import include sig type t = | Less | Equal | Greater [@@deriving accessors] end with type t := Ordering.t
null
https://raw.githubusercontent.com/janestreet/accessor_base/8384c29a37e557168ae8a43b2a5a531f0ffc16e4/src/accessor_ordering.mli
ocaml
open! Base open! Import include sig type t = | Less | Equal | Greater [@@deriving accessors] end with type t := Ordering.t
12b71d3c8a9a4cb9d77d4a2be3fb8f830dab78c6d96f39e426e7017767a32a74
soulomoon/SICP
Exercise4.39.scm
Exercise 4.39 : Does the order of the restrictions in the multiple - dwelling procedure affect the answer ? Does it affect the time to find an answer ? If you think it matters , demonstrate a faster program obtained from the given one by reordering the restrictions . If you think it does not matter , argue your case ...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter4/Exercise4.39.scm
scheme
(module test-time1 swindle (provide test-time1) (define test-time1 test-time) ) it does not effect the answer and it does effect the speed and each require would effect the latter require to succed or not, so it is actually a harder math problem, which i wish not spending too much time on it.
Exercise 4.39 : Does the order of the restrictions in the multiple - dwelling procedure affect the answer ? Does it affect the time to find an answer ? If you think it matters , demonstrate a faster program obtained from the given one by reordering the restrictions . If you think it does not matter , argue your case ...
4b0cd89777a0bb143b3e6ffdde98e45e6241b273f656d742303d979c092dadf7
francoisdevlin/Decorate
core.clj
(ns decorators.test.core (:use [decorators.core]) (:use [clojure.test])) (defn x2 [x] (* 2 x)) (deftest test-to-decorator (let [map-dec (to-decorator map) x2-map (map-dec x2)] (is (x2-map [1 2 3]) '(2 4 6)))) (defn force-positive [f] (fn wrap [& args] (if (some neg? arg...
null
https://raw.githubusercontent.com/francoisdevlin/Decorate/5d630eeb3d24a188555b86772315ceca5e755eb4/test/decorators/test/core.clj
clojure
(ns decorators.test.core (:use [decorators.core]) (:use [clojure.test])) (defn x2 [x] (* 2 x)) (deftest test-to-decorator (let [map-dec (to-decorator map) x2-map (map-dec x2)] (is (x2-map [1 2 3]) '(2 4 6)))) (defn force-positive [f] (fn wrap [& args] (if (some neg? arg...
35165798f66488b6e817338e810e6bc7be72cf2482755e3abaa696386356feaf
swarm-game/swarm
TestBoolExpr.hs
{-# LANGUAGE OverloadedStrings #-} -- | SPDX - License - Identifier : BSD-3 - Clause -- -- Boolean expression unit tests module TestBoolExpr where import Data.BoolExpr qualified as BE import Data.BoolExpr.Simplify qualified as Simplify import Data.List.NonEmpty (NonEmpty ((:|))) import Data.Set qualified as Set imp...
null
https://raw.githubusercontent.com/swarm-game/swarm/affc8668b77b7e85d3d23c182a5159df36d17306/test/unit/TestBoolExpr.hs
haskell
# LANGUAGE OverloadedStrings # | Boolean expression unit tests
SPDX - License - Identifier : BSD-3 - Clause module TestBoolExpr where import Data.BoolExpr qualified as BE import Data.BoolExpr.Simplify qualified as Simplify import Data.List.NonEmpty (NonEmpty ((:|))) import Data.Set qualified as Set import Swarm.Game.Scenario.Objective.Logic import Swarm.Game.Scenario.Objective...
38abc7c91d407f7709e6a29b78343490e4f69b4966032ecb3a1c8e8ef9c39535
CLowcay/hgbc
Window.hs
# LANGUAGE RecordWildCards # module Window ( Window, Notification (..), sdlWindow, new, send, dispatchEvent, ) where import Control.Concurrent (ThreadId, throwTo) import Control.Exception (Exception) import Control.Monad.IO.Class (MonadIO (..)) import Data.Int (Int32) import qualified SDL impo...
null
https://raw.githubusercontent.com/CLowcay/hgbc/76a8cf91f3c3b160eadf019bc8fc75ef07601c2f/sdl/src/Window.hs
haskell
| Notification of a window event. | The window was closed. | The emulator has been paused. | The emulator has stopped after a fault. | The emulator has been resumed. | The window size was changed. | The window was moved. | Create a new 'Window' from an 'SDL.Window'. | Send a 'Notification' to a window. approp...
# LANGUAGE RecordWildCards # module Window ( Window, Notification (..), sdlWindow, new, send, dispatchEvent, ) where import Control.Concurrent (ThreadId, throwTo) import Control.Exception (Exception) import Control.Monad.IO.Class (MonadIO (..)) import Data.Int (Int32) import qualified SDL impo...
4faa17e5706f1da4b7ed8e4a192994eb993d648ab5fb88a716cb9f300296991b
ghcjs/ghcjs-dom
WebKitSubtleCrypto.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.WebKitSubtleCrypto (js_encrypt, encrypt, encrypt_, js_decrypt, decrypt, decrypt_, ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/WebKitSubtleCrypto.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/WebKitSubtleCrypto.verify Mozilla WebKitSubtleCrypto.verify documentation> | <-US/docs/Web/API/WebKitSubtleCrypto.verify Mozilla WebKitSubtleCrypto.verify documentation>
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.WebKitSubtleCrypto (js_encrypt, encrypt, encrypt_, js_decrypt, decrypt, decrypt_, js_sign, sign, sign_, js_verify, verify, verify_, js_digest, digest, digest_, js_generat...
3b03e120b775e48ab6338ee9db95c259fc617e77fac559fb68f9452822b4e965
lspitzner/exference
EitherT.hs
module Control.Monad.Trans.Either where newtype EitherT e m a = EitherT (m (Data.Either.Either e a)) runEitherT :: EitherT e m a -> m (Data.Either.Either e a) instance Control.Monad.Monad m => Control.Monad.Monad (EitherT e m)
null
https://raw.githubusercontent.com/lspitzner/exference/d8a336f8b9df905e54173339f78ba892daa3f688/environment/EitherT.hs
haskell
module Control.Monad.Trans.Either where newtype EitherT e m a = EitherT (m (Data.Either.Either e a)) runEitherT :: EitherT e m a -> m (Data.Either.Either e a) instance Control.Monad.Monad m => Control.Monad.Monad (EitherT e m)
c701cd17c956a3c7a05a21d6f0652545fda6317d140497f13aada166480b02ee
dalaing/little-languages
Value.hs
module Term.Eval.Value where import Data.Foldable (asum) import Term TODO this is not really a variable , at least if we 're generating closed -- terms, perhaps need to fix up the generation or the tests valueTmVar :: Term n a -> Maybe (Term n a) valueTmVar (TmVar x) = Just $ TmVar x valueTmVar _ = ...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/unityped/lc/src/Term/Eval/Value.hs
haskell
terms, perhaps need to fix up the generation or the tests
module Term.Eval.Value where import Data.Foldable (asum) import Term TODO this is not really a variable , at least if we 're generating closed valueTmVar :: Term n a -> Maybe (Term n a) valueTmVar (TmVar x) = Just $ TmVar x valueTmVar _ = Nothing valueTmLam :: Term n a -> Maybe (Term n...
ddc298cf9297a14f271779002ece2e96a1662ad4c83865387b8844f4d0704c5c
tonyg/rmacs
ring.rkt
#lang racket/base (provide (struct-out ring) make-ring ring-ref ring-rotate! ring-add-item! ring-remove-item! ) (require racket/match) (require "circular-list.rkt") A Ring is a ( ring ) . (struct ring ([items #:mutable] max-count )...
null
https://raw.githubusercontent.com/tonyg/rmacs/8c99dd5dfa22f1f34707bbe957de268dc6a7a632/rmacs/ring.rkt
racket
#lang racket/base (provide (struct-out ring) make-ring ring-ref ring-rotate! ring-add-item! ring-remove-item! ) (require racket/match) (require "circular-list.rkt") A Ring is a ( ring ) . (struct ring ([items #:mutable] max-count )...
eb5c216532a9a27a6d641dce50035193e1f46331be3e6b2f0542f6bf998db2e1
kframework/semantic-approaches
Main.hs
module Main where import Prelude hiding ( readFile ) import Data.Text.IO ( readFile ) import Text.Megaparsec import Options.Applicative import Options.Applicative.Builder.Extra import Options.Applicative.MainOptions import RunImp ( runImp ) import RunImpPP ( runImpPP) main :: IO () main = do { options <- comman...
null
https://raw.githubusercontent.com/kframework/semantic-approaches/6f64eac09e005fe4eae7141e3c0e0f5711da0647/haskell/semantic-styles/app/Main.hs
haskell
module Main where import Prelude hiding ( readFile ) import Data.Text.IO ( readFile ) import Text.Megaparsec import Options.Applicative import Options.Applicative.Builder.Extra import Options.Applicative.MainOptions import RunImp ( runImp ) import RunImpPP ( runImpPP) main :: IO () main = do { options <- comman...
ff43c65eda2f3d36460d7e18782babe09768a9e67ca8eda113a86bec7ec6dd34
s-expressionists/Incless
interface.lisp
(in-package #:incless-intrinsic) (defclass intrinsic-client () ()) (defvar *client* (make-instance 'intrinsic-client)) (defgeneric print-object (object stream)) (defun write (object &key (stream *standard-output*) ((:array *print-array*) *print-array*) ((:base *print-base*) *print-base*...
null
https://raw.githubusercontent.com/s-expressionists/Incless/0f4a2b591f621753d691706ae43db5b78bddc9f6/src/intrinsic/interface.lisp
lisp
(in-package #:incless-intrinsic) (defclass intrinsic-client () ()) (defvar *client* (make-instance 'intrinsic-client)) (defgeneric print-object (object stream)) (defun write (object &key (stream *standard-output*) ((:array *print-array*) *print-array*) ((:base *print-base*) *print-base*...
dbdd71e333a6391a3cc3fbd39280ebf23405f5f3872e81a34d806fadaddfba9a
rlepigre/subml
timed.mli
(****************************************************************************) * { 3 Undoable references } (****************************************************************************) (** This module provides alternative functions for updating references (that i...
null
https://raw.githubusercontent.com/rlepigre/subml/6d2b35276d8d299bef9d5e70653a88be7f89f7f1/src/timed.mli
ocaml
************************************************************************** ************************************************************************** * This module provides alternative functions for updating references (that is, terms of type ['a ref]) and enables the restoration of a previously saved state by ...
* { 3 Undoable references } * [ Time ] submodule allows to [ save ] the current time and [ rollback ] the references . If the time is not accessible . old values are collected by the GC if no time are accessible that would allow to rollback to this...
6eef72b85a26bcb6fc57367dd1dfb54868f5b95296a768b803cca8ec5b1aae74
inria-parkas/sundialsml
idaHeat2D_kry.ml
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2009/09/30 23:25:59 $ * ----------------------------------------------------------------- * Programmer(s ): , and * @ LLNL * ----------------------------------------------------...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a72ebfc84b55470ed97fbb0b45d700deebfc1664/examples/ida/serial/idaHeat2D_kry.ml
ocaml
Problem Constants User data number of grid points vector of prec. diag. elements Loop over interior points; set res = up - (central difference). Compute the inverse of the preconditioner diagonal elements. * set_initial_profile: routine to initialize u and u' vectors. res_heat sets res to negative of ...
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2009/09/30 23:25:59 $ * ----------------------------------------------------------------- * Programmer(s ): , and * @ LLNL * ----------------------------------------------------...
fa7f287c609cee904b7855c5011817e8f39fc42c8588e0c1679177a9de8fc511
facebook/flow
module_info.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/d9917bafb64def6d5f01353d2a54ec1e31c40f56/src/typing/module_info.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
cb00088c6e715714099901c7a60b1fea43442d35669307e24703774796846698
ergenius/t__
t__po.erl
-*- coding : utf-8 -*- Copyright ( c ) 2022 , < > < > %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above %% copyright notice and this permission notice appear in all copies. %% THE SOFTWARE IS PROVIDED " AS...
null
https://raw.githubusercontent.com/ergenius/t__/52e5d95a495a4d62625b09ffc09029b1176eb5df/src/t__po.erl
erlang
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
-*- coding : utf-8 -*- Copyright ( c ) 2022 , < > < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(t__po). -author("Mada...
bfa857b16ee95a8a9bc86631343d6d8eda41d315dfe8f7ee5d59cd7802836201
gorillalabs/sparkling
classification.clj
(ns sparkling.ml.classification (:import [org.apache.spark.ml.classification NaiveBayes LogisticRegression DecisionTreeClassifier RandomForestClassifier GBTClassifier ])) ;;defines wrappers for classifiers (defn logistic-regression "Return a instance of LogisticRegression classifier. arguments are...
null
https://raw.githubusercontent.com/gorillalabs/sparkling/ffedcc70fd46bf1b48405be8b1f5a1e1c4f9f578/src/clojure/sparkling/ml/classification.clj
clojure
defines wrappers for classifiers will not work the same way as logisticRegression, unless the target variable/column is set in a specific manner. At least until this issue SPARK-7126 (-7126) is fixed
(ns sparkling.ml.classification (:import [org.apache.spark.ml.classification NaiveBayes LogisticRegression DecisionTreeClassifier RandomForestClassifier GBTClassifier ])) (defn logistic-regression "Return a instance of LogisticRegression classifier. arguments are hyperparameters used in training t...
2f9c0a6592cd96f77c0d566d12aaa6b277c9bbc78e28224db9c434c9509a9ec4
Virtual-Insurance-Products/relations
rdf-member-class.lisp
(in-package :relations) (defclass rdf-member-class (postgres-class) ((predicate :initarg :predicate :reader rdf-predicate))) (defclass rdf-member-class-slot-definition (postgres-class-slot-definition) ()) (defclass rdf-member-class-direct-slot-definition (ccl:standard-direct-slot-definition ...
null
https://raw.githubusercontent.com/Virtual-Insurance-Products/relations/938913b9213b6fa997202f16f2969ab3e6f558db/rdf-member-class.lisp
lisp
(in-package :relations) (defclass rdf-member-class (postgres-class) ((predicate :initarg :predicate :reader rdf-predicate))) (defclass rdf-member-class-slot-definition (postgres-class-slot-definition) ()) (defclass rdf-member-class-direct-slot-definition (ccl:standard-direct-slot-definition ...
40efe83e5fc37a3c0cc46dc5d33df48d1b7e9b59472f95c5d488457c97b3ce45
DanielG/cabal-helper
HelperMain.hs
cabal - helper : Simple interface to Cabal 's configuration state Copyright ( C ) 2015 - 2018 < > -- SPDX - License - Identifier : Apache-2.0 -- 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...
null
https://raw.githubusercontent.com/DanielG/cabal-helper/0e9df088226d80669dd0882ed743bca871dce61c/src/CabalHelper/Runtime/HelperMain.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 , mkFlagName either "v1" or "v2" withComponentsLBI is deprecated but also exists in very old versions it's equivalent to withAllComponentsInBuildOrder in newer versions mkFlagName n = FlagName n ...
cabal - helper : Simple interface to Cabal 's configuration state Copyright ( C ) 2015 - 2018 < > SPDX - License - Identifier : Apache-2.0 Licensed under the Apache License , Version 2.0 ( the " License " ) ; # LANGUAGE CPP , BangPatterns , RecordWildCards , RankNTypes , ViewPatterns , TupleSections #...
1d9c79658bb09e3e271df08838af149b5b6fdae06b110f13f4b3d28f15ab0bf0
puppetlabs/puppetdb
inventory_test.clj
(ns puppetlabs.puppetdb.http.inventory-test (:require [cheshire.core :as json] [clojure.test :refer :all] [clojure.walk :refer [stringify-keys]] [puppetlabs.puppetdb.jdbc :as jdbc] [puppetlabs.puppetdb.testutils.db :refer [*db*]] [puppetlabs.puppetdb.scf.sto...
null
https://raw.githubusercontent.com/puppetlabs/puppetdb/0283e3c91d2aadd0c4c68795fb24b48fcd1e30b1/test/puppetlabs/puppetdb/http/inventory_test.clj
clojure
TODO: Once the length fix is merged this test will serve to test both dashes and double quotes #{{(keyword "facts.my_weird_fact.blah.\"dotted.thing\".\"dashed-thing\".\"quoted\"thing\"") ["=" "facts.match(\".*\")" "Debian"] #{response2}
(ns puppetlabs.puppetdb.http.inventory-test (:require [cheshire.core :as json] [clojure.test :refer :all] [clojure.walk :refer [stringify-keys]] [puppetlabs.puppetdb.jdbc :as jdbc] [puppetlabs.puppetdb.testutils.db :refer [*db*]] [puppetlabs.puppetdb.scf.sto...
0c96f0d7338b43b980c450ab25ddd587587600e11dfa1cc2c2d8b399eace6b18
composewell/streamly
Generate.hs
# OPTIONS_GHC -Wno - deprecations # # OPTIONS_GHC -Wno - orphans # -- | Module : Streamly . Internal . Data . Stream . IsStream . Generate Copyright : ( c ) 2017 Composewell Technologies -- License : BSD-3-Clause -- Maintainer : -- Stability : experimental Portability : GHC -- -- Most of the com...
null
https://raw.githubusercontent.com/composewell/streamly/8629a0e806f5eea87d23650c540aa04176f25c43/src/Streamly/Internal/Data/Stream/IsStream/Generate.hs
haskell
| License : BSD-3-Clause Maintainer : Stability : experimental Most of the combinators in this module can be implemented as unfolds. Some be expressed as unfolds. Unless we want to use rewrite rules to rewrite them help? Are there any other reasons to keep these and not use unfolds? * Primitives * Fro...
# OPTIONS_GHC -Wno - deprecations # # OPTIONS_GHC -Wno - orphans # Module : Streamly . Internal . Data . Stream . IsStream . Generate Copyright : ( c ) 2017 Composewell Technologies Portability : GHC of them however can only be expressed in terms e.g. cons / consM , fromFoldable , mfix . We can pos...
01b446e612f70bfb9a5b6d6b6e0bad22de0637118e07b8280948f229ba8ac96a
Zulu-Inuoe/clution
benchmark.lisp
(in-package :cl-user) (defpackage quri-test.benchmark (:use :cl :quri) (:export :run-benchmark)) (in-package :quri-test.benchmark) (defun run-benchmark () (format t "~2&# QURI:URI~2%") (time (dotimes (i 100000) (quri:uri "/#Related"))) (format t "~2&# QURI:URL-DECODE~2%") (time (dotimes ...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/quri-20161204-git/t/benchmark.lisp
lisp
(in-package :cl-user) (defpackage quri-test.benchmark (:use :cl :quri) (:export :run-benchmark)) (in-package :quri-test.benchmark) (defun run-benchmark () (format t "~2&# QURI:URI~2%") (time (dotimes (i 100000) (quri:uri "/#Related"))) (format t "~2&# QURI:URL-DECODE~2%") (time (dotimes ...
eb92645d8f27e5c50926016a10563fc01aed08671bb361a795ce4f3d49626a5d
kowainik/tomland
Table.hs
module Test.Toml.Codec.Combinator.Table ( tableSpec ) where import Test.Hspec (Spec, describe) import Test.Toml.Codec.Combinator.Common (codecRoundtrip) import qualified Test.Toml.Gen as Gen import qualified Toml.Codec.Combinator.Primitive as Toml import qualified Toml.Codec.Combinator.Table as Toml tableS...
null
https://raw.githubusercontent.com/kowainik/tomland/2b4bcc465b79873a61bccfc7131d423a9a0aec1d/test/Test/Toml/Codec/Combinator/Table.hs
haskell
module Test.Toml.Codec.Combinator.Table ( tableSpec ) where import Test.Hspec (Spec, describe) import Test.Toml.Codec.Combinator.Common (codecRoundtrip) import qualified Test.Toml.Gen as Gen import qualified Toml.Codec.Combinator.Primitive as Toml import qualified Toml.Codec.Combinator.Table as Toml tableS...
fb7dfd91881952b9f5c2384ceaedd03515e6765e279b74506d93b94a55202f3b
NorfairKing/validity
Tree.hs
# OPTIONS_GHC -fno - warn - orphans # module Data.GenValidity.Tree (genTreeOf, shrinkTreeOf) where import Data.GenValidity import Data.List.NonEmpty (NonEmpty (..)) import qualified Data.List.NonEmpty as NE import Data.Tree import Data.Validity.Tree () import Test.QuickCheck instance GenValid a => GenValid (Tree a) ...
null
https://raw.githubusercontent.com/NorfairKing/validity/2e9198bdaaa8c80a5dbe2b7b860b5c26558c6374/genvalidity-containers/src/Data/GenValidity/Tree.hs
haskell
| Generate a tree of values that are generated as specified. This takes the size parameter much better into account
# OPTIONS_GHC -fno - warn - orphans # module Data.GenValidity.Tree (genTreeOf, shrinkTreeOf) where import Data.GenValidity import Data.List.NonEmpty (NonEmpty (..)) import qualified Data.List.NonEmpty as NE import Data.Tree import Data.Validity.Tree () import Test.QuickCheck instance GenValid a => GenValid (Tree a) ...
757a64f1bc9283800fefd6a9cd227e680160bdd2b1f3805ff8554e83140e6733
haskell-effectful/effectful
Unlift.hs
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # # OPTIONS_HADDOCK not - home # -- | Implementation of sequential and concurrent unlifts. -- -- This module is intended for internal use only, and may change without warning -- in subsequent releases. module Effectful.Internal.Unlift ( -- * Unlifting strategies Unl...
null
https://raw.githubusercontent.com/haskell-effectful/effectful/69a03e8cacc02ec545524df2b78e4fba65dfb3dc/effectful-core/src/Effectful/Internal/Unlift.hs
haskell
| Implementation of sequential and concurrent unlifts. This module is intended for internal use only, and may change without warning in subsequent releases. * Unlifting strategies * Unlifting functions -------------------------------------- Unlift strategies | The strategy to use when unlifting 'Effectful.Eff' ...
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # # OPTIONS_HADDOCK not - home # module Effectful.Internal.Unlift UnliftStrategy(..) , Persistence(..) , Limit(..) , seqUnlift , concUnlift , ephemeralConcUnlift , persistentConcUnlift ) where import Control.Concurrent import Control.Monad import GHC.C...
992979a26db85e6ef25660e496b8b65e67c2337fea1d774377e6a785b24147e7
yallop/ocaml-integers
install_integer_printers.ml
Adapted from package . let _ = Integer_printers.format_sint let printers = [ "Integer_printers.format_sint"; "Integer_printers.format_long"; "Integer_printers.format_llong"; "Integer_printers.format_uchar"; "Integer_printers.format_uint8"; ...
null
https://raw.githubusercontent.com/yallop/ocaml-integers/a494765d5bdc1f771eea56d552bd6c1d2ba971cd/top/install_integer_printers.ml
ocaml
Adapted from package . let _ = Integer_printers.format_sint let printers = [ "Integer_printers.format_sint"; "Integer_printers.format_long"; "Integer_printers.format_llong"; "Integer_printers.format_uchar"; "Integer_printers.format_uint8"; ...
b75b31788126a613cb753d4743ad0290632819ace74928043730e9a25f0920cb
PDP-10/panda
6bit.lsp
-*- Mode : Lisp ; . ; -*- ;;; ;;; 6BIT: A package for conversions between sixbit or ascii representations ;;; and lisp symbols. ;;; This library was created by KMP , 22 Oct 81 , and added to by JONL 23 Oct 81 . and CWR 28 Feb 83 . ;;; ( SYMBOL - TO - ASCII sym & optional ( n 1 ) ) ;;; Ret...
null
https://raw.githubusercontent.com/PDP-10/panda/522301975c062914ea3d630a1daefde261ddf590/files/maclisp/6bit.lsp
lisp
. ; -*- 6BIT: A package for conversions between sixbit or ascii representations and lisp symbols. Returns the n'th PDP10 word of the ascii representation of Returns the n'th PDP10 word of the sixbit representation. faster calling sequence. (ASCII-TO-SYMBOL number &optional internp)...
This library was created by KMP , 22 Oct 81 , and added to by JONL 23 Oct 81 . and CWR 28 Feb 83 . ( SYMBOL - TO - ASCII sym & optional ( n 1 ) ) the symbol ' sym ' , with 1 - origin indexing of the words . ( SYMBOL - TO - SIXBIT sym & optional ( n 1 ) ) ( ) Same as ( SYMBOL - TO - ASCII ...
e7e0f1d0c0918ee8920ce71da94b924259e0dc975444bc2b3e2cca90a2e4ad98
erlang/corba
notification_SUITE.erl
%%-------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 1999 - 2016 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain ...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/cosNotification/test/notification_SUITE.erl
erlang
-------------------------------------------------------------------- %CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY...
Copyright Ericsson AB 1999 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(notification_SUITE). -include_lib("orber/include/corba.hrl"). -include_lib("orber/include/ifr_types.hrl"). ...
9e6604e5fb389a758a41be935232e12c778b7b706988121ff9c696f04aac9ed5
pNre/gram
tdlib.ml
module Models = struct include Models end module Client = struct open Core open Tdjson open Models.Request type t = { client : Tdjson.client ; timeout : float ; debug : [ `Sent of string | `Received of string ] -> unit } let init ?(debug = ignore) () = { client = td_json_client_create...
null
https://raw.githubusercontent.com/pNre/gram/e3c60dc6a3ea49d47e3cafb9f4c84e43ca3f6967/tdlib/tdlib.ml
ocaml
module Models = struct include Models end module Client = struct open Core open Tdjson open Models.Request type t = { client : Tdjson.client ; timeout : float ; debug : [ `Sent of string | `Received of string ] -> unit } let init ?(debug = ignore) () = { client = td_json_client_create...
c04d4ae8452c3e050ff583657ba0207dae0b39ac09e448c0993e200db325600f
LuxLang/lux
base.clj
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 /. (ns lux.compiler.jvm.base (:require (clojure [template :refer [do-template]] [string :as string]) [clojure.jav...
null
https://raw.githubusercontent.com/LuxLang/lux/91bc060bc498a0d2418198cfcb9dc39636d1d867/lux-bootstrapper/src/lux/compiler/jvm/base.clj
clojure
[Constants] Formats [Utils] [Exports] _ (load-class! loader real-name)
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 /. (ns lux.compiler.jvm.base (:require (clojure [template :refer [do-template]] [string :as string]) [clojure.jav...
27ac3bd04b5fea695d73bd6d763e8d483c043d706f489d61a068a5ac0eb1d3e5
bobzhang/fan
seq2.ml
module M = struct foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/fixtures/seq2.ml
ocaml
module M = struct foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo bar; foo...
558708ff16e82ef6df5563654ffcac6e93c7cd19c6cc227f4f91f1e3d753e456
haskell-suite/base
TypeLits.hs
module GHC.TypeLits () where
null
https://raw.githubusercontent.com/haskell-suite/base/1ee14681910c76d0a5a436c33ecf3289443e65ed/GHC/TypeLits.hs
haskell
module GHC.TypeLits () where
f2af3f1faac11e52d5ac69f87289a20050d761632f4e62315751915a52b94bd6
TorXakis/TorXakis
TestGNF.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} module TestGNF ( testGNFList ) where i...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpe/test/TestGNF.hs
haskell
import Debug.Trace ------------------------------------------------------------------------- Tests ------------------------------------------------------------------------- becomes P[A]() = A?x >-> P$pre1[A](x) Stop remains unchanged P[]() := A?x >-> P[A](x) remains unchanged also checks that there are no infin...
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} module TestGNF ( testGNFList ) where i...
af6366cf2c0d92e4da622b03cd52eb8dc9c3067cc6e07245375fb3508f2f2f84
mikail-khan/hqfl
MonteCarlo.hs
----------------------------------------------------------------------------- -- | Module : Finance . . Instrument . MonteCarlo Copyright : ( C ) 2016 -- License : (see the file LICENSE) Maintainer : < > -- Stability : stable -- Portability : portable -- ---------------------------...
null
https://raw.githubusercontent.com/mikail-khan/hqfl/398bd921089522c6c0e6d91893a75615a1f39a2e/src/Finance/Hqfl/Pricer/MonteCarlo.hs
haskell
--------------------------------------------------------------------------- | License : (see the file LICENSE) Stability : stable Portability : portable -------------------------------------------------------------------------- TODO : extend to handle different SDEs TODO : Refactor to put simulation ...
Module : Finance . . Instrument . MonteCarlo Copyright : ( C ) 2016 Maintainer : < > # LANGUAGE FlexibleInstances # module Finance.Hqfl.Pricer.MonteCarlo where import Finance.Hqfl.Instrument import Control.Monad.Primitive import Control.Monad.State import System.Random.MWC import System....
b12e50c20e54fc9e57c772a23c3b07979ec62aef5e6f4423828b9cdf0cf20078
RedPRL/cooltt
SymbolMap.ml
module type S = sig include Map.S val pp : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit end module Make (S : Symbol.S) = struct include Map.Make (S) let pp _ih fmt _table = Format.fprintf fmt "<globals>" end
null
https://raw.githubusercontent.com/RedPRL/cooltt/eae0bbcde7b5912d4c9748f4361b1ea81731e3bd/src/basis/SymbolMap.ml
ocaml
module type S = sig include Map.S val pp : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit end module Make (S : Symbol.S) = struct include Map.Make (S) let pp _ih fmt _table = Format.fprintf fmt "<globals>" end
db09be8149c6a94a03fd5ef724d120353d9c6bc507915a408675244cf291f2f6
morphismtech/squeal
Connection.hs
| Module : Squeal . PostgreSQL.Session . Connection Description : database connections Copyright : ( c ) , 2019 Maintainer : Stability : experimental database connections Module: Squeal.PostgreSQL.Session.Connection Description: database connections Copyright: (c) Eitan Chatav, 2019 Maintainer: Stabi...
null
https://raw.githubusercontent.com/morphismtech/squeal/f25c3052bcecebe5e88ee95143c4ae446c24ca85/squeal-postgresql/src/Squeal/PostgreSQL/Session/Connection.hs
haskell
$setup >>> import Squeal.PostgreSQL ^ conninfo | Closes the connection to the server. | Safely `lowerConnection` to a smaller schema.
| Module : Squeal . PostgreSQL.Session . Connection Description : database connections Copyright : ( c ) , 2019 Maintainer : Stability : experimental database connections Module: Squeal.PostgreSQL.Session.Connection Description: database connections Copyright: (c) Eitan Chatav, 2019 Maintainer: Stabi...
1227e997cc14a4671fc4a64432f611b639fd447d8234b1b21430762ece8c503f
LambdaScientist/CLaSH-by-example
IntermediateSignal.hs
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module InAndOut.Models.IntermediateSignal where import CLaSH.Prelude import Control.Lens hiding ((:>)) import Control.Monad.Trans.State import Text.PrettyPrint.HughesPJClass import SAFE.Test...
null
https://raw.githubusercontent.com/LambdaScientist/CLaSH-by-example/e783cd2f2408e67baf7f36c10398c27036a78ef3/ConvertedClashExamples/src/InAndOut/Models/IntermediateSignal.hs
haskell
inputs Outputs and state data Signal st
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module InAndOut.Models.IntermediateSignal where import CLaSH.Prelude import Control.Lens hiding ((:>)) import Control.Monad.Trans.State import Text.PrettyPrint.HughesPJClass import SAFE.Test...
c8cea3a42e781e9f69f033005826c9124695bbea7d5b83ef322bf44d8861ae87
BekaValentine/SimpleFP-v2
Evaluation.hs
{-# OPTIONS -Wall #-} # LANGUAGE DeriveFunctor # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} -- | This module defines how to evaluate terms in the dependently typed lambda -- calculus. module DependentImplicit.Core.Evaluation where import Control.Mona...
null
https://raw.githubusercontent.com/BekaValentine/SimpleFP-v2/ae00ec809caefcd13664395b0ae2fc66145f6a74/src/DependentImplicit/Core/Evaluation.hs
haskell
# OPTIONS -Wall # # LANGUAGE TypeSynonymInstances # | This module defines how to evaluate terms in the dependently typed lambda calculus. | Because a case expression can be evaluated under a binder, it's necessary to determine when a match failure is real or illusory. For example, if we more than just did the matc...
# LANGUAGE DeriveFunctor # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module DependentImplicit.Core.Evaluation where import Control.Monad.Except import Utils.ABT import Utils.Env import Utils.Eval import Utils.Pretty import Utils.Telescope import DependentImplicit.Core.Term hav...
dde49f573809c5a7e44dd28bee5e42857d0796f40ec331791630652baa5ddf55
remixlabs/wasicaml
t100_sieve.ml
taken from ocaml / testsuite / misc Eratosthene 's sieve interval min max = [ min ; min+1 ; ... ; ; ] let rec interval min max = if min > max then [] else min :: interval (min + 1) max filter p L returns the list of the elements in list L that satisfy predicate p that satisfy predicate p *) le...
null
https://raw.githubusercontent.com/remixlabs/wasicaml/74ff72535aa8e49ab94a05d9c32c059ce264c1bb/test/t100_sieve.ml
ocaml
Application: removing all numbers multiple of n from a list of integers The sieve itself
taken from ocaml / testsuite / misc Eratosthene 's sieve interval min max = [ min ; min+1 ; ... ; ; ] let rec interval min max = if min > max then [] else min :: interval (min + 1) max filter p L returns the list of the elements in list L that satisfy predicate p that satisfy predicate p *) le...
84b7587b986561bb7fb2a46bf2c8e5914d630ceb32b1be6d8f37109d78ac271d
karimarttila/clojure
domain_service.clj
(ns simpleserver.service.domain.domain-service "Provides simplified access to domain functions." (:require [simpleserver.service.service :as ss-service] [simpleserver.service.domain.domain-interface :as ss-domain-i])) (defn- get-service [env] (ss-service/get-service env :domain)) (defn get-product-g...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/webstore-demo/re-frame-demo/src/clj/simpleserver/service/domain/domain_service.clj
clojure
(ns simpleserver.service.domain.domain-service "Provides simplified access to domain functions." (:require [simpleserver.service.service :as ss-service] [simpleserver.service.domain.domain-interface :as ss-domain-i])) (defn- get-service [env] (ss-service/get-service env :domain)) (defn get-product-g...
055c623f4075a037dd39f551d57f085aa1a0042adadf6edb27064baf0399a4e4
spawnfest/eep49ers
wxWindowDestroyEvent.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxWindowDestroyEvent.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(wxWindowDestroyEvent). -include("wxe.hrl"). -export([]). -export([getClientData/1,getExtraLong/1,getId/1,ge...
9302cf408990935adfade74bc33da5b037e14515f343bb9fe8f3b0411e70cefc
input-output-hk/cardano-ledger
TxOut.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LA...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/2d45db3fbfc5b1a557d2e91c2752ebc50ce1079e/eras/babbage/impl/src/Cardano/Ledger/Babbage/TxOut.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # UNPACK # # UNPACK # # UNPACK # # UNPACK # Inline data # UNPACK # # UNPACK # # UNPACK # Ada value # UNPACK # # UNPACK # Ada value # UNPACK # # INLINEABLE dataTxOutL # # INLINEABLE datumTxOutL # # INLINEABLE addrEitherBabbageTxOutL # # COMPLETE BabbageTxOut # |...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGU...
c78de8894b150480d95c1a6db520786030b2238a7bb14fdc158203829a31a01b
brendanhay/terrafomo
DigitalOcean.hs
-- This module is auto-generated. # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - dodgy - exports # -- | -- Module : Terrafomo.DigitalOcean Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > -- Stability : a...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-digitalocean/gen/Terrafomo/DigitalOcean.hs
haskell
This module is auto-generated. | Module : Terrafomo.DigitalOcean Stability : auto-generated * Provider * Types * Resources * DataSources * Settings
# OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - dodgy - exports # Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) module Terrafomo.DigitalOcean ( modul...