_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
6c76bc340182a715007a69e5a553d4476ab087a9a98fd5decefb372876790713
ocaml-multicore/parafuzz
exotic.ml
(* TEST *) (* Exotic OCaml syntax constructs found in the manual that are not *) (* used in the source of the OCaml distribution (even in the tests). *) (* Spaces between the parts of the ?label: token in a typexpr. (used in bin-prot) *) type t1 = ? label : int -> int -> int;; (* Lazy in a pattern. (used in advi)...
null
https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/testsuite/tests/exotic-syntax/exotic.ml
ocaml
TEST Exotic OCaml syntax constructs found in the manual that are not used in the source of the OCaml distribution (even in the tests). Spaces between the parts of the ?label: token in a typexpr. (used in bin-prot) Lazy in a pattern. (used in advi) Spaces between the parts of the ?label: token in a class-t...
type t1 = ? label : int -> int -> int;; function lazy y -> y;; class c1 = (fun ?label:x y -> object end : ? label : int -> int -> object end) ;; class c2 = (object end : object end);; class virtual c3 = object val virtual x : int end;; class virtual c4 = object val mutable virtual x : int end;; module type T =...
69821b05b94697c24f789818b289d21a3b562afe7b4c3eba87a6829ef1b6afcc
basho/riak_cs
riak_cs_wm_bucket_versioning.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. 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 . Y...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/src/riak_cs_wm_bucket_versioning.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 permiss...
Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. 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 ...
26a87b134159675dfee65dd0409fc8a4349c96118fbba29e2b939df3b4ae66ec
haskell-tls/hs-certificate
CertificateChain.hs
-- | -- Module : Data.X509.CertificateChain -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : unknown -- module Data.X509.CertificateChain ( CertificateChain(..) , CertificateChainRaw(..) -- * marshall between CertificateChain and CertificateChainRaw ...
null
https://raw.githubusercontent.com/haskell-tls/hs-certificate/4a0a2ce292ea46c0c5f72e1d31eca2001079cdd2/x509/Data/X509/CertificateChain.hs
haskell
| Module : Data.X509.CertificateChain License : BSD-style Stability : experimental Portability : unknown * marshall between CertificateChain and CertificateChainRaw | A chain of X.509 certificates in exact form. | Decode a CertificateChainRaw into a CertificateChain if every raw certificate are dec...
Maintainer : < > module Data.X509.CertificateChain ( CertificateChain(..) , CertificateChainRaw(..) , decodeCertificateChain , encodeCertificateChain ) where import Data.X509.Cert (Certificate) import Data.X509.Signed (SignedExact, decodeSignedObject, encodeSignedObject) import Data.ByteStri...
a8b6bb904ce6f4194fb47c18a22c13b20cf805e686d089269b6660e6c5a37ca4
pirapira/coq2rust
preferences.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/ide/preferences.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Small hack to handle v8.3 to v8.4 c...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Configwin let pref_file...
37a3d479c683bbc09cd8dd9f313dea33af690da7ff6abe247cb5a692c405bcda
SupercedeTech/yesod-auth-simple
EmailTextCI.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE LambdaCase # module Yesod.Auth.Simple.Instance.Persist.EmailTextCI where import ClassyPrelude import Database.Persist.Sql import Yesod.Auth.Simple.Types instance PersistFieldSql Email where sqlType _ = SqlOther $ pack "citext" instance PersistField Email where toP...
null
https://raw.githubusercontent.com/SupercedeTech/yesod-auth-simple/498eb3c280e32a1c4587de3bcfaf160c1008f236/src/Yesod/Auth/Simple/Instance/Persist/EmailTextCI.hs
haskell
use `PersistLiteral_ Escaped bs` in newer persistent
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE LambdaCase # module Yesod.Auth.Simple.Instance.Persist.EmailTextCI where import ClassyPrelude import Database.Persist.Sql import Yesod.Auth.Simple.Types instance PersistFieldSql Email where sqlType _ = SqlOther $ pack "citext" instance PersistField Email where toP...
f3fbe0ca094a7f041d2eab6c54b32e96e27d6a7c11e77ee6f6e207285d98f9ed
inhabitedtype/ocaml-aws
deregisterDBProxyTargets.mli
open Types type input = DeregisterDBProxyTargetsRequest.t type output = unit type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/rds/lib/deregisterDBProxyTargets.mli
ocaml
open Types type input = DeregisterDBProxyTargetsRequest.t type output = unit type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
90cecfe7caeab8acc7e5cdf695e2f5da5ea8e78ad12fcae8aff322eaabd5a77d
ygmpkk/house
Types.hs
-- #hide -------------------------------------------------------------------------------- -- | Module : Graphics . UI.GLUT.Types Copyright : ( c ) 2003 -- License : BSD-style (see the file libraries/GLUT/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : portable -- ...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/GLUT/Graphics/UI/GLUT/Types.hs
haskell
#hide ------------------------------------------------------------------------------ | License : BSD-style (see the file libraries/GLUT/LICENSE) Maintainer : Stability : provisional Portability : portable This is a purely internal module with miscellaneous types which don\'t really have a good pl...
Module : Graphics . UI.GLUT.Types Copyright : ( c ) 2003 module Graphics.UI.GLUT.Types ( Relation(..), MouseButton(..), ) where import Foreign.C.Types ( CInt ) import Graphics.UI.GLUT.Constants ( glut_LEFT_BUTTON, glut_MIDDLE_BUTTON, glut_RIGHT_BUTTON, glut_WHEEL_UP, glut_WHEEL_DOWN ) ...
efbba5fafed6d75abea4f8c2e195790f361e6c7a40108f9d17a92a3ae7c3896a
tonyg/kali-scheme
scm-arith.scm
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . ; Arithmetic inference rules (define (arith-op-rule args node depth return?) (for-each (lambda (arg) (unify! (infer-type arg depth) type/integer node)) args) type/integer) (defin...
null
https://raw.githubusercontent.com/tonyg/kali-scheme/79bf76b4964729b63fce99c4d2149b32cb067ac0/ps-compiler/prescheme/primop/scm-arith.scm
scheme
Arithmetic inference rules ---------------------------------------------------------------- Arithmetic
Copyright ( c ) 1993 , 1994 by and . Copyright ( c ) 1998 by NEC Research Institute , Inc. See file COPYING . (define (arith-op-rule args node depth return?) (for-each (lambda (arg) (unify! (infer-type arg depth) type/integer node)) args) type/integer) (define (arith-comparison-rule args...
0562847041742fca6b114969a98a8155961cdf9beb3a26028edc354495e051a1
threatgrid/clj-momo
core.clj
(ns clj-momo.test-helpers.core (:require [clj-momo.lib [map :as map] [schema :as mls] [time :as time]] [clojure [data :as cd] [test :as ct]] [schema.core :as schema]) (:import java.util.Date)) ;;;; Assert Expression Methods ;;...
null
https://raw.githubusercontent.com/threatgrid/clj-momo/7bc0a411593eee4a939b6a3d0f628413518e09e2/src/clj_momo/test_helpers/core.clj
clojure
Assert Expression Methods e.g. (is (deep= ...)) Higher Order / Helper Helpers Helpers
(ns clj-momo.test-helpers.core (:require [clj-momo.lib [map :as map] [schema :as mls] [time :as time]] [clojure [data :as cd] [test :as ct]] [schema.core :as schema]) (:import java.util.Date)) (defmethod ct/assert-expr 'deep=...
728813910d9740358bc9251f51e95274f19d6dcbf5c2e30e2a6d146b778f0f81
8c6794b6/guile-tjit
t-tail-call-02.scm
;; Simple tail-call with top-level procedure. (define (sum n acc) (if (= 100 n) acc (sum (- n 1) (+ acc n)))) (sum #e1e3 0)
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-tail-call-02.scm
scheme
Simple tail-call with top-level procedure.
(define (sum n acc) (if (= 100 n) acc (sum (- n 1) (+ acc n)))) (sum #e1e3 0)
35d518a9fe816cbbb5d0681a6904cb46780d8e582b6711cfe378daacc5ec5e71
clojars/clojars-web
web_test.clj
(ns clojars.integration.web-test (:require [clojars.db :as db] [clojars.errors :as errors] [clojars.log :as log] [clojars.test-helper :as help] [clojure.test :refer [deftest is use-fixtures]] [kerodon.core :refer [fill-in follow-redirect follow press session visit within]] ...
null
https://raw.githubusercontent.com/clojars/clojars-web/22f831c9e8749ac7933af48655764ad5f5bdc3e8/test/clojars/integration/web_test.clj
clojure
(ns clojars.integration.web-test (:require [clojars.db :as db] [clojars.errors :as errors] [clojars.log :as log] [clojars.test-helper :as help] [clojure.test :refer [deftest is use-fixtures]] [kerodon.core :refer [fill-in follow-redirect follow press session visit within]] ...
ed0d19731289045fcd57010ef492dac4539c19704b1807e7a09bd97804712f11
funimagej/fun.imagej
correlated_local_area_coverage.clj
; @ImagePlus(label="Focal image",description="Measure centered at these segments (will be binarized)") focal-segments ; @ImagePlus(label="Correlation image",description="Take measurements on these segments (will be binarized)") correlation-segments @Integer(label="Radius",description="Coverage within a ball of this r...
null
https://raw.githubusercontent.com/funimagej/fun.imagej/dcbe14581ba9394d8ecc6e254e02fac8130a942d/src/plugins/Scripts/Plugins/FunImageJ/SpatialAnalysis/correlated_local_area_coverage.clj
clojure
@ImagePlus(label="Focal image",description="Measure centered at these segments (will be binarized)") focal-segments @ImagePlus(label="Correlation image",description="Take measurements on these segments (will be binarized)") correlation-segments
@Integer(label="Radius",description="Coverage within a ball of this radius will be analyzed . ",value=25 ) density - radius (use '[fun.imagej imp project conversion] '[fun.imagej.segmentation utils imp] '[fun.imagej.imp calibration roi threshold calculator statistics]) (let [density-radius (min den...
ac33c936a43c29d8e04a05e3d6134d422d785208f440bf115b85cc5f57c50549
MLstate/opalang
opx2jsPasses.ml
Copyright © 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/opx2js/opx2jsPasses.ml
ocaml
Type definition of dependencies are needed
Copyright © 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be useful , ...
a5394abf0441060959aad96ebc47a2694be4fae6361ebf1fc8f5cd70ad4e347b
garrigue/lablgtk
gtkGooCanvas.ml
open GooCanvas_types type canvas_points type items_properties = [ (* | `ALIGNMENT of PangoAlignment *) | `ALPHA of float | `ANCHOR of GooCanvasEnums.anchor_type | `ARROW_LENGTH of float | `ARROW_TIP_LENGTH of float | `ARROW_WIDTH of float | ` ANTIALIAS of | `CAN_FOCUS of bool | ` CLIP_FILL_RULE o...
null
https://raw.githubusercontent.com/garrigue/lablgtk/ff9f912ebc9c26c581d7ba5bad548a8841e52ea4/src-goocanvas2/gtkGooCanvas.ml
ocaml
| `ALIGNMENT of PangoAlignment | `FILL_PATTERN of GooCairoPattern* | `FILL_RULE of GooCairoFillRule | `PATTERN of | `STROKE_PATTERN of GooCairoPattern* | `TRANSFORM of GooCairoMatrix* | `WRAP of PangoWrapMode | `PATTERN of
open GooCanvas_types type canvas_points type items_properties = [ | `ALPHA of float | `ANCHOR of GooCanvasEnums.anchor_type | `ARROW_LENGTH of float | `ARROW_TIP_LENGTH of float | `ARROW_WIDTH of float | ` ANTIALIAS of | `CAN_FOCUS of bool | ` CLIP_FILL_RULE of GooCairoFillRule | `CLIP_PATH of s...
0f9506ae8ed18684b5138225c83c7138cb3e9df44f69dd6e6a1aa4c3412377e1
LeventErkok/sbv
Multiply.hs
----------------------------------------------------------------------------- -- | Module : Documentation . SBV.Examples . Uninterpreted . Multiply Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- -- Demonstrates how to use uninterpreted function models to synthesize a si...
null
https://raw.githubusercontent.com/LeventErkok/sbv/6576747d3d019ad235b874010870f71d929683bd/Documentation/SBV/Examples/Uninterpreted/Multiply.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental Demonstrates how to use uninterpreted function models to synthesize --------------------------------------------------------------------------- $setup >>> -- For doctest purposes ...
Module : Documentation . SBV.Examples . Uninterpreted . Multiply Copyright : ( c ) a simple two - bit multiplier . # LANGUAGE ScopedTypeVariables # # OPTIONS_GHC -Wall -Werror -Wno - incomplete - uni - patterns # module Documentation.SBV.Examples.Uninterpreted.Multiply where import Data.SBV | The un...
402da94889e99074769d3ce8b620f3499595557d4319474471c4b08a0e6e8512
HaskellZhangSong/Introduction_to_Haskell_2ed_source
Stack1.hs
import Data.Proxy -- 无法携带kind信息 foo :: Proxy [] foo = Proxy
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell_2ed_source/140c50fdccfe608fe499ecf2d8a3732f531173f5/C22/Stack1.hs
haskell
无法携带kind信息
import Data.Proxy foo :: Proxy [] foo = Proxy
b871130d2d4fee550bcb5279a7f5558b66534bcf0e9bb508fe7019caac92d5c1
jrm-code-project/LISP-Machine
echo.lisp
-*- Mode : LISP ; Package : STEVE ; : CL ; -*- Copyright ( c ) May 1983 by and Massachusetts Institute of Technology . ;Permission to copy all or part of this material is granted, provided that the copies are not made or distributed for resale , the MIT ; copyright notice and reference to the source file and...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/steve/echo.lisp
lisp
Package : STEVE ; : CL ; -*- Permission to copy all or part of this material is granted, provided copyright notice and reference to the source file and the software distribution version appear, and that notice is given that copying Version of self-insert which will evaluate forms. Flushed standout bogosity `(...
Copyright ( c ) May 1983 by and Massachusetts Institute of Technology . that the copies are not made or distributed for resale , the MIT is by permission of Massachusetts Institute of Technology . (defun meditate (time difference) (do () ((or (type-ahead-p) (>$ (-$ (elapsed-time) time) differen...
3e9ece64d04450b0f2e3bc2afb15a7000d25d22c283d753a59f0934b98d5da93
janestreet/hardcaml
parameter.ml
open Base module Std_logic = struct type t = | U | X | L0 | L1 | Z | W | L | H | Don't_care [@@deriving compare, enumerate, sexp, variants] let optimise_muxs = false let constant_only = true let equal = [%compare.equal: t] let to_char = function | U -> 'U' | X ...
null
https://raw.githubusercontent.com/janestreet/hardcaml/de89245dfb2d6ffa12d1ae4fa2b8b21b8505f842/src/parameter.ml
ocaml
open Base module Std_logic = struct type t = | U | X | L0 | L1 | Z | W | L | H | Don't_care [@@deriving compare, enumerate, sexp, variants] let optimise_muxs = false let constant_only = true let equal = [%compare.equal: t] let to_char = function | U -> 'U' | X ...
2997ee1cac550d5ea593696daf05837a561c4eed3c064e2696a520d3b01efe21
huangjs/cl
combin.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/combin.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; minfactorial ...
(in-package :maxima) (macsyma-module combin) (declare-top (special *mfactl *factlist donel nn* dn* *ans* *var* ans var $zerobern *n $cflength *a* $prevfib hi lo *infsumsimp *times *plus sum usum makef varlist genvar $sumsplitfact $ratfac $simpsum $prederror $listarith $ratprin...
9901e8024d49a1fd3bc03a606d9b8cdfb8f08b3cdd341a60c800b5ae9ce56896
lowasser/TrieMap
BSTrieBench.hs
# OPTIONS -fasm # module BSTrieBench (main) where import Criterion.Main import Data.Trie import Data.Trie.Convenience import qualified Data.Vector as V import qualified Data.Vector.Mutable as VM import Control.Monad.Primitive import Control.Monad import Control.Monad.Trans import Control.Monad.Random (getRandomR, Ran...
null
https://raw.githubusercontent.com/lowasser/TrieMap/1ab52b8d83469974a629f2aa577a85de3f9e867a/BSTrieBench.hs
haskell
# OPTIONS -fasm # module BSTrieBench (main) where import Criterion.Main import Data.Trie import Data.Trie.Convenience import qualified Data.Vector as V import qualified Data.Vector.Mutable as VM import Control.Monad.Primitive import Control.Monad import Control.Monad.Trans import Control.Monad.Random (getRandomR, Ran...
3bc57870673ec3406c8cbcf552b911478dfd36a7fc9857248a574df586f1d53d
jlouis/graphql-erlang
graphql_scalar_binary_coerce.erl
-module(graphql_scalar_binary_coerce). -export([input/2, output/2]). input(_, X) -> {ok, X}. According to the specification , Jun2018 , we should %% accept coercion as long as we are not "loosing information" %% in the process output(_,B) when is_binary(B) -> %% Standard case where the code provided a String v...
null
https://raw.githubusercontent.com/jlouis/graphql-erlang/4fd356294c2acea42a024366bc5a64661e4862d7/src/graphql_scalar_binary_coerce.erl
erlang
accept coercion as long as we are not "loosing information" in the process Standard case where the code provided a String value Output an empty list as "[]". This is a choice for the reason of convenience. We could have chosen something differently, but in general, users ought to use <<>> for the empty string A...
-module(graphql_scalar_binary_coerce). -export([input/2, output/2]). input(_, X) -> {ok, X}. According to the specification , Jun2018 , we should output(_,B) when is_binary(B) -> {ok, B}; output(_, []) -> in the binarized GraphQL - Erlang world . {ok, <<"[]">>}; output(_, [{ok, _V}|_] = Lst) -> Res =...
374f76649a92eeffef2e648b849cc16c6e4dd346db83213e8f5a2d94d67936a1
def-/ghc-vis
Sieve.hs
module Sieve where primes = sieve [2..] where sieve (p:xs) = p : sieve [x | x <- xs, x `mod` p > 0]
null
https://raw.githubusercontent.com/def-/ghc-vis/7b93f3aa80c8e5dad356f62babec861a67e20948/docs/Sieve.hs
haskell
module Sieve where primes = sieve [2..] where sieve (p:xs) = p : sieve [x | x <- xs, x `mod` p > 0]
a2379dccd6b14d950c4408901bd3c41a1818631bfef1af90891b384fd3dfdb1d
johnlawrenceaspden/hobby-code
testscript.clj
(require 'helloweb) (require 'clojure.test) (clojure.test/run-tests 'helloweb)
null
https://raw.githubusercontent.com/johnlawrenceaspden/hobby-code/48e2a89d28557994c72299962cd8e3ace6a75b2d/maven_hello_web/src/main/clojure/testscript.clj
clojure
(require 'helloweb) (require 'clojure.test) (clojure.test/run-tests 'helloweb)
b44721d7f0bda2c4f9da81a005dba20b08b310369b1634c10553b2280b6e6bc7
gwkkwg/cl-mathstats
test-basic-statistics.lisp
(in-package #:metabang.math) (deftestsuite test-basic-statistics () ()) (deftestsuite test-data-length (test-basic-statistics) ()) (addtest (test-data-length) (ensure-same (data-length '(1 2 3)) 3 :test '=)) (addtest (test-data-length) (ensure-same (data-length '(1 2 3) :start 1) 2 :test '=)) (addtest (test-dat...
null
https://raw.githubusercontent.com/gwkkwg/cl-mathstats/39af1b5e1ebbad6f75dab2c4214ce48852031bbf/dev/test-basic-statistics.lisp
lisp
--*-- *************************************************************************** CLASP ERROR CONDITIONS (format t "Condition ~s is a subtype of `type-error.'~%" (type-of condition)) Actually, nothing should signal this, because they should be caught earlier. ``uncaught'' conditions print and their name ========...
(in-package #:metabang.math) (deftestsuite test-basic-statistics () ()) (deftestsuite test-data-length (test-basic-statistics) ()) (addtest (test-data-length) (ensure-same (data-length '(1 2 3)) 3 :test '=)) (addtest (test-data-length) (ensure-same (data-length '(1 2 3) :start 1) 2 :test '=)) (addtest (test-dat...
1e04857202c2834dd74de0c66cff6d4ef391c66dda83556a2cf8dda135f06daf
zotonic/zotonic
filter_index_of.erl
@author < > 2011 < > Date : 2011 - 09 - 29 %% @doc Returns the index the given item is in the given list. Copyright 2011 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the Licen...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_base/src/filters/filter_index_of.erl
erlang
@doc Returns the index the given item is in the given list. 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 impli...
@author < > 2011 < > Date : 2011 - 09 - 29 Copyright 2011 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(filter_index_of). -author("Arjan Scherpenisse <>"). -include_lib("zotonic_core/include/zot...
0d2361eb70dbb5d523970b30de7824162cc74a39c06c6dabff29d0e3544d7ab0
weblocks-framework/weblocks
widget.lisp
(in-package :weblocks-test) (deftestsuite widgets/widget/widget-suite (weblocks-suite print-upcase-suite) ()) ;;; test defwidget (deftest defwidget-1 (macroexpand-1 '(defwidget foo (bar) ((slot1 :initarg :slot1) (slot2 :initform nil)))) (progn (defclass foo (bar) ((slot1 :initarg :slot1...
null
https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/test/widgets/widget/widget.lisp
lisp
test defwidget test widget-dependencies note, pagination and dataform are there because for gridedit and datagrid widget-dependencies is specialized test render-widget-body helper function test dom-classes test with-widget-header test widget-name specialization for widgets test composite-widgets specializatio...
(in-package :weblocks-test) (deftestsuite widgets/widget/widget-suite (weblocks-suite print-upcase-suite) ()) (deftest defwidget-1 (macroexpand-1 '(defwidget foo (bar) ((slot1 :initarg :slot1) (slot2 :initform nil)))) (progn (defclass foo (bar) ((slot1 :initarg :slot1) (slot2 :ini...
647f8a62ec1a7d8e3a025b52edfa4b7ec327f9a3c269adbcd485ee96512579ad
umutisik/mathvas
devel.hs
{-# LANGUAGE PackageImports #-} import "yesodeneme" Application (develMain) import Prelude (IO) main :: IO () main = develMain
null
https://raw.githubusercontent.com/umutisik/mathvas/9f764cd4d54370262c70c7ec3eadae076a1eb489/app/devel.hs
haskell
# LANGUAGE PackageImports #
import "yesodeneme" Application (develMain) import Prelude (IO) main :: IO () main = develMain
145c62fd90896f11a56b866331d6b9d3b53453bef168c2dd6851feb1f5c4f4d3
onlyshk/epmail
config.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2011 , %%% @doc %%% %%% @end Created : 10 Jan 2011 by < > %%%------------------------------------------------------------------- -module(config). -export([start/0, get_option/1]). -vsn('0.3'). -author(''). -includ...
null
https://raw.githubusercontent.com/onlyshk/epmail/d08ab8e706a44e5e3287ea4b98490447cfb94448/src/config.erl
erlang
------------------------------------------------------------------- @doc @end -------------------------------------------------------------------
@author < > ( C ) 2011 , Created : 10 Jan 2011 by < > -module(config). -export([start/0, get_option/1]). -vsn('0.3'). -author(''). -include_lib("epmail.hrl"). -define(EPMAIL_CONFIG, "./epmail.conf"). -record(config, {key, value}). start() -> mnesia:create_table(config, [{disc_copies, [node()]},...
8ec1f0a8f09cb373bbfed869ee9bf4efb7d574ea267c3de1b3cf95340a9af0ae
Glue42/gateway-modules
ttl_cache.cljc
(ns gateway.common.cache.ttl-cache (:require [gateway.common.cache.cache :as c] [gateway.common.utilities :refer [current-time]])) ;; shamelessly lifted from core.cache (defn- key-killer [ttl expiry now] (let [ks (map key (filter #(> (- now (val %)) expiry) ttl))] #(apply dissoc % ks))) (defty...
null
https://raw.githubusercontent.com/Glue42/gateway-modules/be48a132134b5f9f41fd6a6067800da6be5e6eca/common/src/gateway/common/cache/ttl_cache.cljc
clojure
shamelessly lifted from core.cache
(ns gateway.common.cache.ttl-cache (:require [gateway.common.cache.cache :as c] [gateway.common.utilities :refer [current-time]])) (defn- key-killer [ttl expiry now] (let [ks (map key (filter #(> (- now (val %)) expiry) ttl))] #(apply dissoc % ks))) (deftype TTLCache [cache ttl ttl-ms] c/Cac...
58f68e55bfdbb6d68a8855ee42e6f965e7fab1ac860883551ccdb768a588441f
hasktorch/ffi-experimental
Extra.hs
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module ATen.Managed.Type.Extra where import Foreign.C.String import Foreign.C.Types import ...
null
https://raw.githubusercontent.com/hasktorch/ffi-experimental/54192297742221c4d50398586ba8d187451f9ee0/ffi/src/ATen/Managed/Type/Extra.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module ATen.Managed.Type.Extra where import Foreign.C.String import Foreign.C.Types import Foreign hiding (newForeignPtr) impo...
0f1cc89f138fb162bef5e50a8e1869ed4c13919fe94e7185f6c40b8447da7c28
msp-strath/TypOS
Alarm.hs
module Alarm where import Control.Monad (guard) import Data.Functor (($>)) import System.IO.Unsafe (unsafePerformIO) import ANSI import Options import Utils alarm :: Options -> String -> a -> a alarm opts str x = unsafePerformIO $ do putStrLn $ withANSI (guard (colours opts) $> SetColour Background Red) $ ...
null
https://raw.githubusercontent.com/msp-strath/TypOS/a842f98bdbd26755f9b5bc9ef0e1d3adae2d4ecc/Src/Alarm.hs
haskell
Check if terminal can give us input before asking for it
module Alarm where import Control.Monad (guard) import Data.Functor (($>)) import System.IO.Unsafe (unsafePerformIO) import ANSI import Options import Utils alarm :: Options -> String -> a -> a alarm opts str x = unsafePerformIO $ do putStrLn $ withANSI (guard (colours opts) $> SetColour Background Red) $ ...
e66c8cdac1fa9ec2ef6f706716b2a2c5022acfb17fb3464998e3367d6a45dd01
matterandvoid-space/todomvc-fulcro-subscriptions
release_entry.cljs
(ns space.matterandvoid.todomvc.client.release-entry (:require [space.matterandvoid.todomvc.client.entry-common :as common])) (defn init {:export true} [] (common/init false))
null
https://raw.githubusercontent.com/matterandvoid-space/todomvc-fulcro-subscriptions/e2e244936efe1005fa2cac204a24758b067aac4e/src/main/space/matterandvoid/todomvc/client/release_entry.cljs
clojure
(ns space.matterandvoid.todomvc.client.release-entry (:require [space.matterandvoid.todomvc.client.entry-common :as common])) (defn init {:export true} [] (common/init false))
10dfc4475a5c5c25494a5c604416a8f8208428fc201c69f7809676b7507055f4
nrepl/piggieback
project.clj
(defproject cider/piggieback "0.5.3" :description "Middleware adding support for running ClojureScript REPLs over nREPL." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :scm {:name "git" :url ""} :min-lein-version "2.0.0" :source-paths ["src"] :deploy-repositories [["cloj...
null
https://raw.githubusercontent.com/nrepl/piggieback/cf8e5c573c97f3b779bc4ee473e7d02276fb99a4/project.clj
clojure
(defproject cider/piggieback "0.5.3" :description "Middleware adding support for running ClojureScript REPLs over nREPL." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :scm {:name "git" :url ""} :min-lein-version "2.0.0" :source-paths ["src"] :deploy-repositories [["cloj...
085186025f7f0e17e923c54fa7d888e42ddfc050ce4e4a95061b099f0b10d0c4
thowsen/AOC-2021
a.hs
# LANGUAGE LambdaCase # import Control.Monad.State data Mvmnt = Forward Int | Down Int | Up Int deriving (Show, Eq) data Submarine = Submarine {y :: Int, x :: Int, aim :: Int} deriving (Show) type SubState a = StateT Submarine IO a parse :: [String] -> [Mvmnt] parse [] = [] parse (x : y : xs) = case x of "forwar...
null
https://raw.githubusercontent.com/thowsen/AOC-2021/c8918783bd43da70aba736e98d776f55ef5d898d/day2/a.hs
haskell
>> printState >> printState >> printState
# LANGUAGE LambdaCase # import Control.Monad.State data Mvmnt = Forward Int | Down Int | Up Int deriving (Show, Eq) data Submarine = Submarine {y :: Int, x :: Int, aim :: Int} deriving (Show) type SubState a = StateT Submarine IO a parse :: [String] -> [Mvmnt] parse [] = [] parse (x : y : xs) = case x of "forwar...
596a02363443ddaff066dad85bcc9690308fdc1bff60269eb02f6256e9a898ac
voxoz/emqttd
emqttd_cm.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( ) %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% ...
null
https://raw.githubusercontent.com/voxoz/emqttd/2be612e0e7a00a866cd9af350a030966d73fbc09/src/emqttd_cm.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2013 - 2017 EMQ Enterprise , Inc. ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqttd_cm). -compile({parse_transform, lager_transform}). -behaviour(gen_server2). -author("Feng Lee <>"). ...
dc1c775a2ffc506926cb0128566bdbb90ba579cc4c2264071613286e037c2f4a
nd/bird
5.2.1.hs
-- it was never used.. we sort Codes by id in collate, so it is safe -- to remove such requirement
null
https://raw.githubusercontent.com/nd/bird/06dba97af7cfb11f558eaeb31a75bd04cacf7201/ch05/5.2.1.hs
haskell
it was never used.. we sort Codes by id in collate, so it is safe to remove such requirement
ff454dd6a54e982ba5a710de56e66b7dc59a6bf4cccad301fa2c179c9bfc7e72
robrix/isometry
Lift.hs
# LANGUAGE DeriveFunctor # # LANGUAGE ExistentialQuantification # {-# LANGUAGE RankNTypes #-} # LANGUAGE StandaloneDeriving # module Control.Exception.Lift ( E.Exception(..) , E.SomeException(..) , throwIO , catch , catches , Handler(..) , handle , try , mask , bracket , bracket_ , finally , onException ) where import...
null
https://raw.githubusercontent.com/robrix/isometry/171b9261b8d7ea32c86ce6019c8c3973742f0349/src/Control/Exception/Lift.hs
haskell
# LANGUAGE RankNTypes # | See @"Control.Exception".'E.throwIO'@. | See @"Control.Exception".'E.catch'@. | See @"Control.Exception".'E.handle'@. | See @"Control.Exception".'E.try'@. # INLINE try # | See @"Control.Exception".'E.mask'@. | See @"Control.Exception".'E.bracket'@. | See @"Control.Exception".'E.bracket_...
# LANGUAGE DeriveFunctor # # LANGUAGE ExistentialQuantification # # LANGUAGE StandaloneDeriving # module Control.Exception.Lift ( E.Exception(..) , E.SomeException(..) , throwIO , catch , catches , Handler(..) , handle , try , mask , bracket , bracket_ , finally , onException ) where import Control.Effect.Li...
f6a2959902f48f831882cc3c5a77ca0addf2f1ef25928d2b9caacf8fcf191c13
jaminalder/staticart
subdivision.clj
(ns staticart.subdivision (:require [staticart.random-helper :as rh] [thi.ng.geom.core :as g] [thi.ng.math.core :as m])) (defn divide-triangle [[a b c]] (let [[p1 p2] (max-key #(apply g/dist %) [a b] [a c] [b c]) pm (m/mix p1 p2 (rh/gauss 0.5 0.1)) p3 (first (clojure.set/dif...
null
https://raw.githubusercontent.com/jaminalder/staticart/079ac3e526a03a7f3f95b8981d3ee3d797f2e865/src/staticart/subdivision.clj
clojure
(ns staticart.subdivision (:require [staticart.random-helper :as rh] [thi.ng.geom.core :as g] [thi.ng.math.core :as m])) (defn divide-triangle [[a b c]] (let [[p1 p2] (max-key #(apply g/dist %) [a b] [a c] [b c]) pm (m/mix p1 p2 (rh/gauss 0.5 0.1)) p3 (first (clojure.set/dif...
159e78925b1476fdb536f082c68ada887a9ea1c8031dd596e4a31a96f8dfb664
ocaml-flambda/flambda-backend
iarrayLabels.ml
(* CR aspectorzabusky: This needs a copyright header; should I copy [array.ml]? *) open! Stdlib [@@@ocaml.flambda_o3] Module [ IarrayLabels ] : labelled Iarray module [@@@ocaml.nolabels] CR mshinwell : Change to " include Iarray " ; we ca n't do this at present as it requires referencing Stdlib__Iarray wh...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/1d905beda2707698d36835ef3acd77a5992fc389/ocaml/stdlib/iarrayLabels.ml
ocaml
CR aspectorzabusky: This needs a copyright header; should I copy [array.ml]? CR aspectorzabusky: This needs a copyright header; should I copy [array.ml]? An alias for the type of immutable arrays. Array operations Immutable and mutable arrays have the same runtime representation; we construct immutable arra...
open! Stdlib [@@@ocaml.flambda_o3] Module [ IarrayLabels ] : labelled Iarray module [@@@ocaml.nolabels] CR mshinwell : Change to " include Iarray " ; we ca n't do this at present as it requires referencing Stdlib__Iarray which will work under the make build but not under dune . as it requires refe...
ccd3b2b9b43d5a32ac68f10f19af0dd5dd74361658150700a99fbbf983f403fe
geneweb/geneweb
lock.mli
val no_lock_flag : bool ref (** Flag that indicates if the lock should be used. *) val print_error_and_exit : unit -> unit (** Print lock error message and terminate program. *) val print_try_again : unit -> unit (** Print message about locked database. *) val control : onerror:(unit -> 'a) -> string -> bool -> (uni...
null
https://raw.githubusercontent.com/geneweb/geneweb/747f43da396a706bd1da60d34c04493a190edf0f/lib/util/lock.mli
ocaml
* Flag that indicates if the lock should be used. * Print lock error message and terminate program. * Print message about locked database. * [control ~onerror lname wait f] opens file [lname], puts a write lock on it and then calls [f]. If [wait] is true then if it tries to access locked file it will be blocked ...
val no_lock_flag : bool ref val print_error_and_exit : unit -> unit val print_try_again : unit -> unit val control : onerror:(unit -> 'a) -> string -> bool -> (unit -> 'a) -> 'a val control_retry : onerror:(unit -> 'a) -> string -> (unit -> 'a) -> 'a
a64413ed584b183123ad5cdf378bd47c2ff5763e6fa16523a1f34191e3316545
dogestreet/proxypool
Stratum.hs
-- | JSON-RPC v1.0 implementation, specialised for stratum # LANGUAGE OverloadedStrings , ScopedTypeVariables , InstanceSigs , BangPatterns # module ProxyPool.Stratum ( Request(..), Response(..), StratumRequest(..), StratumResponse(..) ) where import Prelude hiding (String) import Control.Monad (mzero) import...
null
https://raw.githubusercontent.com/dogestreet/proxypool/ecba151d8edc47bc77d436498ea613ce785845be/ProxyPool/Stratum.hs
haskell
| JSON-RPC v1.0 implementation, specialised for stratum | Client to server | mining.subscribe | mining.authorize - username, pass | mining.submit - worker, job, extraNonce2, ntime, nonce | Server to client | mining.set_difficulty | Initial server response - extranonce1 and extranonce2_size | General response t...
# LANGUAGE OverloadedStrings , ScopedTypeVariables , InstanceSigs , BangPatterns # module ProxyPool.Stratum ( Request(..), Response(..), StratumRequest(..), StratumResponse(..) ) where import Prelude hiding (String) import Control.Monad (mzero) import Data.Text (Text) import Data.Aeson import Data.Aeson.Type...
60f36d5d6834112a8da0116c5f7917c156868545962bffa9a9bb9e5282272294
mokus0/junkbox
W.hs
-- the Lambert W function (on real line) module Functions.W where import Math.Sequence.Converge e :: Floating a => a e = exp 1 xMin :: Floating a => a xMin = (-1) / e eps :: RealFloat a => a eps = eps' where eps' = encodeFloat 1 (1 - floatDigits eps') w0 x = case x `compare` xMin of LT -> error "w0...
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/Haskell/Functions/W.hs
haskell
the Lambert W function (on real line) this can go into cycles; need cycle-breaking logic or something (for example, w0 (-0.36787944066384143))
module Functions.W where import Math.Sequence.Converge e :: Floating a => a e = exp 1 xMin :: Floating a => a xMin = (-1) / e eps :: RealFloat a => a eps = eps' where eps' = encodeFloat 1 (1 - floatDigits eps') w0 x = case x `compare` xMin of LT -> error "w0: x < -1/e" EQ -> -1 GT -> conve...
68462cc962c882821fd9001ef16bb07b1f06ba4f87d02290f98b00c588dc7e52
sarabander/p2pu-sicp
Ex1.41.scm
(define (inc x) (add1 x)) (define (double f) (λ (x) (f (f x)))) 4 3 256 This should return 13 : = > 21 ? ;; What's really happening: ;; (double double) = (λ (x) (double (double x))) ;; (double (double double)) = (λ (x) ((double double) ((double double) x))) = ;; = (λ (x) (double (double (double (d...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/1.3/Ex1.41.scm
scheme
What's really happening: (double double) = (λ (x) (double (double x))) (double (double double)) = (λ (x) ((double double) ((double double) x))) = = (λ (x) (double (double (double (double x)))))
(define (inc x) (add1 x)) (define (double f) (λ (x) (f (f x)))) 4 3 256 This should return 13 : = > 21 ? (((λ (x) (double (double (double (double x))))) inc) 5) = ((double (double (double (double inc)))) 5) we 're incrementing by 16 , hence 21
c23962b5826624dd4fd8a3efe20c1318f402c952a58a102ec8471b82726887f2
jordwalke/rehp
firebug.ml
Js_of_ocaml library * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * 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 , with linking ...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/lib/js_of_ocaml/firebug.ml
ocaml
Js_of_ocaml library * / * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * 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 , with linking ...
1a867f8c69f0aa28c246fc735bef1c0723f1e1d787fdf7247c4c2dae1e5a1f9c
BranchTaken/Hemlock
test_hd.ml
open! Basis.Rudiments open! Basis open Deq let test () = let rec fn i n t = begin match i <= n with | false -> () | true -> begin let t' = push_back i t in let elm = hd t' in File.Fmt.stdout |> Fmt.fmt "hd " |> (pp Uns.pp) t' |> Fmt.fmt " = " |> Uns...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/deq/test_hd.ml
ocaml
open! Basis.Rudiments open! Basis open Deq let test () = let rec fn i n t = begin match i <= n with | false -> () | true -> begin let t' = push_back i t in let elm = hd t' in File.Fmt.stdout |> Fmt.fmt "hd " |> (pp Uns.pp) t' |> Fmt.fmt " = " |> Uns...
c0b54cabcb390cb96a5057418e200d3218bad12df1e514083fdd1d2f7b1086cc
aantron/luv
TCP.ml
This file is part of Luv , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) type t = [ `TCP ] Stream.t let init ?loop ?domain () = let tcp = Stream.allocate C.Types.TCP.t in let loop = Loop.or_default loop in let result = match domain with | No...
null
https://raw.githubusercontent.com/aantron/luv/4b49d3edad2179c76d685500edf1b44f61ec4be8/src/TCP.ml
ocaml
This code closely follows the implementation of close in handle.ml.
This file is part of Luv , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) type t = [ `TCP ] Stream.t let init ?loop ?domain () = let tcp = Stream.allocate C.Types.TCP.t in let loop = Loop.or_default loop in let result = match domain with | No...
8defc124d3cb0599570573cdf58a6211c1f52096e784bf54646cc3ed4c2bd7e3
gsdlab/clafer
ResolverInheritance.hs
# LANGUAGE FlexibleContexts # # LANGUAGE NamedFieldPuns # Copyright ( C ) 2012 - 2017 , < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including ...
null
https://raw.githubusercontent.com/gsdlab/clafer/a30a645ae1e4fc793851e53446d220924038873a/src/Language/Clafer/Intermediate/ResolverInheritance.hs
haskell
| Resolve Non-overlapping inheritance | Resolve overlapping inheritance | Resolve inherited and default cardinalities only for non-overlapping | Expand inheritance ----------------------------------------------------------------------------- -----------------------------------------------------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE NamedFieldPuns # Copyright ( C ) 2012 - 2017 , < > Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including ...
5a5cbff58aa061638d64ef30159c0ad501153dbdf25b8b39cd25a0bb0a496945
AdaCore/why3
debug_optim.ml
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/4441127004d53cf2cb0f722fed4a930ccf040ee4/src/util/debug_optim.ml
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception open Parsetree open Ast_mapper open Asttypes open Longident let ast_mapper argv = { Ast_mapper.default_m...
0fe1b3d84a52faeba4bfb2de49cafa61806dca4b09da4d9000cc31e1f2d73668
8c6794b6/guile-tjit
t-u64-01.scm
;;; Test for `uadd/immediate', `br-if-u64-<', `br-if-u64-='. (define (strange-sum a b) (if (= (modulo a 46) 10) (+ a b) (- a b))) (define (go) (let lp ((i 0) (acc 0)) (if (< i #e1e3) (lp (+ i 1) (+ acc (strange-sum i 10))) acc))) (go)
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-u64-01.scm
scheme
Test for `uadd/immediate', `br-if-u64-<', `br-if-u64-='.
(define (strange-sum a b) (if (= (modulo a 46) 10) (+ a b) (- a b))) (define (go) (let lp ((i 0) (acc 0)) (if (< i #e1e3) (lp (+ i 1) (+ acc (strange-sum i 10))) acc))) (go)
850ac5b44ccc52ab6dfba7b76029701bd0334b29902a82679481155070de528c
db48x/xe2
hive.lisp
(in-package :void) (defcell hive-floor (name :initform "Hive floor") (tile :initform "sprout-ground") (description :initform "This slimy membrane is richly coated with biosilicate excreta.")) (defcell pollen (name :initform "Type 1 biosilicate pollen") (tile :initform "pollen") (categories :initform '(:...
null
https://raw.githubusercontent.com/db48x/xe2/7896fcc69f5c6e28eaf6f6abb7966d6663370a66/void/hive.lisp
lisp
otherwise look for food Poison cells that harm the player [add-category stepper :toxic])) The excretors ; some enemy drop floor drop plasma pollen drop precious pollen3a drop clusters drop excretors player
(in-package :void) (defcell hive-floor (name :initform "Hive floor") (tile :initform "sprout-ground") (description :initform "This slimy membrane is richly coated with biosilicate excreta.")) (defcell pollen (name :initform "Type 1 biosilicate pollen") (tile :initform "pollen") (categories :initform '(:...
5aba095b4c1348df3fa363cc4198735be15351ee50eee0b0f25084bb7f972a98
cyverse-archive/DiscoveryEnvironmentBackend
collaborator.clj
(ns metadactyl.routes.domain.collaborator (:use [common-swagger-api.schema :only [describe]] [schema.core :only [defschema optional-key]])) (defschema Collaborator {(optional-key :id) (describe String "The collaborator's ID in Trellis") (optional-key :email) (describe String "The collabor...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/metadactyl-clj/src/metadactyl/routes/domain/collaborator.clj
clojure
(ns metadactyl.routes.domain.collaborator (:use [common-swagger-api.schema :only [describe]] [schema.core :only [defschema optional-key]])) (defschema Collaborator {(optional-key :id) (describe String "The collaborator's ID in Trellis") (optional-key :email) (describe String "The collabor...
ec0fe6fec3596b82e2853df5d7497cfc252609d57bc7b64855d4fd461493c405
charJe/funds
avl.lisp
;;;; Copyright 2007 ;;;; 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 distr...
null
https://raw.githubusercontent.com/charJe/funds/bdc40045d08a36a6e81bd33ffffa752d99b08e60/src/trees/avl.lisp
lisp
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing pe...
Copyright 2007 distributed under the License is distributed on an " AS IS " BASIS , (in-package :funds) (defun parent-height (t1 t2) (let ((h1 (tree-height t1)) (h2 (tree-height t2))) (1+ (if (> h1 h2) h1 h2)))) (defun height-difference (t1 t2) (- (tree-height t1) (tree-height t2))) (defun hea...
dc5fe8e38e36c33e4af71905e276f9d51e976b37debef9780086c68ee5d97548
fujita-y/ypsilon
primitive.scm
#!nobacktrace (library (srfi :41 streams primitive) (export _ define-stream list->stream port->stream stream stream->list stream-append stream-car stream-cdr stream-concat stream-cons stream-constant ...
null
https://raw.githubusercontent.com/fujita-y/ypsilon/820aa1b0258eb1854172c7909aef7462bb0e2adb/sitelib/srfi/%253a41/streams/primitive.scm
scheme
#!nobacktrace (library (srfi :41 streams primitive) (export _ define-stream list->stream port->stream stream stream->list stream-append stream-car stream-cdr stream-concat stream-cons stream-constant ...
8009137aafef64674e7554422a56e2f777200b01ed39bd3e0e676a9b6b18cee3
innoq/statuses
json.clj
(ns statuses.views.json (:require [statuses.routes :refer [avatar-path profile-path update-path]])) (defn add-avatar [items] (map #(assoc % :avatar (avatar-path (:author %))) items)) (defn add-profile [items] (map #(assoc % :profile (profile-path (:author %))) items)) (defn add-self [items] (map #(assoc % :s...
null
https://raw.githubusercontent.com/innoq/statuses/66f3f8c8c88bc6445d63ac29310a93baa2e3cf23/src/statuses/views/json.clj
clojure
(ns statuses.views.json (:require [statuses.routes :refer [avatar-path profile-path update-path]])) (defn add-avatar [items] (map #(assoc % :avatar (avatar-path (:author %))) items)) (defn add-profile [items] (map #(assoc % :profile (profile-path (:author %))) items)) (defn add-self [items] (map #(assoc % :s...
681bfad854c42a0c76c03b590b7fc83dfc076779855f40f62136e81d9a706da3
TrustInSoft/tis-kernel
metrics_coverage.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/metrics/metrics_coverage.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
9695909e39bfab5ffd78b1605cf3bbbb4f351d056107c608e4569487c25516b6
haskell/hackage-server
Feature.hs
-- | This module defines a plugin interface for Hackage features. -- # LANGUAGE ExistentialQuantification , RankNTypes , NoMonomorphismRestriction # module Distribution.Server.Framework.Feature ( -- * Main datatypes HackageFeature(..) , IsHackageFeature(..) , emptyHackageFeature -- * State components , ...
null
https://raw.githubusercontent.com/haskell/hackage-server/8ec64a1a30b6d53e4e86235c50e398ec803f50f1/src/Distribution/Server/Framework/Feature.hs
haskell
| This module defines a plugin interface for Hackage features. * Main datatypes * State components * Cache components * Re-exports | We compose the overall Hackage server featureset from a bunch of these by allowing distinct features to be designed independently. Features can hold their own canonical state an...
# LANGUAGE ExistentialQuantification , RankNTypes , NoMonomorphismRestriction # module Distribution.Server.Framework.Feature HackageFeature(..) , IsHackageFeature(..) , emptyHackageFeature , StateComponent(..) , OnDiskState(..) , AbstractStateComponent(..) , abstractAcidStateComponent , abstractAcidSt...
f7a9825c4f8054693e4dc0d9b0f0c3efe4b8de92a3e0c528a86a9655902586d0
scalaris-team/scalaris
erl_id_trans.erl
` ` 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 Public License along with this software. If not, it can be %% retrieved via the world wide...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/test/erl_id_trans.erl
erlang
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 via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations ...
` ` 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 " The Initial Developer of the Original Code is Ericsson Utvecklings AB . Portions created by Eri...
8e36df2d1e1f26f1610aa935bbb26fb0b30421d32ffcf0483a0517e309b4df6e
haskus/haskus-system
Disassembler.hs
# LANGUAGE LambdaCase # module Haskus.Apps.Disassembler ( disassX86_64 ) where import Prelude hiding (replicate,length) import qualified Haskus.Utils.Text as Text import Haskus.Utils.Text (Text) import Haskus.Binary.Buffer import Haskus.Arch.X86_64.ISA.Mode import Haskus.Arch.X86_64.ISA.Size import Haskus.Arch...
null
https://raw.githubusercontent.com/haskus/haskus-system/38b3a363c26bc4d82e3493d8638d46bc35678616/haskus-system/src/lib/Haskus/Apps/Disassembler.hs
haskell
| Disassemble a buffer containing X86-64 assembly. Enable all the extensions disassembled buffer arch mode builder show an instruction show a disassembled entry TODO: show mem type
# LANGUAGE LambdaCase # module Haskus.Apps.Disassembler ( disassX86_64 ) where import Prelude hiding (replicate,length) import qualified Haskus.Utils.Text as Text import Haskus.Utils.Text (Text) import Haskus.Binary.Buffer import Haskus.Arch.X86_64.ISA.Mode import Haskus.Arch.X86_64.ISA.Size import Haskus.Arch...
2f6c411a47073d69be6d35572b503f990a15699f29c85231a5ce16d3398b14ff
DHSProgram/DHS-Indicators-SPSS
DV_cntrl.sps
* Encoding: UTF-8. ***************************************************************************************************** Program: DV_cntrl.sps Purpose: Code marital control indicators from the IR file Data inputs: IR dataset Data outputs: coded variables Author: Courtney Allen and translated to SPSS by Iv...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap17_DV/DV_cntrl.sps
scheme
* Encoding: UTF-8. ***************************************************************************************************** Program: DV_cntrl.sps Purpose: Code marital control indicators from the IR file Data inputs: IR dataset Data outputs: coded variables Author: Courtney Allen and translated to SPSS by Iv...
92f37a0933a918887e7f0971139bfe62fb37a6f8bbb4ae37475dbfe035351510
lojic/LearningRacket
day22-part1.rkt
#lang racket (define (parse file-name) (define pat #px"^(on|off) x=([-0-9]+)..([-0-9]+),y=([-0-9]+)..([-0-9]+),z=([-0-9]+)..([-0-9]+)$") (for/list ([ line (in-list (file->lines file-name)) ]) (let ([ groups (regexp-match pat line) ]) (let ([ on? (string=? "on" (second groups)) ] [ nums (...
null
https://raw.githubusercontent.com/lojic/LearningRacket/5f67cb8705c56243f5097f593109cdbb5bd1cc8e/advent-of-code-2021/solutions/day22/day22-part1.rkt
racket
#lang racket (define (parse file-name) (define pat #px"^(on|off) x=([-0-9]+)..([-0-9]+),y=([-0-9]+)..([-0-9]+),z=([-0-9]+)..([-0-9]+)$") (for/list ([ line (in-list (file->lines file-name)) ]) (let ([ groups (regexp-match pat line) ]) (let ([ on? (string=? "on" (second groups)) ] [ nums (...
58cdc36154dd39ada5c23a898880831f78a55d76a00abf73359eb99c7ce91acf
MaskRay/OJHaskell
64.hs
import Data.List continuedFraction n = loop 0 1 a0 where a0 = floor . sqrt . fromIntegral $ n loop g h a | g1 == a0 && h1 == 1 = 1 | otherwise = 1 + loop g1 h1 a1 where g1 = a*h-g h1 = (n-g1^2) `div` h a1 = (g1+...
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/Project%20Euler/64.hs
haskell
import Data.List continuedFraction n = loop 0 1 a0 where a0 = floor . sqrt . fromIntegral $ n loop g h a | g1 == a0 && h1 == 1 = 1 | otherwise = 1 + loop g1 h1 a1 where g1 = a*h-g h1 = (n-g1^2) `div` h a1 = (g1+...
108062bfc8d651b2b65382efe5f16c8fb9f5c210355620bca5e88eea6e52a45d
mirage/capnp-rpc
msg.ml
module Log = Capnp_rpc.Debug.Log module B = Schema.Builder module R = Schema.Reader module RO_array = Capnp_rpc.RO_array module StructStorage = Capnp.Message.BytesMessage.StructStorage type Capnp.MessageSig.attachments += RPC_attachments of Capnp_rpc.S.attachments module Path = struct type t = Xform.t list let co...
null
https://raw.githubusercontent.com/mirage/capnp-rpc/f04fa96a583994b71731bc1288833f8304c9ce81/capnp-rpc-lwt/msg.ml
ocaml
We can sometimes avoid a copy by returning the builder directly. e.g. the application code builds a call and passes it to a proxy, which transmits it over the network. A message can only be transmitted once. Call message with interface_id, method_id and payload.content filled in todo: set init size from src;...
module Log = Capnp_rpc.Debug.Log module B = Schema.Builder module R = Schema.Reader module RO_array = Capnp_rpc.RO_array module StructStorage = Capnp.Message.BytesMessage.StructStorage type Capnp.MessageSig.attachments += RPC_attachments of Capnp_rpc.S.attachments module Path = struct type t = Xform.t list let co...
a59a679d869a0185c3a0db20146e661a98b33e571474b25f502d57e95e7e571f
mirage/mirage-tcpip
tcp.mli
type error = [ `Timeout | `Refused] type write_error = [ error | Mirage_flow.write_error ] val pp_error : error Fmt.t val pp_write_error : write_error Fmt.t (** Configuration for TCP keep-alives. Keep-alive messages are probes sent on an idle connection. If no traffic is received after a certain number of pro...
null
https://raw.githubusercontent.com/mirage/mirage-tcpip/3ab30ab7b43dede75abf7b37838e051e0ddbb23a/src/core/tcp.mli
ocaml
* Configuration for TCP keep-alives. Keep-alive messages are probes sent on an idle connection. If no traffic is received after a certain number of probes are sent, then the connection is assumed to have been lost. * initial delay before sending probes on an idle connection *...
type error = [ `Timeout | `Refused] type write_error = [ error | Mirage_flow.write_error ] val pp_error : error Fmt.t val pp_write_error : write_error Fmt.t module Keepalive: sig type t = { } end module type S = sig type nonrec error = private [> error] type nonrec write_error = private [> write_error] ...
697f993f2e16822c4340ae5d90763dabadfd53f92335046beee12becc4a16a0b
skanev/playground
16.scm
SICP exercise 3.16 ; decides to write a procedure to count the number of pairs in ; any list structure. "It's easy," he reasons. "The number of pairs in any ; structure is the number in the car plus the number in the cdr plus one more to count the current pair . " So writes the following procedure : ; ; (def...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/03/16.scm
scheme
any list structure. "It's easy," he reasons. "The number of pairs in any structure is the number in the car plus the number in the cdr plus one more (define (count-pairs x) (if (not (pair? x)) 0 (+ (count-pairs (car x)) 1))) Show that this procedure is not correct. In particu...
SICP exercise 3.16 decides to write a procedure to count the number of pairs in to count the current pair . " So writes the following procedure : ( count - pairs ) ) diagrams representing list structures made up of exactly three pairs for 3 : + ---+---+ + ---+---+ + ---+---+ 4 : ...
a14522a015bc9f8c89a1161b20a1bb01412278fb845417ccc1fa7e53dbe6f1e4
cedlemo/OCaml-GI-ctypes-bindings-generator
Unix_output_stream.mli
open Ctypes type t val t_typ : t typ val create : int32 -> bool -> Output_stream.t ptr val get_close_fd : t -> bool val get_fd : t -> int32 val set_close_fd : t -> bool -> unit
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gio/Unix_output_stream.mli
ocaml
open Ctypes type t val t_typ : t typ val create : int32 -> bool -> Output_stream.t ptr val get_close_fd : t -> bool val get_fd : t -> int32 val set_close_fd : t -> bool -> unit
389fc583fafe342444015d105799058b2366424a795e516dbd5519a8bd1bc261
CodyReichert/qi
unix-opts.lisp
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp -*- ;;; ;;; Unix-opts — a minimalistic parser of command line options. ;;; Copyright © 2015 ;;; ;;; Permission is hereby granted, free of charge, to any person obtaining a ;;; copy of this software and associated documentation files (the " Software " ) , to deal in the...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/unix-opts-master/unix-opts.lisp
lisp
-*- Mode: Lisp; Syntax: ANSI-Common-Lisp -*- Unix-opts — a minimalistic parser of command line options. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the f...
Copyright © 2015 " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to in all copies or substantial portions of the Software . THE SOFTWARE IS PRO...
90e30e8671d0de774e83edd1133d38a3ca4e36cf48bef864fbc1de37945bb786
ryanl/haskell-raytracer
Image.hs
module Image where -- Join a list of strings using a separator string. join :: String -> [String] -> String join sep [x] = x join sep (x:xs) = x ++ sep ++ join sep xs -- Test for "join". test_join :: Bool test_join = join "t" ["12", "3", "", "xy"] == "12t3ttxy" -- We'll (rather crudely) represent a colour by...
null
https://raw.githubusercontent.com/ryanl/haskell-raytracer/a5585c63af263d14c1ce50049025f3973916b278/src/Image.hs
haskell
Join a list of strings using a separator string. Test for "join". We'll (rather crudely) represent a colour by a list of integers, and an image by width, height and a list of colour samples. sufficient for our needs. Test for "create_ppm". Produce a file "test0.ppm".
module Image where join :: String -> [String] -> String join sep [x] = x join sep (x:xs) = x ++ sep ++ join sep xs test_join :: Bool test_join = join "t" ["12", "3", "", "xy"] == "12t3ttxy" This does n't capture the fact that colours have 3 channels : red , green and blue , or the fact that there will be...
7ccfef38c8be72b5cf7fa560df209ddbbb40338efa814268844c958cac942aae
wdhowe/clojure-snippets
if_do_when.clj
;; if, do, when operators. ; symbol for testing (def mynum -100) ;; if ; (if test-condition ; (then) ; (optional-else)) (if (even? mynum) (println "My num is even.") (println "My num is odd.")) ;; do - wrap up multiple lines (if (even? mynum) (do (println "\nIt is even.") (println "...Steven.")) (...
null
https://raw.githubusercontent.com/wdhowe/clojure-snippets/0c3247ce99a563312b549d03f080b8cf449b541d/flow_control/if_do_when.clj
clojure
if, do, when operators. symbol for testing if (if test-condition (then) (optional-else)) do - wrap up multiple lines when - combination of if/do with no else
(def mynum -100) (if (even? mynum) (println "My num is even.") (println "My num is odd.")) (if (even? mynum) (do (println "\nIt is even.") (println "...Steven.")) (do (println "It is odd.") (println "...Todd."))) (when (neg? mynum) (println "\nI'm pretty sure its negative, but I'm not positiv...
e3eca614a755c934b5d3243c5f86d684793eb55a9b655f3f2e05552a66f9df33
CloudI/CloudI
syslog_socket.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : %%% %%%------------------------------------------------------------------------ %%% @doc = = Erlang syslog Client A minimal syslog client interface that supports both RFC31...
null
https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/lib/syslog_socket/src/syslog_socket.erl
erlang
------------------------------------------------------------------------ @doc @end Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Softwar...
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : = = Erlang syslog Client A minimal syslog client interface that supports both RFC3164 and RFC5424 . MIT License Copyright ( c ) 2016 - 2018 < mjtruog at protonmail do...
61dd993c2723d776ed7ab756d4fc5f21c0e8d8452c37a118e70abd4ecead91a9
hipsleek/hipsleek
slicing.ml
#include "xdebug.cppo" open VarGen open Globals open Cpure open Mcpure_D open Gen module CP = Cpure let print_mp_f = ref (fun (c: memo_pure) -> "printing not initialized") (************************************) (* Signatures for Slicing Framework *) (************************************) Signature of Atomic Const...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/slicing.ml
ocaml
********************************** Signatures for Slicing Framework ********************************** Used by IsRelevant meta-predicate fv_of_label returns list of strongly and weakly linking variables Slice - List of Atomic Constraints split_by_fv is used in Quantifier pushing The integer parameters can be...
#include "xdebug.cppo" open VarGen open Globals open Cpure open Mcpure_D open Gen module CP = Cpure let print_mp_f = ref (fun (c: memo_pure) -> "printing not initialized") Signature of Atomic Constraints module type ATOM_TYPE = sig type t val fv: t -> spec_var list afv ( fv with annotation ) returns the pa...
7e024813dd747415790d0d1b134a40bb436070175389cf24590792ca5f1afd60
racket/plot
deprecated.rkt
#lang racket/base (require racket/contract racket/class plot/utils "../common/deprecation-warning.rkt" "renderers.rkt") (provide mix (contract-out [line (->* [(real? . -> . (or/c real? (vector/c real? real?)))] [#:samples (and/c exact-integer? (>=/c 2)) #:w...
null
https://raw.githubusercontent.com/racket/plot/c4126001f2c609e36c3aa12f300e9c673ab1a806/plot-lib/plot/private/deprecated/deprecated.rkt
racket
#lang racket/base (require racket/contract racket/class plot/utils "../common/deprecation-warning.rkt" "renderers.rkt") (provide mix (contract-out [line (->* [(real? . -> . (or/c real? (vector/c real? real?)))] [#:samples (and/c exact-integer? (>=/c 2)) #:w...
0e054417ef5f70cb1d55e8643c8beafe2f1eb2453679b27117ac246cf64f82eb
apinf/proxy42
vegur_req.erl
Copyright ( c ) 2013 - 2015 , Heroku Inc < > . %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the following conditions are %%% met: %%% %%% * Redistributions of source code must retain the above copyright %%% notice,...
null
https://raw.githubusercontent.com/apinf/proxy42/01b483b711881391e8306bf64b83b4df9d0bc832/apps/vegur/src/vegur_req.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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions...
Copyright ( c ) 2013 - 2015 , Heroku Inc < > . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , ...
8661354fb9f4206b31ca029cfd780934061d5ed290db4b1b8c7b1e16f0951070
mirage/irmin-rpc
codec_intf.ml
open Raw type info_struct = Builder.Info.struct_t type commit_struct = Builder.Commit.Value.struct_t type ('hash, 'step) concrete_tree = [ `Contents of 'hash | `Tree of ('step * ('hash, 'step) concrete_tree) list ] module type SERIALISABLE = sig type t val encode : t -> string val decode : string -> (t, [...
null
https://raw.githubusercontent.com/mirage/irmin-rpc/e85663194efa049a44238522f1310387b4525249/src/irmin-rpc/codec_intf.ml
ocaml
open Raw type info_struct = Builder.Info.struct_t type commit_struct = Builder.Commit.Value.struct_t type ('hash, 'step) concrete_tree = [ `Contents of 'hash | `Tree of ('step * ('hash, 'step) concrete_tree) list ] module type SERIALISABLE = sig type t val encode : t -> string val decode : string -> (t, [...
9e6a3a819d29b8685c9047a7a281f52559c2a7686a75a24ad0a91383140c2da9
maximedenes/native-coq
coqdep.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/tools/coqdep.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Printf open Coqdep_lexer...
ae4ad6588cb9ec37d3e16af8687b082a2c0ed053a5f962230df380c15a0912be
lazerwalker/clojurescript-koans
12_creating_functions.cljs
(ns koans.meditations.creating-functions) (def koans '( "One may know what they seek by knowing what they do not seek" (= [:__] (let [not-a-symbol? (complement symbol?)] (map not-a-symbol? [:a 'b "c"]))) "Praise and 'complement' may help you separate the wheat from the chaff" (= [:wheat "whe...
null
https://raw.githubusercontent.com/lazerwalker/clojurescript-koans/c4713e3ccafad2229c5eae038d8bbf433d0d026e/src/koans/meditations/12_creating_functions.cljs
clojure
(ns koans.meditations.creating-functions) (def koans '( "One may know what they seek by knowing what they do not seek" (= [:__] (let [not-a-symbol? (complement symbol?)] (map not-a-symbol? [:a 'b "c"]))) "Praise and 'complement' may help you separate the wheat from the chaff" (= [:wheat "whe...
56fed8b9ac89c96b7beb7ca036ce198201cc5d0f8f0062ff27a2f246a24893b6
luc-tielen/eclair-lang
Prelude.hs
module Prelude ( module Relude , module Control.Arrow , module Control.Monad.Writer.Strict , module Control.Monad.RWS.Strict , module Control.Monad.Except , module Control.Category , module Control.Comonad , module Data.Functor.Foldable , module Data.Functor.Foldable.TH , module GHC.TypeLits , mod...
null
https://raw.githubusercontent.com/luc-tielen/eclair-lang/fc07f28252ae26dc81e4fc7925dcc74e22c8c1f7/lib/Prelude.hs
haskell
module Prelude ( module Relude , module Control.Arrow , module Control.Monad.Writer.Strict , module Control.Monad.RWS.Strict , module Control.Monad.Except , module Control.Category , module Control.Comonad , module Data.Functor.Foldable , module Data.Functor.Foldable.TH , module GHC.TypeLits , mod...
6655b66e3e83333d7d60620c0b6dc5534c75ee5a0d9165a17b000435e7920ca5
witan-org/witan
id.mli
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/core/structures/id.mli
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
bb33ebaa0b6fed28290c8574e2ed1af2505a63d5f0140fd673d7f8fb38a97989
sellout/method-combination-utilities
method-combination-expand.lisp
(in-package #:method-combination-utilities) (defun method-combination-expander-function (method-combination) (declare (ignorable method-combination)) (or #+ccl (handler-case (cdr (ccl::method-combination-expander method-combination)) (ccl::no-applicable-method-exists () nil)) #+clisp ...
null
https://raw.githubusercontent.com/sellout/method-combination-utilities/9abd3ffd8c10cbaa16664dec05e0db9c87ab51dc/src/method-combination-expand.lisp
lisp
(in-package #:method-combination-utilities) (defun method-combination-expander-function (method-combination) (declare (ignorable method-combination)) (or #+ccl (handler-case (cdr (ccl::method-combination-expander method-combination)) (ccl::no-applicable-method-exists () nil)) #+clisp ...
6f4a319099a54e636deff21b25a252e9b1a94048d7384b96671f1dd05b653a9c
hopv/r_type
runner.ml
open Core open Program module Defs = struct module Map = Identity.Map type closure_t = { name: Identity.t; exp: Exp.t; vars: Identity.t list; ty: Type.RefType.t; mutable env: env_t; } [@@deriving fields, sexp, eq, ord] and value_t = Fail | Basic of Objt.t | Clos of closure_t [@@deriving...
null
https://raw.githubusercontent.com/hopv/r_type/7120b74912118a8eced8e63d1792907702e090dc/src/loader/runner.ml
ocaml
open Core open Program module Defs = struct module Map = Identity.Map type closure_t = { name: Identity.t; exp: Exp.t; vars: Identity.t list; ty: Type.RefType.t; mutable env: env_t; } [@@deriving fields, sexp, eq, ord] and value_t = Fail | Basic of Objt.t | Clos of closure_t [@@deriving...
8185495d622a6e0a07c87b162b1805184a26d3b94ed4cf2ae52fda873973f79a
robstewart57/hdph-rs
FTStrategies.hs
Strategies ( and skeletons ) in the Par monad -- Author : ----------------------------------------------------------------------------- for type annotations in Static decl # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # module Control...
null
https://raw.githubusercontent.com/robstewart57/hdph-rs/5074e7de02ec13707361b1c117fa25c8a796b59e/src/Control/Parallel/HdpH/FTStrategies.hs
haskell
--------------------------------------------------------------------------- # LANGUAGE DeriveDataTypeable # * Strategy type * Basic sequential strategies * Fully forcing Closure strategy * Proto-strategies for generating parallelism * Strategies for lists ** Clustering strategies * Task farm skeletons | Task f...
Strategies ( and skeletons ) in the Par monad Author : for type annotations in Static decl # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # # LANGUAGE DeriveGeneric # module Control.Parallel.HdpH.FTStrategies Strategy, using, r0, rseq, rdeepseq, forceC, forceCC, F...
ff636dff6731d97107b7a5bda37313177462908c15ce98edadde53fbde2a039b
burkaydurdu/mock-ui
effects.cljs
(ns mock-ui.effects (:require [re-frame.core :refer [reg-fx]] [mock-ui.routes :refer [navigate! set-uri-token!]] [mock-ui.util :as util] [mock-ui.socket :as socket])) (reg-fx :navigate (fn [handler] (navigate! handler))) (reg-fx :set-user! (fn [user] (util/set-item! ...
null
https://raw.githubusercontent.com/burkaydurdu/mock-ui/eb92657a33100ca10b80827abf7c7acdf7d397bb/src/mock_ui/effects.cljs
clojure
(ns mock-ui.effects (:require [re-frame.core :refer [reg-fx]] [mock-ui.routes :refer [navigate! set-uri-token!]] [mock-ui.util :as util] [mock-ui.socket :as socket])) (reg-fx :navigate (fn [handler] (navigate! handler))) (reg-fx :set-user! (fn [user] (util/set-item! ...
e13fbf0879d64b5eba93615998d3965182dc52b1fe7ac86728976581c6795e30
yav/presburger
isabelle.hs
The first examples are Translated from : HOL / ex / PresburgerEx.thy by , TU Muenchen We added more as needed . HOL/ex/PresburgerEx.thy by Amine Chaieb, TU Muenchen We added more as needed. -} import Data.Integer.Presburger main = print $ isTrue ex21 allOk = all isTrue [ ex1, ex2, ex3, ex4, ex5 ...
null
https://raw.githubusercontent.com/yav/presburger/e38e61ccd1004d03ab28a1a3691d8a3c451d0164/tests/isabelle.hs
haskell
HARD! hm?
The first examples are Translated from : HOL / ex / PresburgerEx.thy by , TU Muenchen We added more as needed . HOL/ex/PresburgerEx.thy by Amine Chaieb, TU Muenchen We added more as needed. -} import Data.Integer.Presburger main = print $ isTrue ex21 allOk = all isTrue [ ex1, ex2, ex3, ex4, ex5 ...
64c5194499a1c58cad1a2cf9177541de4d9b3ca86bf74f25d34b660ea2a0c3a8
brick-lang/kiln
kiln.ml
open Core open Cmdliner let fire_docstring = "Compile a project or file" let fire_cmd = let files = Arg.(value & pos_all file [] & info [] ~docv:"FILE or DIR") in let exits = Term.default_exits in Term.(const Driver.codegen_files $ files), Term.info "fire" ~doc:fire_docstring ~exits let parse_docstring = "Pars...
null
https://raw.githubusercontent.com/brick-lang/kiln/21ec6fe8dfd2a807e514c9a794abbf48a7836ab3/driver/kiln.ml
ocaml
open Core open Cmdliner let fire_docstring = "Compile a project or file" let fire_cmd = let files = Arg.(value & pos_all file [] & info [] ~docv:"FILE or DIR") in let exits = Term.default_exits in Term.(const Driver.codegen_files $ files), Term.info "fire" ~doc:fire_docstring ~exits let parse_docstring = "Pars...
e2524846ea21ac2e76202d51598f597630c4a0c10d0042e1b88ab7c8326a3c38
cj1128/sicp-review
2.56.scm
(load "sd-basic.scm") ; For exponentiation (define (exponentiation? exp) (eq? (car exp) '**)) (define (base exp) (cadr exp)) (define (exponent exp) (caddr exp)) (define (make-exponentiation base exponent) (cond ((= exponent 0) 1) ((= exponent 1) base) (else (list '** base exponent)))) (d...
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.3/2.56.scm
scheme
For exponentiation
(load "sd-basic.scm") (define (exponentiation? exp) (eq? (car exp) '**)) (define (base exp) (cadr exp)) (define (exponent exp) (caddr exp)) (define (make-exponentiation base exponent) (cond ((= exponent 0) 1) ((= exponent 1) base) (else (list '** base exponent)))) (define (deriv exp var)...
c510ef4f30e81a384a530d253df7c1ad92f2e6b187e209f50455b9d48e658c54
hakaru-dev/hakaru
Transforms.hs
# LANGUAGE FlexibleContexts , GADTs , ScopedTypeVariables , DataKinds , TypeOperators , OverloadedStrings , LambdaCase # , GADTs , ScopedTypeVariables , DataKinds , TypeOperators ...
null
https://raw.githubusercontent.com/hakaru-dev/hakaru/94157c89ea136c3b654a85cce51f19351245a490/haskell/Language/Hakaru/Syntax/AST/Transforms.hs
haskell
# OPTIONS_GHC -Wall -fwarn-tabs # ------------------------------------------------------------- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------
# LANGUAGE FlexibleContexts , GADTs , ScopedTypeVariables , DataKinds , TypeOperators , OverloadedStrings , LambdaCase # , GADTs , ScopedTypeVariables , DataKinds , TypeOperators ...
40bf4d5a67b360d0dba4dd5391abf7edc2c80f7bf1ec2db8a8fd9aa0131119f8
kindista/kindista
about.lisp
Copyright 2012 - 2015 CommonGoods Network , Inc. ;;; This file is part of Kindista . ;;; Kindista is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ;;; (at you...
null
https://raw.githubusercontent.com/kindista/kindista/60da1325e628841721200aa00e4de5f9687c0adb/src/features/about.lisp
lisp
(at your option) any later version. without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
Copyright 2012 - 2015 CommonGoods Network , Inc. This file is part of Kindista . Kindista is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or Kindista is distr...
2a7c93080543119f1cf6e69aeae80e3feb1a2bc7f322515b0e1b32593bba6185
haskell-gi/gi-gtk-examples
Completion.hs
-- Demo to show off entry completion. import Graphics.UI.Gtk import Data.Char import Data.List data ColorDesc = ColorDesc { cdColor :: Color, cdName :: String } deriving Show compareCol :: ColumnId ColorDesc String compareCol = makeColumnIdString 0 invertColor (Color r g b) = Color (32767+r) (32767+g) (32767+b) ...
null
https://raw.githubusercontent.com/haskell-gi/gi-gtk-examples/4c4f06dc91fbb9b9f50cdad295c8afe782e0bdec/treelist/Completion.hs
haskell
Demo to show off entry completion.
import Graphics.UI.Gtk import Data.Char import Data.List data ColorDesc = ColorDesc { cdColor :: Color, cdName :: String } deriving Show compareCol :: ColumnId ColorDesc String compareCol = makeColumnIdString 0 invertColor (Color r g b) = Color (32767+r) (32767+g) (32767+b) Color ( 65535 - r ) ( 65535 - g ) ( 65...
789075ddd1206cc103b1921ce78b08d8f696e9d3fbf50ca9bc089746f0d24605
aluuu/spatial_index
rtree.ml
open Core open Rtree_intf module Tree (BB: Bounding_box_intf.S) = struct type bb = BB.t type 'a t = Empty | Node of (bb * 'a t) list | Leaf of (bb * 'a) list type op_result = Condense | Noop let empty = Empty let empty_node = (BB.empty, Empty) let bounding...
null
https://raw.githubusercontent.com/aluuu/spatial_index/ee9dbd23c274b35e9fddab98d30369e1d311a13a/src/rtree.ml
ocaml
open Core open Rtree_intf module Tree (BB: Bounding_box_intf.S) = struct type bb = BB.t type 'a t = Empty | Node of (bb * 'a t) list | Leaf of (bb * 'a) list type op_result = Condense | Noop let empty = Empty let empty_node = (BB.empty, Empty) let bounding...
6ec019d87a4e049eaf7fbfdc2b8e9e4294c69487b31753a242b13ccbfdf563f1
CGenie/haskell-snake
MainWrapper.hs
# LANGUAGE ForeignFunctionInterface # module MainWrapper where import Main (main) foreign export ccall "haskell_main" main :: IO ()
null
https://raw.githubusercontent.com/CGenie/haskell-snake/3783e65632cd89691f63bff0ff51ede9efbe81bd/driver/MainWrapper.hs
haskell
# LANGUAGE ForeignFunctionInterface # module MainWrapper where import Main (main) foreign export ccall "haskell_main" main :: IO ()
9281988376e4e62fdec0e2e4f30bd3a031d8fba7da5735f4bfb52589ea99fb3c
msantos/srly
srly.erl
Copyright ( c ) 2011 - 2021 < > . 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 above copyright notice , %%% this list o...
null
https://raw.githubusercontent.com/msantos/srly/405d75b6c6f70a26d9281910c9c9e2d14b41908a/src/srly.erl
erlang
rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documentation and/or other m...
Copyright ( c ) 2011 - 2021 < > . All 1 . Redistributions of source code must retain the above copyright notice , 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of the copyright holder nor the names of its " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDI...
60b6b842e266a887e88c2f05409a78e869360c1230e72f4d770bda17ee4ad1e5
pirapira/coq2rust
ftactic.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/tactics/ftactic.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Focussing tactics * Type of tacti...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Proofview.Notations ty...
de46964da74bdba7013b70d2267732c9eb7ef0ef92586a4f615e1731459c1e93
matijapretnar/eff
multicoreQueens.ml
type empty;; let absurd void = match void with | _ -> assert false;; let no_attack (x, y) (x', y') = x <> x' && y <> y' && abs (x - x') <> abs (y - y') let rec not_attacked x' = function | [] -> true | x :: xs -> if no_attack x' x then not_attacked x' xs else false let available (number_of_queens, x, qs) = ...
null
https://raw.githubusercontent.com/matijapretnar/eff/0b0ec7a83e7db4d040ed8fdfc1ac6e3c0f344be1/misc/old-benchmarks-for-other-systems/multicoreQueens.ml
ocaml
**************************************************************************** ****************************************************************************
type empty;; let absurd void = match void with | _ -> assert false;; let no_attack (x, y) (x', y') = x <> x' && y <> y' && abs (x - x') <> abs (y - y') let rec not_attacked x' = function | [] -> true | x :: xs -> if no_attack x' x then not_attacked x' xs else false let available (number_of_queens, x, qs) = ...
05280fd9de6e97597357edb4e96467fc3b26b861efb89414358269088a3da483
stevenvar/OMicroB
test.ml
open Avr let test1 () = let rec f x = if x = 0 then 0 else g (x - 1) + 1 and g x = if x = 0 then 0 else h (x - 1) + 10 and h x = if x = 0 then 0 else f (x - 1) + 100 in f 10 let () = pin_mode PIN10 OUTPUT; tracei (test1 ()) let iterLeds leds = let rec run l re...
null
https://raw.githubusercontent.com/stevenvar/OMicroB/e4324d0736ac677b3086741dfdefb0e46775642b/tests/recfun/test.ml
ocaml
open Avr let test1 () = let rec f x = if x = 0 then 0 else g (x - 1) + 1 and g x = if x = 0 then 0 else h (x - 1) + 10 and h x = if x = 0 then 0 else f (x - 1) + 100 in f 10 let () = pin_mode PIN10 OUTPUT; tracei (test1 ()) let iterLeds leds = let rec run l re...
d9fa1605c06e9df9a54534a3d3c2fd9ad554ad200b374cd7e1c9d1e2b46a54a5
hesselink/kqueue
MonitorFile.hs
import Control.Monad import Foreign.Ptr import System.KQueue import System.Posix.IO -- Monitor file 'foo for changes until it is deleted. Prints the -- events as they are received. The file has to exist when this -- program is started. main = do Initialize the queue . kq <- kqueue Open file descriptor . fd <- ...
null
https://raw.githubusercontent.com/hesselink/kqueue/768a76052f166281c8f3feb0cc4b6beee01808cd/examples/MonitorFile.hs
haskell
Monitor file 'foo for changes until it is deleted. Prints the events as they are received. The file has to exist when this program is started. Add or poll the event. If something happened, print it. If the file was deleted, stop. Otherwise, continue polling.
import Control.Monad import Foreign.Ptr import System.KQueue import System.Posix.IO main = do Initialize the queue . kq <- kqueue Open file descriptor . fd <- openFd "foo" ReadOnly Nothing defaultFileFlags Construct the event to monitor . let event = KEvent { ident = fromIntegral fd , evfil...
4ac1c98324174533b968a43ee2d5f4675d5720d54f69d8f333686230653b493e
imitator-model-checker/imitator
PTA2JPG.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/PTA2JPG.ml
ocaml
*********************************************************** Functions *********************************************************** Create the array of dot colors Coloring function for each thing If more colors than our array: white Add a header to the model Retrieve the input options Convert a sync into a st...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Laboratoire Spécification et Vérification ( ENS Cachan & CNRS , France ) * Université Paris 13 , LIPN , CNRS , France * Université de Lorraine ,...
450fdda0336b31f7d017e04c19619be8126c17efb6d50cb82661b01484b15bce
expipiplus1/vulkan
DescriptorSetLayoutCreateFlagBits.hs
{-# language CPP #-} -- No documentation found for Chapter "DescriptorSetLayoutCreateFlagBits" module Vulkan.Core10.Enums.DescriptorSetLayoutCreateFlagBits ( DescriptorSetLayoutCreateFlags , DescriptorSetLayoutCreateFlagBits( DESCRIPTOR_SET_LAYOUT_CREATE_HO...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/70d8cca16893f8de76c0eb89e79e73f5a455db76/src/Vulkan/Core10/Enums/DescriptorSetLayoutCreateFlagBits.hs
haskell
# language CPP # No documentation found for Chapter "DescriptorSetLayoutCreateFlagBits" | VkDescriptorSetLayoutCreateFlagBits - Bitmask specifying descriptor set layout properties = See Also <-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>, | 'DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT' spe...
module Vulkan.Core10.Enums.DescriptorSetLayoutCreateFlagBits ( DescriptorSetLayoutCreateFlags , DescriptorSetLayoutCreateFlagBits( DESCRIPTOR_SET_LAYOUT_CREATE_HOST_ONLY_POOL_BIT_EXT ...
c25d23e1c85aecd3535d1cf925feb29b93b73344f01df2db4facd61b56acaa4a
spurious/snd-mirror
titer.scm
;; iteration tests (set! (*s7* 'heap-size) (* 4 1024000)) (let ((with-blocks #f)) (when with-blocks load calls init_func if possible (define-constant (find-if-a iter) (case (type-of (iterate iter)) ; op_tc_case ((string?) #t) ((eof-object?) #f) (else (find-if-a iter)))) (define-con...
null
https://raw.githubusercontent.com/spurious/snd-mirror/8ecaf6677ccaff500f7ef654c186ee778391835a/tools/titer.scm
scheme
iteration tests op_tc_case
(set! (*s7* 'heap-size) (* 4 1024000)) (let ((with-blocks #f)) (when with-blocks load calls init_func if possible (define-constant (find-if-a iter) ((string?) #t) ((eof-object?) #f) (else (find-if-a iter)))) (define-constant (find-if-b iter) (call-with-exit (lambda (return) ...
390467211b26d0ac6c3d0e23bc28256ad18bb684ecaec228f0a40bd8a51d46c9
ndaniels/MRFy
LazyRandom.hs
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # module Control.Monad.LazyRandom ( module System.Random, module Control.Monad.LazyRandom.Class, evalRand, runRand, evalRandIO, -- fromList, Rand -- but not the data constructors ) where import Control.Monad.LazyRandom.Class ---...
null
https://raw.githubusercontent.com/ndaniels/MRFy/9b522d991a9bf98a6690f791dc92ad6fe675115c/Control/Monad/LazyRandom.hs
haskell
fromList, but not the data constructors ------------------------------------------------------------------------ imports ------------------------------------------------------------------------ ** Based on quickcheck generator type | Run a random computation using the generator @g@, returning the result and th...
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # module Control.Monad.LazyRandom ( module System.Random, module Control.Monad.LazyRandom.Class, evalRand, runRand, evalRandIO, ) where import Control.Monad.LazyRandom.Class import System.Random ( Random(..) , RandomGen(..) , St...
38ca9b2e8dd2bb6c207b5546e73ddd09fe9b14d1fba2f9384660aa4ffec8843a
jeromesimeon/Galax
optimization_judge.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/optimization/optimization_judge.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : optimization_judge.ml , v 1.46 2007/11/07 22:00:15 mff Exp $ open Error open Namespace_builtin open Xquery_common_ast open Xquery_algebra_ast open Xquery_algebra_ast_util open Xquery_algebra_ast_annotation_util open Compile_context...
fe00b59aa0d8fabb0013a0d74c3aab905d3ae8bb1f625ad3c06ddbe7ad7ceb91
jhidding/lyonesse
streams.scm
Copyright ( C ) ( 2007 ) . All Rights Reserved . ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , ;;; including without limitation the rights to use, copy, ...
null
https://raw.githubusercontent.com/jhidding/lyonesse/9d9624e3141ea3acaa670526cbe52c2d6546beef/lyonesse/streams.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files including without limitation the rights to use, copy, modify, merge, subject to the following conditions: The above copyright notice and this permission notice shall be EXPRESS OR I...
Copyright ( C ) ( 2007 ) . All Rights Reserved . ( the " Software " ) , to deal in the Software without restriction , publish , distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , included in all copies or substantial portions of...