_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 |
|---|---|---|---|---|---|---|---|---|
cbd7faca003b94a041d38c04e31deeda585e2172994450ad0eb7f7d2997923bf | ollef/sixten | PreName.hs | module Syntax.PreName where
import Protolude
import Data.String
import Data.Text(Text)
import Pretty
import SourceLoc
import Util
-- | An unresolved name
data PreName = PreName
{ preNameSourceLoc :: Maybe SourceLoc
, preNameText :: !Text
} deriving Show
instance Eq PreName where
PreName _ t1 == PreName _ t... | null | https://raw.githubusercontent.com/ollef/sixten/60d46eee20abd62599badea85774a9365c81af45/src/Syntax/PreName.hs | haskell | | An unresolved name | module Syntax.PreName where
import Protolude
import Data.String
import Data.Text(Text)
import Pretty
import SourceLoc
import Util
data PreName = PreName
{ preNameSourceLoc :: Maybe SourceLoc
, preNameText :: !Text
} deriving Show
instance Eq PreName where
PreName _ t1 == PreName _ t2 = t1 == t2
instance O... |
26502c3ffb78e9ac4b4b36351e01d18ed685ba798159a560ba440de7154bb1f2 | maxhbr/LDBcollector | FOSSLight.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
module Collectors.FOSSLight
( loadFOSSLightFacts
, fossLightLFC
) where
import qualified Prelude as P
import MyPrelude
import Collectors.Common
import qualified Data.Text as T
i... | null | https://raw.githubusercontent.com/maxhbr/LDBcollector/758f414dfa4f3f92cb10c2b23498975bc9ac2419/src/Collectors/FOSSLight.hs | haskell | # LANGUAGE OverloadedStrings #
CREATE TABLE `LICENSE_NICKNAME` (
`LICENSE_NAME` varchar(200) NOT NULL COMMENT '라이선스 NAME',
`LICENSE_NICKNAME` varchar(200) NOT NULL COMMENT '라이선스 닉네임',
PRIMARY KEY (`LICENSE_NAME`,`LICENSE_NICKNAME`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `LICENSE_MASTER` (
... | # LANGUAGE DeriveGeneric #
# LANGUAGE LambdaCase #
# LANGUAGE TemplateHaskell #
module Collectors.FOSSLight
( loadFOSSLightFacts
, fossLightLFC
) where
import qualified Prelude as P
import MyPrelude
import Collectors.Common
import qualified Data.Text as T
import qualified Data.Text.Encoding.... |
1357b4b96dfcb67ded58a8325d6d507caa2000cf344329b21deafa09cb883a5d | Drup/functoria-lua | Functoria_lua.ml | open Rresult
open Astring
module Key = Functoria_key
module Name = Functoria_app.Name
module Codegen = Functoria_app.Codegen
include Functoria
let tool_name = "functoria-lua"
let src = Logs.Src.create tool_name ~doc:"functoria-lua cli tool"
module Log = (val Logs.src_log src : Logs.LOG)
(** Devices **)
class base... | null | https://raw.githubusercontent.com/Drup/functoria-lua/820ca7700482aa610496175d48bb7bfffdb17bd9/lib/Functoria_lua.ml | ocaml | * Devices *
Luaast.S
Lualib.BARECODE
Lualib.USERCODE
Types
Luaiolib
* Tool-related functions
* Makefile *
we made it, so we should clean it up
* OPAM file
* Compilation
The ocamlfind packages to use when compiling config.ml
The directories to ignore when compiling config.ml | open Rresult
open Astring
module Key = Functoria_key
module Name = Functoria_app.Name
module Codegen = Functoria_app.Codegen
include Functoria
let tool_name = "functoria-lua"
let src = Logs.Src.create tool_name ~doc:"functoria-lua cli tool"
module Log = (val Logs.src_log src : Logs.LOG)
class base = object
meth... |
77f05c8cdc7b9e5612c4e20e8d14b5a8c5ea147250e274e845cd487737127bae | mbutterick/beautiful-racket | parser-tester.rkt | #lang br
(require "parser.rkt")
(parse-to-datum "++++-+++-++-++[>++++-+++-++-++<-]>.")
| null | https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/bf-demo/parser-tester.rkt | racket | #lang br
(require "parser.rkt")
(parse-to-datum "++++-+++-++-++[>++++-+++-++-++<-]>.")
| |
3cc31ad99c3d98de7caee6373c779521135c2510421459119e32a037713c3d68 | EveryTian/Haskell-Codewars | youre-a-square.hs | -a-square
module Codewars.Kata.Square where
isSquare :: Integral n => n -> Bool
isSquare n = let sqrtN = floor $ sqrt $ fromIntegral n
in sqrtN * sqrtN == n
| null | https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/7kyu/youre-a-square.hs | haskell | -a-square
module Codewars.Kata.Square where
isSquare :: Integral n => n -> Bool
isSquare n = let sqrtN = floor $ sqrt $ fromIntegral n
in sqrtN * sqrtN == n
| |
57511104466eb5f3c1b0007bd533814e4f28388149e4fd20410ae3c0dd89bdd8 | notogawa/yesod-websocket-sample | StaticFiles.hs | module Settings.StaticFiles where
import Prelude (IO)
import Yesod.Static
import qualified Yesod.Static as Static
import Settings (staticDir)
import Settings.Development
-- | use this to create your static file serving site
staticSite :: IO Static.Static
staticSite = if development then Static.staticDevel staticDir
... | null | https://raw.githubusercontent.com/notogawa/yesod-websocket-sample/aa3eb38339830753a26ec68e130053ea01a80ff2/Settings/StaticFiles.hs | haskell | | use this to create your static file serving site
| This generates easy references to files in the static directory at compile time,
giving you compile-time verification that referenced files exist.
Warning: any files added to your static directory during run-time can't be | module Settings.StaticFiles where
import Prelude (IO)
import Yesod.Static
import qualified Yesod.Static as Static
import Settings (staticDir)
import Settings.Development
staticSite :: IO Static.Static
staticSite = if development then Static.staticDevel staticDir
else Static.static sta... |
464cdd32d1faabdfd96a5a8363ad47d91ed4f6875146edf5feb648dddca0e207 | jimpil/clojuima | core.clj | (ns clojuima.core
(:import [org.apache.uima UIMAFramework]
[org.apache.uima.jcas JCas]
[org.apache.uima.jcas.tcas Annotation]
[org.apache.uima.resource ResourceSpecifier ResourceManager]
[org.apache.uima.util XMLInputSource CasPool]
[org.apache.uima.analysis_engine AnalysisEngine]
... | null | https://raw.githubusercontent.com/jimpil/clojuima/14e9929891606eb2127bee696be88ca2f0ca78cc/src/clojuima/core.clj | clojure | "NUM_SIMULTANEOUS_REQUESTS" (int par-requests)
'specifier' here really means 'object-instance' and not xml as we're going through uima-fit
define a sample sentence
the entire sentence annotation
the token annotations
got our UIMA tokenizer
providing the tokens so WhitespaceTokenizer won't be used
not providing the... | (ns clojuima.core
(:import [org.apache.uima UIMAFramework]
[org.apache.uima.jcas JCas]
[org.apache.uima.jcas.tcas Annotation]
[org.apache.uima.resource ResourceSpecifier ResourceManager]
[org.apache.uima.util XMLInputSource CasPool]
[org.apache.uima.analysis_engine AnalysisEngine]
... |
33e6689a0c7d880b2745bef57709c2d647923bd27ed3208b5e47026935ce5e88 | ekmett/ekmett.github.com | Dual.hs | -------------------------------------------------------------------------------------------
-- |
-- Module : Control.Category.Dual
Copyright : 2008
-- License : BSD-style (see the LICENSE file in the distribution)
--
Maintainer : < >
-- Stability : experimental
-- Portability : non-portable (class-associat... | null | https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/categories/_darcs/pristine/src/Control/Category/Dual.hs | haskell | -----------------------------------------------------------------------------------------
|
Module : Control.Category.Dual
License : BSD-style (see the LICENSE file in the distribution)
Stability : experimental
Portability : non-portable (class-associated types)
The dual of a category is another category.
T... | Copyright : 2008
Maintainer : < >
module Control.Category.Dual where
import Prelude hiding (Functor, map, (.), id, fst, snd, Monad, return, (>>=), curry, uncurry)
import qualified Prelude
import Control.Category.Classes
newtype Dual k a b = Dual { runDual :: k b a }
instance Category k => Category (Du... |
182aa2196b0fb1ec143fd5d412f5b0e1ec79f239aba5b4b8ed515a7283b637c7 | hvdthong/PatchNetTool | lcommon.ml |
* This file is part of PatchNet , licensed under the terms of the GPL v2 .
* See copyright.txt in the PatchNet source code for more information .
* The PatchNet source code can be obtained at
*
* This file is part of PatchNet, licensed under the terms of the GPL v2.
* See copyright.txt in the PatchNet... | null | https://raw.githubusercontent.com/hvdthong/PatchNetTool/24a47115f89a0aab2c458758a89f129670c5de27/preprocessing/lcommon.ml | ocaml | from later ocaml |
* This file is part of PatchNet , licensed under the terms of the GPL v2 .
* See copyright.txt in the PatchNet source code for more information .
* The PatchNet source code can be obtained at
*
* This file is part of PatchNet, licensed under the terms of the GPL v2.
* See copyright.txt in the PatchNet... |
0ef30d5aadba02ca670d513a07cb5f9a9910e14ca378cd861af32e607d54737b | privet-kitty/cl-competitive | write-double-float.lisp | (defpackage :cp/write-double-float
(:use :cl)
(:export #:write-double-float))
(in-package :cp/write-double-float)
Based on SBCL 's implementation
(defun write-double-float (x &key (max-decimal-places 10)
(stream *standard-output*)
(allow-trailin... | null | https://raw.githubusercontent.com/privet-kitty/cl-competitive/4d1c601ff42b10773a5d0c5989b1234da5bb98b6/module/write-double-float.lisp | lisp | (defpackage :cp/write-double-float
(:use :cl)
(:export #:write-double-float))
(in-package :cp/write-double-float)
Based on SBCL 's implementation
(defun write-double-float (x &key (max-decimal-places 10)
(stream *standard-output*)
(allow-trailin... | |
19c20c830214b642f4ff860cdbfa9a3bd65578e72cbff38554b4c30c11aa7a74 | fukamachi/qlot | dist.lisp | (defpackage #:qlot/distify/dist
(:use #:cl)
(:import-from #:qlot/source
#:source-dist
#:source-distribution
#:source-distinfo-url
#:source-project-name)
(:import-from #:qlot/proxy
#:*proxy*)
(:import-from #:qlot/utils/distify
... | null | https://raw.githubusercontent.com/fukamachi/qlot/f4ba8ad6e925e833b2d74373f8645a53736ddb9a/distify/dist.lisp | lisp | distribution name may include slashes
and can't be used directly as a name
of a pathname. | (defpackage #:qlot/distify/dist
(:use #:cl)
(:import-from #:qlot/source
#:source-dist
#:source-distribution
#:source-distinfo-url
#:source-project-name)
(:import-from #:qlot/proxy
#:*proxy*)
(:import-from #:qlot/utils/distify
... |
aa73691573bc24adfb2748188f05cb2e6af6d2ffc410a7d49113e0770663afc1 | cbaggers/cepl | errors.lisp | (in-package :cepl.errors)
(deferror gfun-invalid-arg-format () (gfun-name invalid-pair)
"CEPL - defun-g: defun-g expects its parameter args to be typed in the~%format (var-name type), but instead ~s was found in the definition for ~s" invalid-pair gfun-name)
(deferror gpu-func-spec-not-found () (name types)
"... | null | https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/errors.lisp | lisp | the last element is the call
however, the dimensions given in the
this
this one should never happend
- add your condition's name to the package export
- keep this comment at the bottom of the file.
Thanks :) | (in-package :cepl.errors)
(deferror gfun-invalid-arg-format () (gfun-name invalid-pair)
"CEPL - defun-g: defun-g expects its parameter args to be typed in the~%format (var-name type), but instead ~s was found in the definition for ~s" invalid-pair gfun-name)
(deferror gpu-func-spec-not-found () (name types)
"... |
f08ca3f45c52505b70d96fafe8988ef1eba9e9048aa2fa0a98f1c1f3d767a29c | GaloisInc/daedalus | Util.hs | module Util where
-- system:
import Data.Char
import System.Exit
-- shake:
import Development.Shake.FilePath
---- utilities ---------------------------------------------------------------
triviallyFormat [] = ""
triviallyFormat (c:cs) =
if c `elem` "{,}" then
"\n " ++ [c] ++... | null | https://raw.githubusercontent.com/GaloisInc/daedalus/016da6b2de23747e48642f6ece79c07b436ef5d1/formats/pdf/old/driver/test/src/run-testset/Util.hs | haskell | system:
shake:
-- utilities ---------------------------------------------------------------
-- split,unsplit -----------------------------------------------------------
split,unsplit a generalization of words,unwords! | module Util where
import Data.Char
import System.Exit
import Development.Shake.FilePath
triviallyFormat [] = ""
triviallyFormat (c:cs) =
if c `elem` "{,}" then
"\n " ++ [c] ++ triviallyFormat cs
else
c : triviallyFormat cs
timeInMs x = round(x * 1000)
sfStripExtensi... |
f8122b31732425bbd08d5df04b5e9201a93a5547596a3660917e6b36df1d9962 | mirage/ocaml-git | traverse_bfs.ml |
* Copyright ( c ) 2013 - 2017 < >
* and < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVID... | null | https://raw.githubusercontent.com/mirage/ocaml-git/37c9ef41944b5b19117c34eee83ca672bb63f482/src/git/traverse_bfs.ml | ocaml | XXX(dinosaure): convenience and common part between the file-system and
the mem back-end - to avoid redundant code. |
* Copyright ( c ) 2013 - 2017 < >
* and < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVID... |
726bf58d6fad7a98ce18667fca533c3a40696fc1809dd540c9f6b5d12bd962ed | MyDataFlow/ttalk-server | proper_print.erl | Copyright 2010 - 2011 < > ,
< >
and < >
%%%
This file is part of PropEr .
%%%
%%% PropEr is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 o... | null | https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/proper/test/proper_print.erl | erlang |
PropEr is free software: you can redistribute it and/or modify
(at your option) any later version.
PropEr is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License fo... | Copyright 2010 - 2011 < > ,
< >
and < >
This file is part of PropEr .
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Pub... |
9875530589c0d3b08850714978e9ff4242a2c3588dbd8168b32e9f9089ba2e96 | digitallyinduced/ihp | Types.hs | module IHP.DataSync.REST.Types where
import IHP.Prelude
data ApiController
^ POST /api / books
| UpdateRecordAction { table :: Text, id :: UUID }
| DeleteRecordAction { table :: Text, id :: UUID }
^ GET /api / books/9ba0ffbc - bfc1 - 4d7d-8152 - 30a6648806f7
^ GET /api / books
| GraphQLQueryAction
... | null | https://raw.githubusercontent.com/digitallyinduced/ihp/620e8508be41a7977b92f2fa117b05b0842322b3/IHP/DataSync/REST/Types.hs | haskell | module IHP.DataSync.REST.Types where
import IHP.Prelude
data ApiController
^ POST /api / books
| UpdateRecordAction { table :: Text, id :: UUID }
| DeleteRecordAction { table :: Text, id :: UUID }
^ GET /api / books/9ba0ffbc - bfc1 - 4d7d-8152 - 30a6648806f7
^ GET /api / books
| GraphQLQueryAction
... | |
d5cb97f579998599524b9df6c7aa2e17d87c2eca7970c736b0a2f6ec0aa82b11 | xvw/quasar | index.ml | open Quasar_js
open Util
let () = Console.log "Hello World"
let () = Console.print "Hello World"
let () = Console.error "test"
let () = Console.warning "foobar"
let () = Console.log (Array.make 10 7)
let () =
Console.timetrack
"answer time"
[ (fun logger ->
logger "foo";
Console.print "Hello... | null | https://raw.githubusercontent.com/xvw/quasar/a414d32ded53562802893590e2996bb8daeb0cf3/examples/00-various/index.ml | ocaml | open Quasar_js
open Util
let () = Console.log "Hello World"
let () = Console.print "Hello World"
let () = Console.error "test"
let () = Console.warning "foobar"
let () = Console.log (Array.make 10 7)
let () =
Console.timetrack
"answer time"
[ (fun logger ->
logger "foo";
Console.print "Hello... | |
d57aad553f735198e387be0aabfc5bcd8dc7b5b10f85091f7bbfef38d4dd91a3 | vehicle-lang/vehicle | Libraries.hs | module Vehicle.Libraries
( LibraryName,
LibraryInfo (..),
Library (..),
findLibraryContentFile,
)
where
import Control.Exception (IOException, catch)
import Control.Monad (unless)
import Control.Monad.IO.Class (MonadIO (..))
import Data.Aeson (FromJSON, ToJSON, decode)
import Data.Aeson.Encode.Pretty (... | null | https://raw.githubusercontent.com/vehicle-lang/vehicle/ca99b8da9e5aabde2c94b758bb4141fbe53ebed5/vehicle/src/Vehicle/Libraries.hs | haskell | Write the library info file out
Write the contents of the library out
| Finds the file path to the library content. At the moment
this is very hacky, as it assumes there's a single file per library
and that it should install a newer version if out of date.
Check the library info file and see if it's up to date
I... | module Vehicle.Libraries
( LibraryName,
LibraryInfo (..),
Library (..),
findLibraryContentFile,
)
where
import Control.Exception (IOException, catch)
import Control.Monad (unless)
import Control.Monad.IO.Class (MonadIO (..))
import Data.Aeson (FromJSON, ToJSON, decode)
import Data.Aeson.Encode.Pretty (... |
f0bba8c29cf862fca1becb9b05755215f4c5a72f260b6733f91c73927105994b | hyperthunk/annotations | annotation.erl | %% -----------------------------------------------------------------------------
%%
Copyright ( c ) 2008 - 2011 ( )
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the "Software"), to deal
in the Software without restricti... | null | https://raw.githubusercontent.com/hyperthunk/annotations/ac34bf92a7b369aae3a763dd6ff7c0e463230404/src/annotation.erl | erlang | -----------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
furnis... | Copyright ( c ) 2008 - 2011 ( )
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRE... |
7f6a2fa7e92cf180c808d499fb364c5b7d708ee9b76697d6e5a94724912c2a52 | ladderlife/clj-tutorial | project.clj | (defproject clj-tutorial "1.0.0-SNAPSHOT"
:resource-paths ["resources"]
:dependencies [[org.clojure/clojure "1.9.0-alpha12"]])
| null | https://raw.githubusercontent.com/ladderlife/clj-tutorial/9302f94ff0bfdf5aae9801b2b1ee855a8d88bc5d/project.clj | clojure | (defproject clj-tutorial "1.0.0-SNAPSHOT"
:resource-paths ["resources"]
:dependencies [[org.clojure/clojure "1.9.0-alpha12"]])
| |
b90e0799030100f925e601d9d94fe720e76caed3c0789fc17740ea2ed733d1b5 | TaktInc/fake | Fake.hs | module Fake
( module Fake.Class
, module Fake.Combinators
, module Fake.Cover
, module Fake.Types
, module Fake.Utils
) where
import Fake.Class
import Fake.Combinators
import Fake.Cover
import Fake.Types
import Fake.Utils
| null | https://raw.githubusercontent.com/TaktInc/fake/02d1d8219c4bf2958ee92c3b9fc9fe3fb5dd1270/src/Fake.hs | haskell | module Fake
( module Fake.Class
, module Fake.Combinators
, module Fake.Cover
, module Fake.Types
, module Fake.Utils
) where
import Fake.Class
import Fake.Combinators
import Fake.Cover
import Fake.Types
import Fake.Utils
| |
a62833f8caae4c37cd70b0ff2be7ef1689f0bf76fdea3afcd63c988dd6d6c3c6 | takahisa/featherweight-java | ast_field.ml |
* Copyright ( c ) 2014 - 2015 < > All rights reserved .
*
* Permission is hereby granted , free of charge , to any person obtaining a copy
* of this software and associated documentation files ( the " Software " ) , to deal
* in the Software without restriction , including without limitation the right... | null | https://raw.githubusercontent.com/takahisa/featherweight-java/356e9357fcf915dac71f0063a51a9211c98c677d/ast_field.ml | ocaml |
* Copyright ( c ) 2014 - 2015 < > All rights reserved .
*
* Permission is hereby granted , free of charge , to any person obtaining a copy
* of this software and associated documentation files ( the " Software " ) , to deal
* in the Software without restriction , including without limitation the right... | |
cec705e8b5924f56d0a47364b7408787f15599a442d78c4abe806162e05c7477 | plumatic/grab-bag | cookies.cljs | (ns tubes.cookies
(:refer-clojure :exclude [set get remove])
(:require [goog.net.cookies]))
(defn set [k v & [{:keys [max-age]}]]
(.set goog.net.cookies
(name k)
(js/JSON.stringify (clj->js v))
(or max-age -1)))
(defn get [k]
(.get goog.net.cookies (name k)))
(defn remove [k & [{:keys... | null | https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/tubes/src/tubes/cookies.cljs | clojure | (ns tubes.cookies
(:refer-clojure :exclude [set get remove])
(:require [goog.net.cookies]))
(defn set [k v & [{:keys [max-age]}]]
(.set goog.net.cookies
(name k)
(js/JSON.stringify (clj->js v))
(or max-age -1)))
(defn get [k]
(.get goog.net.cookies (name k)))
(defn remove [k & [{:keys... | |
8de07738119123942eba1db1e75b6baab0c9a0a219e334a4e5653348d52fa8cc | leanprover/tc | Inductive.hs | |
Module : . Inductive
Description : Inductive type declarations
Copyright : ( c ) , 2016
License : GPL-3
Maintainer :
API for inductive types
Module : Kernel.Inductive
Description : Inductive type declarations
Copyright : (c) Daniel Selsam, 2016
License : GPL-3
Maintainer ... | null | https://raw.githubusercontent.com/leanprover/tc/250a568346f29ae27190fccee169ba10002c7399/src/Kernel/Inductive.hs | haskell | |
Module : . Inductive
Description : Inductive type declarations
Copyright : ( c ) , 2016
License : GPL-3
Maintainer :
API for inductive types
Module : Kernel.Inductive
Description : Inductive type declarations
Copyright : (c) Daniel Selsam, 2016
License : GPL-3
Maintainer ... | |
44a05bf91f25f65aad61f4bef5fa9b9a247390bca5b693d47b6f016e6658e263 | facebook/Haxl | OutgoneFetchesTests.hs | Copyright ( c ) 2014 - present , Facebook , Inc.
-- All rights reserved.
--
This source code is distributed under the terms of a BSD license ,
-- found in the LICENSE file.
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ApplicativeDo #
module OutgoneFetchesTests (tests) where
import Haxl.Prelude as Haxl
import Pre... | null | https://raw.githubusercontent.com/facebook/Haxl/8c645b0e20b0eab942111494e042a908ebbe5132/tests/OutgoneFetchesTests.hs | haskell | All rights reserved.
found in the LICENSE file.
# LANGUAGE OverloadedStrings #
report=1 to enable fetches tracking
A cheap haxl computation we interleave b/w the @sleep@ fetches.
100ms
test that a completed datasource fetch doesn't show up in Env
finished
cached/finished
cached/finished
test that unfinished ... | Copyright ( c ) 2014 - present , Facebook , Inc.
This source code is distributed under the terms of a BSD license ,
# LANGUAGE ApplicativeDo #
module OutgoneFetchesTests (tests) where
import Haxl.Prelude as Haxl
import Prelude()
import Haxl.Core
import Haxl.DataSource.ConcurrentIO
import Data.IORef
import quali... |
7d264c2d3ce7814484d211b454f79174820c51f2bf91df8b7f88ec7c282df041 | finnishtransportagency/harja | geometriaaineistot.clj | (ns harja.kyselyt.geometriaaineistot
(:require
[harja.domain.geometriaaineistot :as ga]
[specql.core :refer [fetch update! insert! upsert! delete!]]
[specql.op :as op]
[jeesql.core :refer [defqueries]]
[harja.pvm :as pvm]))
(defn tallenna-urakan-tyotunnit [db geometria-aineistot]
(upsert! db
... | null | https://raw.githubusercontent.com/finnishtransportagency/harja/20ede1b2317b7cf88a8e4d746f4fbd634a9a7b4c/src/clj/harja/kyselyt/geometriaaineistot.clj | clojure | (ns harja.kyselyt.geometriaaineistot
(:require
[harja.domain.geometriaaineistot :as ga]
[specql.core :refer [fetch update! insert! upsert! delete!]]
[specql.op :as op]
[jeesql.core :refer [defqueries]]
[harja.pvm :as pvm]))
(defn tallenna-urakan-tyotunnit [db geometria-aineistot]
(upsert! db
... | |
4e3ad238c7bd232886c47db3e29d9b113005dee775bc577bcadcea345a4c3b33 | markandrus/twilio-haskell | Message.hs | # LANGUAGE MultiParamTypeClasses #
{-#LANGUAGE OverloadedStrings #-}
# LANGUAGE ViewPatterns #
-------------------------------------------------------------------------------
-- |
-- Module : Twilio.Message
Copyright : ( C ) 2017-
-- License : BSD-style (see the file LICENSE)
Maintainer : ... | null | https://raw.githubusercontent.com/markandrus/twilio-haskell/00704dc86dbf2117b855b1e2dcf8b6c0eff5bfbe/src/Twilio/Message.hs | haskell | #LANGUAGE OverloadedStrings #
-----------------------------------------------------------------------------
|
Module : Twilio.Message
License : BSD-style (see the file LICENSE)
Stability : provisional
-----------------------------------------------------------------------------
* Resource
* Types
... | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE ViewPatterns #
Copyright : ( C ) 2017-
Maintainer : < >
module Twilio.Message
Message(..)
, Twilio.Message.get
, MessageDirection(..)
, MessageStatus(..)
) where
import Control.Monad
import Control.Monad.Catch
import Data.Aeson
import Data.M... |
45b027b6b9165ca2096d684739c6f5e57d007592c9bd020d230affde22fa521f | geneweb/geneweb | test_mergeInd.ml | open Geneweb
open OUnit2
open Def
let empty_string = 0
let quest_string = 1
let ascend parents = { Gwdb.no_ascend with Def.parents }
let descend children = { Def.children }
let union family = { Def.family }
let couple a b = Adef.couple a b
let person i =
{ (Mutil.empty_person empty_string quest_string) with occ = i... | null | https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/test/test_mergeInd.ml | ocaml | open Geneweb
open OUnit2
open Def
let empty_string = 0
let quest_string = 1
let ascend parents = { Gwdb.no_ascend with Def.parents }
let descend children = { Def.children }
let union family = { Def.family }
let couple a b = Adef.couple a b
let person i =
{ (Mutil.empty_person empty_string quest_string) with occ = i... | |
9036dce8e2448a5e5ec5a66d9b099c976dca15b21af997e165650cf4b75a2237 | melange-re/melange | build_version.ml | let ( .?() ) = Map_string.find_opt
let file_contents ~version =
Format.asprintf
{|
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
*
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free So... | null | https://raw.githubusercontent.com/melange-re/melange/a4f572e5acb261178e6d8aafac77f1b5eaef213b/jscomp/build_version.ml | ocaml | let ( .?() ) = Map_string.find_opt
let file_contents ~version =
Format.asprintf
{|
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P.
*
* This program is free software : you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free So... | |
00327de1d0a69dd6f49a613d047ce92f7ba9512216794e2a4d00a10efdf2dd3b | kyleburton/sandbox | project.clj | (defproject gherkin "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:main ^:skip-aot gherkin.core
:jvm-opts ["-Xmx512m" "-server" "-Dorg.quartz.scheduler.skipUpdateCheck=true"]
:dependencies [
[org.cloju... | null | https://raw.githubusercontent.com/kyleburton/sandbox/1164c96c1c0de0948e8666e2ad8a06bbc673d37a/examples/clojure/gherkin/project.clj | clojure | (defproject gherkin "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:main ^:skip-aot gherkin.core
:jvm-opts ["-Xmx512m" "-server" "-Dorg.quartz.scheduler.skipUpdateCheck=true"]
:dependencies [
[org.cloju... | |
15472a2436880bef233bdd8f72635ed87cafee6c8db73d590621b15376f4fc8a | jephthai/NTFSx | SectorDump.hs | -- SectorDump.hs:
--
-- This is a module that exports block ranges from a disk using the
-- Win32 API. It expects to have a handle provided which can be
created with the " CreateFile ( ) " Win32 API call .
--
--
Author :
-- Contact:
Created : 2012
--
module SectorDump (
exportSectors,
... | null | https://raw.githubusercontent.com/jephthai/NTFSx/f4a613262a7da8239b5281ed503d3aaa5378b4f2/SectorDump.hs | haskell | SectorDump.hs:
This is a module that exports block ranges from a disk using the
Win32 API. It expects to have a handle provided which can be
Contact:
This is a usable import that will allow me to seek the file HANDLE
to whatever byte offset I want.
Given a buffer, this function will ret... | created with the " CreateFile ( ) " Win32 API call .
Author :
Created : 2012
module SectorDump (
exportSectors,
exportRuns
) where
import System.Win32.File
import System.Win32.Types
import Foreign.Marshal.Alloc
import Foreign.Storable
import Foreign.Ptr
import Data.Word
import Data.B... |
836024147ef397920aef42d1018a276d33ff0d01690373447500e2fc62d6ef03 | huangjs/cl | terminfo.lisp | ;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: TERMINFO -*-
Copyright © 2001 ( )
;;;
;;; Permission is hereby granted, free of charge, to any person obtaining
a copy of this Software to deal in the Software without restriction ,
;;; including without limitation the rights to use, copy, modify, merge,
... | null | https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/utils/terminfo.lisp | lisp | -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: TERMINFO -*-
Permission is hereby granted, free of charge, to any person obtaining
including without limitation the rights to use, copy, modify, merge,
provided that the above copyright notice and this permission notice
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ... |
Copyright © 2001 ( )
a copy of this Software to deal in the Software without restriction ,
publish , distribute , sublicense , and/or sell copies of the Software ,
and to permit persons to whom the Software is furnished to do so ,
are included in all copies or substantial portions of the Software .
THIS... |
2f589b56dbc0810e081aab435c0b6bcd3375125a46873439e5640f7b3916e135 | realworldocaml/book | test_float_tolerance_dropped_diff.ml | open! Core
open! Async
open! Import
Regression test for a case where we used to drop the first line of this diff .
let prev = {|
((foo (1 2))
(bar 0.5%))
|}
let next = {|
()
|}
let%expect_test "default" =
let%bind () = patdiff ~prev ~next ~extra_flags:[] in
[%expect
{|
(fg:red)------ (+bold)prev/file... | null | https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/patdiff/test/src/test_float_tolerance_dropped_diff.ml | ocaml | open! Core
open! Async
open! Import
Regression test for a case where we used to drop the first line of this diff .
let prev = {|
((foo (1 2))
(bar 0.5%))
|}
let next = {|
()
|}
let%expect_test "default" =
let%bind () = patdiff ~prev ~next ~extra_flags:[] in
[%expect
{|
(fg:red)------ (+bold)prev/file... | |
5af4a3e088348feb75bee8841655ca11672837385f7fbf13060866a1a8ed96e1 | trez/LazyNES | Addressing.hs | -- |
-- Module: CPU.Addressing
Copyright :
--
module CPU.Addressing
* Zero page
zeropage, zeropageX, zeropageY
-- * Absolute addressing
, absolute, absoluteX, absoluteY
-- * Indirect addressing
, indirect, indirectX, indirectY
, relative
, immediate
, implicit
, accumulator
--... | null | https://raw.githubusercontent.com/trez/LazyNES/8f2572e6bb60d1c0ab2c94c584144220ff9e05d1/src/CPU/Addressing.hs | haskell | |
Module: CPU.Addressing
* Absolute addressing
* Indirect addressing
* Memory
| Default values for Addressing (..)
| Fetches absolute address and adds register x.
| Fetches absolute address and adds register y.
| Adds the value of the index register to fetched absolute address.
| Indirect
| Indexed ... | Copyright :
module CPU.Addressing
* Zero page
zeropage, zeropageX, zeropageY
, absolute, absoluteX, absoluteY
, indirect, indirectX, indirectY
, relative
, immediate
, implicit
, accumulator
, Addressing (..)
, AddressMode (..)
, Storage (..)
, fetchValue, fetchAddress
, storeValue
... |
f059cb5d2a573c057f6b9a1f77966ed21e0e27c19679a29130954792f44bf66a | ocaml-multicore/ocaml-tsan | subst.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/typing/subst.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Misc
open Path
open Types
open Btype
open Local_store
type type_replacement =
| Path of Path.t
... |
964f6db214a71e291d9a9f2c2b77d357a56fcdb64f2d976a1e7b5a11ceebe99a | avsm/platform | yojson.cppo.ml | #include "common.ml"
#define INT
#define INTLIT
#define FLOAT
#define FLOATLIT
#define STRING
#define STRINGLIT
#define TUPLE
#define VARIANT
#include "type.ml"
type json_max = t
#include "write.ml"
#include "monomorphic.ml"
module Pretty =
struct
#include "pretty.ml"
end
#include "write2.ml"
#undef INT
#undef INTLIT
... | null | https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/yojson.1.7.0/lib/yojson.cppo.ml | ocaml | #include "common.ml"
#define INT
#define INTLIT
#define FLOAT
#define FLOATLIT
#define STRING
#define STRINGLIT
#define TUPLE
#define VARIANT
#include "type.ml"
type json_max = t
#include "write.ml"
#include "monomorphic.ml"
module Pretty =
struct
#include "pretty.ml"
end
#include "write2.ml"
#undef INT
#undef INTLIT
... | |
cadee3aa643032df8868cf1a7101263e5b521925e29c58eb8b93b769dd093c9e | marigold-dev/easier-proofs | easier_proof_test.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 Marigold < >
(* ... | null | https://raw.githubusercontent.com/marigold-dev/easier-proofs/49aa431be997df8c7363c8a81f7b64c0c70af0a8/src/tests/easier_proof_test.ml | ocaml | ***************************************************************************
Open Source License
Permission is h... | Copyright ( c ) 2021 Marigold < >
to deal in the Software without restriction , including without limitation
and/or sell copies of the Software , and to permit persons to whom the
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
LIABILITY , WHETHER ... |
cb173979445c4070b5f90aa90cfff73432425b8ebdbb6da4fa32b5675de3b994 | pascal-knodel/haskell-craft | C'3.hs | --
Chapter 3 .
--
module C'3 where
import Prelude hiding
(
(&&)
, (||)
)
import Test.QuickCheck
import E'3'27
import E'3'26
import E'3'25
import E'3'24
import E'3'23
import E'3'22
import E'3'21
import E'3'20
import E'3'19
import E'3'18
import E'3'17
import E'3'16
import E'3'15
import E'3'14
import E'3'... | null | https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%203/C'3.hs | haskell | Chapter 3 .
module C'3 where
import Prelude hiding
(
(&&)
, (||)
)
import Test.QuickCheck
import E'3'27
import E'3'26
import E'3'25
import E'3'24
import E'3'23
import E'3'22
import E'3'21
import E'3'20
import E'3'19
import E'3'18
import E'3'17
import E'3'16
import E'3'15
import E'3'14
import E'3'13
imp... | |
36bef1058290dfbf798100fa5815c764f6157c209de044486d12a71a27d43cb2 | avieth/diplomacy | Subject.hs | |
Module : Diplomacy . Subject
Description : Definition of Subject
Copyright : ( c ) , 2015
Licence : :
Stability : experimental
Portability : non - portable ( GHC only )
Module : Diplomacy.Subject
Description : Definition of Subject
Copyright : (c) Alexander Vieth, 2015
Li... | null | https://raw.githubusercontent.com/avieth/diplomacy/b8868322e59264f8210962dc357c657b86add588/src/Diplomacy/Subject.hs | haskell | | Description of a subject in a diplomacy game, like the subject of an order
for instance:
a. F Bre - Eng
have subjects
| |
Module : Diplomacy . Subject
Description : Definition of Subject
Copyright : ( c ) , 2015
Licence : :
Stability : experimental
Portability : non - portable ( GHC only )
Module : Diplomacy.Subject
Description : Definition of Subject
Copyright : (c) Alexander Vieth, 2015
Li... |
e1f761a39799dbc39b354a6b0164968ccd3aecc50fecf58290f3ed363bd1dac1 | richmit/mjrcalc | tst-vvec.lisp | ;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;; @file tst-vvec.lisp
@author < >
;; @brief Unit Te... | null | https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/tst-vvec.lisp | lisp | -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*-
@file tst-vvec.lisp
@brief Unit Tests.@EOL
@std Common Lisp
@see use-vvec.lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condi... | @author < >
@parblock
Copyright ( c ) 1997,2008,2012,2015 , < > All rights reserved .
1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer .
2 . Redistributions in binary form must reproduce the above copyright not... |
084bcdcba7c18efbadd39b6d5c3f7323ebe1f4608bf8f50f9e64e7cc25bb2aef | mikebroberts/clojurenote | enml.clj | (ns clojurenote.enml
(:use [clojure.walk :only [postwalk]])
(:require [clojure.xml :as xml]))
; ** READ **
(defn plain-span [text]
(struct xml/element :span nil [text]))
(defn en-media->simple-img-fn
"An alternate translation for <en-media> that will produce <img> tags if the
type of media starts with 'im... | null | https://raw.githubusercontent.com/mikebroberts/clojurenote/db1f183fcb3766b9fb219484f3d9a17bd1fa4563/clojurenote/src/clojurenote/enml.clj | clojure | ** READ **
** WRITE ** | (ns clojurenote.enml
(:use [clojure.walk :only [postwalk]])
(:require [clojure.xml :as xml]))
(defn plain-span [text]
(struct xml/element :span nil [text]))
(defn en-media->simple-img-fn
"An alternate translation for <en-media> that will produce <img> tags if the
type of media starts with 'image/' . This ... |
dd91eb3de9a91a1945f5f091cf12c77f8ff7edefcf48343d59a49486a62a385e | tonymorris/geo-gpx | DgpsStation.hs | -- | Simple Type: @dgpsStationType@ </#type_dgpsStationType>
module Data.Geo.GPX.Type.DgpsStation(
DgpsStation
, dgpsStation
, runDgpsStation
) where
import Data.Ix
import Text.XML.HXT.Arrow.Pickle
newtype DgpsStation = DgpsStation Int
deriving (Eq, Ord)
dgpsStation ::
^ The value between 0 and 1023 .
-> May... | null | https://raw.githubusercontent.com/tonymorris/geo-gpx/526b59ec403293c810c2ba08d2c006dc526e8bf9/src/Data/Geo/GPX/Type/DgpsStation.hs | haskell | | Simple Type: @dgpsStationType@ </#type_dgpsStationType> | module Data.Geo.GPX.Type.DgpsStation(
DgpsStation
, dgpsStation
, runDgpsStation
) where
import Data.Ix
import Text.XML.HXT.Arrow.Pickle
newtype DgpsStation = DgpsStation Int
deriving (Eq, Ord)
dgpsStation ::
^ The value between 0 and 1023 .
-> Maybe DgpsStation
dgpsStation n =
if inRange (0, 1023) n
t... |
c8ba541eae685315c9951517f6b0e57cdd845ae92aa7a6fcdf38a5afe7e822a5 | runtimeverification/haskell-backend | PatternVerifier.hs | module Test.Kore.Validate.DefinitionVerifier.PatternVerifier (
test_patternVerifier,
test_verifyBinder,
) where
import Data.List qualified as List
import Data.Text qualified as Text
import Kore.Attribute.Hook qualified as Attribute.Hook
import Kore.Attribute.Simplification (
simplificationAttribute,
)
imp... | null | https://raw.githubusercontent.com/runtimeverification/haskell-backend/7e0d12bef597158073a5d273185096828bd68300/kore/test/Test/Kore/Validate/DefinitionVerifier/PatternVerifier.hs | haskell | , objectSymbolSentence
Not a decimal integer
Not a BOOL.Bool
Not a decimal integer
MLPatternType
Application
axiom
attributes -- module and definition | module Test.Kore.Validate.DefinitionVerifier.PatternVerifier (
test_patternVerifier,
test_verifyBinder,
) where
import Data.List qualified as List
import Data.Text qualified as Text
import Kore.Attribute.Hook qualified as Attribute.Hook
import Kore.Attribute.Simplification (
simplificationAttribute,
)
imp... |
4f9b009264d6d3851095a62d38e746329e9c87fd3a721b8eb643350015ea2888 | Timothy-G-Griffin/cc_cl_cam_ac_uk | dfc.ml | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Compiler Construction 2016
Computer Laboratory
University of Cambridge
( )
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Compiler Construction 2016
Computer Laboratory
University of Cambridge
Timo... | null | https://raw.githubusercontent.com/Timothy-G-Griffin/cc_cl_cam_ac_uk/aabaf64c997301ea69060a1b69e915b9d1031573/basic_transformations/dfc.ml | ocaml | sum : 'a * 'a * ('a -> int) -> int
test : int * int -> int
after the dfc transformation :
apply_funs : funs * int -> int
sum_dfc : int * int * funs -> int
test_dfc : int * int -> int
Observation.
We have specialized sum_dfc to a version that only calls
the functions used by test, represented now a... | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Compiler Construction 2016
Computer Laboratory
University of Cambridge
( )
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Compiler Construction 2016
Computer Laboratory
University of Cambridge
Timo... |
b688eb872cbbce8f0c827ecc5fae6523f4dbc780e077aa984a2374c539223517 | mcorbin/meuse | download_test.clj | (ns meuse.api.crate.download-test
(:require [meuse.api.crate.download :refer :all]
[meuse.api.crate.http :refer [crates-api!]]
[meuse.crate-file :refer [crate-file-store]]
[meuse.helpers.fixtures :refer :all]
[meuse.helpers.request :refer [add-auth]]
[meuse.... | null | https://raw.githubusercontent.com/mcorbin/meuse/d2b74543fce37c8cde770ae6f6097cabb509a804/test/meuse/api/crate/download_test.clj | clojure | (ns meuse.api.crate.download-test
(:require [meuse.api.crate.download :refer :all]
[meuse.api.crate.http :refer [crates-api!]]
[meuse.crate-file :refer [crate-file-store]]
[meuse.helpers.fixtures :refer :all]
[meuse.helpers.request :refer [add-auth]]
[meuse.... | |
7458aba182c0fb6a29ee83d64e6284148cef7c8786ad26a70dc5bb0234a49d2f | K1D77A/lunamech-matrix-api | api-helpers.lisp | (in-package #:lunamech-matrix-api)
(defparameter *request-type-hash* (make-hash-table))
(defparameter +content-type+ "application/json; charset=utf-8");;I will back to const
(defun url-e (url)
(do-urlencode:urlencode url))
(defun gen-headers (connection &optional (content-type +content-type+))
"Generates a he... | null | https://raw.githubusercontent.com/K1D77A/lunamech-matrix-api/cead2f3c7c8f93291067542150fde0c1f2399f20/api/api-helpers.lisp | lisp | I will back to const
post requests
total catchall oh well
if the server is down then this will end up
returning html not json
post requests. theres a few as there are a few ways to post content.
do not auto convert to json
put requests
get requests
delete requests
request macro system
main macro for sending requ... | (in-package #:lunamech-matrix-api)
(defparameter *request-type-hash* (make-hash-table))
(defun url-e (url)
(do-urlencode:urlencode url))
(defun gen-headers (connection &optional (content-type +content-type+))
"Generates a header list for use with dex"
`(("Content-Type" . ,content-type)
("Authorization" ... |
4cfb5b8796e8cb33fef577815607f636d3bc1d1fcd42bdd42c02e4c2665662a6 | GrammaticalFramework/gf-core | Idents.hs | module Idents where
import PGF
cidASimul = mkCId "ASimul"
cidAAnter = mkCId "AAnter"
cidPositAdvAdj = mkCId "PositAdvAdj"
cidPositAdVAdj = mkCId "PositAdVAdj"
cidUseCl = mkCId "UseCl"
cidUseQCl = mkCId "UseQCl"
cidPredVP = mkCId "PredVP"
cidAdjCN = mkCId "AdjCN"
cidUseN = mkCId ... | null | https://raw.githubusercontent.com/GrammaticalFramework/gf-core/9b4f2dd18b64b770aaebfa1885085e8e3447f119/treebanks/talbanken/Idents.hs | haskell | added to Extra
not present in grammar
words
in lexicon, not grammar
in lexicon, not grammar
for old translation | module Idents where
import PGF
cidASimul = mkCId "ASimul"
cidAAnter = mkCId "AAnter"
cidPositAdvAdj = mkCId "PositAdvAdj"
cidPositAdVAdj = mkCId "PositAdVAdj"
cidUseCl = mkCId "UseCl"
cidUseQCl = mkCId "UseQCl"
cidPredVP = mkCId "PredVP"
cidAdjCN = mkCId "AdjCN"
cidUseN = mkCId ... |
a75f74db10895ef1e49c594fa30e26b7ce991f89c47b2124a056395ce5a5231a | ajhc/ajhc | CType.hs | # OPTIONS_JHC -fno - prelude #
module Prelude.CType (
isAscii, isLatin1, isControl, isPrint, isSpace, isUpper, isLower,
isAlpha, isDigit, isOctDigit, isHexDigit, isAlphaNum,
digitToInt, intToDigit,
toUpper, toLower
) where
import Jhc.Inst.Order
import Jhc.Basics
import Jhc.Order
import Jhc.List
imp... | null | https://raw.githubusercontent.com/ajhc/ajhc/8ef784a6a3b5998cfcd95d0142d627da9576f264/lib/jhc/Prelude/CType.hs | haskell | Character-testing operations
Case-changing operations | # OPTIONS_JHC -fno - prelude #
module Prelude.CType (
isAscii, isLatin1, isControl, isPrint, isSpace, isUpper, isLower,
isAlpha, isDigit, isOctDigit, isHexDigit, isAlphaNum,
digitToInt, intToDigit,
toUpper, toLower
) where
import Jhc.Inst.Order
import Jhc.Basics
import Jhc.Order
import Jhc.List
imp... |
9e1f238e2391c77a7d487c21feeac4d633165e2072c4ba691843f2ad33e51bbd | Apress/beg-haskell | Par.hs | module Chapter8.APriori.Par (apriori) where
import Control.Monad.Par
-- import Data.Set (Set)
import qualified Data.Set as S
import Chapter8.APriori.Types
-- No parallelism
apriori : : Double - > [ Transaction ] - > [ FrequentSet ]
apriori transactions =
let c1 = noDups $ concatMap ( \(Transaction t ) - >... | null | https://raw.githubusercontent.com/Apress/beg-haskell/aaacbf047d553e6177c38807e662cc465409dffd/chapter8/src/Chapter8/APriori/Par.hs | haskell | import Data.Set (Set)
No parallelism
No parallelism
With parMapM
With skeleton
With skeleton
indivisible?
split into subproblems
join solutions
solve a subproblem | module Chapter8.APriori.Par (apriori) where
import Control.Monad.Par
import qualified Data.Set as S
import Chapter8.APriori.Types
apriori : : Double - > [ Transaction ] - > [ FrequentSet ]
apriori transactions =
let c1 = noDups $ concatMap ( \(Transaction t ) - > map ( FrequentSet . S.singleton ) $ S.toList... |
b133874c72ce7c3568b429f8f712a87b8caa519039796ab7f03489b134840a31 | RedPRL/yuujinchou | Trie.mli | open Bwd
(** {1 Types} *)
(** The type of hierarchical names. The name [x.y.z] is represented by the OCaml list [["x"; "y"; "z"]]. *)
type path = string list
(** The type of hierarchical names, but using backward lists. The name [x.y.z] is represented by the backward list [Emp #< "x" #< "y" #< "z"]. *)
type bwd_path... | null | https://raw.githubusercontent.com/RedPRL/yuujinchou/8b10007d96f165d0c6f9aee8ef66e8f401c75562/src/Trie.mli | ocaml | * {1 Types}
* The type of hierarchical names. The name [x.y.z] is represented by the OCaml list [["x"; "y"; "z"]].
* The type of hierarchical names, but using backward lists. The name [x.y.z] is represented by the backward list [Emp #< "x" #< "y" #< "z"].
* {1 Basic Operations}
* The empty trie.
* Check whether th... | open Bwd
type path = string list
type bwd_path = string bwd
* The abstract type of a trie .
[ ' data ] represents the information surviving retagging , and [ ' tag ] represents the information to be reset during retagging .
See { ! : retag } , which could reset all tags in O(1 ) time while keeping data... |
0356135823902c7f367909cf64d44b8599ca1fcaf73de4c2f40d750ed3ce29a4 | mirage/mirage-skeleton | config.ml | open Mirage
let main = main "Unikernel.Main" (time @-> pclock @-> mclock @-> job)
let () =
register "speaking_clock"
[ main $ default_time $ default_posix_clock $ default_monotonic_clock ]
| null | https://raw.githubusercontent.com/mirage/mirage-skeleton/144d68992a284730c383eb3d39c409a061bc452e/device-usage/clock/config.ml | ocaml | open Mirage
let main = main "Unikernel.Main" (time @-> pclock @-> mclock @-> job)
let () =
register "speaking_clock"
[ main $ default_time $ default_posix_clock $ default_monotonic_clock ]
| |
14920ae9cdbae3c9453edb4458b89b4916b689193732d503c7ed5302272b8c0e | spurious/snd-mirror | edit-menu.scm | ;;; add some useful options to the Edit menu
;;;
;;; these used to be in the effects menu
(provide 'snd-edit-menu.scm)
(define edit-menu 1)
;;; -------- selection -> new file
(define selection->new
(let ((+documentation+ "(selection-<new) saves the selection in a new file, then opens that file"))
(lambda ()
... | null | https://raw.githubusercontent.com/spurious/snd-mirror/8e7a643c840592797c29384ffe07c87ba5c0a3eb/edit-menu.scm | scheme | add some useful options to the Edit menu
these used to be in the effects menu
-------- selection -> new file
-------- cut selection -> new file
-------- append selection
-------- make-stereofile
--------
-------- crop (trims front and back)
-------- add these to the Edit menu, if possible
(for-each-child w f... |
(provide 'snd-edit-menu.scm)
(define edit-menu 1)
(define selection->new
(let ((+documentation+ "(selection-<new) saves the selection in a new file, then opens that file"))
(lambda ()
(and (selection?)
(let ((new-file-name (snd-tempnam)))
(save-selection new-file-name)
(open-sound new-f... |
add20f6da4ac51858cb32329c0dc8a05c4e07754c9666b8c43d13107ff87ab70 | lehins/Color | Alternative.hs | -- |
Module : Graphics . Color . Space . RGB.Alternative
Copyright : ( c ) 2019 - 2020
-- License : BSD3
Maintainer : < >
-- Stability : experimental
-- Portability : non-portable
--
module Graphics.Color.Space.RGB.Alternative
( module X
) where
import Graphics.Color.Space.Internal as ... | null | https://raw.githubusercontent.com/lehins/Color/8f17d4d17dc9b899af702f54b69d49f3a5752e7b/Color/src/Graphics/Color/Space/RGB/Alternative.hs | haskell | |
License : BSD3
Stability : experimental
Portability : non-portable
| Module : Graphics . Color . Space . RGB.Alternative
Copyright : ( c ) 2019 - 2020
Maintainer : < >
module Graphics.Color.Space.RGB.Alternative
( module X
) where
import Graphics.Color.Space.Internal as X
import Graphics.Color.Space.RGB.Internal as X
import Graphics.Color.Space.RGB.Alternativ... |
9e6f7ce975c91212acd804846e02e411888527a15eb2cbeb300000adf3e2f50c | justinmeiners/exercises | 1_9.scm | 9
; what is
(define l '((kiwis mangoes lemons) and (more)))
(print (car (cdr (cdr (car l)))))
; (more)
; wrong :(
; lemons
(set! l '(() (eggs and (bacon)) (for) (breakfast)))
(print (car (cdr (car (cdr l)))))
; and
(set! l '(() () () (and (cofee)) please))
(print (car (cdr (cdr (cdr l)))))
; (and (coffee))
| null | https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/the-little-lisper/1/1_9.scm | scheme | what is
(more)
wrong :(
lemons
and
(and (coffee)) | 9
(define l '((kiwis mangoes lemons) and (more)))
(print (car (cdr (cdr (car l)))))
(set! l '(() (eggs and (bacon)) (for) (breakfast)))
(print (car (cdr (car (cdr l)))))
(set! l '(() () () (and (cofee)) please))
(print (car (cdr (cdr (cdr l)))))
|
de897d6ced13699dc77bd976e1cee47d939855e1516e71ad2fd1eaac2537fe8a | mhuebert/maria | format.cljc | (ns lark.tree.format
(:require [clojure.string :as str]
[lark.tree.reader :as rd]
[lark.tree.node :as n]
[lark.tree.util :as util]
[lark.tree.range :as range]
[fast-zip.core :as z]))
(def SPACES (str/join (take 200 (repeat " "))))
(defn spaces [n]
(subs ... | null | https://raw.githubusercontent.com/mhuebert/maria/15586564796bc9273ace3101b21662d0c66b4d22/editor/vendor/lark/tree/format.cljc | clojure | (ns lark.tree.format
(:require [clojure.string :as str]
[lark.tree.reader :as rd]
[lark.tree.node :as n]
[lark.tree.util :as util]
[lark.tree.range :as range]
[fast-zip.core :as z]))
(def SPACES (str/join (take 200 (repeat " "))))
(defn spaces [n]
(subs ... | |
8bbe9778aa86ae53a97fedc257f7113b396ceebc2c6e04b42225ab5e403faaa0 | robert-stuttaford/bridge | schema.clj | (ns bridge.event.schema)
(def schema
[#:db{:ident :event/id
:cardinality :db.cardinality/one
:valueType :db.type/uuid
:unique :db.unique/value}
#:db{:ident :event/title
:cardinality :db.cardinality/one
:valueType :db.type/string}
#:db{:ident ... | null | https://raw.githubusercontent.com/robert-stuttaford/bridge/867d81354457c600cc5c25917de267a8e267c853/src/bridge/event/schema.clj | clojure | (ns bridge.event.schema)
(def schema
[#:db{:ident :event/id
:cardinality :db.cardinality/one
:valueType :db.type/uuid
:unique :db.unique/value}
#:db{:ident :event/title
:cardinality :db.cardinality/one
:valueType :db.type/string}
#:db{:ident ... | |
f9b5595088765a56f47f1eb9f510d34a20d18c11c2eb86e972965abb816e859d | samrushing/irken-compiler | t_halloc.scm | ;; -*- Mode: Irken -*-
(include "lib/basis.scm")
(include "lib/map.scm")
(require-ffi 'posix)
(define (get-cstring p) (%cref->string #f p (posix/strlen p)))
(let ((utsname0 (halloc (struct utsname)))
(utsname1 (malloc (struct utsname))))
(posix/uname utsname0)
(posix/uname utsname1)
(printf (string (get... | null | https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/ffi/tests/t_halloc.scm | scheme | -*- Mode: Irken -*- |
(include "lib/basis.scm")
(include "lib/map.scm")
(require-ffi 'posix)
(define (get-cstring p) (%cref->string #f p (posix/strlen p)))
(let ((utsname0 (halloc (struct utsname)))
(utsname1 (malloc (struct utsname))))
(posix/uname utsname0)
(posix/uname utsname1)
(printf (string (get-cstring (%c-sref utsna... |
5f7d69b50859883def3f78fb9181d6a9f3bb7e0214e2c8ba8f6487bff9ae392b | gafiatulin/codewars | Person.hs | -- Broken Greetings
--
module Person where
data Person = Person { name :: String }
greet :: Person -> String -> String
greet person otherName = "Hi " ++ otherName ++ ", my name is " ++ name person
| null | https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/8%20kyu/Person.hs | haskell | Broken Greetings
|
module Person where
data Person = Person { name :: String }
greet :: Person -> String -> String
greet person otherName = "Hi " ++ otherName ++ ", my name is " ++ name person
|
a54a1dc8e9a75f35c9d39b61af1ef0fd9494298cd58cc2a50705c502cf109504 | logicmoo/logicmoo_nlu | paip-prolog.lisp | ;;; -*- Mode: Lisp; Syntax: Common-Lisp -*-
Code from Paradigms of AI Programming
Copyright ( c ) 1991
;;; File auxfns.lisp: Auxiliary functions used by all other programs
;;; Load this file before running any other programs.
;;(in-package "USER")
;;;; Implementation-Specific Details
;; #+:COMMON-LISP
(eval-w... | null | https://raw.githubusercontent.com/logicmoo/logicmoo_nlu/c066897f55b3ff45aa9155ebcf799fda9741bf74/ext/e2c/cynd/paip-prolog.lisp | lisp | -*- Mode: Lisp; Syntax: Common-Lisp -*-
File auxfns.lisp: Auxiliary functions used by all other programs
Load this file before running any other programs.
(in-package "USER")
Implementation-Specific Details
#+:COMMON-LISP
Make it ok to place a function definition on a built-in LISP symbol.
Don't warn if a funct... | Code from Paradigms of AI Programming
Copyright ( c ) 1991
(eval-when (eval compile load)
#+(or Allegro EXCL)
(dolist (pkg '(excl common-lisp common-lisp-user))
(setf (excl:package-definition-lock (find-package pkg)) nil))
#+Lispworks
(setq *PACKAGES-FOR-WARN-ON-REDEFINITION* nil)
#+LCL
(co... |
39f01797563e0fee57ec31fbed581321892317296837b1e9faa8eb3984e59811 | winny-/runomatic | bot.rkt | #lang racket
(provide (all-defined-out)
(all-from-out "types.rkt"))
(require "client.rkt"
"types.rkt"
gregor)
(define (my-player state)
(match state
[(struct* GameState ([players players]))
(for/first ([p players]
#:when (Player-id p))
p)]))
(define (my-... | null | https://raw.githubusercontent.com/winny-/runomatic/1043169259980f6092ba2aa13d370c13953c5955/runomatic/bot.rkt | racket | #lang racket
(provide (all-defined-out)
(all-from-out "types.rkt"))
(require "client.rkt"
"types.rkt"
gregor)
(define (my-player state)
(match state
[(struct* GameState ([players players]))
(for/first ([p players]
#:when (Player-id p))
p)]))
(define (my-... | |
831ed0aeade1027bf03884921ee775fe9ccfcc99b7ae9fc8e92e00b4c4e516f3 | parsonsmatt/annotated-exception | UnliftIO.hs | {-# LANGUAGE ExplicitForAll #-}
-- | This module presents the same interface as
" Control . Exception . Annotated " , but uses ' MonadUnliftIO ' instead of
' Control . . Catch . MonadCatch ' or ' Control . . Catch . MonadThrow ' .
--
-- @since 0.1.2.0
module Control.Exception.Annotated.UnliftIO
( -- * The Ma... | null | https://raw.githubusercontent.com/parsonsmatt/annotated-exception/83623c26ef266aca6f077d269cca96cd8fafbace/src/Control/Exception/Annotated/UnliftIO.hs | haskell | # LANGUAGE ExplicitForAll #
| This module presents the same interface as
@since 0.1.2.0
* The Main Type
* Annotating Exceptions
* Handling Exceptions
* Manipulating Annotated Exceptions
* Re-exports from "Data.Annotation"
* Re-exports from "Control.Exception.Safe"
| Like 'Catch.throwWithCallStack', but uses '... |
" Control . Exception . Annotated " , but uses ' MonadUnliftIO ' instead of
' Control . . Catch . MonadCatch ' or ' Control . . Catch . MonadThrow ' .
module Control.Exception.Annotated.UnliftIO
AnnotatedException(..)
, exceptionWithCallStack
, throwWithCallStack
, checkpoint
, checkpointMa... |
2c677b80c96c654a4c89e89c3abd8d6fcb553966a94ca43b3d97fa42ec28cc13 | vlstill/hsExprTest | rebind.1.ok.hs | myif :: Bool -> a -> a -> a
myif True x _ = x
myif False _ y = y
| null | https://raw.githubusercontent.com/vlstill/hsExprTest/391fc823c1684ec248ac8f76412fefeffb791865/examples/rebind.1.ok.hs | haskell | myif :: Bool -> a -> a -> a
myif True x _ = x
myif False _ y = y
| |
18f55285d242828746b2079195cd673f8b1f46181c9a39dca6faed627980ba0e | RefactoringTools/wrangler | dets_eqc.erl | -module(dets_eqc).
-include_lib("eqc/include/eqc.hrl").
-include_lib("eqc/include/eqc_fsm.hrl").
-compile(export_all).
-ifndef(BUG_OPEN_FILE).
-define(BUG_OPEN_FILE,false).
-endif.
-ifndef(BUG_INSERT_NEW).
-define(BUG_INSERT_NEW,true).
-endif.
-record(state,{name,type,contents=[]}).
-behaviour(common).
module_na... | null | https://raw.githubusercontent.com/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/examples/behaviour_extraction/ets_dets/automatic_output/dets_eqc.erl | erlang | Identify the initial state
S is the current state, From and To are state names
Postcondition, checked after command has been evaluated
not_owner in parallel tests
Top level property
Operations for inclusion in test cases
Make sure the table is not left open by a previous test.
Make sure the table is initially e... | -module(dets_eqc).
-include_lib("eqc/include/eqc.hrl").
-include_lib("eqc/include/eqc_fsm.hrl").
-compile(export_all).
-ifndef(BUG_OPEN_FILE).
-define(BUG_OPEN_FILE,false).
-endif.
-ifndef(BUG_INSERT_NEW).
-define(BUG_INSERT_NEW,true).
-endif.
-record(state,{name,type,contents=[]}).
-behaviour(common).
module_na... |
bc493e33395b602002577faf99a9f8c63cf5abbf0ef96765930c91ec71db2b4d | parsonsmatt/gear-tracker | Component.hs | module Spec.GT.DB.Component where
import Spec.GT.DB.Prelude
import Database.Persist.Postgresql
import GT.DB.Schema.Component
import GT.DB.Schema.Bike
import qualified GT.DB.Component as Component
spec :: SpecWith TestDb
spec = do
describe "getForBike" $ do
itDb "works" $ do
let frame = Compo... | null | https://raw.githubusercontent.com/parsonsmatt/gear-tracker/b7a597b32322e8938192a443572e6735219ce8ff/test/Spec/GT/DB/Component.hs | haskell | module Spec.GT.DB.Component where
import Spec.GT.DB.Prelude
import Database.Persist.Postgresql
import GT.DB.Schema.Component
import GT.DB.Schema.Bike
import qualified GT.DB.Component as Component
spec :: SpecWith TestDb
spec = do
describe "getForBike" $ do
itDb "works" $ do
let frame = Compo... | |
58fcfd6b10911231aa58cd771c5ac113c2cd099e5fe32a717cc4038fddbcd59f | fare/lisp-interface-library | maybe.lisp | (defpackage :lil/interface/monad/test/monad/transformer/maybe
(:use :cl
:lil/interface/base
:lil/interface/monad
:lil/interface/monad/maybe
:lil/interface/monad/transformer/maybe
:lil/interface/monad/transformer
:lil/interface/monad/test/monad))
(in-package :lil/interfa... | null | https://raw.githubusercontent.com/fare/lisp-interface-library/ac2e0063dc65feb805f0c57715d52fda28d4dcd8/interface/monad/test/monad/transformer/maybe.lisp | lisp | (defpackage :lil/interface/monad/test/monad/transformer/maybe
(:use :cl
:lil/interface/base
:lil/interface/monad
:lil/interface/monad/maybe
:lil/interface/monad/transformer/maybe
:lil/interface/monad/transformer
:lil/interface/monad/test/monad))
(in-package :lil/interfa... | |
defa02c89746128ffd4216b434e5abbf5f88c51986098246be5c45c842d575fb | emqx/emqx | emqx_authz_mongodb_SUITE.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy o... | null | https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_authz/test/emqx_authz_mongodb_SUITE.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or im... | Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqx_authz_mongodb_SUITE).
-compile(nowarn_export_all).
-compile(export_all).
-include... |
6204dead0338c36ce74a382473486b906fa961c1215033a90942281eeb5aa960 | haskell-tools/haskell-tools | BindingElem.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE MonoLocalBinds #
-- | Utilities for transformations that work on both top-level and local definitions
module Language.Haskell.Tools.Refactor.Utils.BindingElem where
import Control.Reference
import Language.Haskell.Tools.AST
import Language.Haskell.Tools.Rewrite
import SrcLoc (... | null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/Language/Haskell/Tools/Refactor/Utils/BindingElem.hs | haskell | | Utilities for transformations that work on both top-level and local definitions
| A type class for handling definitions that can appear as both top-level and local definitions
| Accesses a type signature definition in a local or top-level definition
| Accesses a value or function definition in a local or top-leve... | # LANGUAGE FlexibleContexts #
# LANGUAGE MonoLocalBinds #
module Language.Haskell.Tools.Refactor.Utils.BindingElem where
import Control.Reference
import Language.Haskell.Tools.AST
import Language.Haskell.Tools.Rewrite
import SrcLoc (RealSrcSpan)
class NamedElement d => BindingElem d where
sigBind :: Simple Partia... |
29c0d2ea07a52363eeadb0e81841ac72922e670322d60383bd73a8c20c2796ea | yallop/ocaml-ctypes | functions.ml |
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
open Ctypes
open Foreign
module Stubs (F: Ctypes.FOREIGN) =
struct
open F
let callback_returns_int8... | null | https://raw.githubusercontent.com/yallop/ocaml-ctypes/52ff621f47dbc1ee5a90c30af0ae0474549946b4/tests/test-closure-type-promotion/stubs/functions.ml | ocaml |
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
open Ctypes
open Foreign
module Stubs (F: Ctypes.FOREIGN) =
struct
open F
let callback_returns_int8... | |
4d29087b1d5cbd52745f88c9a8d91922fdedb03749d35aca13c2646598aab63f | anoma/juvix | Prealloc.hs | module Juvix.Compiler.Asm.Transformation.Prealloc where
import Data.HashMap.Strict qualified as HashMap
import Juvix.Compiler.Asm.Options
import Juvix.Compiler.Asm.Transformation.Base
computeCodePrealloc :: forall r. (Members '[Error AsmError, Reader Options] r) => InfoTable -> Code -> Sem r Code
computeCodePrealloc ... | null | https://raw.githubusercontent.com/anoma/juvix/807b3b1770289b8921304e92e7305c55c2e11f8f/src/Juvix/Compiler/Asm/Transformation/Prealloc.hs | haskell | returns the maximum memory use and the mapping result (Code with the
Prealloc instructions inserted) | module Juvix.Compiler.Asm.Transformation.Prealloc where
import Data.HashMap.Strict qualified as HashMap
import Juvix.Compiler.Asm.Options
import Juvix.Compiler.Asm.Transformation.Base
computeCodePrealloc :: forall r. (Members '[Error AsmError, Reader Options] r) => InfoTable -> Code -> Sem r Code
computeCodePrealloc ... |
ff62d1ae75361924ee4c36fc0f804cdfb3040a7330f71235f412ee04e7ec9e2c | ocamllabs/opam-doc | index.ml | (* | Direct_path : package * module
| Packed_module : package * imports
*)
type t_value =
| Direct_path of string * string
| Packed_module of string * (string * Digest.t) list
module CrcMap =
Map.Make(struct
type t = string * Digest.t
let compare (s1, d1) (s2, d2) =
let sc = String.compare s1 s... | null | https://raw.githubusercontent.com/ocamllabs/opam-doc/4f5a332750177e3016b82d5923a681510335af4c/src/opam-doc-index/index.ml | ocaml | | Direct_path : package * module
| Packed_module : package * imports
Packer * name
looking up for a packed cmt
If this is a packed module, we need a way to find the path to submodules
The references should be present in the table after the update
Filter the self-references
shouldn't happen but you never... |
type t_value =
| Direct_path of string * string
| Packed_module of string * (string * Digest.t) list
module CrcMap =
Map.Make(struct
type t = string * Digest.t
let compare (s1, d1) (s2, d2) =
let sc = String.compare s1 s2 in
if sc = 0 then
Digest.compare d1 d2
else sc
end)
m... |
383cc087445966e44ccfbb516586f53fa8f0c97dab83212ec21c8b08f7c36568 | cr-org/supernova | Producer.hs | # LANGUAGE FlexibleContexts #
|
Module : Pulsar . Producer
Description : Apache Pulsar client
License : Apache-2.0
Maintainer :
Stability : experimental
The basic producer interaction looks as follows :
> > > LOOKUP
< < < LOOKUP_RESPONSE
> > > PRODUCER
< < < SUCCESS
> > > SE... | null | https://raw.githubusercontent.com/cr-org/supernova/602409a18f47a38541ba24f5e885199efd383f48/lib/src/Pulsar/Producer.hs | haskell | ^ Produces a single message.
an incremental message sequence counter
a unique name | # LANGUAGE FlexibleContexts #
|
Module : Pulsar . Producer
Description : Apache Pulsar client
License : Apache-2.0
Maintainer :
Stability : experimental
The basic producer interaction looks as follows :
> > > LOOKUP
< < < LOOKUP_RESPONSE
> > > PRODUCER
< < < SUCCESS
> > > SE... |
cd6b3b768b04675e439bcfb696f6aa3420c67a87ceb929691fb303966b8f5029 | graninas/Hydra | FTL.hs | {-# LANGUAGE PackageImports #-}
# LANGUAGE AllowAmbiguousTypes #
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE ScopedTypeVariables #
module FTL where
import Control.Monad
import Hydra.Prelude
import qualified Hydra.FTL as FTL
import qualified "hydra-base" Hydra.Runtime as R
import ... | null | https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/app/PerfTestApp2/src/FTL.hs | haskell | # LANGUAGE PackageImports #
# LANGUAGE FlexibleContexts # | # LANGUAGE AllowAmbiguousTypes #
# LANGUAGE ScopedTypeVariables #
module FTL where
import Control.Monad
import Hydra.Prelude
import qualified Hydra.FTL as FTL
import qualified "hydra-base" Hydra.Runtime as R
import Hydra.FTLI ()
flow :: (MonadIO m, FTL.LangL m) => IORef Int ->... |
9b40fed4900748ef4ceefa7731a59da85655ba4fb1b08e62de299ac48ac5bbd7 | ekmett/ekmett.github.com | Apo.hs | {-# OPTIONS_GHC -fglasgow-exts #-}
-----------------------------------------------------------------------------
-- |
Module : Control . Morphism . Apo
Copyright : ( C ) 2008
-- License : BSD-style (see the file LICENSE)
--
Maintainer : < >
-- Stability : experimental
-- Portability ... | null | https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/category-extras-backup/src/Control/Morphism/Apo.hs | haskell | # OPTIONS_GHC -fglasgow-exts #
---------------------------------------------------------------------------
|
License : BSD-style (see the file LICENSE)
Stability : experimental
Portability : non-portable (rank-2 polymorphism)
Traditional operators, shown here to show how to roll your own
--------------... | Module : Control . Morphism . Apo
Copyright : ( C ) 2008
Maintainer : < >
module Control.Morphism.Apo
( apo
, Apo, ApoT
, distApoT
, g_apo
, GApo, GApoT
, distGApo, distGApoT
) where
import Control.Functor.Algebra
import Control.Functor.Extras
import Control.Functor.Fix
import Contr... |
7ed19753443a73e81f1ae6e541e6c1ddcae78daf9fdf06c39fc6463e70524ae3 | babashka/nbb | example.cljs | (ns example
"From "
(:require ["pdfjs-dist/legacy/build/pdf$default" :as pdfjs]
[clojure.string :as str]
[promesa.core :as p]))
(defn get-text [path]
(p/let [doc (.-promise (.getDocument pdfjs path))
page1 (.getPage doc 1)
content (.getTextContent page1)
stri... | null | https://raw.githubusercontent.com/babashka/nbb/4d06aa142a5fb5baac48a8ad8e611d672f779b5f/examples/pdfjs/example.cljs | clojure | (ns example
"From "
(:require ["pdfjs-dist/legacy/build/pdf$default" :as pdfjs]
[clojure.string :as str]
[promesa.core :as p]))
(defn get-text [path]
(p/let [doc (.-promise (.getDocument pdfjs path))
page1 (.getPage doc 1)
content (.getTextContent page1)
stri... | |
dfe39fefdf9a9a37592eeea0772f94a543f01d4bd9ba9f0de22d620d2edc5ce5 | PEZ/rich4clojure | problem_178.clj | (ns rich4clojure.hard.problem-178
(:require [hyperfiddle.rcf :refer [tests]]))
;; = Best Hand =
;; By 4Clojure user: toolkit
;; Difficulty: Hard
;; Tags: [strings game]
;;
Following on from Recognize Playing Cards , determine
the best poker hand that can be made with five cards .
;; The hand rankings are listed... | null | https://raw.githubusercontent.com/PEZ/rich4clojure/482f98f95408639bf3ac7a96d59b33efb443db27/src/rich4clojure/hard/problem_178.clj | clojure | = Best Hand =
By 4Clojure user: toolkit
Difficulty: Hard
Tags: [strings game]
The hand rankings are listed below for your
convenience.
* Straight flush: All cards in the same suit, and in
sequence
another rank
* Flush: All cards in the same suit
* Straight: All cards in sequence (aces can be high or
low... | (ns rich4clojure.hard.problem-178
(:require [hyperfiddle.rcf :refer [tests]]))
Following on from Recognize Playing Cards , determine
the best poker hand that can be made with five cards .
* Four of a kind : Four of the cards have the same rank
* Full House : Three cards of one rank , the other two of
* Thr... |
ab9e3c90e9a43c27192ecba378e034deb08717af42c2e5099b70ea3e0cdcf407 | NorfairKing/cursor | Gen.hs | # OPTIONS_GHC -fno - warn - orphans #
module Cursor.Text.Gen
( genSafeChar,
genTextCursorChar,
textCursorSentenceGen,
textCursorWithGen,
textCursorWithIndex0,
shrinkSentence,
)
where
import Cursor.List
import Cursor.List.Gen
import Cursor.Text
import Cursor.Types
import Data.Char (isSpace)
imp... | null | https://raw.githubusercontent.com/NorfairKing/cursor/ff27e78281430c298a25a7805c9c61ca1e69f4c5/cursor-gen/src/Cursor/Text/Gen.hs | haskell | # OPTIONS_GHC -fno - warn - orphans #
module Cursor.Text.Gen
( genSafeChar,
genTextCursorChar,
textCursorSentenceGen,
textCursorWithGen,
textCursorWithIndex0,
shrinkSentence,
)
where
import Cursor.List
import Cursor.List.Gen
import Cursor.Text
import Cursor.Types
import Data.Char (isSpace)
imp... | |
e602ac74c1be3bd8d90188a953ef4969d668052ba874721f9b0cb7995873c4d1 | ondrap/dynamodb-simple | BaseSpec.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
# LANGUAGE TypeFamilies #
# LANGUAGE FlexibleInstances #
module BaseSpec wher... | null | https://raw.githubusercontent.com/ondrap/dynamodb-simple/fb7e3fe37d7e534161274cfd812cd11a82cc384b/test/BaseSpec.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
& set envLogger lgr
| # LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeFamilies #
# LANGUAGE FlexibleInstances #
module BaseSpec where
import Control.Exception.Safe (SomeException, catchAny, finally,
try)
import Control.Len... |
9749a42e4d3ca6c329fa6c13d7322b6457a6cf95af62736fc0d6febd0a5cca6e | huangz1990/SICP-answers | 46-sub-vect.scm | 46-sub-vect.scm
(load "46-vect-represent.scm")
(define (sub-vect vect another-vect)
(make-vect (- (xcor-vect vect)
(xcor-vect another-vect))
(- (ycor-vect vect)
(ycor-vect another-vect))))
| null | https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/46-sub-vect.scm | scheme | 46-sub-vect.scm
(load "46-vect-represent.scm")
(define (sub-vect vect another-vect)
(make-vect (- (xcor-vect vect)
(xcor-vect another-vect))
(- (ycor-vect vect)
(ycor-vect another-vect))))
| |
70793ea7196013774bedc003ef98d9d503c243bde5b97365df7d5a7ad4cb8290 | slyrus/mcclim-old | transforms.lisp | ;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: CLIM-INTERNALS; -*-
;;; --------------------------------------------------------------------------------------
;;; Title: The CLIM Transformations
Created : 1998 - 09 - 29
Author : < >
;;; License: LGPL (See file COPYING for details).
$ I d : t... | null | https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/transforms.lisp | lisp | -*- Mode: Lisp; Syntax: Common-Lisp; Package: CLIM-INTERNALS; -*-
--------------------------------------------------------------------------------------
Title: The CLIM Transformations
License: LGPL (See file COPYING for details).
------------------------------------------------------------------------------... | Created : 1998 - 09 - 29
Author : < >
$ I d : transforms.lisp , v 1.33 2006 - 03 - 10 21:58:13 tmoore Exp $
( c ) copyright 1998,1999,2003 by
( c ) copyright 2000 by
( )
modify it under the terms of the GNU Library General Public
version 2 of the License , or ( at your op... |
7785d44a6c839160522ea49c9427667429091cfee089b536bfc2d05329e1431f | milankinen/cuic | page.clj | (ns ^:no-doc cuic.internal.page
(:require [clojure.tools.logging :refer [warn]]
[cuic.internal.cdt :refer [invoke on off cdt-promise]])
(:import (java.lang AutoCloseable)))
(set! *warn-on-reflection* true)
(defrecord Page [cdt state subscription]
AutoCloseable
(close [_]
(reset! state nil)
... | null | https://raw.githubusercontent.com/milankinen/cuic/94718c0580da2aa127d967207f163c7a546b6fb1/src/clj/cuic/internal/page.clj | clojure |
Get initial main frame
Attach listeners for lifecycle events
Enable events
Return handle to the page | (ns ^:no-doc cuic.internal.page
(:require [clojure.tools.logging :refer [warn]]
[cuic.internal.cdt :refer [invoke on off cdt-promise]])
(:import (java.lang AutoCloseable)))
(set! *warn-on-reflection* true)
(defrecord Page [cdt state subscription]
AutoCloseable
(close [_]
(reset! state nil)
... |
59aa77666369ab233447a16605e2f3785d354d1ec8b5d2bb2764ecd7ce7179ec | lexi-lambda/hackett | todo.rkt | #lang hackett/base
(require (only-in racket/base define-syntax for-syntax)
(for-syntax racket/base
syntax/srcloc
hackett/private/typecheck)
syntax/parse/define
hackett/private/deferred-transformer
(only-in hackett/private/prim error!))
(pr... | null | https://raw.githubusercontent.com/lexi-lambda/hackett/e90ace9e4a056ec0a2a267f220cb29b756cbefce/hackett-lib/hackett/todo.rkt | racket | #lang hackett/base
(require (only-in racket/base define-syntax for-syntax)
(for-syntax racket/base
syntax/srcloc
hackett/private/typecheck)
syntax/parse/define
hackett/private/deferred-transformer
(only-in hackett/private/prim error!))
(pr... | |
350c971907f25561132d067ce35570734b2daefa04c03f015d1169fd53c66a4b | aryx/xix | ast.ml | Copyright 2016 , see copyright.txt
(* for error reporting *)
type loc = {
file: Common.filename; (* an mkfile *)
line: int;
}
The elements below are not separated by any separator ; they are direct
* concatenations of elements ( hence the need for $ { name } below ) .
* The list must contain at least ... | null | https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/mk/ast.ml | ocaml | for error reporting
an mkfile
except the empty string
evaluated in eval.ml just after parsing
stricter: backquotes are allowed only in word context, not at toplevel
* so no `echo '<foo.c'`
`...` or `{...} (the string does not include the backquote or braces)
$name or ${name} (the string does not cont... | Copyright 2016 , see copyright.txt
type loc = {
line: int;
}
The elements below are not separated by any separator ; they are direct
* concatenations of elements ( hence the need for $ { name } below ) .
* The list must contain at least one element .
* ex : ' % .c ' - > W [ Percent ; String " .c " ] ... |
065aac5ed69794b29f29e63095be9a7ae0f022d0743881ab5fd8934018ff07f6 | fission-codes/fission | Types.hs | -- | File types
module Network.IPFS.File.Types (Serialized (..)) where
import qualified Data.ByteString.Builder as Builder
import Data.Swagger
import qualified RIO.ByteString.Lazy as Lazy
import Servant.API
import Network.IPFS.MIME.RawPlainText.Types
import Network.IPFS.Prelude
-- | A file serialized ... | null | https://raw.githubusercontent.com/fission-codes/fission/fb76d255f06ea73187c9b787bd207c3778e1b559/ipfs/library/Network/IPFS/File/Types.hs | haskell | | File types
| A file serialized as a lazy bytestring
---
--- | module Network.IPFS.File.Types (Serialized (..)) where
import qualified Data.ByteString.Builder as Builder
import Data.Swagger
import qualified RIO.ByteString.Lazy as Lazy
import Servant.API
import Network.IPFS.MIME.RawPlainText.Types
import Network.IPFS.Prelude
newtype Serialized = Serialized { unser... |
1604a89c6240e17da32018196796029dcf3d83119c2b294a8b0d9a9baef928e1 | alexanderwasey/stupid-computer | FormalActualMap.hs | # LANGUAGE PackageImports , LambdaCase , ScopedTypeVariables , TypeApplications #
# OPTIONS_GHC -Wno - missing - fields #
module FormalActualMap where
import "ghc-lib-parser" GHC.Hs
import "ghc-lib-parser" SrcLoc
import "ghc-lib-parser" RdrName
import "ghc-lib-parser" OccName
import "ghc-lib-parser" Outputable
impor... | null | https://raw.githubusercontent.com/alexanderwasey/stupid-computer/a485d2f33a4b8d58128a74b9003b9eadffe42702/src/FormalActualMap.hs | haskell | Now deal with each of the cases for the patterns
Simple case with just a variable pattern
Currently only concatenation
Check in the rhs for non-empty lists
Currently only empty list (and constructors)
Matches against `_`
For when has located expressions
Single located expression
Check in the rhs for non-empty lists
C... | # LANGUAGE PackageImports , LambdaCase , ScopedTypeVariables , TypeApplications #
# OPTIONS_GHC -Wno - missing - fields #
module FormalActualMap where
import "ghc-lib-parser" GHC.Hs
import "ghc-lib-parser" SrcLoc
import "ghc-lib-parser" RdrName
import "ghc-lib-parser" OccName
import "ghc-lib-parser" Outputable
impor... |
345e1249d1dd1f298b37e97d1df489d4c6f21004a9ec66fb9f97b133ee29f9f6 | bmeurer/ocaml-arm | stack.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/stdlib/stack.ml | ocaml | *********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Public License , with
$ Id$
type 'a t = { mutable c : 'a l... |
72b8cf5046d7809b93e1286d5c937603ad0eeb0e6aef506cdf4c4268d0f5b2f1 | ucsd-progsys/230-wi19-web | Expressions.hs | {-@ LIQUID "--reflection" @-}
{-@ LIQUID "--ple" @-}
{-@ LIQUID "--diff" @-}
TODO : to have to rewrite this annotation !
# LANGUAGE PartialTypeSignatures #
module Expressions where
import Prelude hiding ((++), const, sum)
import ProofCombinators
import Lists
import qual... | null | https://raw.githubusercontent.com/ucsd-progsys/230-wi19-web/7f5fc5414886fae4e2382cd5a0e48f638be06f0f/src/Week4/Expressions.hs | haskell | @ LIQUID "--reflection" @
@ LIQUID "--ple" @
@ LIQUID "--diff" @
------------------------------------------------------------------------------
| Arithmetic Expressions
------------------------------------------------------------------------------
@ reflect aval @
----------------------------------------... | TODO : to have to rewrite this annotation !
# LANGUAGE PartialTypeSignatures #
module Expressions where
import Prelude hiding ((++), const, sum)
import ProofCombinators
import Lists
import qualified State as S
type Vname = String
data AExp
= N Val
| V Vname
| Plus AExp ... |
f8d302f82b0ff57c989182891cb6be900ebe46ae0839b1c0b984433bda5563e6 | rizo/streams-bench | Pull_option.ml | type 'a t = unit -> 'a option
let singleton x =
let first = ref true in
fun () ->
if !first then (
first := false;
Some x)
else None
let count () =
let i = ref 0 in
fun () ->
let x = !i in
incr i;
Some x
let init n f =
let i = ref 0 in
fun () ->
if !i = n then None
... | null | https://raw.githubusercontent.com/rizo/streams-bench/87baf838971c84613b801ab32b6473d397bcc23f/src/Pull_option.ml | ocaml | wrap exception into option, for next to be tailrec
yield element
discard element
indicate stop | type 'a t = unit -> 'a option
let singleton x =
let first = ref true in
fun () ->
if !first then (
first := false;
Some x)
else None
let count () =
let i = ref 0 in
fun () ->
let x = !i in
incr i;
Some x
let init n f =
let i = ref 0 in
fun () ->
if !i = n then None
... |
5cbe5b502c90385c63e5ae809bdf2c246db01a7bcfd756ff85a730f128abe894 | freetonik/degas | individual.cljs | (ns degas.individual
(:require [clojure.string :as str]))
(defn rand-ind [length max]
"Returns a vector, an individual of given length with random elements up to u-max each."
(apply vector (repeatedly length #(rand-int max))))
(defn rand-unique-ind [length]
"Returns a vector of ints from 0 to length, shuffled... | null | https://raw.githubusercontent.com/freetonik/degas/ca98e9557e35487bee4d012518bdcaac14a327ba/src/degas/individual.cljs | clojure | (ns degas.individual
(:require [clojure.string :as str]))
(defn rand-ind [length max]
"Returns a vector, an individual of given length with random elements up to u-max each."
(apply vector (repeatedly length #(rand-int max))))
(defn rand-unique-ind [length]
"Returns a vector of ints from 0 to length, shuffled... | |
14437f597a0289d16e375cf68b1fef27543f083ea462e17996bfc80fc18355f4 | RunOrg/RunOrg | logReq.ml | (* © 2014 RunOrg *)
open Run
let enabled = match Configuration.Log.httpd with
| `None -> false
| `Trace
| `Debug -> true
(* Context management
================== *)
type t = {
id : int ;
mutable time : float ;
}
class type ctx = object ('self)
method logreq : t
end
let id = ref 0
class log_ctx... | null | https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/logReq.ml | ocaml | © 2014 RunOrg
Context management
==================
Printing out
============ |
open Run
let enabled = match Configuration.Log.httpd with
| `None -> false
| `Trace
| `Debug -> true
type t = {
id : int ;
mutable time : float ;
}
class type ctx = object ('self)
method logreq : t
end
let id = ref 0
class log_ctx = object
val log = { id = (incr id ; !id) ; time = Unix.gettimeof... |
3eb555a1ddd878f2c619f7c1fc85d97a213dfd5972e34d945b9c4862cb9c0c23 | amuletml/amulet | Uncurry.hs | # LANGUAGE FlexibleContexts , ScopedTypeVariables #
| The unboxing pass attempts to convert curried functions which take
multiple arguments to uncurried functions taking unboxed tuples .
This is performed through a worker / wrapper transformation . We create a
worker function which takes its arguments as a... | null | https://raw.githubusercontent.com/amuletml/amulet/fcba0b7e198b8d354e95722bbe118bccc8483f4e/src/Core/Optimise/Uncurry.hs | haskell | | Runs the uncurry pass on the provided statements.
We need a fresh source of variables for workers and temporary
Nested lets
Trivial terms
Nested terms
Trivial lets
Nested lets
^ Build a boxed wrapper for some worker function.
^ The worker's variable
^ The wrapper's variable
^ The original worker's definit... | # LANGUAGE FlexibleContexts , ScopedTypeVariables #
| The unboxing pass attempts to convert curried functions which take
multiple arguments to uncurried functions taking unboxed tuples .
This is performed through a worker / wrapper transformation . We create a
worker function which takes its arguments as a... |
f723a932535b341834eec8daa7442e7dd7c181ff2a051d015d56748a7124d230 | roelvandijk/containers-unicode-symbols | Unicode.hs | # LANGUAGE NoImplicitPrelude , UnicodeSyntax #
|
Module : Data . Sequence . Unicode
Copyright : 2009–2012 : BSD3 ( see the file LICENSE )
Maintainer : < >
Module : Data.Sequence.Unicode
Copyright : 2009–2012 Roel van Dijk
License : BSD3 (see the file LICENSE)
Maintainer : Roel van D... | null | https://raw.githubusercontent.com/roelvandijk/containers-unicode-symbols/f86291a145e013138c9a935b61b063162afc61a8/Data/Sequence/Unicode.hs | haskell | -----------------------------------------------------------------------------
Imports
-----------------------------------------------------------------------------
from containers:
-----------------------------------------------------------------------------
Fixities
-------------------------------------------------... | # LANGUAGE NoImplicitPrelude , UnicodeSyntax #
|
Module : Data . Sequence . Unicode
Copyright : 2009–2012 : BSD3 ( see the file LICENSE )
Maintainer : < >
Module : Data.Sequence.Unicode
Copyright : 2009–2012 Roel van Dijk
License : BSD3 (see the file LICENSE)
Maintainer : Roel van D... |
45615977533f26007462ce415f0d71b58ce16f93e950ab6254dc4ab705a9abb9 | OCamlPro/freeton_wallet | commandMultisigDebot.ml | (**************************************************************************)
(* *)
Copyright ( c ) 2021 OCamlPro SAS
(* *)
(* All right... | null | https://raw.githubusercontent.com/OCamlPro/freeton_wallet/b97877379e51d96cb3544141d386d502348cfca9/src/freeton_wallet_lib/commandMultisigDebot.ml | ocaml | ************************************************************************
All rights reserved.
This file is distributed u... | Copyright ( c ) 2021 OCamlPro SAS
Public License version 2.1 , with the special exception on linking
open Ezcmd.V2
open EZCMD.TYPES
open Types
let action account =
let config = Config.config () in
let account = match account with
| None -> "debot-multisig"
... |
da627662af52536d0d504f70dd78a8b22df210981cc25a955c5b84ca114b2265 | hemmi/coq2scala | refl_tauto.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2/plugins/rtauto/refl_tauto.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
********************************************************************** | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
module Search = Explore.Make(... |
59e3c7a50f875667ecbdbcbc9b18cc4b8db6762d643bc03bf9c9d624b1711bf9 | zotonic/zotonic | zotonic_cmd_startsite.erl | %%%-------------------------------------------------------------------
%%% @author Blaise
%%% @doc
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 a... | null | https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_launcher/src/command/zotonic_cmd_startsite.erl | erlang | -------------------------------------------------------------------
@author Blaise
@doc
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... | Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
Created : 18 . Dec 2017 4:07 PM
-module(zotonic_cmd_startsite).
-author("Blaise").
-export([info/0, run/1]).
info() ->
"Start a site.".
run([ Site ]) ->
case zotoni... |
946bb059cc0db69fc37b44efe91e8364fd8a47620231bbb02053e4284ac22725 | walmartlabs/clojure-game-geek | build.clj | (ns build
(:refer-clojure :exclude [test])
(:require [org.corfield.build :as bb]))
(def lib 'net.clojars.my/clojure-game-geek)
(def version "0.1.0-SNAPSHOT")
(def main 'my.clojure-game-geek)
(defn test "Run the tests." [opts]
(bb/run-tests (assoc opts :aliases [:dev])))
(defn ci "Run the CI pipeline of tests (... | null | https://raw.githubusercontent.com/walmartlabs/clojure-game-geek/62b5fcf7b15e348eb7cda878097b40f4934f0f91/build.clj | clojure | (ns build
(:refer-clojure :exclude [test])
(:require [org.corfield.build :as bb]))
(def lib 'net.clojars.my/clojure-game-geek)
(def version "0.1.0-SNAPSHOT")
(def main 'my.clojure-game-geek)
(defn test "Run the tests." [opts]
(bb/run-tests (assoc opts :aliases [:dev])))
(defn ci "Run the CI pipeline of tests (... | |
9031eb55fb41e0ecd9b06e8e4efc1555cac037c1b1a71bfc4962885ad29f8bac | hongchangwu/ocaml-type-classes | eq.mli | module type S = sig
type t
val ( == ) : t -> t -> bool
val ( /= ) : t -> t -> bool
end
val bool : (module S with type t = bool)
val char : (module S with type t = char)
val float : (module S with type t = float)
val int : (module S with type t = int)
val list : (module S with type t = 'a) -> (module S with type... | null | https://raw.githubusercontent.com/hongchangwu/ocaml-type-classes/17b11af26008f42a88aec85001a94ba18584ea72/lib/eq.mli | ocaml | module type S = sig
type t
val ( == ) : t -> t -> bool
val ( /= ) : t -> t -> bool
end
val bool : (module S with type t = bool)
val char : (module S with type t = char)
val float : (module S with type t = float)
val int : (module S with type t = int)
val list : (module S with type t = 'a) -> (module S with type... | |
49f126e51dffb561a1192a3af1e4b3ba82a77ec66954424619ba7db60dda0b5b | databrary/databrary | Messages.hs | {-# LANGUAGE OverloadedStrings #-}
module Web.Messages
( generateMessagesJS
) where
import Control.Monad.IO.Class (liftIO)
import qualified Data.Aeson.Encoding as JSON
import qualified Data.ByteString.Builder as BSB
import System.IO (withBinaryFile, IOMode(WriteMode), hPutStr)
import qualified JSON
import Service... | null | https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/Web/Messages.hs | haskell | # LANGUAGE OverloadedStrings # | module Web.Messages
( generateMessagesJS
) where
import Control.Monad.IO.Class (liftIO)
import qualified Data.Aeson.Encoding as JSON
import qualified Data.ByteString.Builder as BSB
import System.IO (withBinaryFile, IOMode(WriteMode), hPutStr)
import qualified JSON
import Service.Messages
import Files
import Web
i... |
c64482d1e530b831e7d9e9f24a0ee63c77d278e36b6a98eb982dedd1abbe474a | phantomics/seed | package.lisp | package.lisp
(defpackage #:seed.ui-model.keys
(:export #:key-ui #:specify-key-ui #:build-key-ui #:portal-action)
(:use #:cl #:parenscript #:symbol-munger))
| null | https://raw.githubusercontent.com/phantomics/seed/f128969c671c078543574395d6b23a1a5f2723f8/seed.ui-model.keys/package.lisp | lisp | package.lisp
(defpackage #:seed.ui-model.keys
(:export #:key-ui #:specify-key-ui #:build-key-ui #:portal-action)
(:use #:cl #:parenscript #:symbol-munger))
| |
e2d66637c115a52e76ce0fcf8f65e975e8c845a67aa798a1772c75faf07b4969 | realworldocaml/book | cst.mli | (** Concrete syntax tree of expectations and actual outputs *)
(** These types represent the contents of an [%expect] node or of the actual output. We
keep information about the original layout so that we can give an corrected
expectation that follows the original formatting.
In the following names, blank... | null | https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppx_expect/matcher/cst.mli | ocaml | * Concrete syntax tree of expectations and actual outputs
* These types represent the contents of an [%expect] node or of the actual output. We
keep information about the original layout so that we can give an corrected
expectation that follows the original formatting.
In the following names, blank means ... |
open! Base
module Line : sig
type 'a not_blank =
; orig : string
; data : 'a
}
[@@deriving_inline sexp_of, compare, equal]
include
sig
[@@@ocaml.warning "-32"]
val sexp_of_not_blank :
('a -> Sexplib0.Sexp.t) -> 'a not_blank -> Sexplib0.Sexp.t
val compare_not_blank :
... |
69112cb37fa2f8ac714e90370beafa141e3ea986e989392241acdf000603483a | timbod7/haskell-chart | example3-m.hs | import Graphics.Rendering.Chart.Easy
import Graphics.Rendering.Chart.Backend.Cairo
import Data.Time.LocalTime
import Prices(prices1)
fillBetween title vs = liftEC $ do
plot_fillbetween_title .= title
color <- takeColor
plot_fillbetween_style .= solidFillStyle color
plot_fillbetween_values .= vs
main = toFile... | null | https://raw.githubusercontent.com/timbod7/haskell-chart/8c5a823652ea1b4ec2adbced4a92a8161065ead6/wiki-examples/example3-m.hs | haskell | import Graphics.Rendering.Chart.Easy
import Graphics.Rendering.Chart.Backend.Cairo
import Data.Time.LocalTime
import Prices(prices1)
fillBetween title vs = liftEC $ do
plot_fillbetween_title .= title
color <- takeColor
plot_fillbetween_style .= solidFillStyle color
plot_fillbetween_values .= vs
main = toFile... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.