_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
351b951bb00c876ab514aee8404c61a4a6bde4392966a00ef86736150a17f2b5
froggey/Mezzano
tgsi.lisp
TGSI shader assembler . (in-package :mezzano.gui.virgl.tgsi) (defun check-swizzle (swizzle) ;; This checks both swizzles and writemasks. (when (not swizzle) ;; This is a writemask that writes nothing. (return-from check-swizzle)) (let ((name (symbol-name swizzle))) Swizzles are 4 elements long , any...
null
https://raw.githubusercontent.com/froggey/Mezzano/f0eeb2a3f032098b394e31e3dfd32800f8a51122/gui/virgl/tgsi.lisp
lisp
This checks both swizzles and writemasks. This is a writemask that writes nothing. Writemasks must have their elements in order. header token + processor token label Can't have multiple labels one after the other. Declaration. Declaration + range (for index) Things are dimensions, semantic, interpolation & arr...
TGSI shader assembler . (in-package :mezzano.gui.virgl.tgsi) (defun check-swizzle (swizzle) (when (not swizzle) (return-from check-swizzle)) (let ((name (symbol-name swizzle))) Swizzles are 4 elements long , anything shorter is a writemask . (cond ((< (length name) 4) : XYZ , not : XZY (l...
f4660d8ca3b32e47147d3a26f4af53775d03ffd19fdcecbf793172cc0a093c41
OlivierSohn/hamazed
Quantifiable.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # module Imj.Data.Class.Quantifiable ( Quantifiable(..) , logarithmically ) where import Imj.Prelude import qualified Prelude as Unsafe(maximum,minimum) import Prelude(logBase) import ...
null
https://raw.githubusercontent.com/OlivierSohn/hamazed/6c2b20d839ede7b8651fb7b425cb27ea93808a4a/imj-base/src/Imj/Data/Class/Quantifiable.hs
haskell
# LANGUAGE NoImplicitPrelude # # LANGUAGE FlexibleInstances # # LANGUAGE UndecidableInstances # module Imj.Data.Class.Quantifiable ( Quantifiable(..) , logarithmically ) where import Imj.Prelude import qualified Prelude as Unsafe(maximum,minimum) import Prelude(logBase) import ...
29d1d9b3b1a5fb0d5a655db73ef8f74dc08c03799ac3ea17ff1da83ef4c18600
ghivert/modular-styles
bin.cljs
(ns bin (:require ["commander" :as program] [main])) (.version program "0.1.3") (-> program (.command "compile") (.option "--files <filesPath>" "Source path for files.") (.option "--dest <destPath>", "Destination path for interfaces.") (.option "--source <sourcePath>", "Source path for p...
null
https://raw.githubusercontent.com/ghivert/modular-styles/a98f2d088023a9e7671c8a3e9fbb2c4e64f279e9/src/bin.cljs
clojure
(ns bin (:require ["commander" :as program] [main])) (.version program "0.1.3") (-> program (.command "compile") (.option "--files <filesPath>" "Source path for files.") (.option "--dest <destPath>", "Destination path for interfaces.") (.option "--source <sourcePath>", "Source path for p...
d2ff2ae136393920383e84a02ed3d51d7e2979a42f2796a4140485bfb305b933
avsm/ocaml-ssh
channel.mli
exception Bad_access class channel : packet_size:int32 -> initial_window:int32 -> channel:int32 -> Ssh_env_t.t -> object val mutable close : bool val mutable exit_status : int option val mutable interactive : bool val mutable other_channel : int32 option val mutable other_initial_window : ...
null
https://raw.githubusercontent.com/avsm/ocaml-ssh/26577d1501e7a43e4b520239b08da114c542eda4/lib/channel.mli
ocaml
exception Bad_access class channel : packet_size:int32 -> initial_window:int32 -> channel:int32 -> Ssh_env_t.t -> object val mutable close : bool val mutable exit_status : int option val mutable interactive : bool val mutable other_channel : int32 option val mutable other_initial_window : ...
0d64fc238d03fe091a3f830e0d933ea9beefafd879bdbacbf2197933b5099863
facebook/duckling
SV.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} module Duckling.Rules.SV ( defaultRules , langRules , localeRules ) where ...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Rules/SV.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Rules.SV ( defaultRules , langRules , localeRules ) where import Duckling.Dimensions.Types import Duckling.Locale import Duckling.Types import qualified Duckling.AmountOfMoney.SV.Rules as AmountOfMoney import qualified Duckling.Duration.SV....
1bca68d5c9cf74b27550982eef10ac38af00bd75d90b8583c68a653e19309190
riemann/riemann
opentsdb.clj
(ns riemann.transport.opentsdb (:import [io.netty.util CharsetUtil] [io.netty.handler.codec MessageToMessageDecoder] [io.netty.handler.codec.string StringDecoder StringEncoder] [io.netty.handler.codec DelimiterBasedFrameDecoder Delimiters]...
null
https://raw.githubusercontent.com/riemann/riemann/1649687c0bd913c378701ee0b964a9863bde7c7c/src/riemann/transport/opentsdb.clj
clojure
Respond with version Stream event
(ns riemann.transport.opentsdb (:import [io.netty.util CharsetUtil] [io.netty.handler.codec MessageToMessageDecoder] [io.netty.handler.codec.string StringDecoder StringEncoder] [io.netty.handler.codec DelimiterBasedFrameDecoder Delimiters]...
366a5a90f2ad92ac868ab5c03919b6f0cc270abde91230791a26cea343801c83
mbattyani/cl-typesetting
chapter-3.lisp
(in-package :cl-pdf-doc) ;;; Will contain cl-typesetting formatting explanations (defun chapter-3 () (chapter ("Ch 3: Document & Layout Functions") (function-description ("tt:with-document" :type "macro" :spec "(&rest args) &body body" :args '("&rest" (":author" "Aut...
null
https://raw.githubusercontent.com/mbattyani/cl-typesetting/86eba981fc4254addebecf765578ec350d6e3b75/documentation/lisp-source/chapter-3.lisp
lisp
Will contain cl-typesetting formatting explanations
(in-package :cl-pdf-doc) (defun chapter-3 () (chapter ("Ch 3: Document & Layout Functions") (function-description ("tt:with-document" :type "macro" :spec "(&rest args) &body body" :args '("&rest" (":author" "Author of the document.") (":title" "Documents Title...
db4b9d3d748c31f08624d7256ecbd94074bb2540c9795bf41c96111cea4338c9
jonase/eastwood
wrapped.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/jonase/eastwood/caf87206706d51d59b04c5ad0c61ff7683d70cb1/copied-deps/eastwood/copieddeps/dep4/clojure/core/cache/wrapped.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 eastwood.copieddeps.dep4.clojure.core.cache.wrapped "A higher level way to use eastwood.copieddeps.dep4.clojure.core.cache that assumes the immutable cache is wrapped in an atom. The API is (almost) the same as eastwood.copieddeps.dep4.clojure.core.cache -- incl...
c478ee7f5924f92f4f41aa0e355a10e402b8bcf48449090d3d2e458fd5e4fb3f
vii/dysfunkycom
sdl-util.lisp
SDL ( Simple Media Layer ) library using CFFI for foreign function interfacing ... ( C)2006 Justin Heyes - Jones < > and < > Thanks to and ;; see COPYING for license This file contains some useful functions for using SDL from Common lisp ;; using sdl.lisp (the CFFI wrapper) (in-package #:lispbuilder-sd...
null
https://raw.githubusercontent.com/vii/dysfunkycom/a493fa72662b79e7c4e70361ad0ea3c7235b6166/addons/lispbuilder-sdl/sdl/sdl-util.lisp
lisp
see COPYING for license using sdl.lisp (the CFFI wrapper) -lispbuilder.general/559 else do rotation -lispbuilder.general/587 Converted from: /~m0216922/CG/floodfill.html (eval-when (:compile-toplevel :load-toplevel :execute) A naive recursive flood fill algorithm This function will most certainly blow the st...
SDL ( Simple Media Layer ) library using CFFI for foreign function interfacing ... ( C)2006 Justin Heyes - Jones < > and < > Thanks to and This file contains some useful functions for using SDL from Common lisp (in-package #:lispbuilder-sdl) (defun within-range (p1 p2 distance) "Returns true `T`, if...
09279d3c303c4eda1cb632eb284c962e01cc201fae330bfa0ff89b9b08306fb3
samply/blaze
search_type_test.clj
(ns blaze.interaction.search-type-test "Specifications relevant for the FHIR search interaction: #search" (:require [blaze.db.api-stub :refer [mem-node-system with-system-data]] [blaze.fhir.spec :as fhir-spec] [blaze.fhir.spec.type :as type] [blaze.interaction.search-type] [blaze.interaction....
null
https://raw.githubusercontent.com/samply/blaze/948eee38021467fa343c522a644a7fd4b24b6467/modules/interaction/test/blaze/interaction/search_type_test.clj
clojure
the date is already URl decoded and so contains a space instead of a plus the date is already URl decoded and so contains a space instead of a plus
(ns blaze.interaction.search-type-test "Specifications relevant for the FHIR search interaction: #search" (:require [blaze.db.api-stub :refer [mem-node-system with-system-data]] [blaze.fhir.spec :as fhir-spec] [blaze.fhir.spec.type :as type] [blaze.interaction.search-type] [blaze.interaction....
c2ce84eed1b89ddbb99d00e95c7e1b2cd6980b5f9f16ad5972040f21c3626174
robert-strandh/SICL
convert-special.lisp
(cl:in-package #:cleavir-cst-to-ast) (defmethod convert-special :before (client operator cst environment) (when (and *compile-time-too* *current-form-is-top-level-p* (not (member operator '(progn locally macrolet symbol-macrolet eval-when)))) (cst-eval client c...
null
https://raw.githubusercontent.com/robert-strandh/SICL/3ffb0da82e8896bfd035001337da4429655c28af/Code/Cleavir/CST-to-AST/convert-special.lisp
lisp
Converting QUOTE. Frequently, the constant itself appears unquoted in source code, such as when it is the argument to a macro that then quotes it. In that case, the entire form will not have any source information, but the constant itself will. In this situation, we take the source information from the consta...
(cl:in-package #:cleavir-cst-to-ast) (defmethod convert-special :before (client operator cst environment) (when (and *compile-time-too* *current-form-is-top-level-p* (not (member operator '(progn locally macrolet symbol-macrolet eval-when)))) (cst-eval client c...
d2d17c463e3fc8469405499851570595d0a474a199d86089216c53a1b0ff6527
WorksHub/client
db.cljs
(ns wh.components.error.db (:require [cljs.spec.alpha :as s])) (s/def ::message string?) (s/def ::type #{:error :success}) (s/def ::retry-event vector?) (s/def ::sub-db (s/keys :opt [::retry-event ::message])) (def default-db {})
null
https://raw.githubusercontent.com/WorksHub/client/a51729585c2b9d7692e57b3edcd5217c228cf47c/client/src/wh/components/error/db.cljs
clojure
(ns wh.components.error.db (:require [cljs.spec.alpha :as s])) (s/def ::message string?) (s/def ::type #{:error :success}) (s/def ::retry-event vector?) (s/def ::sub-db (s/keys :opt [::retry-event ::message])) (def default-db {})
4d9de05fa9d0e674ff08c21206a228b0995a9216ed22dc6e5ea1242a75872c62
strint/sicpAns
1005_elements_evaluation_order_pp.scm
(define (p) (p)) (define (test x y) (if (= x 0) 0 y))
null
https://raw.githubusercontent.com/strint/sicpAns/efc4bdfaab7583117d42f2141d4b3b9e12792b79/1.1.1-6_BasicScheme/1005_elements_evaluation_order_pp.scm
scheme
(define (p) (p)) (define (test x y) (if (= x 0) 0 y))
4e3c2fa96b6c5752e68cc5a3969ae6a8b3bfbc1aaf1126e7fc031041bbf0828c
theronic/depsy
styles.clj
(ns depsy.styles (:require [garden.def :refer [defrule defstyles]] [garden.stylesheet :refer [rule]])) (defstyles screen (let [body (rule :body)] (body {:font-family "Helvetica Neue" :font-size "16px" :line-height 1.5})))
null
https://raw.githubusercontent.com/theronic/depsy/4098f57e042d74edef5792e751eca1de6ca20378/src/clj/depsy/styles.clj
clojure
(ns depsy.styles (:require [garden.def :refer [defrule defstyles]] [garden.stylesheet :refer [rule]])) (defstyles screen (let [body (rule :body)] (body {:font-family "Helvetica Neue" :font-size "16px" :line-height 1.5})))
bc83bc6655f11055fdad79f7521898848f07d61d87721bdc50e867a9255883ee
liqd/aula
mailgun.hs
#!/usr/bin/env stack {- stack --resolver lts-7.14 --install-ghc runghc --package aeson --package conduit-combinators --package mtl --package servant --package string-conversions --package wreq -- -XDeriveDataTypeable -XOverloadedStrings -XScopedTypeVariables -XStandaloneDer...
null
https://raw.githubusercontent.com/liqd/aula/f96dbf85cd80d0b445e7d198c9b2866bed9c4e3d/scripts/mailgun.hs
haskell
stack --resolver lts-7.14 --install-ghc runghc --package aeson --package conduit-combinators --package mtl --package servant --package string-conversions --package wreq -- -XDeriveDataTypeable -XOverloadedStrings -XScopedTypeVariables -XStandaloneDeriving -XViewPattern...
#!/usr/bin/env stack import Conduit import Control.Exception import Control.Monad import Data.Attoparsec.ByteString as P import Data.Conduit.Combinators (stdin) import Data.String.Conversions import qualified Data.Text as ST import System.Environmen...
f70c679ffc8a516862b465f1f3e32c7d46b81d7fe776e8d6720519fae546c227
OCamlPro/operf-micro
equations.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/OCamlPro/operf-micro/d5d2bf2068204b889321b0c5a7bc0d079c0fca80/share/operf-micro/benchmarks/kb/equations.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Terms type rule = { number: int...
bed4a0eec278eda8409b8a59e06d67d32e48ab007ca76baab82cce5751690bdd
KennethAdamMiller/superset_disassembler
cmdoptions.ml
open Cmdliner open Core_kernel open Metrics open Core_kernel open Bap.Std module Dis = Disasm_expert.Basic exception Bad_user_input exception Unknown_arch exception No_input type invariant = Superset.t -> mem -> Dis.full_insn option -> Brancher.dests -> Superset.t [@@deriving sexp] let invariants_doc = List.(to_...
null
https://raw.githubusercontent.com/KennethAdamMiller/superset_disassembler/54447ba9aa10ab667c744a876a698abbc365bc30/src/cmdoptions.ml
ocaml
apply setops within ground truth? might be able to adjust this with new cmd features.
open Cmdliner open Core_kernel open Metrics open Core_kernel open Bap.Std module Dis = Disasm_expert.Basic exception Bad_user_input exception Unknown_arch exception No_input type invariant = Superset.t -> mem -> Dis.full_insn option -> Brancher.dests -> Superset.t [@@deriving sexp] let invariants_doc = List.(to_...
ff435e3679790ffdf7a91d85614ef599b246a6bfd4b6c80df2ab9c15d2e1bdc4
mukul-rathi/bolt
good_constructor.ml
open Core open Print_parsed_ast let%expect_test "Constructor with multiple args" = print_parsed_ast " class Foo { capability linear Bar; const int f : Bar; const int g : Bar; const int h : Bar; } void main(){ let x = new Foo(f:4, g:5, h:6); x } " ; [%exp...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/tests/frontend/expect/parsing/good_constructor.ml
ocaml
open Core open Print_parsed_ast let%expect_test "Constructor with multiple args" = print_parsed_ast " class Foo { capability linear Bar; const int f : Bar; const int g : Bar; const int h : Bar; } void main(){ let x = new Foo(f:4, g:5, h:6); x } " ; [%exp...
ee1022e2b2fc8998cb88956418836938bb03db07300d2b7f1b66d9d2d44dd0bc
tmattio/js-bindings
vscode_languageserver_protocol_protocol_linked_editing_range.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 open Vscode_jsonrpc open Vscode_languageserver_types open Vscode_languageserver_protocol_messages open Vscode_languageserver_protocol_protocol module LinkedEditingRangeClientCapabilities : sig type t val t_to_js : t ...
null
https://raw.githubusercontent.com/tmattio/js-bindings/ca3bd6a12db519c8de7f41b303f14cf70cfd4c5f/lib/vscode-languageserver-protocol/vscode_languageserver_protocol_protocol_linked_editing_range.mli
ocaml
TODO: Move me TODO: Move me TODO: Move me
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 open Vscode_jsonrpc open Vscode_languageserver_types open Vscode_languageserver_protocol_messages open Vscode_languageserver_protocol_protocol module LinkedEditingRangeClientCapabilities : sig type t val t_to_js : t ...
0fffabc7dfd145464d71a590b4d8b59121a590d9195d8ded736857d5e093427d
zerg000000/realworld
server.clj
(ns opinionated.components.web.server (:require [com.appsflyer.donkey.core :refer [create-server]] [com.appsflyer.donkey.server :refer [start stop]] [duct.logger :as logger] [integrant.core :as ig])) (defmethod ig/init-key :opinionated.components.web/server [_ {:keys [logger donke...
null
https://raw.githubusercontent.com/zerg000000/realworld/fa0be5a2d37f393c90d2254ea22972a1fde02438/src/opinionated/components/web/server.clj
clojure
(ns opinionated.components.web.server (:require [com.appsflyer.donkey.core :refer [create-server]] [com.appsflyer.donkey.server :refer [start stop]] [duct.logger :as logger] [integrant.core :as ig])) (defmethod ig/init-key :opinionated.components.web/server [_ {:keys [logger donke...
652b624d07d2c3e66dbdaa7c2316f2e862d72e3bec0c974bbd5180a7e031dbcb
nandor/llir-ocaml
printmach.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/nandor/llir-ocaml/9c019f15c444e30c825b1673cbe827e0497868fe/asmcomp/printmach.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format open Cmm open Reg open Mach open Interval module V = Backend_var let reg ppf r = if not ...
0cf2b8e95ebf82bd81866e92277b6ae507adf269e37cc6d65b2ef8d01029b6e6
aeternity/aeternity
eqc_test_enabled_tests.erl
-module(eqc_test_enabled_tests). -include_lib("eunit/include/eunit.hrl"). -define(DISABLED_PROPS_MODS, [ aec_sync_eqc , fate_compiler_eqc , txs_eqc , txs_ga_eqc , txs_glue_eqc , txs_sign_eqc , txs_sign_meta_eqc ]). -define(REBAR3_BUILD_DIR, "_build"). -d...
null
https://raw.githubusercontent.com/aeternity/aeternity/b7ce6ae15dab7fa22287c2da3d4405c29bb4edd7/eqc_test/src/eqc_test_enabled_tests.erl
erlang
This prints missing `*_tests` modules: error message would be clearer if it printed properties (`*_eqc`) modules.
-module(eqc_test_enabled_tests). -include_lib("eunit/include/eunit.hrl"). -define(DISABLED_PROPS_MODS, [ aec_sync_eqc , fate_compiler_eqc , txs_eqc , txs_ga_eqc , txs_glue_eqc , txs_sign_eqc , txs_sign_meta_eqc ]). -define(REBAR3_BUILD_DIR, "_build"). -d...
7ed6e5c45d88a1f6877fda3a4280cdfdf075f04fe86f5945addb1f886fa1ba9a
polysemy-research/polysemy
Unification.hs
# LANGUAGE CPP # module Polysemy.Plugin.Fundep.Unification where import Data.Bool import Data.Function (on) import Data.Set (Set) import qualified Data.Set as S #if __GLASGOW_HASKELL__ >= 900 import GHC.Tc.Types.Constraint #elif __GLASGOW_HASKELL__ >= 810 import Cons...
null
https://raw.githubusercontent.com/polysemy-research/polysemy/6a0125b9b714be9f8c6c4c03a02b8d13f52e2aaa/polysemy-plugin/src/Polysemy/Plugin/Fundep/Unification.hs
haskell
---------------------------------------------------------------------------- | The context in which we're attempting to solve a constraint. whether we are only trying to solve a single 'Member' constraint right now. If so, we *must* produce a unification wanted. ------------------------------------------------------...
# LANGUAGE CPP # module Polysemy.Plugin.Fundep.Unification where import Data.Bool import Data.Function (on) import Data.Set (Set) import qualified Data.Set as S #if __GLASGOW_HASKELL__ >= 900 import GHC.Tc.Types.Constraint #elif __GLASGOW_HASKELL__ >= 810 import Cons...
3c3574637a0ba3be50c0fdeeaea26212013e690669a04c326e076c85215f1a88
nomeata/gipeda
ParentMap.hs
module ParentMap where import Data.Csv hiding (encode) import qualified Data.Map as M import Data.List.Split import qualified Data.ByteString.Lazy as BS import qualified Data.Vector as V import Data.Char import Data.Functor type Hash = String type ParentMap = M.Map Hash Hash ssvFileToMap :: FilePath -> IO ParentMap ...
null
https://raw.githubusercontent.com/nomeata/gipeda/f3c8c52df24361c1a09bdfbdaefcd63b54fef0d8/src/ParentMap.hs
haskell
module ParentMap where import Data.Csv hiding (encode) import qualified Data.Map as M import Data.List.Split import qualified Data.ByteString.Lazy as BS import qualified Data.Vector as V import Data.Char import Data.Functor type Hash = String type ParentMap = M.Map Hash Hash ssvFileToMap :: FilePath -> IO ParentMap ...
0a125587185569ac800b4d4b76080c59bb6a0c8b03340ad0715fcfca7a4ff904
clash-lang/clash-compiler
ClashLib.hs
| Copyright : ( C ) 2018 , Google Inc. 2022 , LUMI GUIDE FIETSDETECTIE B.V. License : BSD2 ( see the file LICENSE ) Maintainer : < > Houses internal BitRepresentation code which can not be housed in clash - prelude due to its dependencies . Copyright : (C) 2018, Google ...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/e324601e9c250d61bedb75cb8533077c9a5a7d92/clash-lib/src/Clash/Annotations/BitRepresentation/ClashLib.hs
haskell
^ Type to convert to bit representation type Error message Bit representation type
| Copyright : ( C ) 2018 , Google Inc. 2022 , LUMI GUIDE FIETSDETECTIE B.V. License : BSD2 ( see the file LICENSE ) Maintainer : < > Houses internal BitRepresentation code which can not be housed in clash - prelude due to its dependencies . Copyright : (C) 2018, Google ...
71d7c689d90621c869d6381efb3cafdd98e376c9e2965b04753abbf4604cb6cd
yuriy-chumak/ol
secondary_color.scm
; =========================================================================== EXT_secondary_color ( included in OpenGL 1.4 ) ; ; ; Version ; ; Overview ; (define-library (OpenGL EXT secondary_color) ; --------------------------------------------------------------------------- ; Dep...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/83dd03d311339763682eab02cbe0c1321daa25bc/libraries/OpenGL/EXT/secondary_color.scm
scheme
=========================================================================== Version Overview --------------------------------------------------------------------------- Dependencies --------------------------------------------------------------------------- ---------------------------------------------------...
EXT_secondary_color ( included in OpenGL 1.4 ) (define-library (OpenGL EXT secondary_color) (import (scheme core) (OpenGL platform)) (export EXT_secondary_color ) (begin (define EXT_secondary_color (gl:QueryExtension "GL_EXT_secondary_color")) ))
f317d1b377a3c32b41532938642d57de8464f267365b1a252f5a9a81c0d17fdd
incoherentsoftware/defect-process
LockOnData.hs
module Enemy.LockOnData ( EnemyLockOnData(..) ) where import Attack.Util import Collision.Hitbox.Types import Msg.Types import Util data EnemyLockOnData = EnemyLockOnData { _enemyId :: MsgId , _enemyHitbox :: Hitbox , _enemyHealth :: Health , _enemyVel :: Vel2 , _reticleScal...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/14ec46dec2c48135bc4e5965b7b75532ef19268e/src/Enemy/LockOnData.hs
haskell
module Enemy.LockOnData ( EnemyLockOnData(..) ) where import Attack.Util import Collision.Hitbox.Types import Msg.Types import Util data EnemyLockOnData = EnemyLockOnData { _enemyId :: MsgId , _enemyHitbox :: Hitbox , _enemyHealth :: Health , _enemyVel :: Vel2 , _reticleScal...
c61b37e155cdd6c02f94b6ede99363a18d0eb3937743861159d8502fd0684230
stil4m/project-typo
transitions.cljs
(ns ui.people.transitions) (defn set-people [db [all-people-message]] (:people all-people-message))
null
https://raw.githubusercontent.com/stil4m/project-typo/4e343934175f429c8b7870814d569f776203d461/client/ui_src/ui/people/transitions.cljs
clojure
(ns ui.people.transitions) (defn set-people [db [all-people-message]] (:people all-people-message))
f3a8fefcfdce3092196fb4aad9d74abaa5f917785fe93264e5a9c3dbb8bf3fd5
ghcjs/ghcjs
polyKinds10.hs
# LANGUAGE KindSignatures # {-# LANGUAGE TypeOperators #-} {-# LANGUAGE GADTs #-} # LANGUAGE TypeFamilies # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # {-# LANGUAGE DataKinds ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/polykinds/polyKinds10.hs
haskell
# LANGUAGE TypeOperators # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE DataKinds # Type-level peano naturals (value-level too, but we don't use those) (!) at the type level The following might be useful , but are not used at the moment ( ...
# LANGUAGE KindSignatures # # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # module Main where data Nat = Ze | Su Nat type T0 = Ze type T1 = Su T0 type T2 = Su T1 type family El (n :: Nat) (l :: [*]) :: * type instance El Ze ...
1512856035c26d0bfbcfc03dd08e96680ab3f4ce833aa1c746c487e5584af0b2
marigold-dev/pollinate
message.mli
(** Messages received by the [node], whether they are requests, responses, or protocol-specific messages. For consumer use only when implementing a preprocessing function for the node. *) open Common * { 1 Type } (** Messages are {i requests} or {i responses}, determining how they are stored and where they are handl...
null
https://raw.githubusercontent.com/marigold-dev/pollinate/9ab248d9b56fe044f140ef35cf04e28ec47a3206/lib/node/message.mli
ocaml
* Messages received by the [node], whether they are requests, responses, or protocol-specific messages. For consumer use only when implementing a preprocessing function for the node. * Messages are {i requests} or {i responses}, determining how they are stored and where they are handled. * Messages received from [pee...
open Common * { 1 Type } type category = | Uncategorized | Acknowledgment | Request | Response | Post | Failure_detection | Custom of string [@@deriving bin_io, show] type t = { category : category; sub_category_opt : (string * string) option; request_ack : bool; id : int; timesta...
f2b6875b329ec8527e3e11e5cbe7c1cf009b8554584671c9e6964767f91a017b
RolfRolles/PandemicML
Util.mli
val opt_get : 'a option -> 'a
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/Util/Util.mli
ocaml
val opt_get : 'a option -> 'a
3c25de802ae1c1205ef8cade01dc36cf0f7816e6beabbbbfd163988c010a00fa
ucsd-progsys/nate
glob_lexer.mli
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamlbuild/glob_lexer.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : glob_lexer.mli , v 1.1 2007/02/07 08:59:13 e...
9d3df54c794e16ab6b2772bcc17d8e476c2375ef445a1bd5a5aa1953f4cf54a7
c-cube/ocaml-bigstring
bigstring.mli
This file is free software , copyright . See file " LICENSE " for more details . type 'a gen = unit -> 'a option type 'a sequence = ('a -> unit) -> unit type 'a printer = Format.formatter -> 'a -> unit * { 1 Interface to 1 - dimension Bigarrays of bytes ( char ) } A " bigstring " here is simply a bigarray...
null
https://raw.githubusercontent.com/c-cube/ocaml-bigstring/6cd528ed4bce75500fb7d73d6789093e9720522a/src/bigstring.mli
ocaml
* Create a new bigstring of the given size. Content is arbitrary. * Create a new bigstring of the given size filled with [c]. * Empty string * Initialize with the given function (called at every index). [init n f] is the string [f 0, f 1, ..., f (n-1)]. * Fill the string with the given byte. * [fill_slice s c ...
This file is free software , copyright . See file " LICENSE " for more details . type 'a gen = unit -> 'a option type 'a sequence = ('a -> unit) -> unit type 'a printer = Format.formatter -> 'a -> unit * { 1 Interface to 1 - dimension Bigarrays of bytes ( char ) } A " bigstring " here is simply a bigarray...
2bcdd208d57567a71c1358a80d90cb8533e36d9607e1083f8d02bd301f730a17
nrepl/piggieback
piggieback.clj
(ns cider.piggieback "nREPL middleware enabling the transparent use of a ClojureScript REPL with nREPL tooling." {:author "Chas Emerick"} (:refer-clojure :exclude [load-file]) (:require [nrepl.middleware :refer [set-descriptor!]] [nrepl.middleware.print :as print])) (defmacro ^:private if-ns "Evaluate ...
null
https://raw.githubusercontent.com/nrepl/piggieback/a468d9b30bd59f07cdc29a4485978a141a82c925/src/cider/piggieback.clj
clojure
Depending on whether ClojureScript is present we load either the real implementation or a no-op shim. piggieback unconditionally hijacks eval and load-file
(ns cider.piggieback "nREPL middleware enabling the transparent use of a ClojureScript REPL with nREPL tooling." {:author "Chas Emerick"} (:refer-clojure :exclude [load-file]) (:require [nrepl.middleware :refer [set-descriptor!]] [nrepl.middleware.print :as print])) (defmacro ^:private if-ns "Evaluate ...
587f4468b44b41896a1472b5367d7518905a4139bb5c25e4368926521535b575
ferdinand-beyer/refx
subs_test.cljs
(ns refx.subs-test (:require [cljs.test :refer-macros [async is deftest use-fixtures]] [refx.registry :as registry] [refx.subs :as subs])) (use-fixtures :each {:before (fn [] (subs/clear-subscription-cache!) (registry/clear-all!))}) (deftest test-atom-signal (le...
null
https://raw.githubusercontent.com/ferdinand-beyer/refx/a23ffa0a3716a0f3877e479c4f1ef9cde83c1319/core/test/refx/subs_test.cljs
clojure
(ns refx.subs-test (:require [cljs.test :refer-macros [async is deftest use-fixtures]] [refx.registry :as registry] [refx.subs :as subs])) (use-fixtures :each {:before (fn [] (subs/clear-subscription-cache!) (registry/clear-all!))}) (deftest test-atom-signal (le...
250d9ecbf129d13c51c87fd13089af7a41295b7cc9de1382dd7ed94bf3072103
softlab-ntua/bencherl
class_ComputingHostManager.erl
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify % it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) a...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/sim-diasca/src/core/src/deployment/class_ComputingHostManager.erl
erlang
it under the terms of the GNU Lesser General Public License as but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the If not, see </>. Manager of a computing host, notably for deployment purpose. All computing host managers run on the user node...
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Sim - Diasca is distributed in the hope tha...
7b676dec9363c4e9f99c56ff12f9b2537622380304bc5892137db2857b76e8ce
digital-asset/ghc
T13300.hs
{-# LANGUAGE GADTs #-} module T13300 where data W where WI :: Int WD :: Double data Superblock = A { f :: W } | B { f :: W }
null
https://raw.githubusercontent.com/digital-asset/ghc/323dc6fcb127f77c08423873efc0a088c071440a/testsuite/tests/typecheck/should_fail/T13300.hs
haskell
# LANGUAGE GADTs #
module T13300 where data W where WI :: Int WD :: Double data Superblock = A { f :: W } | B { f :: W }
d64d2f5bc0361ebda6bcc7f76a929b909a65cacc161efe478605efbee08a5c2e
heraldry/heraldicon
global.cljs
(ns heraldicon.frontend.global (:require [heraldicon.frontend.macros :as macros] [re-frame.core :as rf])) (macros/reg-event-db :set (fn [db [_ context value]] (if (vector? context) (assoc-in db context value) (assoc-in db (:path context) value)))) (rf/reg-sub :get (fn [db [_ path]] (if...
null
https://raw.githubusercontent.com/heraldry/heraldicon/f742958ce1e85f47c8222f99c6c594792ac5a793/src/heraldicon/frontend/global.cljs
clojure
(ns heraldicon.frontend.global (:require [heraldicon.frontend.macros :as macros] [re-frame.core :as rf])) (macros/reg-event-db :set (fn [db [_ context value]] (if (vector? context) (assoc-in db context value) (assoc-in db (:path context) value)))) (rf/reg-sub :get (fn [db [_ path]] (if...
cb8d5f8e91408c49bfaa60764de7fba9ea5a7ffe25103ed2521027b41a9e8fbe
ocaml-gospel/gospel
field_application.mli
type t = { a : int } val f : t -> int (*@ r = f x ensures r = a x *) { gospel_expected| [ 125 ] File " field_application.mli " , line 5 , characters 18 - 19 : 5 | ensures r = a x [125] File "field_application.mli", line 5, characters 18-19: 5 | ensures r = a x *) ...
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/79841c510baeb396d9a695ae33b290899188380b/test/negative/field_application.mli
ocaml
@ r = f x ensures r = a x
type t = { a : int } val f : t -> int { gospel_expected| [ 125 ] File " field_application.mli " , line 5 , characters 18 - 19 : 5 | ensures r = a x [125] File "field_application.mli", line 5, characters 18-19: 5 | ensures r = a x *) ^ ...
3815894bf75e602dc5ffb6b4b0c3b190a89cc861a6cdffbbb56c04b2f2ef55c9
ghilesZ/apronext
linconsext.ml
(****************************************************************************) (* This file is an extension for the Lincons1 module from the apron Library *) (****************************************************************************) (* It only adds function, nothing is removed *) include Apron.Lincons1 include Arr...
null
https://raw.githubusercontent.com/ghilesZ/apronext/e0850868a6e27cd7fca9fb5d91a3e00eaa072221/src/linconsext.ml
ocaml
************************************************************************** This file is an extension for the Lincons1 module from the apron Library ************************************************************************** It only adds function, nothing is removed split a = b into a >= b and a <= b split a <> b i...
include Apron.Lincons1 include Array_maker.LinconsExt module C = Coeffext let is_strict l = match get_typ l with SUP | DISEQ -> true | _ -> false let fold f g l = let acc = ref (g (get_cst l)) in iter (fun c v -> acc := f c v !acc) l ; !acc let neg_typ = function | EQ -> DISEQ | SUP -> SUPEQ | SUPEQ -> ...
1c2095e944206d7a278b5b67606fb17363d88e21705ba74d5885396d87b2c13f
gheber/kenzo
special-smsts.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 - * ;;; SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS ;;; SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS ;;; SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS (IN-PACKAGE #:c...
null
https://raw.githubusercontent.com/gheber/kenzo/48e2ea398b80f39d3b5954157a7df57e07a362d7/src/kenzo-7/special-smsts.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 - * SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS SPECIAL-SMSTS faces must be posit...
(IN-PACKAGE #:cat-7) (PROVIDE "special-smsts") GMSM - FACES - INFO = ( ( simple - vector absm ) . bndr ) (DEFUN FINITE-SS-PRE-TABLE (list) (declare (list list)) (the list (let ((pre-rslt +empty-list+) (dmns-mark nil) (gmsm-mark nil)) (declare (list pre-rslt dmns-mar...
2d7b541ead00fe9f1b9dee6638e5532630bf4772b75f3851f95cf27d4900fd6a
shentufoundation/deepsea
PeanoNat.mli
open Datatypes open Specif module Nat : sig val eqb : nat -> nat -> bool val leb : nat -> nat -> bool val ltb : nat -> nat -> bool val max : nat -> nat -> nat val eq_dec : nat -> nat -> sumbool end
null
https://raw.githubusercontent.com/shentufoundation/deepsea/970576a97c8992655ed2f173f576502d73b827e1/src/backend/extraction/PeanoNat.mli
ocaml
open Datatypes open Specif module Nat : sig val eqb : nat -> nat -> bool val leb : nat -> nat -> bool val ltb : nat -> nat -> bool val max : nat -> nat -> nat val eq_dec : nat -> nat -> sumbool end
f0566225ed389f7c9ca77a816ab8608a0e3dcbab21e2137b56a49502c1d196b3
tnelson/Forge
intConverters.rkt
#lang forge/core (set-option! 'verbose 0) ( set - verbosity 10 ) ; sing int -> set (define Sing (&& (no (join succ (sing (int -8)))) (= (join (sing (int -8)) succ) (sing (int -7))) (= (join (sing (int -7)) succ) (sing (int -6))) (= (join (sing (int -6)) succ) (sing (int -5))...
null
https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/tests/forge-functional/ints/intConverters.rkt
racket
sing int -> set sum set -> int sum-quant set -> int This also checks that sum works with duplicates card set -> int max, min set -> int test implicit sing/sum
#lang forge/core (set-option! 'verbose 0) ( set - verbosity 10 ) (define Sing (&& (no (join succ (sing (int -8)))) (= (join (sing (int -8)) succ) (sing (int -7))) (= (join (sing (int -7)) succ) (sing (int -6))) (= (join (sing (int -6)) succ) (sing (int -5))) (= (join (sing (in...
b6a3bba44059973a179b98359b5647d5eb71926f222e006e45d418397cdaadcb
TheLortex/mirage-monorepo
utils.ml
open Import let with_output fn ~binary ~f = match fn with | None | Some "-" -> f stdout | Some fn -> Out_channel.with_file fn ~binary ~f module Kind = struct type t = Intf | Impl let of_filename fn : t option = if Caml.Filename.check_suffix fn ".ml" then Some Impl else if Caml.Filename.check_suffix...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/src/utils.ml
ocaml
This should only be used when the input version can't be determined due to loading or preprocessing errors
open Import let with_output fn ~binary ~f = match fn with | None | Some "-" -> f stdout | Some fn -> Out_channel.with_file fn ~binary ~f module Kind = struct type t = Intf | Impl let of_filename fn : t option = if Caml.Filename.check_suffix fn ".ml" then Some Impl else if Caml.Filename.check_suffix...
dad64fc3e7dd1c00fbd1b89cf592e53204dcefe3d40e4be55bae8563fb956dc0
tcsprojects/pgsolver
roadworks.mli
val register: unit -> unit
null
https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/generators/modelchecking/roadworks.mli
ocaml
val register: unit -> unit
f60b37fe11cd04ee970261201d1ffa3e3e53eec911399aca9e235f3f61de028b
ocaml-multicore/parafuzz
fdstatus_main.ml
external process_fd : int -> string -> unit = "caml_process_fd" let () = for i = 1 to (Array.length Sys.argv) -1 do process_fd i Sys.argv.(i); done
null
https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/testsuite/tests/lib-unix/common/fdstatus_main.ml
ocaml
external process_fd : int -> string -> unit = "caml_process_fd" let () = for i = 1 to (Array.length Sys.argv) -1 do process_fd i Sys.argv.(i); done
300958b9d21f348cff5b05af2504bb688453838223a789a991557c6583a0791f
c4-project/c4f
import.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz_run/test/import.ml
ocaml
* Common imports
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
d47ff996827e3f133b7843a1d0f3aed5756d65f6df3e6d86a6085874418e963f
originrose/think.datatype
main.clj
(ns think.datatype.main (:require [think.datatype.time-test :as time-test]) (:gen-class)) (defn -main [& args] (time-test/run-time-tests) (time-test/run-indexed-time-tests))
null
https://raw.githubusercontent.com/originrose/think.datatype/31372d6e18fe3a5146262693c0df5256a2a58095/src/think/datatype/main.clj
clojure
(ns think.datatype.main (:require [think.datatype.time-test :as time-test]) (:gen-class)) (defn -main [& args] (time-test/run-time-tests) (time-test/run-indexed-time-tests))
664871a455e2e733086a0ab808b824c0457eff5e9992e8bc12989ff5e7dc2809
qfpl/reflex-workshop
List.hs
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
null
https://raw.githubusercontent.com/qfpl/reflex-workshop/244ef13fb4b2e884f455eccc50072e98d1668c9e/src/Solutions/Todo/Collections/Adding/List.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs #
| Copyright : ( c ) 2018 , Commonwealth Scientific and Industrial Research Organisation License : : Stability : experimental Portability : non - portable Copyright : (c) 2018, Commonwealth Scientific and Industrial Research Organisation License : BSD3 Maintainer : Stability : experi...
e5f9628e54d7159fdde643070900dc6bfd364e0624c51c8f336053fafcb60276
xh4/web-toolkit
color.lisp
(in-package :css) -color-3 (define-property color () () (:value .color)) (define-parser .alphavalue () (lambda (input) (multiple-value-bind (rest value match-p) ;; FIXME: more strict rule (parse (.some/s (.or (.digit) (.s ".") (.s "-"))) input) (if match-p (...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/css/color.lisp
lisp
FIXME: more strict rule TODO: support rgba(100%,0%,0%,1)
(in-package :css) -color-3 (define-property color () () (:value .color)) (define-parser .alphavalue () (lambda (input) (multiple-value-bind (rest value match-p) (parse (.some/s (.or (.digit) (.s ".") (.s "-"))) input) (if match-p (if-let ((n (ignore-errors (parse-nu...
850b97e0c62dcfc79daa27404bc16d483b9ed98034ab7c7e797237537d7b640e
GaloisInc/tower
Parser.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE CPP # module Text.TOML.Parser ( module Text.TOML.Value , document , keygroup , keyval , value , Token ) where import Control.Applicative import qualified Data.ByteString.Char8 as B import Data.Attoparsec.ByteString.Char8 import Data.Scientific (floatingOrInte...
null
https://raw.githubusercontent.com/GaloisInc/tower/a43f5e36c6443472ea2dc15bbd49faf8643a6f87/tower-config/src/Text/TOML/Parser.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE CPP # module Text.TOML.Parser ( module Text.TOML.Value , document , keygroup , keyval , value , Token ) where import Control.Applicative import qualified Data.ByteString.Char8 as B import Data.Attoparsec.ByteString.Char8 import Data.Scientific (floatingOrInteger) import Text.TOML.Value type...
7b3b0b4e8502e71755c4353f2eb5c2f66867f47d373e4825a9b642278b87b766
tsloughter/kuberl
kuberl_v2alpha1_cron_job.erl
-module(kuberl_v2alpha1_cron_job). -export([encode/1]). -export_type([kuberl_v2alpha1_cron_job/0]). -type kuberl_v2alpha1_cron_job() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v2alpha1_cron_job_spec:kuberl...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v2alpha1_cron_job.erl
erlang
-module(kuberl_v2alpha1_cron_job). -export([encode/1]). -export_type([kuberl_v2alpha1_cron_job/0]). -type kuberl_v2alpha1_cron_job() :: #{ 'apiVersion' => binary(), 'kind' => binary(), 'metadata' => kuberl_v1_object_meta:kuberl_v1_object_meta(), 'spec' => kuberl_v2alpha1_cron_job_spec:kuberl...
6f58ec25e8b06226dd353cc82d2d02a77419261d6394519de9a65c05f14ed548
spawnfest/nakaz
nakaz_typer.erl
@author < > %%% %%% @doc %%% This module implements a {@see type/3} function, which transforms %%% a raw section config, consisting of <em>only</em> atoms and binaries into a record , defined by a given ` ' . Keep in mind that %%% {@see type/3} only works on <b>section</b> level: %%% %%% ``` %%% my_loger: ...
null
https://raw.githubusercontent.com/spawnfest/nakaz/9570f338b42ddbb5a12e4d75126a2a4ebcaf65f2/src/nakaz_typer.erl
erlang
@doc This module implements a {@see type/3} function, which transforms a raw section config, consisting of <em>only</em> atoms and binaries {@see type/3} only works on <b>section</b> level: ``` my_loger: # application level file_backend: # section level path...
@author < > into a record , defined by a given ` ' . Keep in mind that listener : { port : 4242 } -module(nakaz_typer). -include("nakaz_internal.hrl"). -export([type/3, type/4]). -spec type(atom(), raw_config(), record_specs()) -> {ok, record_()} | {error, typer_error()}. type(Section, RawSe...
ec7e8db82292d436b9856898591e6413cab28310d1b14ec3114d5b6c96626abc
jordanthayer/ocaml-search
node_recorder.ml
type 'a node = { Data Payload f : float; (* Total cost of a node*) g : float; (* Cost of reaching a node *) d : float; depth : int; (* Depth of node in tree. Root @ 0 *) mutable pos : int; (* Position info for dpq *) parent : 'a node; } let rec print_node_helper n = if (n....
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/search/best_first/node_recorder.ml
ocaml
Total cost of a node Cost of reaching a node Depth of node in tree. Root @ 0 Position info for dpq * takes a function to be applied to the data payload such as the goal-test or the domain heuristic and wraps it so that it can be applied to the entire node * Sorts nodes solely on total cost in...
type 'a node = { Data Payload d : float; parent : 'a node; } let rec print_node_helper n = if (n.parent == n) then "" ( Printf.sprintf " % f % f % f % d\n " n.f n.g n.d n.depth ) else (Printf.sprintf "%f %f %f %f %d\n" (n.f -. n.g) n.f n.g n.d n.depth) ^ (print_node_helper n.parent) let print_node_st...
1560951712dc391ae81bc85c7fdc012692142e119142a04010953ff9b1c76ff7
dsheets/gloc
gloc_xml.ml
open Easy_format open Glo_xml type flag = string type groups = { stage : (flag * string) list } let format_iface flag descr = function | Gloc.Set _ -> raise (Failure "cannot format Set iface") | Gloc.Group _ -> raise (Failure "cannot format Group iface, extract groups first") | Gloc.List (Gloc.Set _) -> format_...
null
https://raw.githubusercontent.com/dsheets/gloc/d5917c072ec314ae93a61344da2407f520fac1b5/src/gloc_xml.ml
ocaml
open Easy_format open Glo_xml type flag = string type groups = { stage : (flag * string) list } let format_iface flag descr = function | Gloc.Set _ -> raise (Failure "cannot format Set iface") | Gloc.Group _ -> raise (Failure "cannot format Group iface, extract groups first") | Gloc.List (Gloc.Set _) -> format_...
68ff5bd0a182fc36b58bd065ac5f122586daee214e987ed82c59a4f10c93e913
cedlemo/OCaml-GI-ctypes-bindings-generator
Text_search_flags.mli
open Ctypes type t = Visible_only | Text_only | Case_insensitive type t_list = t list val of_value: Unsigned.uint32 -> t val to_value: t -> Unsigned.uint32 val list_of_value: Unsigned.uint32 -> t_list val list_to_value: t_list -> Unsigned.uint32 val t_list_view : t_list typ
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Text_search_flags.mli
ocaml
open Ctypes type t = Visible_only | Text_only | Case_insensitive type t_list = t list val of_value: Unsigned.uint32 -> t val to_value: t -> Unsigned.uint32 val list_of_value: Unsigned.uint32 -> t_list val list_to_value: t_list -> Unsigned.uint32 val t_list_view : t_list typ
93a8c13ed0fd79d3e99231b154cccad1d2a77e6f00cd4d19e8308421f762b788
atolab/yaks-common
yaks_zutils.ml
open Apero open Yaks_types open Yaks_common_errors let kind_put = 0L let kind_update = 1L let kind_remove = 2L let zenohid_to_yaksid id = Printf.sprintf "%s-%s-%s-%s-%s" (Astring.with_index_range ~first:0 ~last:7 id) (Astring.with_index_range ~first:8 ~last:11 id) (Astring.with_index_range ~first:12 ~last:15 i...
null
https://raw.githubusercontent.com/atolab/yaks-common/39d95312ffeb7cc354ff2965872f6669222eb0ba/lib/yaks_zutils.ml
ocaml
open Apero open Yaks_types open Yaks_common_errors let kind_put = 0L let kind_update = 1L let kind_remove = 2L let zenohid_to_yaksid id = Printf.sprintf "%s-%s-%s-%s-%s" (Astring.with_index_range ~first:0 ~last:7 id) (Astring.with_index_range ~first:8 ~last:11 id) (Astring.with_index_range ~first:12 ~last:15 i...
ac5c9ca958e984f97859a49b10cebb34bd4313547e04210e9d95901e5cd4df89
MyDataFlow/ttalk-server
mod_private_odbc.erl
%%%---------------------------------------------------------------------- File : Author : < > %%% Purpose : Private storage support Created : 5 Oct 2006 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modi...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/mod_private_odbc.erl
erlang
---------------------------------------------------------------------- Purpose : Private storage support This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; withou...
File : Author : < > Created : 5 Oct 2006 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public L...
930cc5c259dcb57ab6f862f7fed903774509259e8cd994045a39f84af056b0a9
Octachron/codept
h.ml
open G module type s = sig module H_inner: sig end end
null
https://raw.githubusercontent.com/Octachron/codept/2d2a95fde3f67cdd0f5a1b68d8b8b47aefef9290/tests/complex/stops/h.ml
ocaml
open G module type s = sig module H_inner: sig end end
27f6010df775e3cc4d6357c621ca8e9f0f9c8f0e179655e5dd134f47efa005fd
heyoka/faxe
esp_http_post.erl
Date : 30.12.16 - 23:01 %% HTTP Post Request Ⓒ 2019 heyoka %% %% -module(esp_http_post). -author("Alexander Minichmair"). -include("faxe.hrl"). -behavior(df_component). %% API -export([init/3, process/3, options/0, handle_info/2, shutdown/1, metrics/0]). -define(FAILED_RETRIES, 3). -record(state, { host :: s...
null
https://raw.githubusercontent.com/heyoka/faxe/cecbc7b5ee5950232b7cb5bd29b589c176a87be8/apps/faxe/src/components/esp_http_post.erl
erlang
HTTP Post Request API
Date : 30.12.16 - 23:01 Ⓒ 2019 heyoka -module(esp_http_post). -author("Alexander Minichmair"). -include("faxe.hrl"). -behavior(df_component). -export([init/3, process/3, options/0, handle_info/2, shutdown/1, metrics/0]). -define(FAILED_RETRIES, 3). -record(state, { host :: string(), port :: non_neg_intege...
fdf1b91dcf0eadb6e26dd3ea9f7e82b7668198fd3ffc16bf3e9d0c002a6872d7
Zilliqa/scilla
scilla_runner.ml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at you...
null
https://raw.githubusercontent.com/Zilliqa/scilla/35af3814eace7c722ad966f0e2eee07d59d5a8af/src/runners/scilla_runner.ml
ocaml
This file is part of scilla . Copyright ( c ) 2018 - present Zilliqa Research Pvt . Ltd. scilla is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at you...
06c4b756735fb2001a79e525228840176096e93441280fba852c5e78c683de6c
iamaleksey/common_lib
cl_string.erl
Copyright ( C ) 2009 , %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the following conditions are met: %%% %%% o Redistributions of source code must retain the above copyright notice, %%% this list of conditions ...
null
https://raw.githubusercontent.com/iamaleksey/common_lib/250d965d5accaad8aa1e2c7bbf4ac691aa94ca93/src/cl_string.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: o Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. o Redistributions ...
Copyright ( C ) 2009 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY ,...
686922361915d97cc03f88f707e600536ee3d63fd64f06bd2b19cf3bf0a66b59
jeluard/hipo
interpreter.cljs
(ns hipo.interpreter (:require [clojure.set :as set] [hipo.attribute :as attr] [hipo.dom :as dom] [hipo.hiccup :as hic] [hipo.interceptor :refer-macros [intercept]])) (defn set-attribute! [el ns tag sok ov nv {:keys [interceptors] :as m}] (if-not (identical? ov nv)...
null
https://raw.githubusercontent.com/jeluard/hipo/1c107002bc5d338050046e9d8be2d8eba3fa9187/src/hipo/interpreter.cljs
clojure
literal check is much more efficient than vector check Iterate over new elements looking for matching (same key) in old vector existing node node kept its position; reconciliate node changed location; detach, reconciliate and insert at the right location new node; insert it at current index All now useless nodes...
(ns hipo.interpreter (:require [clojure.set :as set] [hipo.attribute :as attr] [hipo.dom :as dom] [hipo.hiccup :as hic] [hipo.interceptor :refer-macros [intercept]])) (defn set-attribute! [el ns tag sok ov nv {:keys [interceptors] :as m}] (if-not (identical? ov nv)...
65ba7126e1a13b80084980ae9bbc390563d32b364b274e47998386b92a57f69f
eeng/shevek
user.clj
(ns user (:require [figwheel-sidecar.repl-api :refer [cljs-repl]] [clojure.tools.namespace.repl :as tns] [shevek.app :as app] [shevek.schema.seed :as seed] [shevek.db :refer [db]])) (defn reset "ProtoREPL calls this function when starts and when refreshing namespaces...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/dev/clj/user.clj
clojure
So the tns/refresh doesn't try to load tests files Restores the database to its initial state Reload config
(ns user (:require [figwheel-sidecar.repl-api :refer [cljs-repl]] [clojure.tools.namespace.repl :as tns] [shevek.app :as app] [shevek.schema.seed :as seed] [shevek.db :refer [db]])) (defn reset "ProtoREPL calls this function when starts and when refreshing namespaces...
3a938ab425d315b5e2c7cfaada7b001fd8dc80cb3b7e413e58016d8b9688b812
ocaml-multicore/tezos
test_check.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/tezt/self_tests/test_check.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
150ed95ca59f01405246fa90dc24c4a2796f569f73f663deabdfcaaf22b107b2
KirinDave/fuzed
scoring.erl
-module(scoring). -compile(export_all). -ifdef(TEST). -include("etest/scoring_test.erl"). -endif. % This function tries to score a partial details spec (Ref) vs. a full details spec (Details). score_details(details ( ) , details ( ) ) - > int ( ) score_details(Ref, Details) -> RoleMatchScore = role_match_score...
null
https://raw.githubusercontent.com/KirinDave/fuzed/56098d9e4c139613845289bdd5acebdfe608981a/elibs/scoring.erl
erlang
This function tries to score a partial details spec (Ref) vs. a full details spec (Details). Extract a specific key's contents from a details list. anything else scores -1000 @spec role_match_score(details(), details()) -> int() conflicts get -1000 Does the special tag calculation on a pair of details. Assists sc...
-module(scoring). -compile(export_all). -ifdef(TEST). -include("etest/scoring_test.erl"). -endif. score_details(details ( ) , details ( ) ) - > int ( ) score_details(Ref, Details) -> RoleMatchScore = role_match_score(Ref, Details), VersionMatchScore = version_match_score(Ref, Details), TagBonusScore = tag_...
2c10fef06158227433de5a68c52b16e764b9ca17b61e8055500f3427142a0a85
gtk2hs/gtk2hs
State.hs
Compiler Toolkit : compiler state management -- Author : Created : 2 November 95 -- Version $ Revision : 1.1.1.1 $ from $ Date : 2004/11/13 16:42:45 $ -- Copyright ( c ) [ 1995 .. 1999 ] -- -- This file is free software; you can redistribute it and/or modify it under the terms of the GNU Gene...
null
https://raw.githubusercontent.com/gtk2hs/gtk2hs/0f90caa1dae319a0f4bbab76ed1a84f17c730adf/tools/c2hs/base/state/State.hs
haskell
This file is free software; you can redistribute it and/or modify (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Pub...
Compiler Toolkit : compiler state management Author : Created : 2 November 95 Version $ Revision : 1.1.1.1 $ from $ Date : 2004/11/13 16:42:45 $ Copyright ( c ) [ 1995 .. 1999 ] it under the terms of the GNU General Public License as published by the Free Software Foundation ; either versio...
007ec6cd1b6b9fa9481df8cecb6fb6107bed538edfe395c345dcaa64d3b23377
icicle-lang/icicle-ambiata
NanEq.hs
# LANGUAGE DefaultSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MagicHash # # LANGUAGE NoImplicitPrelude # # LANGUAGE TypeOperators # {-# LANGUAGE TypeSynonymInstances #-} module Icicle.Test.Arbitrary.NanEq ( (=~=) , hedgehogNanEq ) where import Icicle.Common.Na...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/test/Icicle/Test/Arbitrary/NanEq.hs
haskell
# LANGUAGE TypeSynonymInstances # ------------------------------------------------------------------------------
# LANGUAGE DefaultSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MagicHash # # LANGUAGE NoImplicitPrelude # # LANGUAGE TypeOperators # module Icicle.Test.Arbitrary.NanEq ( (=~=) , hedgehogNanEq ) where import Icicle.Common.NanEq import Disorder.Jack.Pr...
76fa51e8e644ba1485e2c31c4805216b88fcf3dedb332182558072a74fd50ca9
cnuernber/libjulia-clj
protocols.clj
(ns libjulia-clj.impl.protocols "Protocols and multimethod definitions for the base julia binding. Protocols get completely rebound (thus loosing all older bindings) when recompiled so it is often a good idea to separate them out into their own file." (:require [libjulia-clj.impl.ffi :as julia-ffi])) (defpr...
null
https://raw.githubusercontent.com/cnuernber/libjulia-clj/6c2b49e598e980e2c30f62082685797f0d99374f/src/libjulia_clj/impl/protocols.clj
clojure
(ns libjulia-clj.impl.protocols "Protocols and multimethod definitions for the base julia binding. Protocols get completely rebound (thus loosing all older bindings) when recompiled so it is often a good idea to separate them out into their own file." (:require [libjulia-clj.impl.ffi :as julia-ffi])) (defpr...
4a1f5508b3d686ea13b7603afd7d212f8c5501c2c730ae8eb4e21deec871aac9
benoitc/dnssd_erlang
dnssd_drv.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2011 . All Rights Reserved . %% This file is provided to you 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 ...
null
https://raw.githubusercontent.com/benoitc/dnssd_erlang/9b2fdb7ff9618102d82f04e4c68ce191c9aa15ba/src/dnssd_drv.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2011 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @private -module(dnssd_drv)....
27d5ce89ab80246c61096ba92fdb335730faec970ca6cdb2299e64edef88adcb
nicolov/cs61as-racket-homework
hw10.rkt
#lang planet dyoo/simply-scheme:2 (require racket/stream) (require racket/promise) (define (display-line x) (newline) (display x)) (define (stream-enumerate-interval low high) (if (> low high) empty-stream (stream-cons low (stream-enumerate-interval (+ low 1) high)))) ; Exercis...
null
https://raw.githubusercontent.com/nicolov/cs61as-racket-homework/31f6e1855305838d7fe3824017164e234ee9e20c/hw10.rkt
racket
What is the type of the value of (delay (+ 1 27))? a promise What is the type of the value of (force (delay (+ 1 27)))? Can't call stream-cdr on the pair returned by the inner stream-cdr call (trace accum) sum=0 because no stream has been forced yet the results would have been different, because the stream ...
#lang planet dyoo/simply-scheme:2 (require racket/stream) (require racket/promise) (define (display-line x) (newline) (display x)) (define (stream-enumerate-interval low high) (if (> low high) empty-stream (stream-cons low (stream-enumerate-interval (+ low 1) high)))) Exercise ...
32742c6448247f38b861e1864125d8148e44494464e2e98b8f306d12ec749202
yetibot/core
config.clj
(ns yetibot.core.test.config (:require [midje.sweet :refer [=> anything against-background fact facts every-checker]] [yetibot.core.config :as c] [yetibot.core.util.config :as uc])) (facts "about merge-possible-prefixes" (let [merged-cfg (c/merge-possible-prefixes {:yetibot {:...
null
https://raw.githubusercontent.com/yetibot/core/5c8f2342436769956b2d9a16d27775e2dc68e407/test/yetibot/core/test/config.clj
clojure
(ns yetibot.core.test.config (:require [midje.sweet :refer [=> anything against-background fact facts every-checker]] [yetibot.core.config :as c] [yetibot.core.util.config :as uc])) (facts "about merge-possible-prefixes" (let [merged-cfg (c/merge-possible-prefixes {:yetibot {:...
0445646984306b702ccba21a95c7677bbf0646d7150fe2975d762d8afe288620
ocaml/oloop
oloop_rule.mli
(** Rules to rewrite values. *) type t = { required_values : Longident.t list; (** Values that must exist and be persistent for the rule to apply. *) rewrite : Location.t -> Parsetree.expression -> Parsetree.expression; (** The rewrite function. *) mutable enabled : bool; (** Default state. *) } v...
null
https://raw.githubusercontent.com/ocaml/oloop/d0dc99fdfb9d1a88d1f45cfaa41422254951b0a8/lib/oloop_rule.mli
ocaml
* Rules to rewrite values. * Values that must exist and be persistent for the rule to apply. * The rewrite function. * Default state. * [add lid r] add a rewrite rule, [lid] is the identifier of the type constructor. * Key associated to the Async Deferred.t rule. * [rewrite phrase] return a phrase modif...
type t = { required_values : Longident.t list; rewrite : Location.t -> Parsetree.expression -> Parsetree.expression; mutable enabled : bool; } val add : Longident.t -> t -> unit val async : Longident.t val lwt : Longident.t * Key associated to the Lwt.t rule . val enable : Longident.t -> unit val disable :...
f42023659add344e51fae03d7d15098c14402aa703cbdd009315bc37e9d8c001
yzh44yzh/practical_erlang
matrix_zipper.erl
-module(matrix_zipper). -export([from_matrix/1, to_matrix/1, left/1, left/2, right/1, right/2, up/1, up/2, down/1, down/2, get/1, set/2, position/1, find/2, find_left/2, find_right/2, find_up/2, find_down/2 ]). -type matrix() :: [[any()]]. -type m...
null
https://raw.githubusercontent.com/yzh44yzh/practical_erlang/c9eec8cf44e152bf50d9bc6d5cb87fee4764f609/final_exercise/src/matrix_zipper.erl
erlang
Module API Inner Functions
-module(matrix_zipper). -export([from_matrix/1, to_matrix/1, left/1, left/2, right/1, right/2, up/1, up/2, down/1, down/2, get/1, set/2, position/1, find/2, find_left/2, find_right/2, find_up/2, find_down/2 ]). -type matrix() :: [[any()]]. -type m...
ebad32f95945c9ce47ce5f42519f17eda6c2942171e689183928f4106ef1aac8
apache/couchdb-chttpd
chttpd_open_revs_error_test.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-chttpd/74002101513c03df74a4c25f3c892f5d003fa5da/test/chttpd_open_revs_error_test.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(chttpd_open_revs_error_test). -include_lib("couch/include/couch_eunit.hrl"). -include_lib("couch/include/couch_db.hrl"). -define(USER, "chttpd_db_...
ff7f2f2ba1689d47c8d5554cf1e4d0ece2d884510a30714c3604d615ca629d7d
remixlabs/wasicaml
t062_fields5.ml
type r = { a : float; mutable b : float; c : float } let f() = let r1 = { a = 10.0; b = 11.0; c = 12.0 } in Testprint.float "a" r1.a; Testprint.float "b" r1.b; Testprint.float "c" r1.c; r1.b <- 13.0; Testprint.float "a" r1.a; Testprint.float "b" r1.b; Testprint.float "c" r1.c let () = f(...
null
https://raw.githubusercontent.com/remixlabs/wasicaml/74ff72535aa8e49ab94a05d9c32c059ce264c1bb/test/t062_fields5.ml
ocaml
type r = { a : float; mutable b : float; c : float } let f() = let r1 = { a = 10.0; b = 11.0; c = 12.0 } in Testprint.float "a" r1.a; Testprint.float "b" r1.b; Testprint.float "c" r1.c; r1.b <- 13.0; Testprint.float "a" r1.a; Testprint.float "b" r1.b; Testprint.float "c" r1.c let () = f(...
09b92d00769e6a6b0b7ff29d1c0408b065453079d5f4deb3ba4eb79b50312554
haskell-lisp/liskell
LskMain.hs
{-# OPTIONS -fno-warn-incomplete-patterns -optc-DNON_POSIX_SOURCE #-} ----------------------------------------------------------------------------- -- GHC Driver program -- ( c ) The University of Glasgow 2005 -- ----------------------------------------------------------------------------- module LskMain where #...
null
https://raw.githubusercontent.com/haskell-lisp/liskell/6fed2294bde7852fac7fd805bff6b7e4dde5aa81/LskMain.hs
haskell
# OPTIONS -fno-warn-incomplete-patterns -optc-DNON_POSIX_SOURCE # --------------------------------------------------------------------------- --------------------------------------------------------------------------- Implementations of the various modes (--show-iface, mkdependHS. etc.) Various other random stuff ...
GHC Driver program ( c ) The University of Glasgow 2005 module LskMain where #ifdef GHCI import Linker ( HValue , linkExpr ) import Desugar ( deSugarExpr ) import InteractiveUI ( interactiveUI ) ( tcRnStmt , , tcRnType ) import PrelNames ( iNTERACTIVE ) #endif import GHC4Lsk import LskToHs import ...
eb8557d23449238da7d1b06f1e0db0124e8abab5e13f8464e63c0641dc37bf05
GlideAngle/flare-timing
Validity.hs
module Serve.Validity (nullValidityWorking) where import Data.UnitsOfMeasure (u) import "flight-gap-allot" Flight.Score import "flight-gap-valid" Flight.Score nullLaunchValidityWorking :: LaunchValidityWorking nullLaunchValidityWorking = LaunchValidityWorking { flying = PilotsFlying 0 , present = ...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/app-serve/src/Serve/Validity.hs
haskell
module Serve.Validity (nullValidityWorking) where import Data.UnitsOfMeasure (u) import "flight-gap-allot" Flight.Score import "flight-gap-valid" Flight.Score nullLaunchValidityWorking :: LaunchValidityWorking nullLaunchValidityWorking = LaunchValidityWorking { flying = PilotsFlying 0 , present = ...
d8c04e765e784edfd5dbe294ec622a153977e2751aa3aa0d3064675ac12f9eac
SquidDev/urn
mappings.lisp
(import test ()) (import urn/backend/lua/emit lua) (import urn/backend/lua/escape lua) (import urn/backend/lua lua) (import urn/backend/writer writer) (import urn/range range) (import urn/resolve/loop resolve) (import urn/parser parser) (import urn/traceback traceback) (import tests/compiler/compiler-helpers (create-...
null
https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/tests/compiler/codegen/mappings.lisp
lisp
This only considers the "foo" as active. Possibly worth re-considering this TODO: Can we handle this in a more sensible way Not sure whether current behaviour or new behaviour is better Not sure whether current behaviour or new behaviour is better
(import test ()) (import urn/backend/lua/emit lua) (import urn/backend/lua/escape lua) (import urn/backend/lua lua) (import urn/backend/writer writer) (import urn/range range) (import urn/resolve/loop resolve) (import urn/parser parser) (import urn/traceback traceback) (import tests/compiler/compiler-helpers (create-...
e9d79428ffd0dbc836c1b4955de79723161c9bd704beccba54a957a8838b9ab6
pontarius/pontarius-xmpp
Message.hs
{-# OPTIONS_HADDOCK hide #-} module Network.Xmpp.Concurrent.Message where import Control.Applicative((<$>)) import Network.Xmpp.Concurrent.Types import Control.Concurrent.STM import Network.Xmpp.Types import Network.Xmpp.Concurrent.Basic -- | Draw and discard stanzas from the inbound channel until a message or -- mes...
null
https://raw.githubusercontent.com/pontarius/pontarius-xmpp/08e4a24e6408adb6320b4e73f7be691de060b583/source/Network/Xmpp/Concurrent/Message.hs
haskell
# OPTIONS_HADDOCK hide # | Draw and discard stanzas from the inbound channel until a message or message error is found. Returns the message or message error with annotations. | Draw and discard stanzas from the inbound channel until a message or message error is found. Returns the message or message error. | Draw ...
module Network.Xmpp.Concurrent.Message where import Control.Applicative((<$>)) import Network.Xmpp.Concurrent.Types import Control.Concurrent.STM import Network.Xmpp.Types import Network.Xmpp.Concurrent.Basic pullMessageA :: Session -> IO (Either (Annotated MessageError) (Annotated Message)) pullMessageA session = do...
2bdb66725783e791481a746b347ba8b8737ce3ce04371c0421190127b51c612e
samply/blaze
util_spec.clj
(ns blaze.db.impl.search-param.util-spec (:require [blaze.byte-string-spec] [blaze.db.impl.batch-db.spec] [blaze.db.impl.codec.spec] [blaze.db.impl.index.resource-search-param-value-spec] [blaze.db.impl.iterators-spec] [blaze.db.impl.search-param.util :as u] [blaze.db.kv.spec] [blaze.d...
null
https://raw.githubusercontent.com/samply/blaze/948eee38021467fa343c522a644a7fd4b24b6467/modules/db/test/blaze/db/impl/search_param/util_spec.clj
clojure
(ns blaze.db.impl.search-param.util-spec (:require [blaze.byte-string-spec] [blaze.db.impl.batch-db.spec] [blaze.db.impl.codec.spec] [blaze.db.impl.index.resource-search-param-value-spec] [blaze.db.impl.iterators-spec] [blaze.db.impl.search-param.util :as u] [blaze.db.kv.spec] [blaze.d...
a69e0a16dddb14bf76bcd843348825bbb53ce6bf860742d730e87821d2f0f703
SanderSpies/ocaml-gist
printtyped.ml
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
null
https://raw.githubusercontent.com/SanderSpies/ocaml-gist/7dc229aebdf51310e8c7dae12df0cb55b5de5a32/ocaml_webworker/merlin_lite/src/ocaml/typer_4.02.3/types/printtyped.ml
ocaml
************************************************************************ OCaml Fabrice L...
Copyright 1999 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes;; open Format;; open Lexing;; open Location;; open Typedtree;; let fmt_position f l = if l.pos_lnum = -1 then fprintf f "%s[%d]" l.pos_fname l.pos_cnum...
a5feccefc8c28a208846ba19022d9020c84fa7e7c4d539d0d861ac989356c31e
rescript-lang/rescript-compiler
js_promise.ml
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/5da6c88fb9237fbc4d61640187b82627690ccf39/jscomp/others/js_promise.ml
ocaml
```res prelude type error ``` `make (fun resolve reject -> .. )` let errorAsExn (x : error) (e : (exn ->'a option))= if Caml_exceptions.isCamlExceptionOrOpenVariant (Obj.magic x ) then e (Obj.magic x) else None [%bs.error? ]
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
3bc549d20a054e83acf98c521e5d3ccb07e951cba2cefd61fdeb0c41b3439de0
VictorNicollet/Ohm
def.adlib.ml
| `Common_Project_Name
null
https://raw.githubusercontent.com/VictorNicollet/Ohm/ca90c162f6c49927c893114491f29d44aaf71feb/install/assets/common/def.adlib.ml
ocaml
| `Common_Project_Name
b72112f403dc4ac9d1dfa9243883919da52d6b1b19390e193a29c7bca27a85ac
tmattio/tyxml-components
layout.mli
val make : components:Register.component list -> Register.component -> [> Html_types.div ] Incr_dom.Tyxml.Html.elt
null
https://raw.githubusercontent.com/tmattio/tyxml-components/57603f51ba81bb786a8364eaf9957d65743fd591/lib/tyxml_stories/layout.mli
ocaml
val make : components:Register.component list -> Register.component -> [> Html_types.div ] Incr_dom.Tyxml.Html.elt
1b9b2b1af2690bfb9f50aab486f9846a0372abb656d293435b2c3a6f3ec3b743
camlp5/camlp5
warnings.mli
(***********************************************************************) (* *) (* OCaml *) (* *) Pierre Weis...
null
https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/ocaml_stuff/4.03.0/utils/warnings.mli
ocaml
********************************************************************* OCaml ...
Pierre Weis & & Damien Doligez , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . open Format type t = 1 ...
67a0685558e2af6b73f1ec290a5edac1ddb2e821ffd7a83a59eae2d5f2a100dc
thufschmitt/tix
strMap.ml
module M = CCMap.Make(CCString) include M let add_or key value map = match M.get key map with | Some value2 -> Error (key, value, value2) | None -> Ok (M.add key value map)
null
https://raw.githubusercontent.com/thufschmitt/tix/bfbf7b6de9160bae8af3e0686b783bbc75c79fd7/lib/common/strMap.ml
ocaml
module M = CCMap.Make(CCString) include M let add_or key value map = match M.get key map with | Some value2 -> Error (key, value, value2) | None -> Ok (M.add key value map)
56372223aa334cc26e1dd8e028d7d1bfb77f1ca77da3c553ec9746484b01520d
Lambda-X/re-console
editor.cljs
(ns re-console.editor (:require [reagent.core :as reagent] [re-frame.core :refer [dispatch subscribe dispatch-sync]] [re-console.common :as common] [re-console.parinfer :as parinfer] [cljsjs.codemirror] [cljsjs.codemirror.addon.edit.matchbrackets] ...
null
https://raw.githubusercontent.com/Lambda-X/re-console/a7a31046ba5066163d46ac586072c92b7414c52b/src/re_console/editor.cljs
clojure
enter up down
(ns re-console.editor (:require [reagent.core :as reagent] [re-frame.core :refer [dispatch subscribe dispatch-sync]] [re-console.common :as common] [re-console.parinfer :as parinfer] [cljsjs.codemirror] [cljsjs.codemirror.addon.edit.matchbrackets] ...
7d4f4e7b3a11d5b3c8ae7a2f55036c82f3d656a968ff06af3fa66c816e5c7fb0
heechul/crest-z3
steensgaard.mli
* * Copyright ( c ) 2001 - 2002 , * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions of source code must retain the abov...
null
https://raw.githubusercontent.com/heechul/crest-z3/cfcebadddb5e9d69e9956644fc37b46f6c2a21a0/cil/src/ext/pta/steensgaard.mli
ocaml
********************************************************************* distribution for reference only. ...
* * Copyright ( c ) 2001 - 2002 , * < > * All rights reserved . * * Redistribution and use in source and binary forms , with or without * modification , are permitted provided that the following conditions are * met : * * 1 . Redistributions of source code must retain the abov...
7a9d3517fe10afe867866025717b126049f5db629b654151b7c4f43c485b84e9
stathissideris/positano
integration_test_pin_point1.clj
(ns positano.integration-test-pin-point1 (:require [clojure.test :refer :all] [clojure.string :as string] [positano.trace :as trace] [positano.db :as db] [positano.query :as q] [positano.utils :refer [block-until]] [positano.core :refer :all] ...
null
https://raw.githubusercontent.com/stathissideris/positano/ca5126714b4bcf108726d930ab61a875759214ae/test/positano/integration_test_pin_point1.clj
clojure
test function return values find which function removed :k1 from the map call2 calls call1 return1 is the return event for call1 focus on return values call1 had a value for key :k1 call2 has no value for key :k2 discover which function changed the value of :k4 call2 calls call1 return1 is the return event for call1 fo...
(ns positano.integration-test-pin-point1 (:require [clojure.test :refer :all] [clojure.string :as string] [positano.trace :as trace] [positano.db :as db] [positano.query :as q] [positano.utils :refer [block-until]] [positano.core :refer :all] ...
ed18b05d5862860e6f282f2678489de909c8116422e2e13f283ba84c7fba4b8e
esl/amoc-arsenal-xmpp
dynamic_domains_muc_light.erl
%% @doc Each user performs the following steps: - Create the domain dynamically when needed ( there is one creator per domain ) %% - Log in to the dynamically created domain (see dynamic_domains.erl) %% - Send presence: available (see amoc_xmpp_presence.erl) - Create all rooms assigned to this user ( there ...
null
https://raw.githubusercontent.com/esl/amoc-arsenal-xmpp/8e2a7d6fa9df5b5625e867870d1db96175202f19/src/scenarios/dynamic_domains_muc_light.erl
erlang
@doc Each user performs the following steps: - Log in to the dynamically created domain (see dynamic_domains.erl) - Send presence: available (see amoc_xmpp_presence.erl) - Send group chat messages to the created rooms periodically - Send presence: unavailable and disconnect Room creation User helpers Co...
- Create the domain dynamically when needed ( there is one creator per domain ) - Create all rooms assigned to this user ( there is one creator per room , see amoc_xmpp_muc.erl ) -module(dynamic_domains_muc_light). -include_lib("kernel/include/logger.hrl"). -include_lib("exml/include/exml.hrl"). -define(V(X)...
25e0615e3eb603abfa87d3543b6108ea3db8bd4eb849af96403fc8b5252259d9
paurkedal/ocaml-prime
unprime_string.mli
Copyright ( C ) 2013 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/paurkedal/ocaml-prime/42efa85317069d726e8e3989e51c24ba03c56b47/lib/unprime_string.mli
ocaml
* Shadowing [String].
Copyright ( C ) 2013 - -2022 Petter A. Urkedal < > * * This library is free software ; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or ( at your * option ) any la...
ece0c2042aba598f10818f9ab0e58482e624f3bfc5d28203d1039de87e17bf93
factisresearch/graph-core
Tests.hs
# OPTIONS_GHC -F -pgmF htfpp # module Main where import Test.Framework import {-@ HTF_TESTS @-} Test.Core import {-@ HTF_TESTS @-} Test.NodeManager import {-@ HTF_TESTS @-} Test.Persistence main :: IO () main = htfMain htf_importedTests
null
https://raw.githubusercontent.com/factisresearch/graph-core/9cae5a3c6e2b3a8a9b2b5c402514f1b0521619d3/src/Tests.hs
haskell
@ HTF_TESTS @ @ HTF_TESTS @ @ HTF_TESTS @
# OPTIONS_GHC -F -pgmF htfpp # module Main where import Test.Framework main :: IO () main = htfMain htf_importedTests
66afd0d1e00179df3cba8c59b636b8df4b1923b9e1ffbe31dbe46bea4c1ce186
Gbury/mSAT
Backtrackable_ref.mli
* { 1 Backtrackable ref } type 'a t val create : ?copy:('a -> 'a) -> 'a -> 'a t (** Create a backtrackable reference holding the given value initially. @param copy if provided, will be used to copy the value when [push_level] is called. *) val set : 'a t -> 'a -> unit (** Set the reference's current content...
null
https://raw.githubusercontent.com/Gbury/mSAT/b6ea55e7abb71e8fca294a167bf7d8091cbd82a5/src/backtrack/Backtrackable_ref.mli
ocaml
* Create a backtrackable reference holding the given value initially. @param copy if provided, will be used to copy the value when [push_level] is called. * Set the reference's current content * Get the reference's current content * Update the reference's current content * Push a backtracking level, copying...
* { 1 Backtrackable ref } type 'a t val create : ?copy:('a -> 'a) -> 'a -> 'a t val set : 'a t -> 'a -> unit val get : 'a t -> 'a val update : 'a t -> ('a -> 'a) -> unit val push_level : _ t -> unit val n_levels : _ t -> int val pop_levels : _ t -> int -> unit
373d83e8a0e9e4ed6c148d416a9719a9199e893bc31e714163d52300032697a9
lpgauth/shackle
arithmetic_udp_client.erl
-module(arithmetic_udp_client). -include("test.hrl"). -include_lib("shackle/include/shackle.hrl"). -export([ add/2, multiply/2, noop/0, start/0, start/1, stop/0 ]). -behavior(shackle_client). -export([ init/1, setup/2, handle_request/2, handle_data/2, handle_timeout/2, ...
null
https://raw.githubusercontent.com/lpgauth/shackle/ac1de9c9405e83d2f94387642f22ee813ee11aae/test/arithmetic_udp_client.erl
erlang
public shackle_server callbacks
-module(arithmetic_udp_client). -include("test.hrl"). -include_lib("shackle/include/shackle.hrl"). -export([ add/2, multiply/2, noop/0, start/0, start/1, stop/0 ]). -behavior(shackle_client). -export([ init/1, setup/2, handle_request/2, handle_data/2, handle_timeout/2, ...
f34d0d5e6656a6a79a63b388622094416202c2681f632a00a7fd29fcd1ed72e6
haskell-tools/haskell-tools
ImportUnitedCount_res.hs
module Refactor.OrganizeImports.MakeExplicit.ImportUnitedCount where import Refactor.OrganizeImports.MakeExplicit.Source (a, e, A(..)) x = B () y = b x z = a w = e
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/OrganizeImports/MakeExplicit/ImportUnitedCount_res.hs
haskell
module Refactor.OrganizeImports.MakeExplicit.ImportUnitedCount where import Refactor.OrganizeImports.MakeExplicit.Source (a, e, A(..)) x = B () y = b x z = a w = e
e12a4a236e95a02a927505ca09fa17bae52a377b30b1d5411d3bed9699ada7e9
RunOrg/RunOrg
fmt.mli
(* © 2013 RunOrg *) module type FMT = sig type t val of_json : Json.t -> t val to_json : t -> Json.t val of_json_safe : Json.t -> t option val of_json_string_safe : string -> t option val to_json_string : t -> string val pack : t Pack.packer val unpack : t Pack.unpacker end module type READ_FMT = sig...
null
https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/fmt.mli
ocaml
© 2013 RunOrg
module type FMT = sig type t val of_json : Json.t -> t val to_json : t -> Json.t val of_json_safe : Json.t -> t option val of_json_string_safe : string -> t option val to_json_string : t -> string val pack : t Pack.packer val unpack : t Pack.unpacker end module type READ_FMT = sig type t val of...
8ca04bd6b0d0cbf834ee15bb33c3bbac56915e7e569960714253de32b3e587bc
Erdwolf/prolog
Parser.hs
module Parser ( consult, parseQuery , program, whitespace, comment, clause, terms, term, bottom, vname ) where import Text.Parsec import Text.Parsec.Expr hiding (Assoc(..)) import qualified Text.Parsec.Expr as Parsec import qualified Text.Parsec.Token as P import Text.Parsec.Language (emptyDef) import Control...
null
https://raw.githubusercontent.com/Erdwolf/prolog/d6ee4b35be2a0b29f0a2db404a90f0d241d97a6c/src/Parser.hs
haskell
We explicitly choose otherwise invalid variable names Terminal Braced terms This is the more natural representation as one - character atoms . representChar c = Struct "char" [Struct (show (fromEnum c)) []] -- This is a representation as tagged code points. toChar _ = No...
module Parser ( consult, parseQuery , program, whitespace, comment, clause, terms, term, bottom, vname ) where import Text.Parsec import Text.Parsec.Expr hiding (Assoc(..)) import qualified Text.Parsec.Expr as Parsec import qualified Text.Parsec.Token as P import Text.Parsec.Language (emptyDef) import Control...
d048e05fe6c2c01ccacc665dc58299e0b9cdc3177318dee8112d34007e4c556b
zlatozar/study-paip
krep2.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CH14 - SECOND ; Base : 10 -*- ;;; Code from Paradigms of Artificial Intelligence Programming Copyright ( c ) 1991 File krep2.lisp : Knowledge representation code ; second version . ;;; Fixes problem with renaming variables; adds conjunction...
null
https://raw.githubusercontent.com/zlatozar/study-paip/dfa1ca6118f718f5d47d8c63cbb7b4cad23671e1/ch14/krep2.lisp
lisp
Syntax : COMMON - LISP ; Package : CH14 - SECOND ; Base : 10 -*- Code from Paradigms of Artificial Intelligence Programming second version . Fixes problem with renaming variables; adds conjunctions. store unique vars ____________________________________________________________________________ T...
Copyright ( c ) 1991 (in-package #:ch14-second) (defun index (key) it is stored in the predicate's dtree." (get-dtree (predicate key)))) (defvar *search-cut-off* nil "Has the search been stopped?") (defun prove-all (goals bindings depth) "Find a solution to the conjunction of goals." (c...
8dbb38c7be4e11ca2d9bcf29d3b5c9cfecc175eaa1cf7cbc3e2798c58529497a
simonmar/monad-par
Unsafe.hs
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies # -- TODO: ADD Unsafe | Unsafe operations . NOT part of " Safe Haskell " . -- These are " unsafe " ( in the normal , sense ) when used with a -- "runPar" of type `Par a -> a`. If used with a `runParIO` that stays in the IO monad , then they are simpl...
null
https://raw.githubusercontent.com/simonmar/monad-par/1266b0ac1b4040963ab356cf032c6aae6b8a7add/abstract-par/Control/Monad/Par/Unsafe.hs
haskell
TODO: ADD Unsafe "runPar" of type `Par a -> a`. If used with a `runParIO` that module becomes untrustworthy. value put. If something is already there, return it instead. Aside: cause big problems in the distributed case, however.
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies # | Unsafe operations . NOT part of " Safe Haskell " . These are " unsafe " ( in the normal , sense ) when used with a stays in the IO monad , then they are simply dangerous . For the purposes of Safe Haskell , any module that imports this module Co...