_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
375f6e1b5f05c2a71d90dfe8a4519ebec61512e0963d25cf2f505bb05ea9b3eb
c-cube/ocaml-containers
CCSemaphore.ml
* { 1 Semaphores } type t = { mutable n: int; mutex: Mutex.t; cond: Condition.t } let create n = if n <= 0 then invalid_arg "Semaphore.create"; { n; mutex = Mutex.create (); cond = Condition.create () } let get t = t.n (* assume [t.mutex] locked, try to acquire [t] *) let acquire_once_locked_ m t = while t.n ...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/src/threads/CCSemaphore.ml
ocaml
assume [t.mutex] locked, try to acquire [t] assume [t.mutex] locked, try to release [t]
* { 1 Semaphores } type t = { mutable n: int; mutex: Mutex.t; cond: Condition.t } let create n = if n <= 0 then invalid_arg "Semaphore.create"; { n; mutex = Mutex.create (); cond = Condition.create () } let get t = t.n let acquire_once_locked_ m t = while t.n < m do Condition.wait t.cond t.mutex done; ...
0a4faf2ac4a5520e9e82e26593888d4ca42d87cf59218569149679e4ca1f5eee
meiersi/blaze-builder
ChunkedWrite.hs
{-# LANGUAGE OverloadedStrings #-} -- | Module : ChunkedWrite Copyright : ( c ) 2010 -- License : BSD3-style (see LICENSE) -- Maintainer : < > -- Stability : experimental Portability : tested on GHC only -- -- Test different strategies for writing lists of simple values: -- 1 . Using '...
null
https://raw.githubusercontent.com/meiersi/blaze-builder/2d8ce308951656ebf0318097989dc1c017dcff83/benchmarks/ChunkedWrite.hs
haskell
# LANGUAGE OverloadedStrings # | License : BSD3-style (see LICENSE) Stability : experimental Test different strategies for writing lists of simple values: the number of elements to write at the same time. Writing chunks of elements reduces the overhead from the buffer overflow test that has ...
Module : ChunkedWrite Copyright : ( c ) 2010 Maintainer : < > Portability : tested on GHC only 1 . Using ' mconcat . map from < Value > ' 2 . Using the specialized ' fromWrite < n > List ' function where ' n ' denotes module ChunkedWrite where import Data.Char (chr) import Data.Int (Int64...
68356abc94f760ac8814894a4b9091cf37634aec56abe955ea483b921d8d9f7a
judah/haskeline
WCWidth.hs
module System.Console.Haskeline.Backend.WCWidth( gsWidth, splitAtWidth, takeWidth, ) where Certain characters are " wide " , i.e. take up two spaces in the terminal . -- This module wraps the necessary for...
null
https://raw.githubusercontent.com/judah/haskeline/c03e7029b2d9c3d16da5480306b42b8d4ebe03cf/System/Console/Haskeline/Backend/WCWidth.hs
haskell
This module wraps the necessary foreign routines, and also provides some convenience functions for width-breaking code. | Split off the maximal list which is no more than the given width. returns the width of that list. Returns the amount of unused space in the line. Returns the longest prefix less than or equal ...
module System.Console.Haskeline.Backend.WCWidth( gsWidth, splitAtWidth, takeWidth, ) where Certain characters are " wide " , i.e. take up two spaces in the terminal . import System.Console.Haskeline.LineS...
95e091e3ec148b110e9e7773ab50ccf63624059f605a793d25625ee707db32b3
DavidAlphaFox/RabbitMQ
rabbit_tracing_wm_trace.erl
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITH...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/rabbitmq-tracing/src/rabbit_tracing_wm_trace.erl
erlang
compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. -------------------------------------------------------------------- ----...
The contents of this file are subject to the Mozilla 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 Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , In...
ee465133382d113cea83169a1396accb0e7f903048ae449153aab9cd5c2d8f16
camlp5/camlp5
o_top_test.ml
(* camlp5r *) (* o_top_test.ml *) open OUnit2 ; open OUnitTest ; open Testutil ; open Testutil2; open Camlp5_top_funs; Pcaml.inter_phrases.val := Some (";;") ; value pr t = with_buffer_formatter Pprintast.toplevel_phrase t; value lexbuf_contents lb = let open Lexing in let pos = lb.lex_curr_pos in let len =...
null
https://raw.githubusercontent.com/camlp5/camlp5/57d9d388c4f1fd6cf80d4b9ec855a744f3814f1c/testsuite/o_top_test.ml
ocaml
camlp5r o_top_test.ml this needs to remain using invoked_with ;;; Local Variables: *** ;;; mode:tuareg *** ;;; End: ***
open OUnit2 ; open OUnitTest ; open Testutil ; open Testutil2; open Camlp5_top_funs; Pcaml.inter_phrases.val := Some (";;") ; value pr t = with_buffer_formatter Pprintast.toplevel_phrase t; value lexbuf_contents lb = let open Lexing in let pos = lb.lex_curr_pos in let len = lb.lex_buffer_len - lb.lex_curr_p...
0acba9b364903abf2134251f1225e94a753f43eb5608dd8f08cd35d19a518766
tek/chiasma
Tree.hs
module Chiasma.Ui.Data.Tree where import Control.Lens (makeClassy) import Prettyprinter (Pretty (..), nest, vsep) data Tree f l p = Tree { _treeData :: l, _forest :: f (Node f l p) } deriving stock instance (Eq l, Eq (Node [] l p)) => Eq (Tree [] l p) deriving stock instance (Show l, Show (Node [] l p)...
null
https://raw.githubusercontent.com/tek/chiasma/cae9c7aa53b02f4ec0f4972928c4727c9b5c7bb5/packages/chiasma/lib/Chiasma/Ui/Data/Tree.hs
haskell
module Chiasma.Ui.Data.Tree where import Control.Lens (makeClassy) import Prettyprinter (Pretty (..), nest, vsep) data Tree f l p = Tree { _treeData :: l, _forest :: f (Node f l p) } deriving stock instance (Eq l, Eq (Node [] l p)) => Eq (Tree [] l p) deriving stock instance (Show l, Show (Node [] l p)...
40d474b7f69488073b62da14090f316ffb13d3fbd0309772f9dcd55763147975
tweag/ormolu
PragmaSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Ormolu.Parser.PragmaSpec (spec) where import Data.Text (Text) import qualified Data.Text as T import Ormolu.Parser.Pragma import Test.Hspec spec :: Spec spec = describe "parsePragma" $ do stdTest "{-# LANGUAGE Foo #-}" (Just (PragmaLanguage ["Foo"])) stdTest "{-# l...
null
https://raw.githubusercontent.com/tweag/ormolu/f0b8690ae138b96a284f7d72204ca72382724e97/tests/Ormolu/Parser/PragmaSpec.hs
haskell
# LANGUAGE OverloadedStrings #
module Ormolu.Parser.PragmaSpec (spec) where import Data.Text (Text) import qualified Data.Text as T import Ormolu.Parser.Pragma import Test.Hspec spec :: Spec spec = describe "parsePragma" $ do stdTest "{-# LANGUAGE Foo #-}" (Just (PragmaLanguage ["Foo"])) stdTest "{-# language Foo #-}" (Just (PragmaLangu...
9e73e0e43da1420897fe0a53c05d8310bbcb7c26944bdba51f02f750e6b246c0
soulomoon/SICP
Exercise3.77.scm
Exercise 3.77 : The integral procedure used above was analogous to the “ implicit ” definition of the infinite stream of integers in 3.5.2 . Alternatively , we can give a definition of integral that is more like integers - starting - from ( also in 3.5.2 ): ; (define (integral ; integrand initial-value dt) ...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter3/Exercise3.77.scm
scheme
(define (integral integrand initial-value dt) (cons-stream initial-value (if (stream-null? integrand) the-empty-stream (integral (stream-cdr integrand) (+ (* dt (stream-car integrand)) initial-value) dt)))) When used in systems with loops, ...
Exercise 3.77 : The integral procedure used above was analogous to the “ implicit ” definition of the infinite stream of integers in 3.5.2 . Alternatively , we can give a definition of integral that is more like integers - starting - from ( also in 3.5.2 ): (load "/home/soulomoon/git/SICP/Chapter3/stream.scm") ...
8b736abe920120519592d6bc8de603b2834be017ef70b24edc93983e26c3eb42
rescript-lang/rescript-compiler
gpr_return_type_unused_attribute.ml
(* [@@@warning "-101"] *) external mk : int -> ( [`a|`b] (* [@bs.string] *) ) = "mk" [@@bs.val] let v = mk 2 (* let h () = v = "x" *)
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/7dc4441661f56210e2a6f9f44d623aa5c7eb9b6a/jscomp/test/gpr_return_type_unused_attribute.ml
ocaml
[@@@warning "-101"] [@bs.string] let h () = v = "x"
external mk : int -> ( [`a|`b] ) = "mk" [@@bs.val] let v = mk 2
42299fd3727c92af0f30331af59c1071cf78ced040f4bd59a2875e81d7e367bd
cloudant-labs/couchdb-erlfdb
erlfdb_key.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/cloudant-labs/couchdb-erlfdb/510664facbc28c946960db2d12b3baf33923f4ea/src/erlfdb_key.erl
erlang
use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(erlfdb_key). -export([ to_selector/1, last_less_than/1, last_less_or_equal/1, first_greater_than/1, first_greater_or_equal/1,...
48d1522d45144c8fe883d9644b7a48621d83aa39252feece1e4679a254e656e9
cs136/seashell
handshake.rkt
#lang typed/racket Seashell 's websocket library . Copyright ( C ) 2013 - 2015 The Seashell Maintainers . ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/cs136/seashell/17cc2b0a6d2cdac270d7168e03aa5fed88f9eb02/src/collects/seashell/websocket/handshake.rkt
racket
This program is free software: you can redistribute it and/or modify (at your option) any later version. See also 'ADDITIONAL TERMS' at the end of the included LICENSE file. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTAB...
#lang typed/racket Seashell 's websocket library . Copyright ( C ) 2013 - 2015 The Seashell Maintainers . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (...
a595a3cce4c0538894d15f718edd7e6a3ab55ddc019631338d32110cb359562c
thelema/ocaml-community
manyargs.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/testsuite/tests/basic-manyargs/manyargs.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1995 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . let manyargs a b c d e f g h i j k l m ...
c9cc575e2b8474e43bb295a41890ab5ece8f280aea421229435ae875db8d20a4
beetleman/shadow-cljs-hooks
fulcro_css.clj
(ns shadow-cljs-hooks.fulcro-css (:require [clojure.java.io :as io] [clojure.spec.alpha :as s] [com.fulcrologic.fulcro-css.css-injection :as inj] [shadow-cljs-hooks.spec :as hooks.spec] [shadow-cljs-hooks.css :as hooks.css] [shadow-cljs-hooks.symbols :as sym...
null
https://raw.githubusercontent.com/beetleman/shadow-cljs-hooks/1b0543124da8bc2dca04213bd3183ace14d2a1e1/src/shadow_cljs_hooks/fulcro_css.clj
clojure
(ns shadow-cljs-hooks.fulcro-css (:require [clojure.java.io :as io] [clojure.spec.alpha :as s] [com.fulcrologic.fulcro-css.css-injection :as inj] [shadow-cljs-hooks.spec :as hooks.spec] [shadow-cljs-hooks.css :as hooks.css] [shadow-cljs-hooks.symbols :as sym...
ecaa63e4e7d7cfabf6c99e18f868dcaf439b90c8abe5d8f6dda3a1cf85ffd1d7
reborg/clojure-essential-reference
7.clj
(defn take-first [coll] (lazy-seq < 1 > (cons x ())))) < 2 > eval 1 ( 1 ) (take-first (eduction (map #(do (println "eval" %) %)) '(1))) ; <3> eval 1 ( 1 )
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/SequentialProcessing/when-first/7.clj
clojure
<3>
(defn take-first [coll] (lazy-seq < 1 > (cons x ())))) < 2 > eval 1 ( 1 ) eval 1 ( 1 )
d057b51e96429e9c733a5d208737bc0fc8b085c9df670fb12fe37ac5178f9226
michaelballantyne/syntax-spec
statechart-timer.rkt
#lang racket (define-statechart timer (data elapsed 0) (data duration 5) (data interval 0.1) (state running (invoke (lambda (cb) (define i (set-interval (lambda () (cb tick)))) (lambda () (clear-interval i)))) (on eps (when elapsed >= duration) (-> paused)) ...
null
https://raw.githubusercontent.com/michaelballantyne/syntax-spec/26d665ebd14910678cf83981ff57c1e1031fef2a/design/statechart-examples/statechart-timer.rkt
racket
#lang racket (define-statechart timer (data elapsed 0) (data duration 5) (data interval 0.1) (state running (invoke (lambda (cb) (define i (set-interval (lambda () (cb tick)))) (lambda () (clear-interval i)))) (on eps (when elapsed >= duration) (-> paused)) ...
2d71662eb487f86874507523c50e5c01f3573f1be4fa2efe26f5c5c7c496946d
icicle-lang/disorder.hs-ambiata
FSM.hs
# LANGUAGE NoImplicitPrelude # module Disorder.FSM ( module X ) where import Disorder.FSM.Catch as X import Disorder.FSM.Core as X import Disorder.FSM.Property as X import Disorder.FSM.Runner as X
null
https://raw.githubusercontent.com/icicle-lang/disorder.hs-ambiata/0068d9a0dd9aea45e772fb664cf4e7e71636dbe5/disorder-fsm/src/Disorder/FSM.hs
haskell
# LANGUAGE NoImplicitPrelude # module Disorder.FSM ( module X ) where import Disorder.FSM.Catch as X import Disorder.FSM.Core as X import Disorder.FSM.Property as X import Disorder.FSM.Runner as X
40841b1af822263e394d6bb2e182d30db0ec34e0e2a2a03c0b460f88bbf34dff
rtoy/ansi-cl-tests
get.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Jul 13 07:01:47 2004 ;;;; Contains: Tests of GET (in-package :cl-test) (deftest get.1 (let ((sym (gensym))) (get sym :foo)) nil) (deftest get.2 (let ((sym (gensym))) (get sym :foo :bar)) :bar) (deftest get.3 (let ((sym (gensym))) (get sym :foo (val...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/get.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of GET Order of evaluation Error tests
Author : Created : Tue Jul 13 07:01:47 2004 (in-package :cl-test) (deftest get.1 (let ((sym (gensym))) (get sym :foo)) nil) (deftest get.2 (let ((sym (gensym))) (get sym :foo :bar)) :bar) (deftest get.3 (let ((sym (gensym))) (get sym :foo (values :bar nil))) :bar) (deftest get.4 (let ((sym...
4ad038fbbd945a736f856ed88eafd515ff6e38783fc873b356ddbbcdb81d7f9e
nominolo/lambdachine
BitOps.hs
# LANGUAGE NoImplicitPrelude , MagicHash , BangPatterns # module Bc.BitOps where import GHC.Prim import GHC.Base loop :: Int# -> Int# -> Int loop 0# acc = I# acc loop n acc = let !w0 = not# (int2Word# n) !w1 = w0 `and#` int2Word# 823719# !w2 = w1 `xor#` int2Word# 90234342# !w3 = w2 `or#` int2Word#...
null
https://raw.githubusercontent.com/nominolo/lambdachine/49d97cf7a367a650ab421f7aa19feb90bfe14731/tests/Bc/BitOps.hs
haskell
# LANGUAGE NoImplicitPrelude , MagicHash , BangPatterns # module Bc.BitOps where import GHC.Prim import GHC.Base loop :: Int# -> Int# -> Int loop 0# acc = I# acc loop n acc = let !w0 = not# (int2Word# n) !w1 = w0 `and#` int2Word# 823719# !w2 = w1 `xor#` int2Word# 90234342# !w3 = w2 `or#` int2Word#...
fc3254593ee83c8c892d23092a1b114fad73d93e11230965a49e05d9fc9b012d
abtv/tech-radar
parser.cljs
(ns tech-radar.parser (:require [om.next :as om])) ;;; -------------------------------------------------------------------------- ;;; Read functions (defmulti read-fn om/dispatch) (defmethod read-fn :default [{:keys [parser ast query state] :as env} k _] (let [[_ v] (find @state k) value (condp = (:type...
null
https://raw.githubusercontent.com/abtv/tech-radar/167c1c66ff2cf7140fe1de247d67a7134b0b1748/src/cljs/tech-radar/parser.cljs
clojure
-------------------------------------------------------------------------- Read functions TODO: refactor & remove -------------------------------------------------------------------------- Mutations
(ns tech-radar.parser (:require [om.next :as om])) (defmulti read-fn om/dispatch) (defmethod read-fn :default [{:keys [parser ast query state] :as env} k _] (let [[_ v] (find @state k) value (condp = (:type ast) :join (parser (assoc env :state (atom v)) query) :prop v ...
af1e2c378eccb2cf60cc6e794c2da7a6e369380a3d77e4cf2bfd49fb633e445b
josephwilk/image-resizer
support.clj
(ns image-resizer.unit.support (:require [clojure.java.io :refer :all] [image-resizer.util :refer :all] [midje.sweet :refer :all]) (:import [javax.imageio ImageIO] [java.io ByteArrayOutputStream])) (def test-image (file "test/fixtures/platypus.jpg")) (defn- size-of-file-type [file] (.length ...
null
https://raw.githubusercontent.com/josephwilk/image-resizer/d699fa73ec9bf98168edde7aa098a5acfea938d2/test/image_resizer/unit/support.clj
clojure
(ns image-resizer.unit.support (:require [clojure.java.io :refer :all] [image-resizer.util :refer :all] [midje.sweet :refer :all]) (:import [javax.imageio ImageIO] [java.io ByteArrayOutputStream])) (def test-image (file "test/fixtures/platypus.jpg")) (defn- size-of-file-type [file] (.length ...
de23fe3ce7d668376e6f681d5f5c6a7facf0a2d9f4ab2426a0d28c514151fe8d
B-Lang-org/bsc
IdPrint.hs
module IdPrint( pvpPId, pvpId, pfpId, ppId, ppConId, ppVarId, mkUId, getBSVIdString ) where import Data.Char(isDigit) import Id import Util(dbgLevel) import Lex(isIdChar, isSym) import ErrorUtil(internalError) import PreStrings(fsEmpty, fsPrelude, fsPreludeBSV) import Classic import PPrin...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/IdPrint.hs
haskell
<> text(" props: " ++ show (getIdProps i )) pPrint _ _ i = text ((getIdString i) ++ "|" ++ (show (getIdPosition i)) ++ "|" ++ (show (getIdProps i))) pPrint _ _ i = text ((getIdString i) ++ "|" ++ (show (getIdProps i))) -------------------- hack: suppress the package name for operators operators ----------...
module IdPrint( pvpPId, pvpId, pfpId, ppId, ppConId, ppVarId, mkUId, getBSVIdString ) where import Data.Char(isDigit) import Id import Util(dbgLevel) import Lex(isIdChar, isSym) import ErrorUtil(internalError) import PreStrings(fsEmpty, fsPrelude, fsPreludeBSV) import Classic import PPrin...
625dbfc8d469faff96e077dbbd5025a6a17938ecb9892ab35930690134913e90
erlang/otp
interactive_shell_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/kernel/test/interactive_shell_SUITE.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 2007 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(interactive_shell_SUITE). -include_lib("kernel/include/file.hrl"). -include_lib("common_test/include/ct.hrl")...
9bf9a374d1c84bd502402bc515753ad25c92d060eb7fffe1cfb61b32fad27520
m4dc4p/haskelldb
Bool_tbl.hs
{-# LANGUAGE EmptyDataDecls, TypeSynonymInstances #-} {-# OPTIONS_GHC -fcontext-stack44 #-} --------------------------------------------------------------------------- Generated by DB / Direct --------------------------------------------------------------------------- module DB1.Bool_tbl where import Database.Haskel...
null
https://raw.githubusercontent.com/m4dc4p/haskelldb/a1fbc8a2eca8c70ebe382bf4c022275836d9d510/examples/DB1/Bool_tbl.hs
haskell
# LANGUAGE EmptyDataDecls, TypeSynonymInstances # # OPTIONS_GHC -fcontext-stack44 # ------------------------------------------------------------------------- ------------------------------------------------------------------------- ------------------------------------------------------------------------- Table type --...
Generated by DB / Direct module DB1.Bool_tbl where import Database.HaskellDB.DBLayout type Bool_tbl = (RecCons F01 (Expr (Maybe Bool)) (RecCons F02 (Expr Bool) (RecCons F03 (Expr (Maybe Bool)) (RecCons F04 (Expr Bool) RecNil)))) bool_tbl :: Table Bool_tbl bool_tbl = baseTable "bool_tbl" $ ...
788aa1e93a8934c41a834228e359fb4f1811d11e5c709e0fd2b3bbbfcb814038
alexandergunnarson/quantum
core.cljc
(ns ^{:doc "The core Datomic (and friends, e.g. DataScript) namespace"} quantum.db.datomic.core (:refer-clojure :exclude [assoc assoc! dissoc dissoc! conj conj! disj disj! update merge if-let for doseq nth filter contains?]) (:require [clojure.core :as c] #?@(:clj [[datomic.api ...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/db/datomic/core.cljc
clojure
GLOBALS Optimally one could have a per-thread binding via dynamic vars, but So we can go with atoms for now Also, this should be a connection pool TRANSFORMATIONS/CONVERSIONS Don't call |tempid| in a txfn. It can collide with a peer-supplied tempid, causing very strange bugs. I recommend passing a tempid in as ...
(ns ^{:doc "The core Datomic (and friends, e.g. DataScript) namespace"} quantum.db.datomic.core (:refer-clojure :exclude [assoc assoc! dissoc dissoc! conj conj! disj disj! update merge if-let for doseq nth filter contains?]) (:require [clojure.core :as c] #?@(:clj [[datomic.api ...
46e1cb26c502a6c693870bd180270a23d9c5e0ed494c1ccddb0f7bcd1c84a490
spechub/Hets
ToXml.hs
| Module : ./Static / ToXml.hs Description : xml output of Hets development graphs Copyright : ( c ) , Uni Bremen 2009 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : non - portable(Grothendieck ) Xml of Hets DGs Mod...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/Static/ToXml.hs
haskell
| Export the development graph as xml. If the flag full is True then symbols for all nodes are shown as declarations, otherwise (the default) only declaration for basic spec nodes are shown that are sufficient to reconstruct the development from the xml output. | a status may be open, proven or outdated | collects ...
| Module : ./Static / ToXml.hs Description : xml output of Hets development graphs Copyright : ( c ) , Uni Bremen 2009 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : non - portable(Grothendieck ) Xml of Hets DGs Mod...
92946bb3ba5e091eab36cba54c4ed69edc6c3ba9c93ecc1a80cd90bfc770603b
db48x/xe2
mountain.lisp
(in-package :forest) (defcell mountain (tile :initform "mountain") (description :initform "The walls of the passageway are slick with ice.") (categories :initform '(:obstacle :opaque))) (defcell rose (tile :initform "rose") (description :initform "This rose appears fresh despite the cold. Perhaps it was...
null
https://raw.githubusercontent.com/db48x/xe2/7896fcc69f5c6e28eaf6f6abb7966d6663370a66/forest/mountain.lisp
lisp
Mountain passage world drop monastery gateway
(in-package :forest) (defcell mountain (tile :initform "mountain") (description :initform "The walls of the passageway are slick with ice.") (categories :initform '(:obstacle :opaque))) (defcell rose (tile :initform "rose") (description :initform "This rose appears fresh despite the cold. Perhaps it was...
84c9b9646963fc4695efa58147f40eb39a4960f0fa3fb9d929cd7726aae8d433
pirapira/coq2rust
command.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/toplevel/command.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Commands of the interface Check t...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Util...
78f3e90fea0be0eceeea4aa57eeefd679d80d769d81cea67fae8394d536951bd
hasktorch/hasktorch
Layout.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE StandaloneKindSignatures # # LANGUAGE Templ...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/0e845b99d5444df6675fea554a403ff9f60c3e08/experimental/gradually-typed/src/Torch/GraduallyTyped/Layout.hs
haskell
# LANGUAGE GADTs # | Data type that represents the memory layout of a tensor. | The memory layout of the tensor is dense (strided). | The memory layout of the tensor is sparse. | Data type to represent whether or not the tensor's memory layout is checked, that is, known to the compiler. | The tensor's memory layou...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE StandaloneKindSignatures # # LANGUAGE TemplateHaskell # # LANGUAGE...
d93546fb0951167f1862e3e0a2e41044b54f4751d54e6e89f72a2174b0248c29
kcsongor/generic-lens
Test63.hs
# LANGUAGE DataKinds , DeriveGeneric , TypeApplications # module Test63 (example) where import Data.Generics.Product (types) import Data.Generics.Internal.VL.Lens (over) import Data.Word (Word32) import GHC.Generics (Generic) data Record = Record {field1 :: Word32, field2 :: Int} deriving (Generic, Show) example ...
null
https://raw.githubusercontent.com/kcsongor/generic-lens/8e1fc7dcf444332c474fca17110d4bc554db08c8/generic-lens/test/Test63.hs
haskell
# LANGUAGE DataKinds , DeriveGeneric , TypeApplications # module Test63 (example) where import Data.Generics.Product (types) import Data.Generics.Internal.VL.Lens (over) import Data.Word (Word32) import GHC.Generics (Generic) data Record = Record {field1 :: Word32, field2 :: Int} deriving (Generic, Show) example ...
29ca9b0e773b2ec69e36c2b48ea5a15849272304c59128979136790312e41fce
PapenfussLab/bioshake
Hisat2.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # {-# LANGUAGE ViewPatterns #-} module Bioshake.Internal.Hisat2 where import Bioshake import Bioshake.TH import Control.Monad import Control.Monad.Trans (lift) import ...
null
https://raw.githubusercontent.com/PapenfussLab/bioshake/afeb7219b171e242b6e9bb9e99e2f80c0a099aff/Bioshake/Internal/Hisat2.hs
haskell
# LANGUAGE ViewPatterns #
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # module Bioshake.Internal.Hisat2 where import Bioshake import Bioshake.TH import Control.Monad import Control.Monad.Trans (lift) import Data.List import Devel...
7a52d5bc680c8f5d1b8e44d03a398b747e3bfb02ecf406a757026244dc802e93
borgeby/jarl
units.cljc
(ns jarl.builtins.units (:require [clojure.string :as str] [jarl.builtins.utils :refer [numeric?]] [jarl.exceptions :as errors] #?(:cljs [jarl.utils :as utils]) #?(:cljs [jarl.types :as types]) #?(:cljs [cljs.math :as math]))) #?(:clj (def unit-map ...
null
https://raw.githubusercontent.com/borgeby/jarl/2659afc6c72afb961cb1e98b779beb2b0b5d79c6/core/src/main/cljc/jarl/builtins/units.cljc
clojure
(ns jarl.builtins.units (:require [clojure.string :as str] [jarl.builtins.utils :refer [numeric?]] [jarl.exceptions :as errors] #?(:cljs [jarl.utils :as utils]) #?(:cljs [jarl.types :as types]) #?(:cljs [cljs.math :as math]))) #?(:clj (def unit-map ...
2515735ddf29d6aea4514aaeed9bc610ee7088ec5c0333565b79b941a0177d96
wesen/ruinwesen
tags-old.lisp
(in-package :ruinwesen.tags) (eval-when (:compile-toplevel :load-toplevel :execute) (set-dispatch-macro-character #\# #\$ #'(lambda (stream char char2) (list '$ (read stream t nil t))))) (define-bknr-tag header () (dolist (css '("default.css" "alphacube.css" "styles.css")) (html ((:link :rel "stylesh...
null
https://raw.githubusercontent.com/wesen/ruinwesen/9f3ccea85425cf46b57e76144b3114ca342bad0f/ruinwesen/src/tags-old.lisp
lisp
(in-package :ruinwesen.tags) (eval-when (:compile-toplevel :load-toplevel :execute) (set-dispatch-macro-character #\# #\$ #'(lambda (stream char char2) (list '$ (read stream t nil t))))) (define-bknr-tag header () (dolist (css '("default.css" "alphacube.css" "styles.css")) (html ((:link :rel "stylesh...
a6a8d2fd87283884c025512f483eb3e59658790add786cfcc8aa2519617eacce
basho/machi
machi_app.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2015 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 . You...
null
https://raw.githubusercontent.com/basho/machi/e87bd59a9777d805b00f9e9981467eb28e28390c/src/machi_app.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2007 - 2015 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 ...
03a813eab0ad74d9b908560f89223a6121ade258129bfd6a6b831adc21223b4a
hongchangwu/ocaml-type-classes
higher_option.ml
include Higher.Newtype1 (struct type 'a t = 'a option end)
null
https://raw.githubusercontent.com/hongchangwu/ocaml-type-classes/17b11af26008f42a88aec85001a94ba18584ea72/lib/higher_option.ml
ocaml
include Higher.Newtype1 (struct type 'a t = 'a option end)
a937312be4bbd2b220f4d4eb6b78f8af4f9907d1d5e8df3883fb5620aca604e7
vbedegi/re-alm
storage.cljs
(ns re-alm.io.storage (:require-macros [cljs.core.async.macros :refer [go]]) (:require [clojure.set :as set] [cljs.core.async :as async :refer [put!]] [alandipert.storage-atom :refer [local-storage]] [re-alm.core :as ra])) (def localstorage-atoms (atom {})) (defn- get-or-create...
null
https://raw.githubusercontent.com/vbedegi/re-alm/73fdb86b2cb92bec16865be44b101361e7e84115/src/re_alm/io/storage.cljs
clojure
dispatch current value to initial subscribers dispatch current value to newly joined subscribers
(ns re-alm.io.storage (:require-macros [cljs.core.async.macros :refer [go]]) (:require [clojure.set :as set] [cljs.core.async :as async :refer [put!]] [alandipert.storage-atom :refer [local-storage]] [re-alm.core :as ra])) (def localstorage-atoms (atom {})) (defn- get-or-create...
50ec8ea60aabc98f0cc7ca6f53292e8f3ef7fc180b8531bcafd7d8aaecfebd93
SAP-archive/bosh-kubernetes-cpi-release
CreateVmSpec.hs
{-# LANGUAGE ImplicitParams #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TypeFamilies #-} module CPI.Kubernetes.Action.CreateVmSpec(spec) where import Test.Hspec import Control.Lens import qualified CPI.Kubernetes.Base64 as Base6...
null
https://raw.githubusercontent.com/SAP-archive/bosh-kubernetes-cpi-release/3166a74e118e75bbdedb01cff72cbe52968eee62/src/bosh-kubernetes-cpi/test/unit/CPI/Kubernetes/Action/CreateVmSpec.hs
haskell
# LANGUAGE ImplicitParams # # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE TypeFamilies #
module CPI.Kubernetes.Action.CreateVmSpec(spec) where import Test.Hspec import Control.Lens import qualified CPI.Kubernetes.Base64 as Base64 import CPI.Kubernetes.VmTypes (VmProperties(VmProperties), Service(Service), Resources(Resources), emptyVmProperties) import qualified CPI...
aa8230ee2cf91dfef37179944123b1564a04be72bac0ddcbe7ee38ce3871b3ef
jaycfields/jry
io.clj
(ns jry.io (require clojure.java.io)) (defn- list-files* [path path-filter] (->> (clojure.java.io/file path) .listFiles (filter (comp (partial re-find path-filter) clojure.java.io/as-relative-path)))) (defn list-files [path & {:keys [path-filter recursive] :or {path-filter #"" recursive false}}] (...
null
https://raw.githubusercontent.com/jaycfields/jry/d79cc8ec552c11122001bc1dd01b9ef6c251a9fb/src/clojure/jry/io.clj
clojure
(ns jry.io (require clojure.java.io)) (defn- list-files* [path path-filter] (->> (clojure.java.io/file path) .listFiles (filter (comp (partial re-find path-filter) clojure.java.io/as-relative-path)))) (defn list-files [path & {:keys [path-filter recursive] :or {path-filter #"" recursive false}}] (...
f067f1ff202ee6105fab6f41e063309f975ec85cb07f3714d299d2e073d5c294
haskell-works/hw-dsv
Parse.hs
{-# LANGUAGE OverloadedStrings #-} module App.Commands.Options.Parse ( nonZeroOneBased , columnDesc , rangeJoinColumn ) where import Data.Text import Options.Applicative import Text.Read (readEither) import qualified App.Data.ColumnDesc as Z import qualified App.Data.List as L impor...
null
https://raw.githubusercontent.com/haskell-works/hw-dsv/4f1274af383281589165232186f99219479d7898/app/App/Commands/Options/Parse.hs
haskell
# LANGUAGE OverloadedStrings #
module App.Commands.Options.Parse ( nonZeroOneBased , columnDesc , rangeJoinColumn ) where import Data.Text import Options.Applicative import Text.Read (readEither) import qualified App.Data.ColumnDesc as Z import qualified App.Data.List as L import qualified App.Data.RangeJoinColum...
4738f798dbcc5eecf9292c0c2a849b082f51dc994bb42c68c49f2c5dd1f581d0
anonymous-admin/anonymous
record_operation.erl
-module(record_operation). -export([is_multiple/1, get_PieceNum/1, get_Piece_Length/1 ,get_LPiece_Length/1,files_dict/3,get_FileName/1]). -export([get_pieces/1,findN/3]). This is for test , and later should be trasfered to the hrl . file -record (files_data,{filename,path,size,passed_bytes}). %% Gets record, ...
null
https://raw.githubusercontent.com/anonymous-admin/anonymous/0d178f8f02dce74d5f76d78f81f70da9229a77cd/Testenviro/record_operation.erl
erlang
Gets record, returns the pieces Gets a record, checks if the field "files" has any special value. gets a torrent record and returns the value of the number_of_pieces. Is it needed?? returns files dictionary , key: numbers , value: record of each file information Base case
-module(record_operation). -export([is_multiple/1, get_PieceNum/1, get_Piece_Length/1 ,get_LPiece_Length/1,files_dict/3,get_FileName/1]). -export([get_pieces/1,findN/3]). This is for test , and later should be trasfered to the hrl . file -record (files_data,{filename,path,size,passed_bytes}). get_pieces(Rec)-...
9d1733fc4a923bf76595864f6b86df4e6d3d7f8ddfe5a463e78ae8078e4cc7d5
lambdaclass/webrtc-server
callbacks.erl
-module(callbacks). -export([authenticate/1, create/3, join/3, leave/3]). authenticate(_Username) -> %% in a real scenario this may lookup the password in the db, request an external service, etc. {ok, Password} = application:get_env(example, example_password), Password. create(Room,...
null
https://raw.githubusercontent.com/lambdaclass/webrtc-server/05bcc994d692f8d9f4a601ece1bfd4ff5e939062/examples/multi/src/callbacks.erl
erlang
in a real scenario this may lookup the password in the db, request an external service, etc.
-module(callbacks). -export([authenticate/1, create/3, join/3, leave/3]). authenticate(_Username) -> {ok, Password} = application:get_env(example, example_password), Password. create(Room, Username, _OtherUsers) -> lager:info("~s created ~s", [Username, Room]). join(Room, Username, ...
f307df5a87ac6fa74306c5438530d7a52be47c1dcb8ce0e1ae6477103748fca8
input-output-hk/marlowe-cardano
Main.hs
module Main where import Cardano.Api ( AsType(..) , ShelleyWitnessSigningKey(..) , TextEnvelope(..) , TextEnvelopeType(..) , deserialiseFromTextEnvelope , serialiseToTextEnvelope , signShelleyTransaction ) import Cardano.Api.SerialiseTextEnvelope (TextEnvelopeDescr(..)) import Control.Concurrent (thr...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/3e7471464a54f2705157380b99839770b98eede3/marlowe-integration/app/Main.hs
haskell
module Main where import Cardano.Api ( AsType(..) , ShelleyWitnessSigningKey(..) , TextEnvelope(..) , TextEnvelopeType(..) , deserialiseFromTextEnvelope , serialiseToTextEnvelope , signShelleyTransaction ) import Cardano.Api.SerialiseTextEnvelope (TextEnvelopeDescr(..)) import Control.Concurrent (thr...
78298d49fe75e0cb43660fd1c0b5ae27f5e9faa2bd828a21126e637632a7bf6f
ygrek/mldonkey
gui_rooms.ml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk/gui/gui_rooms.ml
ocaml
* GUI for the lists of files. method rooms = data try to get the user name to put some color: ???? Username of what ? ServerMessage is a message sent from the server, not from a user !!! Maybe automatic selection is not that good ?: ; match opened_rooms#rooms with [room] -> opened_rooms#...
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
3d6825e827ab43da356b6b18c1b9f5ae800a6575c5264377647d43d6f0875d36
trptcolin/macro-workshop
aot_example.clj
(ns macro-workshop.aot-example (:gen-class)) (defmacro foo [] (println "This prints during macroexpansion.") `(do (println "This prints at runtime.") (+ 1 2))) (defn -main [& args] (if (some #{"--expand"} args) (do (println "Running: (eval (macroexpand-1 '(foo)))") (eval (macroexpand-1 `(fo...
null
https://raw.githubusercontent.com/trptcolin/macro-workshop/1ef08017831461813ccf4920c55a00895f3b6bce/src/macro_workshop/aot_example.clj
clojure
(ns macro-workshop.aot-example (:gen-class)) (defmacro foo [] (println "This prints during macroexpansion.") `(do (println "This prints at runtime.") (+ 1 2))) (defn -main [& args] (if (some #{"--expand"} args) (do (println "Running: (eval (macroexpand-1 '(foo)))") (eval (macroexpand-1 `(fo...
a85318b1f84a8540683e258fcf20e4d4195760a03fda14997a7ba7ffa0ebf0c3
nomasystems/nbson
nbson_SUITE.erl
Copyright 2022 Nomasystems , S.L. %% 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 distri...
null
https://raw.githubusercontent.com/nomasystems/nbson/8bdfdc4e06d7a4e487b853e1de3bf293361da739/test/nbson_SUITE.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2022 Nomasystems , S.L. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(nbson_SUITE). -compile([export_all, nowarn_export_all]). all() -> [ array, boolean, data_bin, ...
bc4e3bdf250f825940638a2c509f0b2d9cd1d81ae5132fb1b940781f15c75a09
mauny/the-functional-approach-to-programming
load.ml
#directory "../Util";; load_object "ml_exp1";; #open "ml_exp1";; load_object "lexer";; #open "lexer";; load_object "ml1_parser";; #open "ml1_parser";; load_object "code_simulator";; #open "code_simulator";; load_object "ml1_compiler";; #open "ml1_compiler";;
null
https://raw.githubusercontent.com/mauny/the-functional-approach-to-programming/1ec8bed5d33d3a67bbd67d09afb3f5c3c8978838/cl-75/Compil/load.ml
ocaml
#directory "../Util";; load_object "ml_exp1";; #open "ml_exp1";; load_object "lexer";; #open "lexer";; load_object "ml1_parser";; #open "ml1_parser";; load_object "code_simulator";; #open "code_simulator";; load_object "ml1_compiler";; #open "ml1_compiler";;
810b35342102c6cef0b6cee677f1c25da760a2f341740fa197123af851473024
haskell-repa/repa
FFT.hs
# LANGUAGE TypeOperators , PatternGuards , RankNTypes , ScopedTypeVariables , BangPatterns , FlexibleContexts # {-# OPTIONS -fno-warn-incomplete-patterns #-} | Fast computation of Discrete Fourier Transforms using the Cooley - Tuckey algorithm . Time complexity is O(n log n ) in the size of the input . -- -- T...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-algorithms/Data/Array/Repa/Algorithms/FFT.hs
haskell
# OPTIONS -fno-warn-incomplete-patterns # This uses a naive divide-and-conquer algorithm, the absolute performance is about --------------------------------------------------------------------------------- ----------------------------------------------------------------------------- -------------------------------...
# LANGUAGE TypeOperators , PatternGuards , RankNTypes , ScopedTypeVariables , BangPatterns , FlexibleContexts # | Fast computation of Discrete Fourier Transforms using the Cooley - Tuckey algorithm . Time complexity is O(n log n ) in the size of the input . 50x slower than in estimate mode . module Data.Arr...
1fe4fc0fe8999acd17509333cf9a545645098046b83e4242cd4256dd555161e8
Gbury/dolmen
int.ml
(* This file is free software, part of dolmen. See file "LICENSE" for more information *) (* Value definition *) (* ************************************************************************* *) type t = Z.t let compare = Z.compare let print fmt z = Format.fprintf fmt "Z:%a" Z.pp_print z let ops : t Value.ops = Va...
null
https://raw.githubusercontent.com/Gbury/dolmen/d3b68abc76be013a4d9304f41ad6a74622563818/src/model/int.ml
ocaml
This file is free software, part of dolmen. See file "LICENSE" for more information Value definition ************************************************************************* Configuration for corner cases ************************************************************************* Helper functions on unbounded...
type t = Z.t let compare = Z.compare let print fmt z = Format.fprintf fmt "Z:%a" Z.pp_print z let ops : t Value.ops = Value.ops ~compare ~print () exception Modulo_by_zero exception Division_by_zero let ceil x = Z.cdiv x.Q.num x.Q.den let floor x = Z.fdiv x.Q.num x.Q.den it is truncated toward zero let d...
614c9e711080598078c3ecd41741061077c53a68b2b86d209b750f9375fc5792
sbcl/sbcl
compiler-let.lisp
(in-package :sb-cltl2) (def-ir1-translator compiler-let ((bindings &rest forms) start next result) (loop for binding in bindings if (atom binding) collect binding into vars and collect nil into values else do (assert (proper-list-of-length-p binding 1 2)) and collect (first bindin...
null
https://raw.githubusercontent.com/sbcl/sbcl/f6e605a606a5e6047c1c6de442359c557318fe5d/contrib/sb-cltl2/compiler-let.lisp
lisp
(in-package :sb-cltl2) (def-ir1-translator compiler-let ((bindings &rest forms) start next result) (loop for binding in bindings if (atom binding) collect binding into vars and collect nil into values else do (assert (proper-list-of-length-p binding 1 2)) and collect (first bindin...
b7567707e72588bd0d7f58615e19b25c10d7b31487115843b1ed71276578a612
well-typed/large-records
R000.hs
#if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif module Experiment.Induction_Tree_Nominal.Sized.R000 where
null
https://raw.githubusercontent.com/well-typed/large-records/c6c2b51af11e90f30822543d7ce4d1cb28cee294/large-records-benchmarks/bench/experiments/Experiment/Induction_Tree_Nominal/Sized/R000.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings #
#if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif module Experiment.Induction_Tree_Nominal.Sized.R000 where
bfd65aae6d08f8a95c5430ee8939cbfcb1d22483aca011c20e24500a3716513d
tarides/opam-monorepo
opam_solve.ml
open Import module type BASE_CONTEXT = sig include Opam_0install.S.CONTEXT type input val create : ?test:OpamPackage.Name.Set.t -> constraints:OpamFormula.version_constraint OpamTypes.name_map -> input -> t end module type OPAM_MONOREPO_CONTEXT = sig type input type base_rejection type r...
null
https://raw.githubusercontent.com/tarides/opam-monorepo/7e2430f2992044968726399b2a232126368b33ed/lib/opam_solve.ml
ocaml
* Convenience function to return the opam file associated to a pkg in the given context. Takes into account local packages an pin-depends. this function gets called way too often.. memoize? variant of [safe_add] that succeeds when the key/value pair to be added already exists, otherwise same semantics as...
open Import module type BASE_CONTEXT = sig include Opam_0install.S.CONTEXT type input val create : ?test:OpamPackage.Name.Set.t -> constraints:OpamFormula.version_constraint OpamTypes.name_map -> input -> t end module type OPAM_MONOREPO_CONTEXT = sig type input type base_rejection type r...
6c955a8e15cf17e695ee35e9bbeab466b1de43dba10f4f2fe204d66c4550293d
cartazio/tlaps
fmtutil.ml
* fmtutil.ml --- format utilities * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * fmtutil.ml --- format utilities * * * Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) Revision.f "$Rev: 33816 $";; open Format let pp_print_commasp ff () = pp_print_string ff "," ...
null
https://raw.githubusercontent.com/cartazio/tlaps/562a34c066b636da7b921ae30fc5eacf83608280/src/util/fmtutil.ml
ocaml
The functor's argument: precedences * Associativity * Operators are an abstract representation of the operator component of a minimally parenthesized expression
* fmtutil.ml --- format utilities * * * Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation * fmtutil.ml --- format utilities * * * Copyright (C) 2008-2010 INRIA and Microsoft Corporation *) Revision.f "$Rev: 33816 $";; open Format let pp_print_commasp ff () = pp_print_string ff "," ...
6a966ea9fd334a26277d13993ce12b0a274d0abcb73be9e23457e564c8bda7fd
NorfairKing/really-safe-money
CurrencySpec.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Money.CurrencySpec (spec) where import Money.Currency (Currency (..)) import Money.Currency.Gen () import Test.Syd import Test.Syd.Validity spec :: Spec spec = do showReadSpec @Currency modifyMaxSuccess (* 100) $ do...
null
https://raw.githubusercontent.com/NorfairKing/really-safe-money/2a578865958c7b35d14ebae604cb02c7c81c26dd/really-safe-money-gen/test/Money/CurrencySpec.hs
haskell
# LANGUAGE RankNTypes #
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Money.CurrencySpec (spec) where import Money.Currency (Currency (..)) import Money.Currency.Gen () import Test.Syd import Test.Syd.Validity spec :: Spec spec = do showReadSpec @Currency modifyMaxSuccess (* 100) $ do eqSpec @Currency or...
8b7d7e9f00ad8d1cd7d16e2143930d1d9e2eb87f7262521d90a5dbd23805e9d9
boxp/sorcerer
k8s.clj
(ns sorcerer.infra.client.k8s (:import (io.fabric8.kubernetes.client DefaultKubernetesClient)) (:require [clojure.spec.alpha :as s] [com.stuartsierra.component :as component])) (s/def ::endpoint string?) (s/def ::k8s-client-component (s/keys :req-un [::endpoint])) (defrecord K8sClientComponent [proj...
null
https://raw.githubusercontent.com/boxp/sorcerer/38fa7706439c35613cba7e04d715f5340e8a404c/src/sorcerer/infra/client/k8s.clj
clojure
(ns sorcerer.infra.client.k8s (:import (io.fabric8.kubernetes.client DefaultKubernetesClient)) (:require [clojure.spec.alpha :as s] [com.stuartsierra.component :as component])) (s/def ::endpoint string?) (s/def ::k8s-client-component (s/keys :req-un [::endpoint])) (defrecord K8sClientComponent [proj...
2bd546b9d1a0740353377f67d67c8fdfc933c2fc4e768fbf7e7add89e6acb1cc
bldl/magnolisp
lib-modules-1.rkt
#lang magnolisp/2014 (function (int->self x) x) (provide int->self)
null
https://raw.githubusercontent.com/bldl/magnolisp/191d529486e688e5dda2be677ad8fe3b654e0d4f/tests/lib-modules-1.rkt
racket
#lang magnolisp/2014 (function (int->self x) x) (provide int->self)
059b9bcfdad38fe852ae8b346dc2442becf9d5f70791448fb294680a47a25637
stackbuilders/cis194-templates
ExprT.hs
module Homework05.ExprT where data ExprT = Lit Integer | Add ExprT ExprT | Mul ExprT ExprT deriving (Show, Eq)
null
https://raw.githubusercontent.com/stackbuilders/cis194-templates/f41b9f0b9945afd387f433ff40fa8988b6a9fe8b/src/Homework05/ExprT.hs
haskell
module Homework05.ExprT where data ExprT = Lit Integer | Add ExprT ExprT | Mul ExprT ExprT deriving (Show, Eq)
5cd43119a448dcd50380cefde4b5cf409258e6e57fb903c47ffcbf6082367566
amcphail/hmatrix-gsl-stats
BasisSplines.hs
----------------------------------------------------------------------------- -- | Module : Numeric . Copyright : ( c ) A. V. H. McPhail 2011 -- License : BSD3 -- -- Maintainer : haskell.vivian.mcphail <at> gmail <dot> com -- Stability : provisional -- Portability : uses ffi -- GSL statis...
null
https://raw.githubusercontent.com/amcphail/hmatrix-gsl-stats/34ca1789389ec0ab1b7089e6dabd9164094f64a4/lib/Numeric/GSL/BasisSplines.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer : haskell.vivian.mcphail <at> gmail <dot> com Stability : provisional Portability : uses ffi </> --------------------------------------------------------------------------- ----------------------...
Module : Numeric . Copyright : ( c ) A. V. H. McPhail 2011 GSL statistics functions module Numeric.GSL.BasisSplines ( ) where import Data.Packed.Vector import Data . Packed(Container ( .. ) ) import Data . Packed . Development import Numeric . GSL.Vector import Numeric . LinearA...
c1d0ca6ef6b1bb8bb7c532a207dd01864155ba5798db36de154360be4bc00a3b
svenpanne/EOPL3
exercise-1-36.rkt
#lang eopl ; ------------------------------------------------------------------------------ Exercise 1.36 (define g (lambda (num-and-sexp lst) (cons num-and-sexp (map (lambda (ns) (cons (+ (car ns) 1) (cdr ns))) lst)))) (define number-elements (lambda (lst) (if (null? lst) '() (...
null
https://raw.githubusercontent.com/svenpanne/EOPL3/3fc14c4dbb1c53a37bd67399eba34cea8f8234cc/chapter1/exercise-1-36.rkt
racket
------------------------------------------------------------------------------
#lang eopl Exercise 1.36 (define g (lambda (num-and-sexp lst) (cons num-and-sexp (map (lambda (ns) (cons (+ (car ns) 1) (cdr ns))) lst)))) (define number-elements (lambda (lst) (if (null? lst) '() (g (list 0 (car lst)) (number-elements (cdr lst))))))
60d510e25a5bace15ef1eb7bff027aadbc0d7ec8c8fbd36c42d912207bca53c6
jtod/Hydra
Mux1.hs
Mux1 : multiplexer This file is part of Hydra . See README and Copyright ( c ) 2022 module Mux1 where import HDL.Hydra.Core.Lib mux1 is defined in the Hydra circuit libraries , so here the circuit is called mymux1 to ensure that we 're actually testing this -- definition mymux1 :: Bit a...
null
https://raw.githubusercontent.com/jtod/Hydra/cf67a88050720acfff6a51b16d5f9efbd154dc1e/examples/mux/Mux1.hs
haskell
definition
Mux1 : multiplexer This file is part of Hydra . See README and Copyright ( c ) 2022 module Mux1 where import HDL.Hydra.Core.Lib mux1 is defined in the Hydra circuit libraries , so here the circuit is called mymux1 to ensure that we 're actually testing this mymux1 :: Bit a => a -> a -> a...
d7a37badfee8207598796b483a1b2f89b6eeb4264c67d4e3d4cf9668fd7afa60
wz1000/hie-lsp
RunAll.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternSynonyms # {-# LANGUAGE RankNTypes #-} # L...
null
https://raw.githubusercontent.com/wz1000/hie-lsp/dbb3caa97c0acbff0e4fd86fc46eeea748f65e89/reflex-0.6.1/bench/RunAll.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE TypeSynonymInstances # Measure the running time
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ForeignFunctionInterface # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns # # ...
e28afd045f812254f96cba0b1e2f520f7eaacd85c3d348f6790a9eee954e6258
heechul/crest-z3
dataflow.mli
(** A framework for data flow analysis for CIL code. Before using this framework, you must initialize the Control-flow Graph for your program, e.g using {!Cfg.computeFileCFG} *) type 't action = Default (** The default action *) | Done of 't (** Do not do the default action. Use this result *) | Post ...
null
https://raw.githubusercontent.com/heechul/crest-z3/cfcebadddb5e9d69e9956644fc37b46f6c2a21a0/cil/src/ext/dataflow.mli
ocaml
* A framework for data flow analysis for CIL code. Before using this framework, you must initialize the Control-flow Graph for your program, e.g using {!Cfg.computeFileCFG} * The default action * Do not do the default action. Use this result * The default action, followed by the given ...
type 't action = type 't stmtaction = * Visit the instructions and successors of this statement as usual , but use the specified state instead of the one that was passed to doStmt as usual, but use the specified state instead of the one that ...
35b1dc0e78a1a8a72464a4d6c004065fe4c2f1259ba6ae59d636ffa471e93819
ostera/serde.ml
error.ml
type 'err de_error = [> `Duplicate_field of string | `Invalid_field_index of int | `Invalid_variant_index of int | `Message of string | `Missing_field of string | `Unexpected_exception of exn | `Missing_field of string | `Unimplemented of string | `Unknown_field of string | `Unknown_variant of strin...
null
https://raw.githubusercontent.com/ostera/serde.ml/1b0d46a361f2a152eb52eeeec10db8458129793c/serde/de/error.ml
ocaml
type 'err de_error = [> `Duplicate_field of string | `Invalid_field_index of int | `Invalid_variant_index of int | `Message of string | `Missing_field of string | `Unexpected_exception of exn | `Missing_field of string | `Unimplemented of string | `Unknown_field of string | `Unknown_variant of strin...
3da32b64982952ef2f429ec94df71979c93d01e0f97663129206f475dad85e40
nervous-systems/chemtrack-example
frontend.cljs
(ns chemtrack.frontend (:require [reagent.core :as reagent] [cljs.core.async :as async :refer [<! >!]] [chord.client :as chord] [reagent-forms.core :as reagent-forms] [chemtrack.frontend.render :as render] [chemtrack.frontend.util :as util]) (:require-macr...
null
https://raw.githubusercontent.com/nervous-systems/chemtrack-example/b547a0a42c678704a68a9889d22900e5490cdcf0/frontend/chemtrack/frontend.cljs
clojure
(ns chemtrack.frontend (:require [reagent.core :as reagent] [cljs.core.async :as async :refer [<! >!]] [chord.client :as chord] [reagent-forms.core :as reagent-forms] [chemtrack.frontend.render :as render] [chemtrack.frontend.util :as util]) (:require-macr...
dc85c8fc685f83f5319e38e6e8f7b23574fdf551a469f5b3bb76b9d801ba732c
marsijanin/iolib.termios
ffi-termios-types-unix.lisp
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*- Termios ( 3p ) api wrappers for iolib - groveling for struct termios (include "termios.h") (in-package #:iolib.serial) (ctype tcflag "tcflag_t") (ctype cc "cc_t") (ctype termios-speed "speed_t") (constant (nccs "NCCS")) (cstruct termios "...
null
https://raw.githubusercontent.com/marsijanin/iolib.termios/b5b9009ae427682022483d5c2c096a7ad84a56a1/ffi-termios-types-unix.lisp
lisp
-*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
Termios ( 3p ) api wrappers for iolib - groveling for struct termios (include "termios.h") (in-package #:iolib.serial) (ctype tcflag "tcflag_t") (ctype cc "cc_t") (ctype termios-speed "speed_t") (constant (nccs "NCCS")) (cstruct termios "struct termios" (iflag "c_iflag" :type tcflag) (oflag ...
d28c0864df67ecf8e0e9bd9b07d64eef4999157639190d45bcb040c5493381ba
byorgey/diagrams-play
Gabriel.hs
# LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE PartialTypeSignatures #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE TypeFamilies #-} # OPTIONS_GHC -fno - warn - partial - type - signatures # import Control.Arrow ((>>>)) import Diagrams.Backend.R...
null
https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/Gabriel.hs
haskell
# LANGUAGE PartialTypeSignatures # # LANGUAGE TypeFamilies # convenient operator for use together with (>>>) boxes takes as input the grout size, the total height, and a list specifying the number of squares in each column put the columns next to each other horizontally with 'grout' amount of spac...
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE FlexibleContexts # # OPTIONS_GHC -fno - warn - partial - type - signatures # import Control.Arrow ((>>>)) import Diagrams.Backend.Rasterific.CmdLine import Diagrams.Prelude import System.Random in...
77b75eb164ca932e8abc5258a2fdb27483073e089c666e0f2f36ce6650d87316
degree9/uikit-hl
padding.cljs
(ns uikit-hl.padding (:require [hoplon.core :as h])) (defmulti uk-padding! h/kw-dispatcher :default ::default) (defmethod h/do! ::default [elem key val] (uk-padding! elem key val)) (defn- format-padding [padding] (str "uk-padding-" padding)) (defmethod uk-padding! ::default [elem kw v] (h/do! elem :clas...
null
https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/src/uikit_hl/padding.cljs
clojure
(ns uikit-hl.padding (:require [hoplon.core :as h])) (defmulti uk-padding! h/kw-dispatcher :default ::default) (defmethod h/do! ::default [elem key val] (uk-padding! elem key val)) (defn- format-padding [padding] (str "uk-padding-" padding)) (defmethod uk-padding! ::default [elem kw v] (h/do! elem :clas...
33a9d4fbea9a06250d085979cfaa2862bf3973d4b0ad86131c86f4d3c5ce0541
finnishtransportagency/harja
urakoitsijoiden_luonti_test.cljs
(ns harja.tiedot.vesivaylat.hallinta.urakoitsijoiden-luonti-test (:require [harja.tiedot.vesivaylat.hallinta.urakoitsijoiden-luonti :as tiedot] [clojure.test :refer-macros [deftest is testing]] [harja.domain.urakka :as u] [harja.domain.organisaatio :as o] [harja.testuti...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/488b1e096f0611e175221d74ba4f2ffed6bea8f1/test/cljs/harja/tiedot/vesivaylat/hallinta/urakoitsijoiden_luonti_test.cljs
clojure
(ns harja.tiedot.vesivaylat.hallinta.urakoitsijoiden-luonti-test (:require [harja.tiedot.vesivaylat.hallinta.urakoitsijoiden-luonti :as tiedot] [clojure.test :refer-macros [deftest is testing]] [harja.domain.urakka :as u] [harja.domain.organisaatio :as o] [harja.testuti...
1b0ab6053237f5c1432531c28e7b5299bba2b01f317c740940c5e5dc4604bc90
benzap/fif
repl.clj
(ns fif.impl.repl "Clojure Implementation of a basic repl." (:require [fif.protocols.repl :refer :all] [fif.stack-machine.evaluators :as evaluators])) (defrecord Repl [*sm] IRepl (repl-init [this] (println "Fif Repl") (println " 'help' for Help Message,") (println " 'bye' to Exit.") (fl...
null
https://raw.githubusercontent.com/benzap/fif/972adab8b86c016b04babea49d52198585172fe3/src/fif/impl/repl.clj
clojure
(ns fif.impl.repl "Clojure Implementation of a basic repl." (:require [fif.protocols.repl :refer :all] [fif.stack-machine.evaluators :as evaluators])) (defrecord Repl [*sm] IRepl (repl-init [this] (println "Fif Repl") (println " 'help' for Help Message,") (println " 'bye' to Exit.") (fl...
dbcee06d73ef85438eb62eabc5b3c9703a852f5e2e1b5c8db5eceaef9ad46f09
Le6ow5k1/greenhorn
api.clj
(ns greenhorn.github.api (:require [tentacles.repos :as repos-api] [tentacles.pulls :as pulls-api] [environ.core :refer [env]] [cheshire.core :as json] [clj-http.client :as http] [taoensso.timbre :as timbre])) (def ^:private token (env :github-token)) (def ...
null
https://raw.githubusercontent.com/Le6ow5k1/greenhorn/e6dd537223a8029d8bc01b636b64b70553117449/src/greenhorn/github/api.clj
clojure
(ns greenhorn.github.api (:require [tentacles.repos :as repos-api] [tentacles.pulls :as pulls-api] [environ.core :refer [env]] [cheshire.core :as json] [clj-http.client :as http] [taoensso.timbre :as timbre])) (def ^:private token (env :github-token)) (def ...
739434f7389d285e69a4b917d28b258a8a88a1b785b14d556148bc554c27fed8
AccelerateHS/accelerate-llvm
Range.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} # LANGUAGE TemplateHaskell # {-# OPTIONS_GHC -funbox-strict-fields #-} {-# OPTIONS_HADDOCK hide #-} -- | -- Module : Data.Range Copyright : [ 2014 .. 2020 ] The Accelerate Team -- License : BSD3 -- Maintainer : < > -- Stability : ...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-llvm/cf081587fecec23a19f68bfbd31334166868405e/accelerate-llvm/icebox/Data/Range.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE CPP # # OPTIONS_GHC -funbox-strict-fields # # OPTIONS_HADDOCK hide # | Module : Data.Range License : BSD3 Stability : experimental accelerate standard library | A simple range data type ^ The empty range ^ A range span with inclusive left, exclu...
# LANGUAGE TemplateHaskell # Copyright : [ 2014 .. 2020 ] The Accelerate Team Maintainer : < > Portability : non - portable ( GHC extensions ) module Data.Range where import Data.Array.Accelerate.Error import Prelude hiding ( take, splitAt ) import GHC.Base ...
c266715a7e745d135a9685ffce214d6df0604ee158560ca6c74ed742c0cb7305
LexiFi/gen_js_api
issues.ml
module Issue116 : sig type t end = ((struct [@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 end)[@merlin.hide ]) modu...
null
https://raw.githubusercontent.com/LexiFi/gen_js_api/77bc8eded4134ac059de480094e1c7aeadfc5189/ppx-test/expected/issues.ml
ocaml
module Issue116 : sig type t end = ((struct [@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 end)[@merlin.hide ]) modu...
cc70544eefc178ee9c18e3992e3b986123e6e1568b16df2dde3740ec8da9e7b9
avsm/eeww
uucp_age_data.ml
--------------------------------------------------------------------------- Copyright ( c ) 2020 The uucp programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/avsm/eeww/f1f3a5f9c572555cd882f974e2c0cc9b36618a8c/lib/uucp/src/uucp_age_data.ml
ocaml
WARNING do not edit. This file was automatically generated.
--------------------------------------------------------------------------- Copyright ( c ) 2020 The uucp programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
05d711b7574bcccedb4cd6c175302191f84a57d5604f1b8beb838f369187da26
jepsen-io/jepsen
long_fork.clj
(ns tidb.long-fork (:require [clojure.tools.logging :refer [info]] [jepsen [client :as client] [generator :as gen]] [jepsen.tests.long-fork :as lf] [tidb [sql :as c :refer :all] [txn :as txn]])) (defn workload [opts] (assoc (lf/workload 10...
null
https://raw.githubusercontent.com/jepsen-io/jepsen/a75d5a50dd5fa8d639a622c124bf61253460b754/tidb/src/tidb/long_fork.clj
clojure
(ns tidb.long-fork (:require [clojure.tools.logging :refer [info]] [jepsen [client :as client] [generator :as gen]] [jepsen.tests.long-fork :as lf] [tidb [sql :as c :refer :all] [txn :as txn]])) (defn workload [opts] (assoc (lf/workload 10...
b600842a5114ce660094e65f44ac63836a755a147125add094afb308423dbcd8
abarbu/android-kawa
Yamba.scm
(require 'android-defs) (require 'srfi-1) (require 'syntax-utils) (require <collections_utils>) (define-namespace Log "class:android.util.Log") from kawa / testsuite / classes1.scm (define-syntax (import-class form) (syntax-case form () ((import-class fqcn) (let* ((cls :: java.lang.Class (eval (syntax fqcn)))...
null
https://raw.githubusercontent.com/abarbu/android-kawa/3e7b5dc46bdda436e64f70e71f37a0a7e74e7e5f/LearningAndroid-chapter10/src/com/zeroxab/learningandroid/yamba/Yamba.scm
scheme
(this-parent) so that I don't need an ugly let change the object macro at the toplevel in the interpreter, this looks like a bug (this-parent) so that I don't need an ugly let java.lang.RuntimeException instead of an alter table we just drop and recreate
(require 'android-defs) (require 'srfi-1) (require 'syntax-utils) (require <collections_utils>) (define-namespace Log "class:android.util.Log") from kawa / testsuite / classes1.scm (define-syntax (import-class form) (syntax-case form () ((import-class fqcn) (let* ((cls :: java.lang.Class (eval (syntax fqcn)))...
f7d4a54af03cb985d2176a3a16f42189b4f7ddbf885c7f9f3d3e4a80364aec6b
tviti/next-cfg
spacemacs-dark.lisp
;; A spacemacs-dark theme for the next-browser minibuffer (in-package :next) (defvar *my-minibuffer-style* (cl-css:css '((* :font-family "DejaVu Sans Mono" :color "#b2b2b2") (body :border-top "1px solid dimgray" :background-color "#292b2e" :margin "0" :padding "0 6px") ("#co...
null
https://raw.githubusercontent.com/tviti/next-cfg/c049fc58c9bea0aae9354f48683872ce114edf01/themes/spacemacs-dark.lisp
lisp
A spacemacs-dark theme for the next-browser minibuffer .selected must be set _after_ .marked so that it overrides its attributes since the candidate can be both marked and selected.
(in-package :next) (defvar *my-minibuffer-style* (cl-css:css '((* :font-family "DejaVu Sans Mono" :color "#b2b2b2") (body :border-top "1px solid dimgray" :background-color "#292b2e" :margin "0" :padding "0 6px") ("#container" :display "flex" :flex-flow "column" :...
d4704897c155630a36ba493daf24333db162f2aad634d88fbdf6ea7265ff409a
clojurians-org/haskell-example
LogicFragement.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE RecursiveDo # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Frontend.Page.DataNetwork.LogicFragement (dataNetwork_logicFragement_handle, dataNetwork_logicFragement) where import Common.WebSocketMessage ...
null
https://raw.githubusercontent.com/clojurians-org/haskell-example/c96b021bdef52a121e04ea203c8c3e458770a25a/conduit-ui/frontend/src/Frontend/Page/DataNetwork/LogicFragement.hs
haskell
type name description callInterface etlEngine
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE LambdaCase # # LANGUAGE RecursiveDo # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # module Frontend.Page.DataNetwork.LogicFragement (dataNetwork_logicFragement_handle, dataNetwork_logicFragement) where import Common.WebSocketMessage ...
9cb30255050dfe910fe075d681401211de69f1cc99323b051d854e6e371d5297
fukamachi/mito
sxql.lisp
(in-package :cl-user) (defpackage mito.migration.sxql (:use #:cl) (:import-from #:sxql #:yield) (:import-from #:sxql.sql-type #:sql-clause #:expression-clause #:sql-statement #:name #:with-yield-binds) (:import-from ...
null
https://raw.githubusercontent.com/fukamachi/mito/2fbfc8aa6f9e3e8029bf09888c74b9af98dad341/src/migration/sxql.lisp
lisp
(in-package :cl-user) (defpackage mito.migration.sxql (:use #:cl) (:import-from #:sxql #:yield) (:import-from #:sxql.sql-type #:sql-clause #:expression-clause #:sql-statement #:name #:with-yield-binds) (:import-from ...
cf5678e01fc7b7b27c0a22adca1a6805c2f8ba607222e70e010b03df0487c496
pbv/codex
AdminHandlers.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # ------------------------------------------------------------------------------ -- | Administration facilities; file browsing module Codex.AdminHandlers( handleBrowse, handleSubmissionAdmin, handleSubmissionList ) ...
null
https://raw.githubusercontent.com/pbv/codex/1a5a81965b12f834b436e2165c07120360aded99/src/Codex/AdminHandlers.hs
haskell
# LANGUAGE OverloadedStrings # ---------------------------------------------------------------------------- | Administration facilities; file browsing | Handle file browsing requests ensure that a user with admin privileges is logged in create files ; not yet enabled create files; not yet enabled liftIO $ ...
# LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # module Codex.AdminHandlers( handleBrowse, handleSubmissionAdmin, handleSubmissionList ) where import Snap.Core hiding (path) import Snap.Snaplet.Heist import qualified Snap . Snaplet . SqliteSimple as S im...
da4d68da7d784dcfdfcb9e98e2f1118efaada92bceb8bfa76c318398dac34a4f
patrikja/AFPcourse
Shape.hs
-- | Simple library for 2D shapes. module Shape ( module ShapeImpl , module Shape , module Matrix ) where import Matrix import Shape . Shallow as ShapeImpl import Shape.Deep as ShapeImpl -- | Derived combinators scale :: Vec -> Shape -> Shape scale v = transform (matrix (vecX v) 0 ...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L2/src/Shape.hs
haskell
| Simple library for 2D shapes. | Derived combinators
module Shape ( module ShapeImpl , module Shape , module Matrix ) where import Matrix import Shape . Shallow as ShapeImpl import Shape.Deep as ShapeImpl scale :: Vec -> Shape -> Shape scale v = transform (matrix (vecX v) 0 0 (vecY v)) rotate :: Angle -> Shape -> Shap...
373d09b63e99c49307ef328d91c8c6c73a698d3a4ad339ddc20ab3469dcee3b9
finkel-lang/finkel
fnk05.hs
; Using DEADBEEF as pragma string (module Main) (import Control.Monad) (:: main (IO ())) (= main (forM- (Just "From fnk05.hs") putStrLn)) ;;; Local variables: ;;; mode: finkel ;;; fill-columns: 72 ;;; comment-column: 0 ;;; End:
null
https://raw.githubusercontent.com/finkel-lang/finkel/74ce4bb779805ad2b141098e29c633523318fa3e/finkel-kernel/test/data/preprocess/fnk05.hs
haskell
; Using DEADBEEF as pragma string (module Main) (import Control.Monad) (:: main (IO ())) (= main (forM- (Just "From fnk05.hs") putStrLn)) ;;; Local variables: ;;; mode: finkel ;;; fill-columns: 72 ;;; comment-column: 0 ;;; End:
d0a99bce62a7f77dd19cd9a404a21d7539bc3e160938ecf3ecde79f0b106cd15
glguy/5puzzle
Select.hs
{-# Language TypeFamilies #-} module Select ( Select , runSelect , runSelectWith , select , selectList , mergeSelects , selectPermutation , selectPermutationN , unsafeUniqueSelects ) where import Ersatz import Booleans import ChooseBit import Data.Maybe import Data.List (tails) import Data.List.Non...
null
https://raw.githubusercontent.com/glguy/5puzzle/4d86cf9fad3ec3f70c57a167417adea6a3f9f30b/src/Select.hs
haskell
# Language TypeFamilies # | A set of choices and an index of the chosen element of that set | Symbolic selection from a non-empty list of alternatives. # SPECIALIZE selectList :: [a] -> StateT SAT IO (Select a) # | Symbolic selection from a non-empty list of alternatives. values that were constructed in the exact s...
module Select ( Select , runSelect , runSelectWith , select , selectList , mergeSelects , selectPermutation , selectPermutationN , unsafeUniqueSelects ) where import Ersatz import Booleans import ChooseBit import Data.Maybe import Data.List (tails) import Data.List.NonEmpty (NonEmpty(..)) import Da...
c5a2ad5f008fcd1968c444c99fb2ec30528682d828dbd9bdb6039b1449d09b43
AbstractMachinesLab/caramel
warnings.ml
(***********************************************************************) (* *) (* OCaml *) (* *) Pierre Weis...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/vendor/merlin/src/ocaml/utils/402/warnings.ml
ocaml
********************************************************************* OCaml ...
Pierre Weis & & Damien Doligez , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . When you change this , you...
10077e2559f56724dbe8282ad6131280c335a1c9a24a4f334896e0e3237bd86e
bobatkey/CS316-2020
Week06.hs
# OPTIONS_GHC -fwarn - incomplete - patterns # module Week06 where import Prelude hiding (return, Either (..)) WEEK 6 : SIMULATING SIDE EFFECTS Haskell is famous for not having " side effects " , or being " purely " functional . What does this mean ? Is it a good thing ? Is it a bad thing ? ...
null
https://raw.githubusercontent.com/bobatkey/CS316-2020/21d9edca6445d4287697cad0523ffae6a5b51f23/lecture-notes/Week06.hs
haskell
Now let's try to use this function to build a larger one. We're going to write a function that takes a list of key/value pairs, and a tree full of keys, and returns a tree of the same shape, but with all the keys replaced with their corresponding values from the list. Here's the 'Tree' type again: No...
# OPTIONS_GHC -fwarn - incomplete - patterns # module Week06 where import Prelude hiding (return, Either (..)) WEEK 6 : SIMULATING SIDE EFFECTS Haskell is famous for not having " side effects " , or being " purely " functional . What does this mean ? Is it a good thing ? Is it a bad thing ? ...
a609541f5ccf0c3f47c627b94c6699738fb2b3714fca5b294ea8f2c013cfadd5
Millak/my-guix
moreutils.scm
Copyright © 2020 , 2022 Efraim < > ;;; ;;; This file is an addendum to GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at ;;; your option) any ...
null
https://raw.githubusercontent.com/Millak/my-guix/5f9da60f6d9fd9915c97867605f4cdbe27fd2827/dfsg/main/moreutils.scm
scheme
This file is an addendum to GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A P...
Copyright © 2020 , 2022 Efraim < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (dfsg main moreutils) #:use-module (guix packages) #:use-module (guix utils) #:u...
bbf94a2d7b101dea0720740582b8f2517e527a1ebc1d5dd0331eb28b8e8c0fe4
mattmundell/nightshade
mc68881.lisp
The following code is to support the MC68881 floating point chip on the APC ;;; card. (in-package "RT") (eval-when (compile eval load) The actual positions of the info in the mc68881 FPCR and FPSR . ;;; (defconstant mc68881-fpcr-rounding-mode-byte (byte 2 4)) (defconstant mc68881-fpcr-rounding-precision-byte (by...
null
https://raw.githubusercontent.com/mattmundell/nightshade/d8abd7bd3424b95b70bed599e0cfe033e15299e0/src/compiler/rt/mc68881.lisp
lisp
card. Amount to shift by the get the condition code, - 16. The condition code bits. and the current exceptions. Encoding of float exceptions in the FLOATING-POINT-MODES result. This is Positions of bits in the FLOATING-POINT-MODES result. eval-when Move functions. See With-FP-Temp comment... Move VOPs...
The following code is to support the MC68881 floating point chip on the APC (in-package "RT") (eval-when (compile eval load) The actual positions of the info in the mc68881 FPCR and FPSR . (defconstant mc68881-fpcr-rounding-mode-byte (byte 2 4)) (defconstant mc68881-fpcr-rounding-precision-byte (byte 2 6)) (defc...
299a2f87572e26de70a84bf21ee33a32d277906b4c27c6ab361df26dbed6b0aa
fpco/optparse-simple
Simple.hs
# LANGUAGE TemplateHaskell # module Main (main) where import Options.Applicative.Simple (simpleVersion) import qualified Paths_optparse_simple as Meta main :: IO () main = putStrLn $(simpleVersion Meta.version)
null
https://raw.githubusercontent.com/fpco/optparse-simple/e7bed6f1170299a661e7e235b4085f293196031f/example/Simple.hs
haskell
# LANGUAGE TemplateHaskell # module Main (main) where import Options.Applicative.Simple (simpleVersion) import qualified Paths_optparse_simple as Meta main :: IO () main = putStrLn $(simpleVersion Meta.version)
fdd36a40f11753cfac9c93e8161b6b415bbe494fae64c28d1819347a21a52630
haskell-opengl/OpenGL
PixelStorage.hs
-------------------------------------------------------------------------------- -- | Module : Graphics . Rendering . OpenGL.GL.PixelRectangles . PixelStorage Copyright : ( c ) 2002 - 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- Thi...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGL/f7af8fe04b0f19c260a85c9ebcad612737cd7c8c/src/Graphics/Rendering/OpenGL/GL/PixelRectangles/PixelStorage.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------...
Module : Graphics . Rendering . OpenGL.GL.PixelRectangles . PixelStorage Copyright : ( c ) 2002 - 2019 Maintainer : < > This module corresponds to section 3.6.1 ( Pixel Storage Modes ) of the OpenGL 2.1 specs . module Graphics.Rendering.OpenGL.GL.PixelRectangles.PixelStorage ( PixelS...
0943d5a4a4a599dd9c451313487cf849516aed6de71fd4c1de2b62c00b930fff
polyfy/polylith
core_test.clj
(ns polylith.clj.core.file.core-test (:require [clojure.test :refer :all]))
null
https://raw.githubusercontent.com/polyfy/polylith/76936c752fb5b729c216b23d92c8a8d71cfdc92f/components/file/test/polylith/clj/core/file/core_test.clj
clojure
(ns polylith.clj.core.file.core-test (:require [clojure.test :refer :all]))
97837f33dfc25fa2d9edfde108753555fc09301347423f3bf34ab6c12c2f9680
haskell-mafia/boris
Route.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Boris.Http.Route ( boris , borisReadonly ) where import Airship (RoutingSpec, root, var, (#>), (</>)) import Boris.Core.Data import Boris.Http.Data import qualified Boris.Http.Resource.Build as Build import ...
null
https://raw.githubusercontent.com/haskell-mafia/boris/fb670071600e8b2d8dbb9191fcf6bf8488f83f5a/boris-http/src/Boris/Http/Route.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # module Boris.Http.Route ( boris , borisReadonly ) where import Airship (RoutingSpec, root, var, (#>), (</>)) import Boris.Core.Data import Boris.Http.Data import qualified Boris.Http.Resource.Build as Build import qualified Boris.Http.Resource.Commi...
ccdff04dd3d3270a4bc43d76a335278683ea2c951416d0d39cd408a299cebb83
alezost/config
config.scm
#!/usr/bin/env guile !# ;;; config.scm --- Deploy config files Copyright © 2015–2017 Author : < > Created : 3 Mar 2015 ;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/alezost/config/dab22e1d104e0896462c311b1a8fd46dee18d75a/config.scm
scheme
config.scm --- Deploy config files This program is free software; you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PU...
#!/usr/bin/env guile !# Copyright © 2015–2017 Author : < > Created : 3 Mar 2015 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (use-module...
cedca805ac756457148de53c3212438dab426eea3ee3d4be41f51c917299e3b2
akabe/ocaml-jupyter
json.ml
ocaml - jupyter --- An OCaml kernel for Jupyter Copyright ( c ) 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 without limitat...
null
https://raw.githubusercontent.com/akabe/ocaml-jupyter/7ea00fde81a915ee9d86c979f295f4c5dac28db8/src/core/json.ml
ocaml
* JSON utility TODO: replace with a suitable exception
ocaml - jupyter --- An OCaml kernel for Jupyter Copyright ( c ) 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 without limitat...
2e49410b9facb8e0c3ea4b7d96d88ad7b10f0d17ebe99ce93cece357335ddb5b
NorfairKing/smos
Help.hs
{-# LANGUAGE OverloadedStrings #-} module Smos.Actions.Help ( allHelpPlainActions, allHelpUsingCharActions, selectHelp, helpUp, helpDown, helpStart, helpEnd, helpSelectSearch, helpInsert, helpAppend, helpRemove, helpDelete, helpSelectHelp, helpToggleSelection, ...
null
https://raw.githubusercontent.com/NorfairKing/smos/f72b26c2e66ab4f3ec879a1bedc6c0e8eeb18a01/smos/src/Smos/Actions/Help.hs
haskell
# LANGUAGE OverloadedStrings #
module Smos.Actions.Help ( allHelpPlainActions, allHelpUsingCharActions, selectHelp, helpUp, helpDown, helpStart, helpEnd, helpSelectSearch, helpInsert, helpAppend, helpRemove, helpDelete, helpSelectHelp, helpToggleSelection, exitHelp, ) where import Smos.Ac...
8addef700f3d16544e82f2d8b260838ef840ff941cb6cfe4431f7b058f7f926b
CommonDoc/codex
docstring.lisp
(defun download-website-text (url) "Downloads @cl:param(url) and strips all HTML tags." ...) (defclass metal () ((cost :reader cost :initarg cost :type float :documentation "All instances @b(must) initialize cost to a floating point value.")))
null
https://raw.githubusercontent.com/CommonDoc/codex/f591d1e12ecc1c926232a437e1a9c1b6cb41ddbb/docs/includes/docstring.lisp
lisp
(defun download-website-text (url) "Downloads @cl:param(url) and strips all HTML tags." ...) (defclass metal () ((cost :reader cost :initarg cost :type float :documentation "All instances @b(must) initialize cost to a floating point value.")))
3da69d00f54468374b7387cd8e7ac52e96d8a1fab07a1587e14b27b43897b4e6
gtod/postgres-json
markdown-docstrings.lisp
;;;; This is gross, broken and inflexible and has been done better a ;;;; hundered times before but it does make decent looking API doco, ;;;; in the same order as my package exports and with nice sub heading ;;;; links... And because it's markdown, I can link to specific API ;;;; functions in other documents like the...
null
https://raw.githubusercontent.com/gtod/postgres-json/a545b6c61ca6ee4c6a579c77dbe6856013c7c34f/markdown-docstrings.lisp
lisp
This is gross, broken and inflexible and has been done better a hundered times before but it does make decent looking API doco, in the same order as my package exports and with nice sub heading links... And because it's markdown, I can link to specific API functions in other documents like the README and User's G...
(defpackage :markdown-docstrings (:use #:cl #:alexandria #:cl-ppcre) (:export #:generate)) (in-package :markdown-docstrings) (defparameter *lambda-junk* '(t nil &key &optional &rest &body)) (defvar *doc-cache*) (defvar *doc-package*) write the to DESTINATION . PACKAGE must be a package (defun generate (&...
ed61dc32620a0d4c288bf947e7c2507719311dadaa2595dcc8b2d89ce0ad4ed3
kupl/LearnML
original.ml
let rec iter ((n : int), (f : int -> int)) : int -> int = let compose (f : int -> int) (g : int -> int) (x : int) : int = f (g x) in if n = 0 || n = 1 then f else compose f (iter (n - 1, f))
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/iter/sub28/original.ml
ocaml
let rec iter ((n : int), (f : int -> int)) : int -> int = let compose (f : int -> int) (g : int -> int) (x : int) : int = f (g x) in if n = 0 || n = 1 then f else compose f (iter (n - 1, f))
615a1e8e3af7c83cff829a0ff4120cfe8782f4d436141f15aaf8ce8c1666e537
jtza8/interact
shader-test.lisp
; Use of this source code is governed by a BSD-style license that can be found in the license.txt file ; in the root directory of this project. (in-package :interact) (defclass shader-test (test-case) ()) (def-test-method test-shader ((test shader-test)) ;; (assert-condition 'shader-error (make-instance 'shade...
null
https://raw.githubusercontent.com/jtza8/interact/ea2121d7e900dac4fe2a085bd5f2783a640e71f8/src/tests/shader-test.lisp
lisp
Use of this source code is governed by a BSD-style in the root directory of this project. (assert-condition 'shader-error (make-instance 'shader))
license that can be found in the license.txt file (in-package :interact) (defclass shader-test (test-case) ()) (def-test-method test-shader ((test shader-test)) (with-display-system (:width 640 :height 480) (let* ((target (make-instance 'painter :sprite (make-in...
0ebae3920aa6d5dd3ebcf64256804674fc56b65e9f4c52fefe33dd481543149c
Octachron/olivine
misc.ml
module Aliases= struct module L = Info.Linguistic module B = Lib module H = Ast_helper module Exp = H.Exp module P = Parsetree module C = Common end open Aliases open Item open Utils let packed m = Exp.pack H.Mod.(ident @@ nlid @@ modname m) let builtin = "Vk__builtin__types" let builtin' = L.(~:builtin)...
null
https://raw.githubusercontent.com/Octachron/olivine/e93df595ad1e8bad5a8af689bac7d150753ab9fb/aster/misc.ml
ocaml
module Aliases= struct module L = Info.Linguistic module B = Lib module H = Ast_helper module Exp = H.Exp module P = Parsetree module C = Common end open Aliases open Item open Utils let packed m = Exp.pack H.Mod.(ident @@ nlid @@ modname m) let builtin = "Vk__builtin__types" let builtin' = L.(~:builtin)...
fe8a1ddfe6024d063b635e7db367f3cbbc46444256f62ff8cb0072127be811fe
sdiehl/kaleidoscope
Lexer.hs
-------------------------------------------------------------------- -- | Module : Copyright : ( c ) 2013 License : MIT -- Maintainer: -- Stability : experimental -- Portability: non-portable -- -------------------------------------------------------------------- module Lexer where import Tex...
null
https://raw.githubusercontent.com/sdiehl/kaleidoscope/682bdafe6d8f90caca4cdd0adb30bd3ebd9eff7b/src/chapter7/Lexer.hs
haskell
------------------------------------------------------------------ | Maintainer: Stability : experimental Portability: non-portable ------------------------------------------------------------------
Module : Copyright : ( c ) 2013 License : MIT module Lexer where import Text.Parsec.String (Parser) import Text.Parsec.Language (emptyDef) import Text.Parsec.Prim (many) import qualified Text.Parsec.Token as Tok lexer :: Tok.TokenParser () lexer = Tok.makeTokenParser style where ops = ["...
ae7ee741a97be7c3f6a9b668716aceca01dcf8d03ebc388323dcb6a52e2b3283
ocsigen/js_of_ocaml
jsoo_findlib_support.ml
Js_of_ocaml compiler * / * Copyright ( C ) 2015 Hugo Heuzard * * 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 exception ; * either version 2.1 of th...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/9141d50d34d64bb02bc8e954a7549be6fb58a0a5/compiler/lib-findlib-support/jsoo_findlib_support.ml
ocaml
Js_of_ocaml compiler * / * Copyright ( C ) 2015 Hugo Heuzard * * 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 exception ; * either version 2.1 of th...
e178c00d6929a028cb4eda53913d6222237796defd1e8577b124c5c4c5a671f3
pat227/ocaml-db-model
bignum_extended.ml
module Bignum = Bignum module Bignum_extended = struct include Bignum let pp = Bignum.pp_hum let to_string = Bignum.to_string_hum ~delimiter:',' ~decimals:9 ~strip_zero:true let show = Bignum.to_string_hum ~delimiter:',' ~decimals:9 ~strip_zero:true let to_yojson t = let s = to_string_hum t in ...
null
https://raw.githubusercontent.com/pat227/ocaml-db-model/4983f6136027d47a4571b42f34296ab44978b761/src/lib/bignum_extended.ml
ocaml
module Bignum = Bignum module Bignum_extended = struct include Bignum let pp = Bignum.pp_hum let to_string = Bignum.to_string_hum ~delimiter:',' ~decimals:9 ~strip_zero:true let show = Bignum.to_string_hum ~delimiter:',' ~decimals:9 ~strip_zero:true let to_yojson t = let s = to_string_hum t in ...
9e61242b55d35126b9a9969f12f3c5fee4ce7f294145fcf0a5f663dc03b49cf7
matsubara0507/git-plantation
Repo.hs
# LANGUAGE DataKinds # # LANGUAGE OverloadedLabels # {-# LANGUAGE TypeOperators #-} # OPTIONS_GHC -fno - warn - orphans # module SubCmd.Repo ( RepoCmd (..) ) where import RIO import Data.Extensible import Git.Plantation.Cmd.Repo import Git.Plantation.Cmd.Run ne...
null
https://raw.githubusercontent.com/matsubara0507/git-plantation/55ec98a3c15356ac7a8c07bb0d5dc5779650e921/exec/tool/SubCmd/Repo.hs
haskell
# LANGUAGE TypeOperators #
# LANGUAGE DataKinds # # LANGUAGE OverloadedLabels # # OPTIONS_GHC -fno - warn - orphans # module SubCmd.Repo ( RepoCmd (..) ) where import RIO import Data.Extensible import Git.Plantation.Cmd.Repo import Git.Plantation.Cmd.Run newtype RepoCmd = RepoCmd (Variant C...