_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 |
|---|---|---|---|---|---|---|---|---|
e7813a99603c05b824fc100e6bd139770e526f995ae8bf8119fd95ec7216e963 | cedlemo/OCaml-GI-ctypes-bindings-generator | Misc.mli | open Ctypes
type t
val t_typ : t typ
val get_alignment :
t -> (float * float)
val get_padding :
t -> (int32 * int32)
val set_alignment :
t -> float -> float -> unit
val set_padding :
t -> int32 -> int32 -> unit
| null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Misc.mli | ocaml | open Ctypes
type t
val t_typ : t typ
val get_alignment :
t -> (float * float)
val get_padding :
t -> (int32 * int32)
val set_alignment :
t -> float -> float -> unit
val set_padding :
t -> int32 -> int32 -> unit
| |
ec93a1196919fa32a84476e00567c2da01ade03eb8d3dba113f94d71eaab11d0 | nasa/Common-Metadata-Repository | variable.clj | (ns cmr.indexer.data.concepts.variable
"Contains functions to parse and convert variable concepts"
(:require
[clojure.string :as string]
[cmr.common.concepts :as concepts]
[cmr.common.log :refer (debug info warn error)]
[cmr.common.mime-types :as mt]
[cmr.common.util :as util]
[cmr.indexer.data.co... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/431c8650185deb23583d4c471b772203fc868fe6/indexer-app/src/cmr/indexer/data/concepts/variable.clj | clojure | This is only called by re-indexing (bulk indexing)
Regular deleted variables would have gone through the index-service/delete-concept path.
associated collections and generic concepts saved in elasticsearch for retrieving purpose in the format of:
[{"concept_id":"C1200000007-PROV1"}, {"concept_id":"C1200000008-PROV... | (ns cmr.indexer.data.concepts.variable
"Contains functions to parse and convert variable concepts"
(:require
[clojure.string :as string]
[cmr.common.concepts :as concepts]
[cmr.common.log :refer (debug info warn error)]
[cmr.common.mime-types :as mt]
[cmr.common.util :as util]
[cmr.indexer.data.co... |
67d874750b99f4f1974c59c1e1a800c168dd5bb725e8e0ef37893325222d9d70 | inria-parkas/sundialsml | cvsAdvDiff_FSA_non_p.ml |
* -----------------------------------------------------------------
* $ Revision : 1.1 $
* $ Date : 2007/10/25 20:03:30 $
* -----------------------------------------------------------------
* Programmer(s ): , , ,
* and @ LLNL
* -------------------------------------------... | null | https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/cvodes/parallel/cvsAdvDiff_FSA_non_p.ml | ocaml | Problem Constants
domain boundary
mesh dimension
number of equations
scalar absolute tolerance
initial time
first output time
output time increment
number of output times
Type : UserData
contains problem parameters, grid constants, work array.... |
* -----------------------------------------------------------------
* $ Revision : 1.1 $
* $ Date : 2007/10/25 20:03:30 $
* -----------------------------------------------------------------
* Programmer(s ): , , ,
* and @ LLNL
* -------------------------------------------... |
1ec7b0a583f95a6a075345f829ae2a0ae4c2d15d9fb2fad3e57f238bf76173b6 | JHU-PL-Lab/jaylang | lookup.ml | open Core
open Dj_common
open Jayil
open Jayil.Ast
open Cfg
open Log.Export
module U_ddse = Lookup_ddse_rule.U
let push_job (state : Global_state.t) (key : Lookup_key.t) task () =
(* Scheduler.push state.job_queue key task *)
let job_key : Job_key.t =
{ lookup = key; block_visits = Observe.get_block_visits sta... | null | https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/914b4e13e8c8e411a1d55916101875311894b826/src/dbmc/lookup.ml | ocaml | Scheduler.push state.job_queue key task
reset and init
block works similar to env in a common interpreter
match Riddler.check_phis (Set.to_list phis) false with
| None -> Lwt.return_unit
| Some _ ->
LLog.app (fun m ->
m "[Lookup][<=]: %a" Lookup_key.pp this_key) ;
reset and init | open Core
open Dj_common
open Jayil
open Jayil.Ast
open Cfg
open Log.Export
module U_ddse = Lookup_ddse_rule.U
let push_job (state : Global_state.t) (key : Lookup_key.t) task () =
let job_key : Job_key.t =
{ lookup = key; block_visits = Observe.get_block_visits state key }
in
Scheduler.push state.job_queue j... |
60ea3f15d30c7b581201a1a86fb95d852d3dd39d62e78ebb78f4425a72476014 | bmeurer/ocaml-arm | objinfo.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
, projet ... | null | https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/tools/objinfo.ml | ocaml | *********************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
, PPS laboratory , University Paris Diderot
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . Modifications Copyright 2010 ,
Q Public License version 1.0 . ... |
05938e9d6f8cc1c358729bca4aa54c03c717d4a9f783e2fd7f4015ffed12b250 | racket/racket7 | module-path.rkt | #lang racket/base
(require "../compile/serialize-property.rkt"
"contract.rkt"
"parse-module-path.rkt"
"intern.rkt")
(provide module-path?
resolved-module-path?
make-resolved-module-path
resolved-module-path-name
resolved-module-path-root-name
... | null | https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/common/module-path.rkt | racket | returns #f if not yet resolved
----------------------------------------
Although equal resolved module paths are `eq?` externally,
we need this equality predicate to hash them for the
interning table
----------------------------------------
Serialization of a module path index is handled specially, because they
... | #lang racket/base
(require "../compile/serialize-property.rkt"
"contract.rkt"
"parse-module-path.rkt"
"intern.rkt")
(provide module-path?
resolved-module-path?
make-resolved-module-path
resolved-module-path-name
resolved-module-path-root-name
... |
68d7d7dd5b71f62c79fb139683b4fa9434d9f216ad7bb052e7cfa0e67516d0ce | eugeneia/athens | package.lisp | (in-package :cl-user)
(defpackage :trivial-types
(:use :cl)
(:export #:proper-list-p
#:proper-list
#:property-list-p
#:property-list
#:association-list-p
#:association-list
#:tuplep
#:tuple
#:character-designator
#:... | null | https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/trivial-types-20120407-git/src/package.lisp | lisp | (in-package :cl-user)
(defpackage :trivial-types
(:use :cl)
(:export #:proper-list-p
#:proper-list
#:property-list-p
#:property-list
#:association-list-p
#:association-list
#:tuplep
#:tuple
#:character-designator
#:... | |
14aadf802cc74a3fc4ef54455011072f0b429d7f9fffca47890d58e3802ef2f1 | ghcjs/ghcjs-boot | hGetLine001.hs | -- !!! testing hGetLine
import System.IO
one version of ' cat '
main = do
let loop h = do b <- hIsEOF h
if b then return ()
else do l <- hGetLine h; putStrLn l; loop h
loop stdin
h <- openFile "hGetLine001.hs" ReadMode
hSetBinaryMode stdout True
hSetBuffering h NoBuffering
loop h... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/base/tests/IO/hGetLine001.hs | haskell | !!! testing hGetLine |
import System.IO
one version of ' cat '
main = do
let loop h = do b <- hIsEOF h
if b then return ()
else do l <- hGetLine h; putStrLn l; loop h
loop stdin
h <- openFile "hGetLine001.hs" ReadMode
hSetBinaryMode stdout True
hSetBuffering h NoBuffering
loop h
hSeek h AbsoluteSeek... |
0f876359823416f12efcb2eaedc067021a76e4c2e21ca0ff103c60d8ee50d857 | threatgrid/ctia | project.clj | (defproject redismq-java-client "0.1.0-SNAPSHOT"
:description "Java example using redismq"
:dependencies [[org.clojure/clojure "1.7.0"]
[biz.paluch.redis/lettuce "4.3.0.Final"]
[org.json/json "20160810"]]
:source-paths []
:java-source-paths ["src"]
:profiles {:dev {:resource-... | null | https://raw.githubusercontent.com/threatgrid/ctia/32857663cdd7ac385161103dbafa8dc4f98febf0/examples/redismq-java-client/project.clj | clojure | (defproject redismq-java-client "0.1.0-SNAPSHOT"
:description "Java example using redismq"
:dependencies [[org.clojure/clojure "1.7.0"]
[biz.paluch.redis/lettuce "4.3.0.Final"]
[org.json/json "20160810"]]
:source-paths []
:java-source-paths ["src"]
:profiles {:dev {:resource-... | |
22f0040654078f9002edd12211c5d70885c9b4450663374f1ed3c9ac8635c62d | RobBlackwell/cl-azure | tables.lisp | ;;;; tables.lisp
Copyright ( c ) 2011 - 2013 , . All rights reserved .
(in-package #:cl-azure)
See Windows Azure Storage Services REST API Reference
;;; -us/library/dd179355.aspx
(defun sign-table-storage-request (request)
"Signs a table storage request by computing a shared key signature and adding a corr... | null | https://raw.githubusercontent.com/RobBlackwell/cl-azure/03b097256d85ea09f090987c0c833c61eb7b9b5d/tables.lisp | lisp | tables.lisp
-us/library/dd179355.aspx
update entity
merge entity
delete entity | Copyright ( c ) 2011 - 2013 , . All rights reserved .
(in-package #:cl-azure)
See Windows Azure Storage Services REST API Reference
(defun sign-table-storage-request (request)
"Signs a table storage request by computing a shared key signature and adding a corresponding Authorization header."
(let* ((str ... |
0558015a8bd78914cfacd27235d7a01506167743392179db267908e7c03a4dc5 | spaceships/circuit-synthesis | Netlist.hs | # LANGUAGE TemplateHaskell #
{-# LANGUAGE BangPatterns #-}
# LANGUAGE LambdaCase #
module Circuit.Format.Netlist
( Circuit.Format.Netlist.read
, readNetlist
) where
import Circuit
import Circuit.Parser
import Circuit.Builder as B
import Control.Monad
import Control.Monad.Trans
import Lens.Micro.Platform
... | null | https://raw.githubusercontent.com/spaceships/circuit-synthesis/3fdb67f814acd16e29064138b38c4fedff27b4d5/src/Circuit/Format/Netlist.hs | haskell | # LANGUAGE BangPatterns #
passthrough input
------------------------------------------------------------------------------
------------------------------------------------------------------------------
a circuit. | # LANGUAGE TemplateHaskell #
# LANGUAGE LambdaCase #
module Circuit.Format.Netlist
( Circuit.Format.Netlist.read
, readNetlist
) where
import Circuit
import Circuit.Parser
import Circuit.Builder as B
import Control.Monad
import Control.Monad.Trans
import Lens.Micro.Platform
import Text.Parsec hiding (spa... |
606810051f78a62cc9effbadbefe5c3bf0b350822d140f5992e0660eeb5f186c | mpenet/ex | project.clj | (defproject cc.qbits/ex "0.1.3"
:description "Yet another exception catching library"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]]
:source-paths ["src/clj"]
:global-vars {*warn-on-reflection* true})
| null | https://raw.githubusercontent.com/mpenet/ex/ea101649ac284a595950205b6392a441e4b17879/project.clj | clojure | (defproject cc.qbits/ex "0.1.3"
:description "Yet another exception catching library"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"]]
:source-paths ["src/clj"]
:global-vars {*warn-on-reflection* true})
| |
f1c6346d1eee5e1cf9a1b33b74af321e14af2ab988010979d58b99c46662ab03 | haskell/cabal | Path.hs | {-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE StandaloneDeriving #
module Distribution.Utils.Path (
-- * Symbolic path
SymbolicPath,
getSymbolicPath,
sameDirectory,
unsafeMakeSymbolicPath,
-- * Path ends
PackageDir,
SourceDir,
LicenseFile,
IsDir,
) whe... | null | https://raw.githubusercontent.com/haskell/cabal/0abbe37187f708e0a5daac8d388167f72ca0db7e/Cabal-syntax/src/Distribution/Utils/Path.hs | haskell | # LANGUAGE DeriveDataTypeable #
* Symbolic path
* Path ends
-----------------------------------------------------------------------------
* SymbolicPath
-----------------------------------------------------------------------------
| Symbolic paths.
These paths are system independent and relative.
They are *symbo... | # LANGUAGE DeriveGeneric #
# LANGUAGE StandaloneDeriving #
module Distribution.Utils.Path (
SymbolicPath,
getSymbolicPath,
sameDirectory,
unsafeMakeSymbolicPath,
PackageDir,
SourceDir,
LicenseFile,
IsDir,
) where
import Prelude ()
import Distribution.Compat.Prelude
import Distribution.... |
ca73810277982fc0934b5c701f10b9a2e1802ea55c7fe9ff3ffbe3b056a3701e | tlikonen/gpg-utilities | gpg-graph.lisp | Author : < >
;;
;; License: Creative Commons CC0 (public domain dedication)
;;
(defpackage #:graph
(:nicknames #:gpg-graph)
(:use #:cl #:common)
(:export #:main #:print-usage))
(in-package #:graph)
(defvar *program* "gpg-graph")
(defun print-usage ()
(format t "~
Usage: ~A [options] [--] [key1 ...]
F... | null | https://raw.githubusercontent.com/tlikonen/gpg-utilities/8971c814dbcbced3ed05f2024b29fd9e5096e96d/src/gpg-graph.lisp | lisp |
License: Creative Commons CC0 (public domain dedication)
~%~%") | Author : < >
(defpackage #:graph
(:nicknames #:gpg-graph)
(:use #:cl #:common)
(:export #:main #:print-usage))
(in-package #:graph)
(defvar *program* "gpg-graph")
(defun print-usage ()
(format t "~
Usage: ~A [options] [--] [key1 ...]
Find connections between GnuPG keys based on certificates (key
signa... |
8caba91680ed135b81b881d5d59cf09ff44a5e4ceeb3ccaf72790258866f2ced | pyr/warp | engine.clj | (ns warp.engine
(:require [com.stuartsierra.component :as com]
[clojure.string :as str]
[manifold.stream :as stream]
[manifold.deferred :as d]
[warp.archive :as arc]
[warp.transport :as transport]
... | null | https://raw.githubusercontent.com/pyr/warp/c3ee96d90b233a47c1104b4339fed071ec8afe68/src/warp/engine.clj | clojure | (ns warp.engine
(:require [com.stuartsierra.component :as com]
[clojure.string :as str]
[manifold.stream :as stream]
[manifold.deferred :as d]
[warp.archive :as arc]
[warp.transport :as transport]
... | |
e6802080836720625456c835b5d2e463a4362a2b9ffb471e5d30c6df2fc6cb59 | raviksharma/bartosz-basics-of-haskell | sq_id.hs | sq x = x * x
main = print $ (sq . sqrt . id) 256
| null | https://raw.githubusercontent.com/raviksharma/bartosz-basics-of-haskell/86d40d831f61415ef0022bff7fe7060ae6a23701/01-calling-functions/sq_id.hs | haskell | sq x = x * x
main = print $ (sq . sqrt . id) 256
| |
253e1c4bf380e97d34eb1eed946cc9c3e13d290bb3918c5dd3c0a5eefa0cbce9 | let-def/lwd | nottui_widgets.ml | open Lwd.Infix
open Notty
open Nottui
let empty_lwd = Lwd.return Ui.empty
let (mini, maxi, clampi) = Lwd_utils.(mini, maxi, clampi)
let string ?(attr=A.empty) str =
let control_character_index str i =
let len = String.length str in
let i = ref i in
while let i = !i in i < len && str.[i] >= ' ' do
... | null | https://raw.githubusercontent.com/let-def/lwd/5702aa5287a0a2570b2dc5d4620e1695b6ded99e/lib/nottui/nottui_widgets.ml | ocaml | clear
newline starting with ui0
same line
* Prints the summary, but calls [f()] to compute a sub-widget
when clicked on. Useful for displaying deep trees.
call [f] and pad a bit
pad summary with a "> " when it's opened
TODO: make this configurable/optional
TODO: somehow, probe for available width here... | open Lwd.Infix
open Notty
open Nottui
let empty_lwd = Lwd.return Ui.empty
let (mini, maxi, clampi) = Lwd_utils.(mini, maxi, clampi)
let string ?(attr=A.empty) str =
let control_character_index str i =
let len = String.length str in
let i = ref i in
while let i = !i in i < len && str.[i] >= ' ' do
... |
aac40b0de06313f975317c550f224295cbb8d50b0bf16ce38fa51011d8bcd6a8 | pink-gorilla/goldly | kernel_cljs.cljs | (ns goldly.sci.kernel-cljs
(:require
[taoensso.timbre :as timbre :refer-macros [debug debugf info error]]
[promesa.core]
[cljs.reader :refer [read-string]]
; sci
[sci.core :as sci]
[sci.async :as scia]
[sci.impl.resolve :as sci-resolve]
; bindings
;[goldly.sci.bindings-static :refer [ns-sta... | null | https://raw.githubusercontent.com/pink-gorilla/goldly/b5c0135e58a27bca339c6f3c60a525e81d4d2978/goldly/src/goldly/sci/kernel_cljs.cljs | clojure | sci
bindings
[goldly.sci.bindings-static :refer [ns-static]]
since we want to add compile-sci to the bindings, we have to declare the ctx later
(catch :default e
(let [sci-error? (isa? (:type (ex-data e)) :sci/error)]
(throw (if sci-error?
(or (ex-cause e) e)
... | (ns goldly.sci.kernel-cljs
(:require
[taoensso.timbre :as timbre :refer-macros [debug debugf info error]]
[promesa.core]
[cljs.reader :refer [read-string]]
[sci.core :as sci]
[sci.async :as scia]
[sci.impl.resolve :as sci-resolve]
[goldly-bindings-generated :refer [bindings-generated ns-generated... |
93a937be09bc2b6a316a23635d0a35c6661fe01afc2732621cb94f277c7ee606 | heechul/crest-z3 | alpha.ml | module H = Hashtbl
module E = Errormsg
open Pretty
let debugAlpha (prefix: string) = false
(*** Alpha conversion ***)
let alphaSeparator = "___"
let alphaSeparatorLen = String.length alphaSeparator
(** For each prefix we remember the next integer suffix to use and the list
* of suffixes, each with some data assciate... | null | https://raw.githubusercontent.com/heechul/crest-z3/cfcebadddb5e9d69e9956644fc37b46f6c2a21a0/cil/ocamlutil/alpha.ml | ocaml | ** Alpha conversion **
* For each prefix we remember the next integer suffix to use and the list
* of suffixes, each with some data assciated with the newAlphaName that
* created the suffix.
The
* reference that was changed and
... | module H = Hashtbl
module E = Errormsg
open Pretty
let debugAlpha (prefix: string) = false
let alphaSeparator = "___"
let alphaSeparatorLen = String.length alphaSeparator
type 'a alphaTableData = int * (string * 'a) list
type 'a undoAlphaElement =
The number of decimal digits that can fit in a 31 - bit signed int... |
bf72bc071dc4003101ef1174ec9541aa4d82e07e296671a87fbef694ad8be73a | RefactoringTools/HaRe | B3_TokOut.hs | module B3 where
--Any type/data constructor name declared in this module can be renamed.
--Any type variable can be renamed.
Rename type Constructor ' BTree ' to ' MyBTree '
data BTree a = Empty | T a (BTree a) (BTree a)
deriving Show
buildtree :: (Monad m, Ord a) => [a] -> m (BTree a)
buildtree [] =... | null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/testing/unfoldAsPatterns/B3_TokOut.hs | haskell | Any type/data constructor name declared in this module can be renamed.
Any type variable can be renamed. | module B3 where
Rename type Constructor ' BTree ' to ' MyBTree '
data BTree a = Empty | T a (BTree a) (BTree a)
deriving Show
buildtree :: (Monad m, Ord a) => [a] -> m (BTree a)
buildtree [] = return Empty
buildtree (x:xs) = do
res1 <- buildtree xs
res <- ins... |
6646243d9804971ae5fbb2e7aa7089da8b018ea5822e9ece053353d162e4b6e8 | re-ops/re-core | pkg.clj | (ns re-mote.zero.pkg
"Package operations on FreeBSD Pkg and Ubuntu/Debian Apt"
(:refer-clojure :exclude [update])
(:require
[taoensso.timbre :refer (refer-timbre)]
[re-mote.zero.pipeline :refer (run-hosts)]
[re-cog.resources.package :as pkg :refer (package)]
re-mote.repl.base)
(:import [re_mote.re... | null | https://raw.githubusercontent.com/re-ops/re-core/93596efd4f3068d57e8140106da60011a6569310/src/re_mote/zero/pkg.clj | clojure | (ns re-mote.zero.pkg
"Package operations on FreeBSD Pkg and Ubuntu/Debian Apt"
(:refer-clojure :exclude [update])
(:require
[taoensso.timbre :refer (refer-timbre)]
[re-mote.zero.pipeline :refer (run-hosts)]
[re-cog.resources.package :as pkg :refer (package)]
re-mote.repl.base)
(:import [re_mote.re... | |
efbca1756e5340223a05562b367ed53eac665ebced367d8d31743a9a7a20a061 | awto/chr2sql | Parser.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE RecordWildCards #
# LANGUAGE GeneralizedNewtypeDeriving #
module CHR2.Parser where
import Control.Applicative
import Control.Monad (MonadPlus(..))
import Data.Monoid
import qualified Data.Text as T
import qualified Data.Map.Strict as M
import System.IO
import Text.Parser.Token.... | null | https://raw.githubusercontent.com/awto/chr2sql/a26b5c3825761b96d913417bca47974460f9fd5e/CHR2/Parser.hs | haskell | TODO: throw | # LANGUAGE FlexibleContexts #
# LANGUAGE RecordWildCards #
# LANGUAGE GeneralizedNewtypeDeriving #
module CHR2.Parser where
import Control.Applicative
import Control.Monad (MonadPlus(..))
import Data.Monoid
import qualified Data.Text as T
import qualified Data.Map.Strict as M
import System.IO
import Text.Parser.Token.... |
c965d2c6f3354bb94d9e80e94b41450b60bc069e71d4a2c4ec101846cf5b6606 | alt-romes/slfl | List.hs | data List a = Nil | Cons (a * List a);
data Maybe a = Nothing | Just a;
synth na :: List Int -o List Int;
synth singleton :: a -o List a;
synth append :: List a -o List a -o List a;
synth map :: (!(a -o b)) -o List a -o List b;
synth foldl :: !(b -o a -o b) -o b -o List a -o b | choose 1;
synth uncons :: List... | null | https://raw.githubusercontent.com/alt-romes/slfl/4956fcce8ff2ca7622799fe0715c118b568b74eb/STLLC/tests/support/List.hs | haskell | data List a = Nil | Cons (a * List a);
data Maybe a = Nothing | Just a;
synth na :: List Int -o List Int;
synth singleton :: a -o List a;
synth append :: List a -o List a -o List a;
synth map :: (!(a -o b)) -o List a -o List b;
synth foldl :: !(b -o a -o b) -o b -o List a -o b | choose 1;
synth uncons :: List... | |
571f20211c7de8828fbbb0842b12910e717374df6d8f5470fcadda01d1cf9eee | alda-lang/alda-core | aggregate_events.clj | (ns alda.parser.aggregate-events
(:require [clojure.core.async :refer (>!!)]
[alda.lisp.events :as event]))
(defn initial-parser-state
[]
{:state :parsing
:buffer []})
(defn parser
[events-ch]
(-> (initial-parser-state)
(assoc :events-ch events-ch)))
(defn emit-event!
[{:keys [e... | null | https://raw.githubusercontent.com/alda-lang/alda-core/4c92eb4fe363485193c58b77b1ec8e36c8866fb5/src/alda/parser/aggregate_events.clj | clojure | (ns alda.parser.aggregate-events
(:require [clojure.core.async :refer (>!!)]
[alda.lisp.events :as event]))
(defn initial-parser-state
[]
{:state :parsing
:buffer []})
(defn parser
[events-ch]
(-> (initial-parser-state)
(assoc :events-ch events-ch)))
(defn emit-event!
[{:keys [e... | |
4ab2230497ed055d6d029cac0a783681bc6e56ce894b01ec7e74fd75c1b93654 | haskell-game/tiny-games-hs | life.hs | main=run(ib 10);dc='⋅';lc='O';ib s=replicate s (replicate s dc);tc b (x,y)=r y
b (r x(b!!y)(t((b!!y)!!x)));t c=if c==dc then lc else dc;ac b []=b;ac b (x:xs)=
ac(tc b x)xs;r x l e=(take x l)++(e:(drop (x+1) l));pb b=mapM putStrLn b;ns b=
ac b(sc b);sc b=[(x,y)|x<-[1..(length b)-2],y<-[1..(length b)-2],sct b(x,y)];
s... | null | https://raw.githubusercontent.com/haskell-game/tiny-games-hs/051d461ca0c196014eddd2111eb1edcb1114bc0c/prelude/life/life.hs | haskell | ^10 ------------------------------------------------------------------ 80> -- | main=run(ib 10);dc='⋅';lc='O';ib s=replicate s (replicate s dc);tc b (x,y)=r y
b (r x(b!!y)(t((b!!y)!!x)));t c=if c==dc then lc else dc;ac b []=b;ac b (x:xs)=
ac(tc b x)xs;r x l e=(take x l)++(e:(drop (x+1) l));pb b=mapM putStrLn b;ns b=
ac b(sc b);sc b=[(x,y)|x<-[1..(length b)-2],y<-[1..(length b)-2],sct b(x,y)];
s... |
0154fb820386582fe78229647aa7b50a3ec170fc2c13af2a99eb415446ac677b | janestreet/krb | keep_valid.mli | (** This module is not exposed in the library interface, and thus not well-docced. See the
public versions of these functions in [Cred_cache] for documentation. *)
open! Core
open! Async
open! Import
val num_active_renewal_jobs : unit -> int
val f
: ?refresh_every:Time.Span.t
-> ?on_error:[ `Call of Error.t... | null | https://raw.githubusercontent.com/janestreet/krb/96feb2c8721bc0e33e87fd4ed7c0839d3b0f51f8/src/keep_valid.mli | ocaml | * This module is not exposed in the library interface, and thus not well-docced. See the
public versions of these functions in [Cred_cache] for documentation. |
open! Core
open! Async
open! Import
val num_active_renewal_jobs : unit -> int
val f
: ?refresh_every:Time.Span.t
-> ?on_error:[ `Call of Error.t -> unit | `Ignore | `Raise ]
-> ?keytab:Keytab.Path.t
-> ?server_cred_cache:Cred_cache0.t
-> ?abort:unit Deferred.t
-> cred_cache:Cred_cache0.t
-> Cross_real... |
15a935e5b2332bf696ca904cc7a93a2de20c620249b36773f3a48a3ebe323157 | susanemcg/pandoc-tufteLaTeX2GitBook | Options.hs |
Copyright ( C ) 2012 - 2014 < >
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distribut... | null | https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/src/Text/Pandoc/Options.hs | haskell | | Individually selectable syntax extensions.
^ Pandoc-style inline notes
^ YAML metadata block
^ Pandoc-style table captions
^ A paragraph with just an image is a figure
^ Pandoc-style simple tables
^ Pandoc-style multiline tables
^ Grid tables (pandoc, reST)
^ Pipe tables (as in PHP markdown extra)
^ Pandoc/... |
Copyright ( C ) 2012 - 2014 < >
This program is free software ; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
This program is distribut... |
35a3a6f8b578ad1ef7a7af601a20f5bd158f9b640144f6f6860470016050df45 | mmottl/lacaml | lacaml.ml |
(* Module aliases *)
module Io = Io
module Common = Common
module Utils = Utils
module D = D
module S = S
module Z = Z
module C = C
| null | https://raw.githubusercontent.com/mmottl/lacaml/2e01c0747e740e54ab9a23ea59b29ea0d929b50f/src/lacaml.ml | ocaml | Module aliases |
module Io = Io
module Common = Common
module Utils = Utils
module D = D
module S = S
module Z = Z
module C = C
|
35f0963562d8c0d9e6a3d6297264317400ec28bd90d03d786bf0fee9e811a277 | dfinity/motoko | mo_doc.ml | let source : string ref = ref "src"
let output : string ref = ref "docs"
let format : Docs.output_format ref = ref Docs.Html
let set_source s = source := s
let set_output o = output := o
let set_format = function
| "html" -> format := Docs.Html
| "adoc" -> format := Docs.Adoc
| "plain" -> format := Docs.Plain
... | null | https://raw.githubusercontent.com/dfinity/motoko/13f8a6693b7ca0d02899ae91b40c9dd17a3b8f36/src/exes/mo_doc.ml | ocaml | let source : string ref = ref "src"
let output : string ref = ref "docs"
let format : Docs.output_format ref = ref Docs.Html
let set_source s = source := s
let set_output o = output := o
let set_format = function
| "html" -> format := Docs.Html
| "adoc" -> format := Docs.Adoc
| "plain" -> format := Docs.Plain
... | |
91e0e77eae352f054d9f5fa84aef7aaf28ba299d34a82f2ea0ce36638de6371f | mfoemmel/erlang-otp | gen_server.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 1996 - 2009 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Pub... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/stdlib/src/gen_server.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limita... | Copyright Ericsson AB 1996 - 2009 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
-module(gen_server).
{ ok , Stat... |
a429b1892fd599a3b21c52756d36569b451a70a7a9e4cd7043f9cf867966f5c9 | lisp-korea/sicp | ex-2-2-likerivers12.scm | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Ch 2 데이터를 끌어올리는 방법
Ch 2.2 계층 구조 데이터와 닫힘 성질
;;; p126
;;;-----------
;;; 쌍 만들기
1과 2의 쌍
(cons 1 2)
( 1 . 2 )
상자와 화살표로 나타내면 .
;;; [ + | + ]
;;; | |
1 2
쌍은 모든 종류의 데이터 구조를 짜맞추는데 두루 쓸 수 있다 .
;;;-----------
;;; * 닫힘 성질
;;; -... | null | https://raw.githubusercontent.com/lisp-korea/sicp/4cdc1b1d858c6da7c9f4ec925ff4a724f36041cc/ch02/2.2/ex-2-2-likerivers12.scm | scheme |
p126
-----------
쌍 만들기
[ + | + ]
| |
-----------
* 닫힘 성질
- 어떤 연산이 닫힘 성질을 가진다.
-> 연산으로 만든 물체가 다시 그 연산의 대상이 될 수 있음.
N -> N V (N + 1)
p129
(1 2 3 4)
리스트에서 car, cdr, cons
car : 리스트의 첫번째 원소를 골라내는 연산
cons : 원래 리스트의 맨 앞에 새 원소를 보태어 리스트로 만들어 내는 연산
p130
(2 3 4)
(5 1 2 3 4)
-----------------------------
... | Ch 2 데이터를 끌어올리는 방법
Ch 2.2 계층 구조 데이터와 닫힘 성질
1과 2의 쌍
(cons 1 2)
( 1 . 2 )
상자와 화살표로 나타내면 .
1 2
쌍은 모든 종류의 데이터 구조를 짜맞추는데 두루 쓸 수 있다 .
닫힘 성질을 이용한 자연수의 정의
N - > 1
- 닫힘 성질은 계층 구조를 만들 수 있도록 해주기 때문에
데이터를 합치는 모든 표현 수단에서 표현력을 끌어올리는 열쇠가 된다 .
= = = = = = = = = = = = = = = = = < ch 2.2.1 차례열의 ... |
73ede9a8fa94abc232423fda0606a4ce6c62b80e5690a69c642e913cb83a600b | awslabs/s2n-bignum | bignum_deamont_p256_alt.ml |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
(* =================================================================... | null | https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_deamont_p256_alt.ml | ocaml | =========================================================================
Mapping out of almost-Montgomery representation modulo p_256.
=========================================================================
*** print_literal_from_elf "x86/p256/bignum_deamont_p256_alt.o";;
***
ADD (% r9) (% rax)
... |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
let bignum_deamont_p256_alt_mc =
define_assert_from_elf "bignum_... |
705e9ffe6d0625dffd32bf5c6702ad23d471d90bd5b52ba9a2df380ea0b2646e | modular-macros/ocaml-macros | pr5848.ml | module B : sig
type (_, _) t = Eq: ('a, 'a) t
val f: 'a -> 'b -> ('a, 'b) t
end
=
struct
type (_, _) t = Eq: ('a, 'a) t
let f t1 t2 = Obj.magic Eq
end;;
let of_type: type a. a -> a = fun x ->
match B.f x 4 with
| Eq -> 5
;;
[%%expect{|
module B :
sig type (_, _) t = Eq : ('a, 'a) t val f : 'a -> 'b -> ('a, '... | null | https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/typing-gadts/pr5848.ml | ocaml | module B : sig
type (_, _) t = Eq: ('a, 'a) t
val f: 'a -> 'b -> ('a, 'b) t
end
=
struct
type (_, _) t = Eq: ('a, 'a) t
let f t1 t2 = Obj.magic Eq
end;;
let of_type: type a. a -> a = fun x ->
match B.f x 4 with
| Eq -> 5
;;
[%%expect{|
module B :
sig type (_, _) t = Eq : ('a, 'a) t val f : 'a -> 'b -> ('a, '... | |
fabf6652a1cb7958448682fde2ddec29daff2684ffc5ad963bda8692a0c51026 | SamirTalwar/advent-of-code | AOC_11_1.hs | {-# OPTIONS -Wall #-}
# LANGUAGE TupleSections #
import qualified Data.Map.Strict as Map
import Data.Set (Set)
import qualified Data.Set as Set
import Helpers.Function
import Helpers.Grid (Grid, Point)
import qualified Helpers.Grid as Grid
stepCount :: Int
stepCount = 100
main :: IO ()
main = do
levels <- Grid.fro... | null | https://raw.githubusercontent.com/SamirTalwar/advent-of-code/3d37193f9a8cd506150f457900308e5132e92902/2021/AOC_11_1.hs | haskell | # OPTIONS -Wall # | # LANGUAGE TupleSections #
import qualified Data.Map.Strict as Map
import Data.Set (Set)
import qualified Data.Set as Set
import Helpers.Function
import Helpers.Grid (Grid, Point)
import qualified Helpers.Grid as Grid
stepCount :: Int
stepCount = 100
main :: IO ()
main = do
levels <- Grid.fromDigits <$> getContent... |
5b743570602abe9162cea6f60c460c8eb73b62952f09cdde77961e4e00d649ed | lojic/LearningRacket | list-ops-test.rkt | #lang racket
(require "list-ops.rkt")
(module+ test
(require rackunit rackunit/text-ui)
(define normal-list '(1 3 5 7))
(define huge-list (range 1 1000001))
(define suite
(test-suite
"Tests for the list-ops exercise"
(test-case "count of empty list"
(check-equal? (count '... | null | https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/exercism.io/list-ops/list-ops-test.rkt | racket | #lang racket
(require "list-ops.rkt")
(module+ test
(require rackunit rackunit/text-ui)
(define normal-list '(1 3 5 7))
(define huge-list (range 1 1000001))
(define suite
(test-suite
"Tests for the list-ops exercise"
(test-case "count of empty list"
(check-equal? (count '... | |
8000aee5babb5eb1d2f9de3b0286beb84509305be210fe97eda6eb162fa961a3 | gergoerdi/clash-compucolor2 | Keyboard.hs | module Hardware.Compucolor2.Keyboard (keyboard) where
import Clash.Prelude
import RetroClash.Utils
import RetroClash.PS2
import RetroClash.Keypad
keyboard
:: (HiddenClockResetEnable dom)
=> Signal dom (Maybe ScanCode)
-> Signal dom (BitVector 8)
-> Signal dom (BitVector 8)
keyboard sc selector = regis... | null | https://raw.githubusercontent.com/gergoerdi/clash-compucolor2/e5d6835918d25d7fcf9f0a9d7d381a1220331452/src/Hardware/Compucolor2/Keyboard.hs | haskell | left/right Alt | module Hardware.Compucolor2.Keyboard (keyboard) where
import Clash.Prelude
import RetroClash.Utils
import RetroClash.PS2
import RetroClash.Keypad
keyboard
:: (HiddenClockResetEnable dom)
=> Signal dom (Maybe ScanCode)
-> Signal dom (BitVector 8)
-> Signal dom (BitVector 8)
keyboard sc selector = regis... |
1088bc9b95d552f0a65c4d8ecea1018ee6c1aeff131da21a553c86ff48a5c178 | input-output-hk/project-icarus-importer | Unsafe.hs | -- | Unsafe arbitrary instances for crypto primitives.
module Test.Pos.Crypto.Arbitrary.Unsafe () where
import Universum
import Test.QuickCheck (Arbitrary (..), choose)
import Test.QuickCheck.Instances ()
import Pos.Binary.Class (Bi)
import qualified Pos.Binary.Class as Bi
im... | null | https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/crypto/tests/Test/Pos/Crypto/Arbitrary/Unsafe.hs | haskell | | Unsafe arbitrary instances for crypto primitives.
Generating invalid `Signed` objects doesn't make sense even in
benchmarks
elliptic curve. So we'll stick with taking key out of the valid
keypair. |
module Test.Pos.Crypto.Arbitrary.Unsafe () where
import Universum
import Test.QuickCheck (Arbitrary (..), choose)
import Test.QuickCheck.Instances ()
import Pos.Binary.Class (Bi)
import qualified Pos.Binary.Class as Bi
import Pos.Binary.Crypto ()
import Po... |
9e9507b28e616b79b39d45beb97288f1d162809e85ea7323e25d98a648e3bcb2 | facebook/infer | DoliParser.ml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/facebook/infer/6386e1383f0a95e369f58ff07626f367fcbaad5e/infer/src/textual/DoliParser.ml | ocaml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | |
3d52f8550cb61ff5b47e5843cd48a3e6259b7be5d739c8d59b7e1d5ae37fd529 | rgrinberg/onanomsg | nanomsg_async.mli | open Async
open Nanomsg
* { 1 Asynchronous I / O }
* { 2 Zero - copy I / O }
val send_bigstring : socket -> Bigstring.t ->
(unit, error) Result.result Deferred.t
val send_bigstring_buf : socket -> Bigstring.t -> int -> int ->
(unit, error) Result.result Deferred.t
val send_string : socket -> string -> (unit, ... | null | https://raw.githubusercontent.com/rgrinberg/onanomsg/106cff749f09fbdd003cfca20643f227ab595e61/lib/nanomsg_async.mli | ocaml | * [recv sock f] applies [f] to the received message. The
argument of [f] gets unallocated after [f] returns, so make sure
[f] {b never} let a reference to its argument escape. | open Async
open Nanomsg
* { 1 Asynchronous I / O }
* { 2 Zero - copy I / O }
val send_bigstring : socket -> Bigstring.t ->
(unit, error) Result.result Deferred.t
val send_bigstring_buf : socket -> Bigstring.t -> int -> int ->
(unit, error) Result.result Deferred.t
val send_string : socket -> string -> (unit, ... |
e779b72643d750e4d9d268345c8d445adbe8403eaa29c68c5b4ec3586510e978 | juxt/apex | session.clj | Copyright © 2020 , JUXT LTD .
(ns juxt.apex.alpha2.session
(:require
[ring.middleware.session :as session])
)
(def session-middleware
{:name "Session"
:wrap session/wrap-session
#_:compile
#_(fn [_ _]
(println "WRAP SESSION")
session/wrap-session
#_(fn [h]
(fn
([req... | null | https://raw.githubusercontent.com/juxt/apex/cb4c0016d817ebb03d4f84e572ca71edd84ed79d/modules/deprecated/src/juxt/apex/alpha2/session.clj | clojure | Copyright © 2020 , JUXT LTD .
(ns juxt.apex.alpha2.session
(:require
[ring.middleware.session :as session])
)
(def session-middleware
{:name "Session"
:wrap session/wrap-session
#_:compile
#_(fn [_ _]
(println "WRAP SESSION")
session/wrap-session
#_(fn [h]
(fn
([req... | |
8f5d82145bf984e4a9277e8930281efe5feb69b209a8993f65602d4f1aa1ce14 | input-output-hk/plutus | Types.hs | -- editorconfig-checker-disable-file
{-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE Rank2Types #
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
module PlutusTx.Compiler.Types (
module Plutus... | null | https://raw.githubusercontent.com/input-output-hk/plutus/6250c70ae6e646813f47eed56f4302893c253739/plutus-tx-plugin/src/PlutusTx/Compiler/Types.hs | haskell | editorconfig-checker-disable-file
# LANGUAGE ConstraintKinds #
# LANGUAGE TypeFamilies #
# LANGUAGE TypeOperators #
| Compilation options.
| Coverage options
See Note [Coverage annotations]
| Get the coverage types we are using
See Note [Adding more coverage annotations].
See Note [Coverage order]
Fo... | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE Rank2Types #
module PlutusTx.Compiler.Types (
module PlutusTx.Compiler.Types,
module PlutusCore.Annotation
) where
import PlutusTx.Compiler.Error
import PlutusTx.Coverage
import PlutusTx.PLCTy... |
09f25e781be41d9bc7f41d30b4af83de355ba07c2d0c2f54cbf987de8d1871af | pfdietz/ansi-test | cond.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Fri Oct 18 07:37:58 2002
;;;; Contains: Tests of COND
(deftest cond.1
(cond)
nil)
(deftest cond.2
(cond ('a))
a)
(deftest cond.3
(cond (nil))
nil)
(deftest cond.4
(cond (nil 'a) (nil 'b))
nil)
(deftest cond.5
(cond (nil 'a) ('b))
b)
(deft... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/data-and-control-flow/cond.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of COND
No implicit tagbody
Test that explicit calls to macroexpand in subforms
are done in the correct environment
Error tests | Author :
Created : Fri Oct 18 07:37:58 2002
(deftest cond.1
(cond)
nil)
(deftest cond.2
(cond ('a))
a)
(deftest cond.3
(cond (nil))
nil)
(deftest cond.4
(cond (nil 'a) (nil 'b))
nil)
(deftest cond.5
(cond (nil 'a) ('b))
b)
(deftest cond.6
(cond (t 'a) (t 'b))
a)
(deftest cond... |
f43e8fbed14b6f877055952348b0db96d2ea043779d8ebd53e3937957d1887dd | binaryage/chromex | window.clj | (ns chromex.app.app.window
"Use the chrome.app.window API to create windows. Windows
have an optional frame with title bar and size controls. They are not
associated with any Chrome browser windows. See the
Window State Sample for a demonstration of these options.
* available since Chrome 36
* "
... | null | https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/apps/chromex/app/app/window.clj | clojure | -- events -----------------------------------------------------------------------------------------------------------------
docs: /#tapping-events
-- convenience ------------------------------------------------------------------------------------------------------------
--------------------------------------------... | (ns chromex.app.app.window
"Use the chrome.app.window API to create windows. Windows
have an optional frame with title bar and size controls. They are not
associated with any Chrome browser windows. See the
Window State Sample for a demonstration of these options.
* available since Chrome 36
* "
... |
7776e2b44447146101474fc6363ac55bc8f7ce223302db8cbd68c9ac3223faab | haskell/fgl | TestSuite.hs | # LANGUAGE FlexibleContexts , ScopedTypeVariables #
|
Module : TestSuite
Description : fgl test suite
Copyright : ( c )
License :
Module : TestSuite
Description : fgl test suite
Copyright : (c) Ivan Lazar Miljenovic
License : BSD3
Maintainer ... | null | https://raw.githubusercontent.com/haskell/fgl/f332d760a1a43657720962483afa775e8d5a70c5/test/TestSuite.hs | haskell | -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
| Run all available tests on the specified graph type. Requires
multiple edges and loops to be permissible.
------------------------------------------------... | # LANGUAGE FlexibleContexts , ScopedTypeVariables #
|
Module : TestSuite
Description : fgl test suite
Copyright : ( c )
License :
Module : TestSuite
Description : fgl test suite
Copyright : (c) Ivan Lazar Miljenovic
License : BSD3
Maintainer ... |
7b6a674527f6ada0a3007130e211d64b103a233da8f3d45af40d4e31641af969 | composewell/streamly | Unboxed.hs | -- |
Module : Streamly . Internal . Data . Ring .
Copyright : ( c ) 2019 Composewell Technologies
-- License : BSD3
-- Maintainer :
-- Stability : experimental
Portability : GHC
--
-- A ring array is a circular mutable array.
-- XXX Write benchmarks
-- XXX Make the implementation similar to mut... | null | https://raw.githubusercontent.com/composewell/streamly/34b2b4987629420cb3140e0b32a2b46daf9e5981/core/src/Streamly/Internal/Data/Ring/Unboxed.hs | haskell | |
License : BSD3
Maintainer :
Stability : experimental
A ring array is a circular mutable array.
XXX Write benchmarks
XXX Make the implementation similar to mutable array
XXX Rename this module to Data.RingArray.Storable
* Construction
* Random writes
* Unfolds
* Random reads
* Size
, capacity
*... | Module : Streamly . Internal . Data . Ring .
Copyright : ( c ) 2019 Composewell Technologies
Portability : GHC
module Streamly.Internal.Data.Ring.Unboxed
( Ring(..)
, new
, newRing
, writeN
, advance
, moveBy
, startOf
, unsafeInsert
, slide
, putIndex
, ... |
6b573db4004bf343bb9a2713be44675d6ed9c4151d1eede7857ab88db31ac901 | semilin/layoup | middlephobia_angle.lisp |
(MAKE-LAYOUT :NAME "middlephobia_angle" :MATRIX
(APPLY #'KEY-MATRIX '("wcdl'zpuoy" "rsthx,neai" "gfmv;.bkqj"))
:SHIFT-MATRIX NIL :KEYBOARD NIL) | null | https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/middlephobia_angle.lisp | lisp |
(MAKE-LAYOUT :NAME "middlephobia_angle" :MATRIX
(APPLY #'KEY-MATRIX '("wcdl'zpuoy" "rsthx,neai" "gfmv;.bkqj"))
:SHIFT-MATRIX NIL :KEYBOARD NIL) | |
28868dbb03e22b817b246f692e98e832dac17dc492712516825bc33cecc47ba1 | zotonic/zotonic | z_media_import.erl | @author < >
2014 - 2022
%% @doc Import media from internet locations.
Copyright 2014 - 2022
%%
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... | null | https://raw.githubusercontent.com/zotonic/zotonic/1bb4aa8a0688d007dd8ec8ba271546f658312da8/apps/zotonic_core/src/support/z_media_import.erl | erlang | @doc Import media from internet locations.
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Lice... | @author < >
2014 - 2022
Copyright 2014 - 2022
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(z_media_import).
-author("Marc Worrell <").
-export([
insert/2,
insert/3,
update/3,
url_im... |
4cfa73496d17b60e599a80a4e95e30435141b75ea3a1ce34cb2042fdce496c76 | ryszard/clsql | test-ooddl.lisp | -*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*-
;;;; ======================================================================
;;;; File: test-ooddl.lisp
Author : < >
;;;; Created: 30/03/2004
;;;; Updated: $Id$
;;;;
;;;; Tests for the CLSQL Object Oriented Data Definition Language
;;;; (OODDL).... | null | https://raw.githubusercontent.com/ryszard/clsql/9aafcb72bd7ca1d7e908938b6a5319753b3371d9/tests/test-ooddl.lisp | lisp | Syntax : ANSI - Common - Lisp ; Base : 10 -*-
======================================================================
File: test-ooddl.lisp
Created: 30/03/2004
Updated: $Id$
Tests for the CLSQL Object Oriented Data Definition Language
(OODDL).
(), also known as the LLGPL.
=================================... | Author : < >
This file is part of CLSQL .
CLSQL users are granted the rights to distribute and use this software
as governed by the terms of the Lisp Lesser GNU Public License
(in-package #:clsql-tests)
#.(clsql:locally-enable-sql-reader-syntax)
(setq *rt-ooddl*
'(
(deftest :ooddl/metaclass/1
... |
d37892fdb7d126d08c73bed6b6e28701bb9eba2d8bf5c58310ade9f8eafdbe0b | AndrewRademacher/gdax | Explicit.hs | module Network.GDAX.Explicit
( module Core
, module Exceptions
, module MarketData
, module Private
, module Shared
) where
import Network.GDAX.Core as Core hiding (Method, Path,
gdaxGet,
... | null | https://raw.githubusercontent.com/AndrewRademacher/gdax/3473aef6eb0282779b061875b7ea7e959e18b24f/lib/Network/GDAX/Explicit.hs | haskell | module Network.GDAX.Explicit
( module Core
, module Exceptions
, module MarketData
, module Private
, module Shared
) where
import Network.GDAX.Core as Core hiding (Method, Path,
gdaxGet,
... | |
516877bbe31a4873a6e4430b545c1da4c7756d3591eaaf73c37ff99daca79a33 | michaelzenz/jecci | txn.clj | (ns jecci.common.txn
(:require [jecci.interface.client :as ic]
[jepsen.client :as client]))
(defn client
"Constructs a transactional client. Opts are:
:val-type An SQL type string, like \"int\", for the :val field schema.
:table-count How many tables to stripe records over."
[opts]
(... | null | https://raw.githubusercontent.com/michaelzenz/jecci/81ee068601c31a14fe642f93d30223c2a8ced04d/src/jecci/common/txn.clj | clojure | (ns jecci.common.txn
(:require [jecci.interface.client :as ic]
[jepsen.client :as client]))
(defn client
"Constructs a transactional client. Opts are:
:val-type An SQL type string, like \"int\", for the :val field schema.
:table-count How many tables to stripe records over."
[opts]
(... | |
b2f5faef9ebe403a69a92e75078d04fe7d43bc47e3ad633a54eb3ac117283e4c | raml-org/api-modeling-framework | json_test.cljc | (ns api-modeling-framework.parser.syntax.json-test
#?(:cljs (:require-macros [cljs.core.async.macros :refer [go]]
[cljs.test :refer [deftest is async]]))
(:require #?(:clj [clojure.test :refer :all])
#?(:clj [api-modeling-framework.platform :refer [async]])
#?(:cl... | null | https://raw.githubusercontent.com/raml-org/api-modeling-framework/34bb3b6c3e3f91b775e27f8e389e04eb2c36beb7/test/api_modeling_framework/parser/syntax/json_test.cljc | clojure | (ns api-modeling-framework.parser.syntax.json-test
#?(:cljs (:require-macros [cljs.core.async.macros :refer [go]]
[cljs.test :refer [deftest is async]]))
(:require #?(:clj [clojure.test :refer :all])
#?(:clj [api-modeling-framework.platform :refer [async]])
#?(:cl... | |
dfc0d069d1bbdf5299751d6da24575bb5d9828aa83064ab9e92b8fb278ee99b9 | ijvcms/chuanqi_dev | push_game_mod.erl | %%%-------------------------------------------------------------------
%%% @author qhb
( C ) 2016 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 05 . 八月 2016 下午4:36
%%%-------------------------------------------------------------------
-module(push_game_mod).
-behaviour(gen_server).
-include("common.hrl").
-inclu... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/push/push_game_mod.erl | erlang | -------------------------------------------------------------------
@author qhb
@doc
@end
-------------------------------------------------------------------
gen_server callbacks
API
===================================================================
API
==========================================================... | ( C ) 2016 , < COMPANY >
Created : 05 . 八月 2016 下午4:36
-module(push_game_mod).
-behaviour(gen_server).
-include("common.hrl").
-include("record.hrl").
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
-define(SERVER, ?MODULE).
-record(state, {task, step, step_pages, p... |
ebb93905963f263a710c9d04301e18aafd81667da3334dbc64724553b090e87b | patricoferris/opam-github-workflow | conf.ml | module OV = Ocaml_version
let oses = [ "macos-latest"; "ubuntu-latest"; "windows-latest" ]
let ocaml_versions n =
let rec take m acc = function
| [] -> List.rev acc
| _ when m <= 0 -> List.rev acc
| x :: xs -> take (m - 1) (x :: acc) xs
in
take n [] (List.rev OV.Releases.recent) |> List.map OV.to_st... | null | https://raw.githubusercontent.com/patricoferris/opam-github-workflow/09cfc66143a32872cc49dd4066bb3ad03138f33c/bin/conf.ml | ocaml | module OV = Ocaml_version
let oses = [ "macos-latest"; "ubuntu-latest"; "windows-latest" ]
let ocaml_versions n =
let rec take m acc = function
| [] -> List.rev acc
| _ when m <= 0 -> List.rev acc
| x :: xs -> take (m - 1) (x :: acc) xs
in
take n [] (List.rev OV.Releases.recent) |> List.map OV.to_st... | |
83acd98bcdea05f396e1b5f249243c738b80453777a49d74f759aa845b006909 | ijvcms/chuanqi_dev | sale_db.erl | %%%-------------------------------------------------------------------
@author apple
( C ) 2015 , < COMPANY >
%%% @doc
%%%
%%% @end
Created : 30 . 十一月 2015 14:11
%%%-------------------------------------------------------------------
-module(sale_db).
-include("common.hrl").
-include("cache.hrl").
%% API
-expor... | null | https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/sale/sale_db.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
====================================================================
API functions
====================================================================
API | @author apple
( C ) 2015 , < COMPANY >
Created : 30 . 十一月 2015 14:11
-module(sale_db).
-include("common.hrl").
-include("cache.hrl").
-export([
select_row/1,
insert/1,
delete/1,
select_page/3,
select_all/1,
select_page_num/1,
select_page1/3
]).
select_row(SaleId) ->
case db:select_row(sale, record_in... |
2a97d39cf9f2860ef22796273fb6c46a02c3025c6d84ce4e92f90548e75fefc5 | racket/eopl | environments.rkt | #lang eopl
;; builds environment interface, using data structures defined in
;; data-structures.scm.
(require "data-structures.rkt")
(provide init-env empty-env extend-env apply-env)
;;;;;;;;;;;;;;;; initial environment ;;;;;;;;;;;;;;;;
;; init-env : () -> Env
usage : ( init - env ) = [ i=1 , v=5 , x=10 ]
;; (i... | null | https://raw.githubusercontent.com/racket/eopl/43575d6e95dc34ca6e49b305180f696565e16e0f/tests/chapter3/letrec-lang/environments.rkt | racket | builds environment interface, using data structures defined in
data-structures.scm.
initial environment ;;;;;;;;;;;;;;;;
init-env : () -> Env
(init-env) builds an environment in which i is bound to the
environment constructors and observers ;;;;;;;;;;;;;;;; | #lang eopl
(require "data-structures.rkt")
(provide init-env empty-env extend-env apply-env)
usage : ( init - env ) = [ i=1 , v=5 , x=10 ]
expressed value 1 , v is bound to the expressed value 5 , and x is
bound to the expressed value 10 .
Page : 69
(define init-env
(lambda ()
(extend-env
'i ... |
60ebefedc4dfcea6a858cd5c2a712ffc8136b44a3600b58ac748f2857f5a2aa8 | rjnw/sham | utils.rkt | #lang racket
(require "../spec.rkt"
(submod "../spec.rkt" compiler))
(provide (all-defined-out))
(define (get-cmplr-type stx)
(match (syntax-e stx)
[name (lookup-spec stx)]
[(cons op args)
#:when (identifier? op)
((lookup-spec op) args)]))
(define (cmplr-args-id cspec)
(map car (cmplr... | null | https://raw.githubusercontent.com/rjnw/sham/6e0524b1eb01bcda83ae7a5be6339da4257c6781/sham-sam/sham/sam/syntax/cmplr/utils.rkt | racket | (define ((find-operators operators get-identifier) stxid)
(filter operators is-op?))
(define (map-with-dirs f lst)
([sub lst])
(define-values (sub-stx sub-dirs) (f sub))
(append dirs sub-dirs))))
info keys | #lang racket
(require "../spec.rkt"
(submod "../spec.rkt" compiler))
(provide (all-defined-out))
(define (get-cmplr-type stx)
(match (syntax-e stx)
[name (lookup-spec stx)]
[(cons op args)
#:when (identifier? op)
((lookup-spec op) args)]))
(define (cmplr-args-id cspec)
(map car (cmplr... |
5175c22db65c70a89480a1464d6a1a744f200e095b8d5bc504beb94677c0f785 | input-output-hk/ouroboros-network | Types.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE GADTs #
{-# LANGUAGE KindSignatures #-}
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
' withInitiatorMode ' has muxM... | null | https://raw.githubusercontent.com/input-output-hk/ouroboros-network/2f09ddd9282916858ba5d6b4b340cddbaf050d7e/ouroboros-network-framework/src/Ouroboros/Network/ConnectionManager/Types.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE DeriveFunctor #
# LANGUAGE FlexibleContexts #
# LANGUAGE KindSignatures #
# LANGUAGE RankNTypes #
not redundant at all! It limits case analysis.
# OPTIONS_GHC -Wno-redundant-constraints #
| Connection manager core types.
connections and threads wh... | # LANGUAGE GADTs #
# LANGUAGE NamedFieldPuns #
# LANGUAGE ScopedTypeVariables #
' withInitiatorMode ' has muxMode ~ True@ constraint , which is
TODO : this might not by needed by ` ghc-8.10 ` .
Connection manager is responsible for managing uni- and bi - directional
Connection manager is... |
35bbc16b26b24cfd8ac0b2991e0aeb0b9927e4e82a5d2b1500912301501a7117 | privet-kitty/cl-competitive | quickselect.lisp | (defpackage :cp/test/quickselect
(:use :cl :fiveam :cp/quickselect :cp/quicksort)
(:import-from :cp/test/base #:base-suite))
(in-package :cp/test/quickselect)
(in-suite base-suite)
(test quickselect!
(let ((*test-dribble* nil)
(vector (make-array 100 :element-type 'fixnum))
(state (sb-ext:seed-ra... | null | https://raw.githubusercontent.com/privet-kitty/cl-competitive/a8fc60ecc636f3638a680ce210fdffa8f903d540/module/test/quickselect.lisp | lisp | empty case | (defpackage :cp/test/quickselect
(:use :cl :fiveam :cp/quickselect :cp/quicksort)
(:import-from :cp/test/base #:base-suite))
(in-package :cp/test/quickselect)
(in-suite base-suite)
(test quickselect!
(let ((*test-dribble* nil)
(vector (make-array 100 :element-type 'fixnum))
(state (sb-ext:seed-ra... |
28fbc13fefa5c50448376631298bb2b07c9602a8724e8490f376569732524582 | imrehg/ypsilon | ellipsize.scm | #!nobacktrace
Ypsilon Scheme System
Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited .
See license.txt for terms and conditions of use .
(library (ypsilon pango ellipsize)
(export pango_ellipsize_mode_get_type)
(import (rnrs) (ypsilon ffi))
(define lib-name
(cond (on-linux "libpan... | null | https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/pango/ellipsize.scm | scheme | [end] | #!nobacktrace
Ypsilon Scheme System
Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited .
See license.txt for terms and conditions of use .
(library (ypsilon pango ellipsize)
(export pango_ellipsize_mode_get_type)
(import (rnrs) (ypsilon ffi))
(define lib-name
(cond (on-linux "libpan... |
4d633c871bf6645b16f6c0e04b2d37babee5d885f826814568359a08aacdcce1 | fare/xcvb | func-3.lisp | #+xcvb (module (:depends-on ("package")))
(in-package :lib-a)
(defun lib-a/func-3 ()
(format t "This function 3 from lib-a!~%"))
| null | https://raw.githubusercontent.com/fare/xcvb/460e27bd4cbd4db5e7ddf5b22c2ee455df445258/examples/example-2/lib-a/func-3.lisp | lisp | #+xcvb (module (:depends-on ("package")))
(in-package :lib-a)
(defun lib-a/func-3 ()
(format t "This function 3 from lib-a!~%"))
| |
53d33c7e965abd5b987811d573a4182f170f6f3225d5daed7670760bb6c1ed0d | zachgk/catln | Constrain.hs | --------------------------------------------------------------------
-- |
Module : . Constrain
Copyright : ( c ) 2019
License : MIT
-- Maintainer:
-- Stability : experimental
-- Portability: non-portable
--
This module defines the ' runConstraints ' . It executes the set
-- of type variable c... | null | https://raw.githubusercontent.com/zachgk/catln/e7dc2f662fc127559cbe69f173272482fd446723/src/TypeCheck/Constrain.hs | haskell | ------------------------------------------------------------------
|
Maintainer:
Stability : experimental
Portability: non-portable
of type variable constraints against the type variables until
the variables converge. It tries to execute each constraint
and then determines if it is changing the variable.
---... | Module : . Constrain
Copyright : ( c ) 2019
License : MIT
This module defines the ' runConstraints ' . It executes the set
# LANGUAGE NamedFieldPuns #
module TypeCheck.Constrain where
import qualified Data.HashMap.Strict as H
import Data.Maybe
import Data.Tuple.Sequence
im... |
4d37a45084ca0ccd13c3e9d7dc91395e0e804fb2e09ae9f540dcd28d90a479bf | UU-ComputerScience/uhc | EnumInteger1.hs | ----------------------------------------------------------------------------------------
what : class , for Integer
expected : ok
----------------------------------------------------------------------------------------
what : Enum class, for Integer
expected: ok
-----------------------------... | null | https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/99/EnumInteger1.hs | haskell | --------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------- -} | what : class , for Integer
expected : ok
what : Enum class, for Integer
expected: ok
module EnumInteger1 where
main :: IO ()
main
= do putStrLn (show $ fromEnum (111::Integer))
putStrLn (show $ (toEnum (111::Int) :: Integer))
putStrLn (show $ [1::Integer ..4])
putStrLn (... |
e662b9815d1c85d0cb6abf358210dc9e9a5d8e8bbdde12c36c444ea6cef274d8 | nirum-lang/nirum | Python.hs | # OPTIONS_GHC -Wno - orphans #
# LANGUAGE ExtendedDefaultRules #
# LANGUAGE OverloadedLists #
# LANGUAGE QuasiQuotes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
# LANGUAGE TypeFamilies #
{-# LANGUAGE TypeSynonymInstances #-}
# LANGUAGE MultiParamTypeClasses #
module Nirum.Targets.Python
( Python (... | null | https://raw.githubusercontent.com/nirum-lang/nirum/4d4488b0524874abc6e693479a5cc70c961bad33/src/Nirum/Targets/Python.hs | haskell | # LANGUAGE TypeSynonymInstances #
never used
Nothing to compile | # OPTIONS_GHC -Wno - orphans #
# LANGUAGE ExtendedDefaultRules #
# LANGUAGE OverloadedLists #
# LANGUAGE QuasiQuotes #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
# LANGUAGE TypeFamilies #
# LANGUAGE MultiParamTypeClasses #
module Nirum.Targets.Python
( Python (..)
, Source (..)
, compileMod... |
4938f015c99d9107640d09b076280dd1b66ae5714d4f0c763b6ccac714c19b0e | NorfairKing/easyspec | ChunksPlusUtils.hs | module EasySpec.Discover.SignatureInference.ChunksPlusUtils where
import Import
import EasySpec.Discover.CodeUtils
import EasySpec.Discover.SignatureInference.ShrinkThenDrill
import EasySpec.Discover.SignatureInference.Utils
import EasySpec.Discover.Types
inferChunksPlusFrom ::
([EasyId] -> [EasyId] -> [Easy... | null | https://raw.githubusercontent.com/NorfairKing/easyspec/b038b45a375cc0bed2b00c255b508bc06419c986/easyspec/src/EasySpec/Discover/SignatureInference/ChunksPlusUtils.hs | haskell | The nodes that mention ff and sf1
If the nodes with the same functions as the functions in this note, so ff, sf1 and sf2, | module EasySpec.Discover.SignatureInference.ChunksPlusUtils where
import Import
import EasySpec.Discover.CodeUtils
import EasySpec.Discover.SignatureInference.ShrinkThenDrill
import EasySpec.Discover.SignatureInference.Utils
import EasySpec.Discover.Types
inferChunksPlusFrom ::
([EasyId] -> [EasyId] -> [Easy... |
0b58188ca6a3f171897b61d8f3fda9be96542f15bd73fa56873d60294718bc40 | yallop/ocaml-memcpy | memcpy.ml |
* Copyright ( c ) 2016 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AU... | null | https://raw.githubusercontent.com/yallop/ocaml-memcpy/4ca07c308dcc78545680510dd4818d39aac964e7/lib/memcpy.ml | ocaml |
* Copyright ( c ) 2016 < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS " AND THE AU... | |
0ed6bcd5fbb54596452726a9b621a5e2b3f398c0370426b2600ffc0e2b3e1c66 | onedata/op-worker | atm_task_executor.erl | %%%-------------------------------------------------------------------
@author
( C ) 2021 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
%%% @end
%%%-------------------------------------------------------------------
%%% @doc
%%% This module defines `atm_task_exec... | null | https://raw.githubusercontent.com/onedata/op-worker/0b059f432df26a54f372f7d4b99a40ffca5f802a/src/modules/automation/task/executor/atm_task_executor.erl | erlang | -------------------------------------------------------------------
@end
-------------------------------------------------------------------
@doc
This module defines `atm_task_executor` interface - an object used for
executing a job (an automation task with specific arguments).
!!! Cau... | @author
( C ) 2021 ACK CYFRONET AGH
This software is released under the MIT license
cited in ' LICENSE.txt ' .
1 ) This behaviour must be implemented by proper models , that is modules with
2 ) Models implementing this behaviour must also implement ` persistent_record `
3 ) Modules implementing this be... |
ff82afd9848a811e5c5ff5b9c6b2aae9594174b7ec0062d45a9f79abd4463f75 | jhartikainen/hs-language-php | Conversion.hs | module Conversion where
import Tokenizer
import Text.Read
import Data.Maybe
castToBool :: PHPValue -> PHPValue
castToBool (PHPString a) | a == "" = PHPBool False
| a == "0" = PHPBool False
| otherwise = PHPBool True
castToBool (PHPInt a) | a == 0 = PHPBool Fals... | null | https://raw.githubusercontent.com/jhartikainen/hs-language-php/23ba35cb6462f9c51bac73573b35bcd0b07bf1e9/Conversion.hs | haskell | module Conversion where
import Tokenizer
import Text.Read
import Data.Maybe
castToBool :: PHPValue -> PHPValue
castToBool (PHPString a) | a == "" = PHPBool False
| a == "0" = PHPBool False
| otherwise = PHPBool True
castToBool (PHPInt a) | a == 0 = PHPBool Fals... | |
a27d0d501bc500c8701bf98516f54f6bd8f41e775c4d27656d60b035f7d4ab83 | nvim-treesitter/nvim-treesitter | highlights.scm | (tag_name) @tag
(erroneous_end_tag_name) @error
(comment) @comment
(attribute_name) @tag.attribute
(attribute
(quoted_attribute_value) @string)
(text) @text @spell
((element (start_tag (tag_name) @_tag) (text) @text.title)
(#match? @_tag "^(h[0-9]|title)$"))
((element (start_tag (tag_name) @_tag) (text) @text.stro... | null | https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/dd4e62324ab1607aefdbeddc776489cf9826ee6e/queries/html_tags/highlights.scm | scheme | (tag_name) @tag
(erroneous_end_tag_name) @error
(comment) @comment
(attribute_name) @tag.attribute
(attribute
(quoted_attribute_value) @string)
(text) @text @spell
((element (start_tag (tag_name) @_tag) (text) @text.title)
(#match? @_tag "^(h[0-9]|title)$"))
((element (start_tag (tag_name) @_tag) (text) @text.stro... | |
a98a886ce4920989de9fb56b337bf8c063d14b9847c54296ce2a4930ae86e36b | zkincaid/duet | test_abstract.ml | open Srk
open OUnit
open Abstract
open Nonlinear
open Test_pervasives
let hull_formula hull = Ctx.mk_and (List.map (Ctx.mk_eq (int 0)) hull)
let affine_hull1 () =
let phi =
let open Infix in
x = y && y = z + (int 1)
in
let hull = affine_hull srk phi [xsym; ysym; zsym] in
let hull_xz = affine_hull srk ... | null | https://raw.githubusercontent.com/zkincaid/duet/162d3da830f12ab8e8d51f7757cddcb49c4084ca/srk/test/test_abstract.ml | ocaml | in
let phi_r =
in
in
(Abstract.boxify srk phi [Ctx.mk_add [r; s]])
in
in
let phi_closed =
in
to pass this test case, we need linearization to be smart enough to see
that x = y implies x * x = y * y
"optimize4" >:: optimize4; | open Srk
open OUnit
open Abstract
open Nonlinear
open Test_pervasives
let hull_formula hull = Ctx.mk_and (List.map (Ctx.mk_eq (int 0)) hull)
let affine_hull1 () =
let phi =
let open Infix in
x = y && y = z + (int 1)
in
let hull = affine_hull srk phi [xsym; ysym; zsym] in
let hull_xz = affine_hull srk ... |
8c01c2380acc1f3124c09710b083450423397d68e097ab2dbb6e37f8b93cb73e | galdor/tungsten | parser.lisp | (in-package :netrc-test)
(defun entries (&rest lines)
(netrc:parse-entries
(with-output-to-string (stream)
(dolist (line lines)
(write-string line stream)
(write-char #\Newline stream)))))
(eval-when (:compile-toplevel :load-toplevel :execute)
(defmacro define-parser-test ((name entries &res... | null | https://raw.githubusercontent.com/galdor/tungsten/41b1b7f0b68990aeae25b43dee97efaadbde263d/tungsten-netrc/t/parser.lisp | lisp | (in-package :netrc-test)
(defun entries (&rest lines)
(netrc:parse-entries
(with-output-to-string (stream)
(dolist (line lines)
(write-string line stream)
(write-char #\Newline stream)))))
(eval-when (:compile-toplevel :load-toplevel :execute)
(defmacro define-parser-test ((name entries &res... | |
b6d44943746930dcbc2170d8b806d4d0376bbf4f060f3330d92ac2ce0cd68fd4 | manuel-serrano/bigloo | dbus.scm | (module bigloodbus
(option (set! *dlopen-init* "dbus_s"))
(extern
(export mylist->vector "bgl_list_to_vector")
(export get-signature "bgl_get_signature")
(export myerror "bgl_error")
(export list->dbus-struct "bgl_list_to_dbus_struct")
(export my-dbus-struct-pred "bgl_is_dbus_structure")
(export dbus-s... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/api-contribs/bigloo-with-dbus/api/dbus/src/Llib/dbus.scm | scheme | -- done
-- done
-- done
-- done
-- done
-- done
-- done
-- done
-- done
-- done
-- done
-- done
-- done
-- done
-- done
*----------------------------------------------------------------------*
*----------------------------------------------------------------------*
*-----------------------------------------------------... | (module bigloodbus
(option (set! *dlopen-init* "dbus_s"))
(extern
(export mylist->vector "bgl_list_to_vector")
(export get-signature "bgl_get_signature")
(export myerror "bgl_error")
(export list->dbus-struct "bgl_list_to_dbus_struct")
(export my-dbus-struct-pred "bgl_is_dbus_structure")
(export dbus-s... |
bf85c965503771a7e0958fcce87a37e6ec54a4ed9fc21c9ba6bc69144a0b2b1a | acarrico/wayland-protocol | callback-client.rkt | #lang typed/racket/base
(provide (all-from-out "generated/wl_callback-client.rkt"))
(require "generated/wl_callback-client.rkt")
| null | https://raw.githubusercontent.com/acarrico/wayland-protocol/7270ae8f420c8062466c230e7cf3fe5331fe9fbd/typed/wayland-0/callback-client.rkt | racket | #lang typed/racket/base
(provide (all-from-out "generated/wl_callback-client.rkt"))
(require "generated/wl_callback-client.rkt")
| |
10b25b65fb727b5b6db3b8af24162eed83f67e999839f299bf7b66693ff64baa | schemedoc/implementation-metadata | oscheme.scm | (title "Oscheme")
(long-title "Objective Scheme")
(tagline "an embeddable mostly-R4RS interpreter with lots of extensions")
(person "Anselm Baird-Smith")
(company "Groupe Bull")
(academy "INRIA")
(features
apropos)
| null | https://raw.githubusercontent.com/schemedoc/implementation-metadata/6280d9c4c73833dc5bd1c9bef9b45be6ea5beb68/schemes/oscheme.scm | scheme | (title "Oscheme")
(long-title "Objective Scheme")
(tagline "an embeddable mostly-R4RS interpreter with lots of extensions")
(person "Anselm Baird-Smith")
(company "Groupe Bull")
(academy "INRIA")
(features
apropos)
| |
a82ebbd751ca2962c90a9f9d61a28d7a1f3a3da152505284bd9ac47a81fdbe81 | Rydgel/Clojure-Instagram-API | request_test.clj | (ns instagram.request-test
(:use
clojure.test
instagram.request
instagram.callbacks
instagram.core
instagram.callbacks.handlers)
(:require
[http.async.client.request :as req])
(:import
(instagram.callbacks.protocols SyncSingleCallback SyncStreamingCallback
... | null | https://raw.githubusercontent.com/Rydgel/Clojure-Instagram-API/f2de2c8b8c3b852bfbb2bca3c4d1a4252f1216bf/test/instagram/request_test.clj | clojure | (ns instagram.request-test
(:use
clojure.test
instagram.request
instagram.callbacks
instagram.core
instagram.callbacks.handlers)
(:require
[http.async.client.request :as req])
(:import
(instagram.callbacks.protocols SyncSingleCallback SyncStreamingCallback
... | |
b0d72c5a84342fb5b13ec9021eb724fe88671c3c8218142bbaa8ebd669dfd71c | neongreen/haskell-ex | Main.hs | module Main where
import Data.List
type Pair = (Int, Int)
factorPairs :: Int -> [Pair]
factorPairs n = [(a,b) | a <- [2..div n 2], (b, 0) <- [divMod n a], a >= b]
termPairs :: Int -> [Pair]
termPairs n = [(n-b, b) | b <- [2..div n 2]]
pTs :: [Pair] -> [[Pair]]
pTs = map (\(a, b) -> termPairs $ a+b)
sTp ... | null | https://raw.githubusercontent.com/neongreen/haskell-ex/345115444fdf370a43390fd942e2851b9b1963ad/week1/logic-brute/vitcra/Main.hs | haskell | definitely cannot know
I know you do not know | module Main where
import Data.List
type Pair = (Int, Int)
factorPairs :: Int -> [Pair]
factorPairs n = [(a,b) | a <- [2..div n 2], (b, 0) <- [divMod n a], a >= b]
termPairs :: Int -> [Pair]
termPairs n = [(n-b, b) | b <- [2..div n 2]]
pTs :: [Pair] -> [[Pair]]
pTs = map (\(a, b) -> termPairs $ a+b)
sTp ... |
7b8ddb065600c5758353fd3363339ee9f9854be656523665512566aaf45b2fd0 | nuvla/api-server | credential_infrastructure_service_coe_test.cljc | (ns sixsq.nuvla.server.resources.spec.credential-infrastructure-service-coe-test
(:require
[clojure.test :refer [deftest]]
[sixsq.nuvla.server.resources.credential :as cred]
[sixsq.nuvla.server.resources.spec.credential-infrastructure-service-coe :as cred-infra-service-coe]
[sixsq.nuvla.server.resourc... | null | https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/test/sixsq/nuvla/server/resources/spec/credential_infrastructure_service_coe_test.cljc | clojure | mandatory keywords
optional keywords | (ns sixsq.nuvla.server.resources.spec.credential-infrastructure-service-coe-test
(:require
[clojure.test :refer [deftest]]
[sixsq.nuvla.server.resources.credential :as cred]
[sixsq.nuvla.server.resources.spec.credential-infrastructure-service-coe :as cred-infra-service-coe]
[sixsq.nuvla.server.resourc... |
85f9bd171b20ca097d2881276053756940f0214b231a517ee3333c5965380a87 | lillo/compiler-course-unipi | call_ext_fun.ml |
Use :
$ ocamlbuild -use - ocamlfind -package call_ext_fun.byte
Use:
$ ocamlbuild -use-ocamlfind -package llvm call_ext_fun.byte
*)
let declare_puts llcontext llmodule =
let i32t = Llvm.i32_type llcontext in
let char_ptr = Llvm.i8_type llcontext |> Llvm.pointer_type in
let puts_t = Llvm.fu... | null | https://raw.githubusercontent.com/lillo/compiler-course-unipi/bc423a8e69425cccf9b727e9ef6a91f35b7aeb94/codegen-material/code/call_ext_fun.ml | ocaml |
Use :
$ ocamlbuild -use - ocamlfind -package call_ext_fun.byte
Use:
$ ocamlbuild -use-ocamlfind -package llvm call_ext_fun.byte
*)
let declare_puts llcontext llmodule =
let i32t = Llvm.i32_type llcontext in
let char_ptr = Llvm.i8_type llcontext |> Llvm.pointer_type in
let puts_t = Llvm.fu... | |
1a39ab02ad70252eee12ed8ff94bb929f682f439de2dd30f7e4d219b1d3b8e6e | gvolpe/split-morphism | SplitMorphism.hs | {-# LANGUAGE Rank2Types #-}
module Control.Lens.SplitMorphism (
reverseEpi
, reverseMono
, composeSplitEpiMono
, composeSplitEpiPrism
, composeSplitMonoEpi
, epiAsWedge
, monoAsWedge
) where
import Control.Lens
import Control.Lens.Format (Format (..))
import Control.Lens.SplitEpi (SplitEpi (..))
imp... | null | https://raw.githubusercontent.com/gvolpe/split-morphism/15d37ffefacb26d9986cf351e8b8f942830685f0/src/Control/Lens/SplitMorphism.hs | haskell | # LANGUAGE Rank2Types #
| Swapping `Control.Lens.SplitEpi.get` and `Control.Lens.SplitEpi.reverseGet` yields a `SplitMono`. |
module Control.Lens.SplitMorphism (
reverseEpi
, reverseMono
, composeSplitEpiMono
, composeSplitEpiPrism
, composeSplitMonoEpi
, epiAsWedge
, monoAsWedge
) where
import Control.Lens
import Control.Lens.Format (Format (..))
import Control.Lens.SplitEpi (SplitEpi (..))
import Control.Lens.SplitMono (... |
bc320db68c1537ebb7a269e8a9fa37e0b2a2089cdf89d0eb79e12cee96388107 | haskell-opengl/OpenGLRaw | BlendEquationSeparate.hs | # LANGUAGE PatternSynonyms #
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.EXT.BlendEquationSeparate
Copyright : ( c ) 2019
-- License : BSD3
--
Maintainer : < >
-- Stability : stable
-- Portability : portable
--
----------... | null | https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/EXT/BlendEquationSeparate.hs | haskell | ------------------------------------------------------------------------------
|
Module : Graphics.GL.EXT.BlendEquationSeparate
License : BSD3
Stability : stable
Portability : portable
------------------------------------------------------------------------------
* Extension Support
* Enums
* F... | # LANGUAGE PatternSynonyms #
Copyright : ( c ) 2019
Maintainer : < >
module Graphics.GL.EXT.BlendEquationSeparate (
glGetEXTBlendEquationSeparate,
gl_EXT_blend_equation_separate,
pattern GL_BLEND_EQUATION_ALPHA_EXT,
pattern GL_BLEND_EQUATION_RGB_EXT,
glBlendEquationSeparateEXT
) where
impo... |
7885c7b0ffb898f2dd1c8762b39469dbbcd8d3f8e2f3303906a4245bad580ac3 | drlivingston/kabob | test_record_diff.clj | (ns edu.ucdenver.ccp.test.kabob.kr.test-record-diff
(use clojure.test
clojure.test.junit
edu.ucdenver.ccp.kabob.parallel-utils
edu.ucdenver.ccp.kabob.kr.record-diff
edu.ucdenver.ccp.kabob.namespace
edu.ucdenver.ccp.kr.sesame.kb
edu.ucdenver.ccp.kr.kb
edu.ucdenver.ccp.kr.rdf... | null | https://raw.githubusercontent.com/drlivingston/kabob/7038076849744c959da9c8507e8a8ab7215410aa/kabob-core/src/test/clojure/edu/ucdenver/ccp/test/kabob/kr/test_record_diff.clj | clojure | edu.ucdenver.ccp.kr.forward-rule
edu.ucdenver.ccp.kabob.rule
edu.ucdenver.ccp.test.kabob.build.live-test-utils
edu.ucdenver.ccp.kabob.build.ice-helper
--------------------------------------------------------
--------------------------------------------------------
----------------------------------------------------... | (ns edu.ucdenver.ccp.test.kabob.kr.test-record-diff
(use clojure.test
clojure.test.junit
edu.ucdenver.ccp.kabob.parallel-utils
edu.ucdenver.ccp.kabob.kr.record-diff
edu.ucdenver.ccp.kabob.namespace
edu.ucdenver.ccp.kr.sesame.kb
edu.ucdenver.ccp.kr.kb
edu.ucdenver.ccp.kr.rdf... |
2eeed29d3d66df88e9d4264b7efeecfa4a908479c7d232b8d8dab08cc28d41e3 | g000001/Starlisp-simulator | package.lisp | (defpackage "*SIM-I"
(:use "COMMON-LISP")
(:nicknames "*LISP-I")
)
(make-package :*sim)
(eval-when (:compile-toplevel :load-toplevel :execute)
(pushnew :*LISP-SIMULATOR *features*))
| null | https://raw.githubusercontent.com/g000001/Starlisp-simulator/12a6513d316a27fc130b83dcb023578312a79788/package.lisp | lisp | (defpackage "*SIM-I"
(:use "COMMON-LISP")
(:nicknames "*LISP-I")
)
(make-package :*sim)
(eval-when (:compile-toplevel :load-toplevel :execute)
(pushnew :*LISP-SIMULATOR *features*))
| |
724d943018e7bdacbbb66bc13436706de3e080dedd5d2e3f1ef7168b22599cbc | meain/evil-textobj-tree-sitter | textobjects.scm | (method_declaration) @function.outer
| null | https://raw.githubusercontent.com/meain/evil-textobj-tree-sitter/9dce8dab68c954ae32095328cf898eb856fc341a/queries/hack/textobjects.scm | scheme | (method_declaration) @function.outer
| |
f4894532e50948da69da324ec6629a5cc9645fd09a6ec9db586b52627a3390fa | kubernetes-client/haskell | Logging.hs |
Kubernetes
No description provided ( generated by Openapi Generator -generator )
OpenAPI Version : 3.0.1
Kubernetes API version : release-1.20
Generated by OpenAPI Generator ( -generator.tech )
Kubernetes
No description provided (generated by Openapi Generator -generator)
OpenAPI... | null | https://raw.githubusercontent.com/kubernetes-client/haskell/e848bc0c5c8d4fe4d2c9e8555331c219814c8ec9/kubernetes/lib/Kubernetes/OpenAPI/Logging.hs | haskell | |
Module : Kubernetes.OpenAPI.Logging
Logging functions
|
Kubernetes
No description provided ( generated by Openapi Generator -generator )
OpenAPI Version : 3.0.1
Kubernetes API version : release-1.20
Generated by OpenAPI Generator ( -generator.tech )
Kubernetes
No description provided (generated by Openapi Generator -generator)
OpenAPI... |
e37abbe7e0f15db0c2a05e776ae189c2ed7259773dc388722514615979fcd6af | nikita-volkov/rebase | STRef.hs | module Rebase.GHC.STRef
(
module GHC.STRef
)
where
import GHC.STRef
| null | https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/GHC/STRef.hs | haskell | module Rebase.GHC.STRef
(
module GHC.STRef
)
where
import GHC.STRef
| |
f58a15f7e514c97c098b08821edb8f39ac9718602794609e5ccf876ad85bc842 | arrdem/katamari | local.clj | Copyright ( c ) . All rights reserved .
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; ... | null | https://raw.githubusercontent.com/arrdem/katamari/55e2da2c37c02774a1332e410ceebee0a0742d27/src/clojure-tools-deps/src/clojure/tools/deps/alpha/extensions/local.clj | clojure | The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove ... | Copyright ( c ) . All rights reserved .
(ns clojure.tools.deps.alpha.extensions.local
(:require
[clojure.java.io :as jio]
[me.raynes.fs :as fs]
[clojure.string :as str]
[clojure.tools.deps.alpha.extensions :as ext]
[clojure.tools.deps.alpha.extensions.pom :as pom])
(:import
[java.io File IO... |
23c606754bccc927f69d32d0df7cdd23a0f58aa148c81c5731afce894aa98f69 | freizl/dive-into-haskell | Lookup.hs | -- |
module Lookup where
xs :: [Integer]
xs = [1, 2, 3]
ys :: [Integer]
ys = [4, 5, 6]
x :: Maybe Integer
x = lookup 3 $ zip xs ys
y :: Maybe Integer
y = lookup 2 $ zip xs ys
summed :: Maybe Integer
summed = sum <$> ((,) <$> x <*> y)
| null | https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/readings/haskell-book/17/Lookup.hs | haskell | | |
module Lookup where
xs :: [Integer]
xs = [1, 2, 3]
ys :: [Integer]
ys = [4, 5, 6]
x :: Maybe Integer
x = lookup 3 $ zip xs ys
y :: Maybe Integer
y = lookup 2 $ zip xs ys
summed :: Maybe Integer
summed = sum <$> ((,) <$> x <*> y)
|
5970613586e2adf8d2dc40ec4c38b99594888b30897a21054991057a35ab0753 | samply/blaze | aggregate_operators.clj | (ns blaze.elm.compiler.aggregate-operators
"21. Aggregate Operators
Section numbers are according to
-logicalspecification.html."
(:require
[blaze.coll.core :as coll]
[blaze.elm.aggregates :as aggregates]
[blaze.elm.compiler.macros :refer [defaggop]]
[blaze.elm.compiler.queries :as queries]
... | null | https://raw.githubusercontent.com/samply/blaze/7afce7769059a68561b76fe756ff858b6d9813d7/modules/cql/src/blaze/elm/compiler/aggregate_operators.clj | clojure | (ns blaze.elm.compiler.aggregate-operators
"21. Aggregate Operators
Section numbers are according to
-logicalspecification.html."
(:require
[blaze.coll.core :as coll]
[blaze.elm.aggregates :as aggregates]
[blaze.elm.compiler.macros :refer [defaggop]]
[blaze.elm.compiler.queries :as queries]
... | |
ff569b5750a445574000aef3b063262e3b82633083b591284418693835b47765 | msakai/toysolver | Simple.hs | # OPTIONS_GHC -Wall #
-----------------------------------------------------------------------------
-- |
Module : ToySolver . Combinatorial . HittingSet . Simple
Copyright : ( c ) 2012 - 2014
-- License : BSD-style
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--... | null | https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/src/ToySolver/Combinatorial/HittingSet/Simple.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD-style
Maintainer :
Stability : provisional
Portability : portable
--------------------------------------------------------------------------- | # OPTIONS_GHC -Wall #
Module : ToySolver . Combinatorial . HittingSet . Simple
Copyright : ( c ) 2012 - 2014
module ToySolver.Combinatorial.HittingSet.Simple
( minimalHittingSets
, enumMinimalHittingSets
) where
import Control.Monad
import Data.IntSet (IntSet)
import qualified Data.IntSet as I... |
c76ec9aa50f33f0c0466d4a100589a07e8ce11479c6c843d6b0945f7cc55d318 | fogfish/esq | esq_app.erl | %%
Copyright ( c ) 2012 ,
%% All Rights Reserved.
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law or agreed t... | null | https://raw.githubusercontent.com/fogfish/esq/e5493b145fb3e626000b54b30d1a5b81ea91eecf/src/esq_app.erl | erlang |
All Rights Reserved.
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for... | Copyright ( c ) 2012 ,
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(esq_app).
-behaviour(application).
-export([
start/2, stop/1
]).
start(_Type, _Args) ->
esq_sup:start_link().
stop(_State) ->
... |
e1cc16fb7dfd2047281535956c4f6b254a8894167ad907258761634fc3f3412c | wireapp/wire-server | HTTP.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
-- This file is part of the Wire Server implementation.
--
Copyright ( C ) 2022 Wire Swiss GmbH < >
--
-- This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as publishe... | null | https://raw.githubusercontent.com/wireapp/wire-server/72a03a776d4a8607b0a9c3e622003467be914894/libs/api-client/src/Network/Wire/Client/HTTP.hs | haskell | # LANGUAGE OverloadedStrings #
This file is part of the Wire Server implementation.
This program is free software: you can redistribute it and/or modify it under
later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANT... | # LANGUAGE ScopedTypeVariables #
Copyright ( C ) 2022 Wire Swiss GmbH < >
the terms of the GNU Affero General Public License as published by the Free
Software Foundation , either version 3 of the License , or ( at your option ) any
You should have received a copy of the GNU Affero General Public License along... |
9b2eb2e1d7a699a0301e8bb4e715505a12e1920ae55012d7e894c5d71720a5d3 | typelead/eta | Read01.hs | data REC = REC {l::Int,r::Int} deriving (Read,Show)
main = print (read "REC {l=3,r=4}" :: REC)
| null | https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/basic/run/Read01.hs | haskell | data REC = REC {l::Int,r::Int} deriving (Read,Show)
main = print (read "REC {l=3,r=4}" :: REC)
| |
71f68406f55b13ff5d3fcce3a53f7dc5e95cc06f1afb4e4506b9b9cf483b1e18 | liquidz/build.edn | core.clj | (ns build-edn.core
(:require
[build-edn.pom :as be.pom]
[build-edn.repository :as be.repo]
[build-edn.schema :as be.schema]
[build-edn.util.string :as be.u.str]
[build-edn.variable :as be.var]
[build-edn.version :as be.ver]
[clojure.string :as str]
[clojure.tools.build.api :as b]
[deps-depl... | null | https://raw.githubusercontent.com/liquidz/build.edn/d2d25b05902fda2fb5aacd503e95ec3e6ff5a907/src/build_edn/core.clj | clojure | (ns build-edn.core
(:require
[build-edn.pom :as be.pom]
[build-edn.repository :as be.repo]
[build-edn.schema :as be.schema]
[build-edn.util.string :as be.u.str]
[build-edn.variable :as be.var]
[build-edn.version :as be.ver]
[clojure.string :as str]
[clojure.tools.build.api :as b]
[deps-depl... | |
4875f4d3342ffc33d49504fc4613308cde4418f8fcdacfca3d940355d0b159f3 | danieljharvey/mimsa | Annotation.hs | # LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
module Smol.Core.Types.Annotation
( Annotation (..),
)
where
data Annotation = Location Int Int
deriving stock (Eq, Ord, Show)
-- | bullshit instance
instance Semigroup Annotation where
a <> _ = a
-- bullshit instance
instance Monoid Annotation w... | null | https://raw.githubusercontent.com/danieljharvey/mimsa/7931b803a9f7e71ff47dc9afa7dc6bceaeb238ee/smol-core/src/Smol/Core/Types/Annotation.hs | haskell | | bullshit instance
bullshit instance | # LANGUAGE DerivingStrategies #
# LANGUAGE FlexibleContexts #
module Smol.Core.Types.Annotation
( Annotation (..),
)
where
data Annotation = Location Int Int
deriving stock (Eq, Ord, Show)
instance Semigroup Annotation where
a <> _ = a
instance Monoid Annotation where
mempty = Location 0 0
|
adf5c25f4a84d921c284a6cf9dd289cb8d29daacd14714ca166307964b67a846 | haskell/text | Encoding.hs | # LANGUAGE BangPatterns , CPP , GeneralizedNewtypeDeriving , MagicHash ,
UnliftedFFITypes #
UnliftedFFITypes #-}
# LANGUAGE Trustworthy #
# LANGUAGE TypeApplications #
# LANGUAGE ScopedTypeVariables #
-- |
-- Module : Data.Text.Encoding
Copyright : ( c ) 2009 , 2010 , 2011 ,
( c ) ... | null | https://raw.githubusercontent.com/haskell/text/28b5088a77c176b71d4a2db4557ca2c16cde7b69/src/Data/Text/Encoding.hs | haskell | |
Module : Data.Text.Encoding
License : BSD-style
Maintainer :
Portability : portable
using several standard encodings.
To gain access to a much larger family of encodings, use the
<-icu text-icu package>.
$strict
** Total Functions #total#
$total
*** Controllable error handling
*** Stream or... | # LANGUAGE BangPatterns , CPP , GeneralizedNewtypeDeriving , MagicHash ,
UnliftedFFITypes #
UnliftedFFITypes #-}
# LANGUAGE Trustworthy #
# LANGUAGE TypeApplications #
# LANGUAGE ScopedTypeVariables #
Copyright : ( c ) 2009 , 2010 , 2011 ,
( c ) 2009 ,
( c ) 2008 , 200... |
9a339060fbb71ac02559eb1b9556b5b02fb4d2e77a8742dc02951ed53908a30e | futurice/haskell-mega-repo | AuditPage.hs | # LANGUAGE DataKinds #
{-# LANGUAGE OverloadedStrings #-}
module Futurice.App.GitHubSync.AuditPage (auditPage) where
import Futurice.Prelude
import Prelude ()
import Futurice.App.GitHubSync.Markup
import qualified FUM.Types.Login as FUM
auditPage
:: [(FUM.Login, UTCTime, Text)]
-> HtmlPage "audit"
... | null | https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/github-sync/src/Futurice/App/GitHubSync/AuditPage.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE DataKinds #
module Futurice.App.GitHubSync.AuditPage (auditPage) where
import Futurice.Prelude
import Prelude ()
import Futurice.App.GitHubSync.Markup
import qualified FUM.Types.Login as FUM
auditPage
:: [(FUM.Login, UTCTime, Text)]
-> HtmlPage "audit"
auditPage xs = page_ "Audit" (Just ... |
5a5d28baec8bcc20cc1f3fe7ebe424a9630bc17586fd6236e96d05a0c4cd1f94 | ocaml-multicore/reagents | offer_intf.ml | module type S = sig
type 'a t
val make : unit -> 'a t
val equal : 'a t -> 'b t -> bool
val is_active : 'a t -> bool
val get_id : 'a t -> Offer_id.t
val wait : 'a t -> unit
val complete : 'a t -> 'a -> PostCommitCas.t
val rescind : 'a t -> 'a option
val get_result : 'a t -> 'a option
type catalyst
... | null | https://raw.githubusercontent.com/ocaml-multicore/reagents/6721db78b21028c807fb13d0af0aaf9407c662b5/lib/offer_intf.ml | ocaml | module type S = sig
type 'a t
val make : unit -> 'a t
val equal : 'a t -> 'b t -> bool
val is_active : 'a t -> bool
val get_id : 'a t -> Offer_id.t
val wait : 'a t -> unit
val complete : 'a t -> 'a -> PostCommitCas.t
val rescind : 'a t -> 'a option
val get_result : 'a t -> 'a option
type catalyst
... | |
b5661cfbca22dabd7a7b2ba81ea1d47cd7a8b05a573a3e0cf3f79b8c03260cef | GaloisInc/daedalus | HasInputs.hs | module Daedalus.RTS.HasInputs where
import Data.Map(Map)
import qualified Data.Map as Map
import Data.ByteString(ByteString)
import Data.ByteString.Short(ShortByteString)
class HasInputs a where
getInputs :: a -> Map ShortByteString ByteString
instance HasInputs () where
getInputs _ = Map.empty
instance HasInp... | null | https://raw.githubusercontent.com/GaloisInc/daedalus/3f180d29441960e35386654ec79a2b205bddc157/rts-hs-data/src/Daedalus/RTS/HasInputs.hs | haskell | module Daedalus.RTS.HasInputs where
import Data.Map(Map)
import qualified Data.Map as Map
import Data.ByteString(ByteString)
import Data.ByteString.Short(ShortByteString)
class HasInputs a where
getInputs :: a -> Map ShortByteString ByteString
instance HasInputs () where
getInputs _ = Map.empty
instance HasInp... | |
7d1c747ab81aff4c63eca1510da2918db885ec6e98bf54f7ec325c4644986303 | spechub/Hets | RunStaticAna.hs | |
Module : ./HasCASL / RunStaticAna.hs
Description : test driver for static analysis
Copyright : ( c ) and Uni Bremen 2003
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : experimental
Portability : portable
parse and call static analysis
Mod... | null | https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/HasCASL/RunStaticAna.hs | haskell | |
Module : ./HasCASL / RunStaticAna.hs
Description : test driver for static analysis
Copyright : ( c ) and Uni Bremen 2003
License : GPLv2 or higher , see LICENSE.txt
Maintainer :
Stability : experimental
Portability : portable
parse and call static analysis
Mod... | |
e35466a4a06fa20bbafd797f9ff94ff0716b2e3a1f889336dba826fee9741ee2 | kmi/irs | load.lisp | Mode : Lisp ; Package :
File created in WebOnto
(in-package "OCML")
(eval-when (eval load)
(ensure-ontology wsmo domain "ocml:library;domains;wsmo;load.lisp" )
(ensure-ontology d-s domain "ocml:library;domains;d-s;load.lisp" ))
(def-ontology conceptual-spaces :includes (wsmo d-s)
:type :doma... | null | https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/ontologies/domains/conceptual-spaces/load.lisp | lisp | Package : |
File created in WebOnto
(in-package "OCML")
(eval-when (eval load)
(ensure-ontology wsmo domain "ocml:library;domains;wsmo;load.lisp" )
(ensure-ontology d-s domain "ocml:library;domains;d-s;load.lisp" ))
(def-ontology conceptual-spaces :includes (wsmo d-s)
:type :domain
:author "... |
2984aa47ab21487fe42b45900a9fe40f3402a858cb94cab69b034bb197d41567 | singpolyma/cheogram | IQManager.hs | module IQManager (iqManager) where
import Prelude ()
import BasicPrelude
import Control.Concurrent.STM (
STM, TMVar, TVar, modifyTVar', newEmptyTMVar, newTVar, orElse,
readTVar, takeTMVar, tryPutTMVar, writeTVar
)
import Control.Concurrent.STM.Delay (newDelay, waitDelay)
import UnexceptionalIO.Trans ... | null | https://raw.githubusercontent.com/singpolyma/cheogram/7704b63c27eaec712e4db81b7795a928b18accc4/IQManager.hs | haskell | module IQManager (iqManager) where
import Prelude ()
import BasicPrelude
import Control.Concurrent.STM (
STM, TMVar, TVar, modifyTVar', newEmptyTMVar, newTVar, orElse,
readTVar, takeTMVar, tryPutTMVar, writeTVar
)
import Control.Concurrent.STM.Delay (newDelay, waitDelay)
import UnexceptionalIO.Trans ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.