_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
e95d97dd7a22b3ecad08abffb82391c56728defabb1937088532084ad16b0b7e
iconnect/regex
Text.hs
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 800 {-# LANGUAGE TemplateHaskellQuotes #-} #else {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} #endif module Text.RE.ZeInternals.SearchReplace.TDFA.Text ( ed , edMultilineSensitive , edMultilineInse...
null
https://raw.githubusercontent.com/iconnect/regex/68752790a8f75986b917b71cf0e8e22cd3a28a3d/Text/RE/ZeInternals/SearchReplace/TDFA/Text.hs
haskell
# LANGUAGE TemplateHaskellQuotes # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # | @[ed| ... \/\/\/ ... |]@, is equivalent to @[edMultilineSensitive| ... \/\/\/ ... |]@, | @[edMS| ... \/\/\/ ... |]@ is a shorthand for @[edMultilineSensitive| ... \/\/\/ ... |]@ | @[edBS| ... \/\...
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 800 #else #endif module Text.RE.ZeInternals.SearchReplace.TDFA.Text ( ed , edMultilineSensitive , edMultilineInsensitive , edBlockSensitive , edBlockInsensitive , edMS , edMI , edBS , edBI , ed_ ) where import qualified Data.Tex...
9a4a52547706ca40d4d9b43bb755f5b89aa5ada6826b4f16f7c77dfd1d3fe2d6
RefactoringTools/wrangler
refac_s_group.erl
@private -module(refac_s_group). -include("wrangler.hrl"). -export([meta_rule_set/0, simple_rule_set/0, old_apis/0]). old_apis() -> [{global_group, send, 2}, {global_group, global_groups, 0}]. meta_rule_set() -> [send_meta_rule(), global_groups_meta_rule()]. simple_rule_set() -> [send_rule(), global_groups_r...
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/1c33ad0e923bb7bcebb6fd75347638def91e50a8/src/refac_s_group.erl
erlang
@private -module(refac_s_group). -include("wrangler.hrl"). -export([meta_rule_set/0, simple_rule_set/0, old_apis/0]). old_apis() -> [{global_group, send, 2}, {global_group, global_groups, 0}]. meta_rule_set() -> [send_meta_rule(), global_groups_meta_rule()]. simple_rule_set() -> [send_rule(), global_groups_r...
f366df156f96e9ccc5b20bb60b6f88476383fa50ae0c74a35e42d40bd59dab4c
chetmurthy/ensemble
util.ml
(**************************************************************) (* UTIL.ML *) Author : , 4/95 (**************************************************************) let failwith m = failwith ("UTIL:"^m) (**************************************************************) external (=|) : int -> int -> bool = "%eq" external ...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/util/util.ml
ocaml
************************************************************ UTIL.ML ************************************************************ ************************************************************ ************************************************************ The identity function. It had been defined as follows (both in...
Author : , 4/95 let failwith m = failwith ("UTIL:"^m) external (=|) : int -> int -> bool = "%eq" external (<>|) : int -> int -> bool = "%noteq" external (>=|) : int -> int -> bool = "%geint" external (<=|) : int -> int -> bool = "%leint" external (>|) : int -> int -> bool = "%gtint" external (<|) : int -> int -> b...
8608043424ef5c5cb3e09ad185b1866f0138019eda1ed2728e6fa0961de6880c
ptressel/LISPSearch
intersect.lsp
Author : < > ;; Here is the lispified code to compute intersection of 2 lines . ;; the entry function is: ;; ;; (intersect x0 y0 x1 y1 x2 y2 x3 y3) ;; where the lines are ( x0,y0 ) - ( ) and ( x2,y2 ) - ( x3 , y3 ) ;; intersect returns nil if the lines don't intersect ;; note that the endpoints of lin...
null
https://raw.githubusercontent.com/ptressel/LISPSearch/791c0eb65d6be9d232143795adba2e5b8057f61d/intersect.lsp
lisp
the entry function is: (intersect x0 y0 x1 y1 x2 y2 x3 y3) intersect returns nil if the lines don't intersect note that the endpoints of lines do count as possible intersection points. if the lines intersect, it returns a list of the x and y coordinates of the intersection point. Modified: - Handles in...
Author : < > Here is the lispified code to compute intersection of 2 lines . where the lines are ( x0,y0 ) - ( ) and ( x2,y2 ) - ( x3 , y3 ) and are no longer treated symmetrically . Return value is now T or NIL . This version regards the first point as the current point , the second as the ...
5513c5b15f7337bb7462abea3cf65cc93ce4b9d125dcf2d181edfe0daa3583a9
caisah/sicp-exercises-and-examples
ex_3.8.scm
When we defined the evaluation model in Section 1.1.3 , we said that the first step ;; in evaluating an expression is to evaluate its sub-expressions. But we never specified ;; the order in which the sub-expressions should be evaluated (e.g. left to right or right ;; to left). when we introduce a assignment, the orde...
null
https://raw.githubusercontent.com/caisah/sicp-exercises-and-examples/605c698d7495aa3474c2b6edcd1312cb16c5b5cb/3.1.3-the_cost_of_introducing_assignment/ex_3.8.scm
scheme
in evaluating an expression is to evaluate its sub-expressions. But we never specified the order in which the sub-expressions should be evaluated (e.g. left to right or right to left). when we introduce a assignment, the order in which the arguments to procedure are evaluated can make a difference to the result. De...
When we defined the evaluation model in Section 1.1.3 , we said that the first step to right but will return 1 if the arguments are evaluated from right to left . (define n 1) (define (f x) (set! n (* n x)) n) (+ (f 0) (f 1)) (define n 1) (define (f x) (set! n (* n x)) n) (+ (f 1) (f 0))
87fec44b21e1e7d81bf47ded615d1dc555a3992ef5e30de79d5a1f3a192ce7ec
zotonic/zotonic
scomp_wires_validate.erl
@author < > 2009 - 2010 %% @doc Add a validation to an element Copyright 2009 - 2010 %% 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 requir...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_wires/src/scomps/scomp_wires_validate.erl
erlang
@doc Add a validation to an element 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...
@author < > 2009 - 2010 Copyright 2009 - 2010 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(scomp_wires_validate). -author("Marc Worrell <>"). -behaviour(zotonic_scomp). -export([vary/2, render/3])....
f1c81f4932a733bc01f8b52febbcf180d5834298be4a5e354c39149562794c16
ghcjs/jsaddle-dom
FileList.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.FileList (item, item_, itemUnsafe, itemUnchecked, getLength, FileList(..), gTypeFileList) where impo...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/FileList.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.FileList (item, item_, itemUnsafe, itemUnchecked, getLength, FileList(..), gTypeFileList) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral,...
ec62824191afb32b286f8793f3f6ebed10b8a20c6d2dd34a12a0df878db2ac7b
mentat-collective/emmy
hodge_star.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.calculus.hodge-star (:refer-clojure :exclude [+ - * /]) (:require [emmy.calculus.basis :as b] [emmy.calculus.form-field :as ff] [emmy.function :as f] [emmy.generic :as g :refer [+ - * /]] [emmy.matrix :as matrix] ...
null
https://raw.githubusercontent.com/mentat-collective/emmy/535b237a8e3fd7067b9c0ade8b2a4b3419f9f132/src/emmy/calculus/hodge_star.cljc
clojure
This namespace holds functions from hodge-star.scm and gram-schmidt.scm in scmutils. orthonormalize? must be a coordinate system... spec must be a coordinate system if it's not a basis.
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.calculus.hodge-star (:refer-clojure :exclude [+ - * /]) (:require [emmy.calculus.basis :as b] [emmy.calculus.form-field :as ff] [emmy.function :as f] [emmy.generic :as g :refer [+ - * /]] [emmy.matrix :as matrix] ...
2fc8e4859e8195e55752d3a6ffba91e3749e8293e610f456f0e50e100f92cefd
acl2/acl2
defstruct-doc.lisp
C Library ; Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "C") (i...
null
https://raw.githubusercontent.com/acl2/acl2/1e94e0bfb92e8caa9e90d9d5fe6afbed655bf8db/books/kestrel/c/atc/defstruct-doc.lisp
lisp
C Library Copyright ( C ) 2023 Kestrel Institute ( ) Copyright ( C ) 2023 Kestrel Technology LLC ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "C") (include-book "kestrel/event-macros/xdoc-constructors" :dir :system) (defxdoc defstruct...
72694cb92e31c9e51082cd3d710bc52842da362324908fec8e45df88d272a817
haskell/haskell-language-server
PunGADT.hs
{-# LANGUAGE GADTs #-} data GADT a where GADT :: { blah :: Int , bar :: a } -> GADT a split :: GADT a -> a split x = _
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/PunGADT.hs
haskell
# LANGUAGE GADTs #
data GADT a where GADT :: { blah :: Int , bar :: a } -> GADT a split :: GADT a -> a split x = _
f5be08501b7ac6417eab66e11d1264e4e3a618be498d36b02495251666b705f3
clojupyter/clojupyter
dispatch_test.clj
(ns clojupyter.kernel.dispatch-test (:require [clojure.spec.alpha :as s] [midje.sweet :as midje :refer [fact throws =>]] ,, [clojupyter.kernel.handle-event :as he] [clojupyter.messages :as msgs] [clojupyter.test-shared :as ts] )) ;;; ------------------------------------------------------...
null
https://raw.githubusercontent.com/clojupyter/clojupyter/b54b30b5efa115937b7a85e708a7402bd9efa0ab/test/clojupyter/kernel/dispatch_test.clj
clojure
------------------------------------------------------------------------------------------------------------------------ GENERATE ERRORS FOR MESSAGES WE EXPECT TO NEVER RECEIVE ------------------------------------------------------------------------------------------------------------------------
(ns clojupyter.kernel.dispatch-test (:require [clojure.spec.alpha :as s] [midje.sweet :as midje :refer [fact throws =>]] ,, [clojupyter.kernel.handle-event :as he] [clojupyter.messages :as msgs] [clojupyter.test-shared :as ts] )) (fact "Receipt of unknown Jupyter messages throws an err...
09b6795b89346ce71b225e7522a768ca4b0a6317f6c5f7d0f7eaa51afa859c9b
xclerc/ocamljava
javalink_parameters.ml
* This file is part of compiler . * Copyright ( C ) 2007 - 2015 . * * compiler is free software ; you can redistribute it and/or modify * it under the terms of the Q Public License as published by * ( with a change to choice of law ) . * * compiler is distributed in the hope that it ...
null
https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/compiler/javacomp/javalink_parameters.ml
ocaml
from org.ocamljava.runtime.parameters.CommonParameters from org.ocamljava.runtime.parameters.NativeParameters
* This file is part of compiler . * Copyright ( C ) 2007 - 2015 . * * compiler is free software ; you can redistribute it and/or modify * it under the terms of the Q Public License as published by * ( with a change to choice of law ) . * * compiler is distributed in the hope that it ...
3ef968880e5674dfb35010f0c64f67626a13d036e0ed92dc22c9f784dec14ad7
laurencer/confluence-sync
Types.hs
# LANGUAGE RecordWildCards # module Confluence.Sync.XmlRpc.Types ( NewPage(..) , Page(..) , PageSummary(..) , pageSummaryFromPage , Attachment(..) , NewAttachment(..) , Space(..) ) where import Prelude hiding (id) import Data.Int import Data.Maybe import Data.Time.LocalTi...
null
https://raw.githubusercontent.com/laurencer/confluence-sync/442fdbc84fe07471f323af80d2d4580026f8d9e8/src/Confluence/Sync/XmlRpc/Types.hs
haskell
Helper Functions
# LANGUAGE RecordWildCards # module Confluence.Sync.XmlRpc.Types ( NewPage(..) , Page(..) , PageSummary(..) , pageSummaryFromPage , Attachment(..) , NewAttachment(..) , Space(..) ) where import Prelude hiding (id) import Data.Int import Data.Maybe import Data.Time.LocalTi...
a7f32abce916c1a027ddda6b5c772b6053688692487b9f2eed1fb6bcd9d870e4
yogthos/krueger
widgets.cljs
(ns krueger.components.widgets (:require [re-frame.core :as rf] [cljsjs.semantic-ui-react :as ui])) (rf/reg-event-db :input/set-value (fn [db [_ path value]] (assoc-in db path value))) (rf/reg-sub :input/value (fn [db [_ path]] (get-in db path))) (defn input [type path opts] [type (mer...
null
https://raw.githubusercontent.com/yogthos/krueger/782e1f8ab358867102b907c5a80e56ee6bc6ff82/src/cljs/krueger/components/widgets.cljs
clojure
(ns krueger.components.widgets (:require [re-frame.core :as rf] [cljsjs.semantic-ui-react :as ui])) (rf/reg-event-db :input/set-value (fn [db [_ path value]] (assoc-in db path value))) (rf/reg-sub :input/value (fn [db [_ path]] (get-in db path))) (defn input [type path opts] [type (mer...
23df4dd132dd1bcf846789bcbe2b4ff64d4f3a252db276ab6065c5a3013d66d3
emqx/ekka
ekka_cluster_k8s.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/ekka/ff1bc220b06fcb10a0b2794773615066163db932/src/ekka_cluster_k8s.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 ) 2019 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ekka_cluster_k8s). -behaviour(ekka_cluster_strategy). -export([ discover/1 , lock/1 ...
8457372c82c6f1387b01eb433e5e30cfe47d7467227594ccaac65abaf8d92734
idris-lang/Idris-dev
ProofSearch.hs
| Module : . ProofSearch Description : Searches current context for proofs ' License : : The Idris Community . Module : Idris.ProofSearch Description : Searches current context for proofs' License : BSD3 Maintainer : The Idris Community. -} # LANGUAGE PatternGuards # module Idris....
null
https://raw.githubusercontent.com/idris-lang/Idris-dev/a13caeb4e50d0c096d34506f2ebf6b9d140a07aa/src/Idris/ProofSearch.hs
haskell
Pass in a term elaborator to avoid a cyclic dependency with ElabTerm user visible names, when working in interactive mode if type of x has any holes in it, move on if type of x has any holes in it, move on ^ recursive search (False for 'refine') ^ invoked from a tactic proof. If so, making new metavariables is m...
| Module : . ProofSearch Description : Searches current context for proofs ' License : : The Idris Community . Module : Idris.ProofSearch Description : Searches current context for proofs' License : BSD3 Maintainer : The Idris Community. -} # LANGUAGE PatternGuards # module Idris....
d920ccb8c850e0ec1fd4b96021c744a6cd1acf33c1562d03316b963d07bc6397
melange-re/melange-compiler-libs
datarepr.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/melange-re/melange-compiler-libs/2fac95b0ea97fb676240662aeeec8c6f6495dd9c/typing/datarepr.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Compute constructor and label descriptions from type declarations , determining their representati...
4c61737a1dedb512d11261b520fec896ae88dd515612bd9b16c589104c5313b3
zcaudate/hara
include_test.clj
(ns hara.module.base.include-test (:use hara.test) (:require [hara.module.base.include :refer :all] [hara.module.base.link :as link])) ^{:refer hara.module.base.include/include :added "3.0"} (fact "Imports all or a selection of vars from one namespace to the current one." (include (hara.core.base.ch...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/module/base/include_test.clj
clojure
(ns hara.module.base.include-test (:use hara.test) (:require [hara.module.base.include :refer :all] [hara.module.base.link :as link])) ^{:refer hara.module.base.include/include :added "3.0"} (fact "Imports all or a selection of vars from one namespace to the current one." (include (hara.core.base.ch...
19db6e41f635b31feb43f0aeaf07929a431284f3b89c7dc0fbe774c0aa28170b
nmunro/cl-tutorials
main.lisp
(defpackage coin-toss (:use :cl)) (in-package :coin-toss) (defun toss-coin () "Generate a random heads or tails" (let ((number (random 2 (make-random-state t)))) (if (= number 0) "heads" "tails"))) (defun prompt () "Get user input and loop if it is not 'heads' or 'tails'" (format t "Pl...
null
https://raw.githubusercontent.com/nmunro/cl-tutorials/e42f879edb01456f3cf0d159b0042e8e61f1b02e/1-coin-toss/src/main.lisp
lisp
(defpackage coin-toss (:use :cl)) (in-package :coin-toss) (defun toss-coin () "Generate a random heads or tails" (let ((number (random 2 (make-random-state t)))) (if (= number 0) "heads" "tails"))) (defun prompt () "Get user input and loop if it is not 'heads' or 'tails'" (format t "Pl...
2032681feebd3a49c2ee0efaca45bcc86cd42b78c5a305957a97264e92ba62b8
JacquesCarette/Drasil
Document.hs
| Defines functions to transform - based documents into a printable version . module Language.Drasil.Printing.Import.Document where import Language.Drasil hiding (neg, sec, symbol, isIn) import Language.Drasil.Development (showUID) import qualified Language.Drasil.Printing.AST as P import qualified Language.Drasil...
null
https://raw.githubusercontent.com/JacquesCarette/Drasil/92dddf7a545ba5029f99ad5c5eddcd8dad56a2d8/code/drasil-printers/lib/Language/Drasil/Printing/Import/Document.hs
haskell
* Main Function | Translates from 'Document' to a printable representation of 'T.Document'. * Helpers | Helper function for creating sections as layout objects. | Helper function for creating sections at the appropriate depth. FIXME: should ShortName be used somewhere? | Helper for translating sections into a pri...
| Defines functions to transform - based documents into a printable version . module Language.Drasil.Printing.Import.Document where import Language.Drasil hiding (neg, sec, symbol, isIn) import Language.Drasil.Development (showUID) import qualified Language.Drasil.Printing.AST as P import qualified Language.Drasil...
00776ad7aa467bf0c0b3fc2b0105fd4494815323b29b85bfdec7cfa4445135aa
cucapra/diospyros
qr-decomp.rkt
#lang rosette (require "../ast.rkt" "../configuration.rkt" "../utils.rkt" "../uninterp-fns.rkt" "matrix-multiply.rkt") (provide qr-decomp:only-spec qr-decomp:keys) ;; Runs the spec with symbolic inputs and returns: ;; - the resulting formula. ;; - the prelude instructions ...
null
https://raw.githubusercontent.com/cucapra/diospyros/5c9fb6d3bda40d7bb395546aaefc78e6813b729f/src/examples/qr-decomp.rkt
racket
Runs the spec with symbolic inputs and returns: - the resulting formula. - the prelude instructions (list) - outputs that the postlude should write to [sqrt-func sqrt-mock]) [sgn-func sgn-mock]) Create identity of the same size Create the vectors x, e (length dependent on n minus index, call this m) alpha is a...
#lang rosette (require "../ast.rkt" "../configuration.rkt" "../utils.rkt" "../uninterp-fns.rkt" "matrix-multiply.rkt") (provide qr-decomp:only-spec qr-decomp:keys) (define (qr-decomp:only-spec config) (define n (hash-ref config 'N)) (define A (make-symbolic-matrix n n ...
f475e8754dba014077cb61f9448bc97e3bfcf2f54320d2b97a02ed0c6b0fb250
luminus-framework/examples
middleware.clj
(ns multi-client-ws-http-kit.middleware (:require [multi-client-ws-http-kit.env :refer [defaults]] [cheshire.generate :as cheshire] [cognitect.transit :as transit] [clojure.tools.logging :as log] [multi-client-ws-http-kit.layout :refer [error-page]] [ring.middleware.anti-forgery :refer [wrap-a...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/multi-client-ws-http-kit/src/clj/multi_client_ws_http_kit/middleware.clj
clojure
since they're not compatible with this middleware
(ns multi-client-ws-http-kit.middleware (:require [multi-client-ws-http-kit.env :refer [defaults]] [cheshire.generate :as cheshire] [cognitect.transit :as transit] [clojure.tools.logging :as log] [multi-client-ws-http-kit.layout :refer [error-page]] [ring.middleware.anti-forgery :refer [wrap-a...
47ced0368cfe15a4eb5178e6deb9a27145f8f25282da5964b0e3e11911182f2d
themetaschemer/malt
test-E-print.rkt
(module+ test (require rackunit) (require "../tensors.rkt") (require "A-autodiff.rkt") (define long-tensor (tensor 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)) (define dualized-long-tensor (dual long-tensor end-of-chain)) (define deep-tensor (tensor long-tensor long-tensor long-tensor long-tensor lo...
null
https://raw.githubusercontent.com/themetaschemer/malt/c847313ba65bf999e2d2932db91a4448a700bdbb/nested-tensors/autodiff/test/test-E-print.rkt
racket
(module+ test (require rackunit) (require "../tensors.rkt") (require "A-autodiff.rkt") (define long-tensor (tensor 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15)) (define dualized-long-tensor (dual long-tensor end-of-chain)) (define deep-tensor (tensor long-tensor long-tensor long-tensor long-tensor lo...
97c805e348e9433f8ae0e3576fb8dd65a2433a5d9bbe7de73cd99030fff2d2cd
GNOME/gimp-tiny-fu
text-circle.scm
text-circle.scm -- a script for Author : < > Time - stamp : < 1998/11/25 13:26:51 > Version 2.5 ;; Thanks: ( ) < > ;; Modified June 24 , 2005 by Incorporated changes made by in his text-circle2.scm ;; script. The letters are now placed properly for both positive and negative ;; fill ...
null
https://raw.githubusercontent.com/GNOME/gimp-tiny-fu/a64d85eec23b997e535488d67f55b44395ba3f2e/scripts/text-circle.scm
scheme
Thanks: script. The letters are now placed properly for both positive and negative fill angles. change units make width-list In a situation, (car (gimp-drawable-width (car (gimp-text ...))) != (car (gimp-text-get-extent ...)) Running gimp-text with " " causes an error!
text-circle.scm -- a script for Author : < > Time - stamp : < 1998/11/25 13:26:51 > Version 2.5 ( ) < > Modified June 24 , 2005 by Incorporated changes made by in his text-circle2.scm (if (not (symbol-bound? 'script-fu-text-circle-debug? (current-environment))) (define script-fu...
516cdbb2083d9df2aef908dc85eadf913fc649ede2a4f4a2116f77fdc89e2b46
freckle/stackctl
Colors.hs
-- | Facilities for colorizing output module Stackctl.Colors ( Colors(..) , getColorsStdout , getColorsLogger , noColors ) where import Stackctl.Prelude import Blammo.Logging.Colors import Blammo.Logging.Logger import Blammo.Logging.LogSettings (shouldColorHandle) -- | Return 'Colors' based on options and ...
null
https://raw.githubusercontent.com/freckle/stackctl/b04e1790dc523cea39e07c868b4fa328f4e453cb/src/Stackctl/Colors.hs
haskell
| Facilities for colorizing output | Return 'Colors' based on options and 'stdout' | Return 'Colors' based on options given 'Handle' | Return 'Colors' consistent with the ambient 'Logger'
module Stackctl.Colors ( Colors(..) , getColorsStdout , getColorsLogger , noColors ) where import Stackctl.Prelude import Blammo.Logging.Colors import Blammo.Logging.Logger import Blammo.Logging.LogSettings (shouldColorHandle) getColorsStdout :: (MonadIO m, MonadReader env m, HasLogger env) => m Colors get...
0ebba13c685966f84d1b1c004223e5a20f5e10de35aca53767aa4a46f15ea9c4
sionescu/iolib
lookup.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; --- High-level name lookup. ;;; (in-package :iolib/sockets) (defconstant +max-ipv4-value+ (1- (expt 2 32)) "Integer denoting 255.255.255.255") High - level Interface ;;; TODO: caching (defun reply-error-condition (reply query-type) (cond ((null reply) 'r...
null
https://raw.githubusercontent.com/sionescu/iolib/dac715c81db55704db623d8b2cfc399ebcf6175f/src/sockets/dns/lookup.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- --- High-level name lookup. TODO: caching TODO: * implement address selection as per RFC 3484 * add caching * profile the whole thing
(in-package :iolib/sockets) (defconstant +max-ipv4-value+ (1- (expt 2 32)) "Integer denoting 255.255.255.255") High - level Interface (defun reply-error-condition (reply query-type) (cond ((null reply) 'resolver-again-error) ((dns-flag-p reply :name-error) 'resolver-no-name-error) ((or (dns-f...
5a824e5ad484fda47347ef57a7787ef939f31fbf4353442e28f614bd5716ba56
parapluu/Concuerror
concuerror_io_lib.erl
@private -module(concuerror_io_lib). -export([error_s/2, pretty/3, pretty_s/2]). -include("concuerror.hrl"). -spec error_s(concuerror_scheduler:interleaving_error(), pos_integer()) -> string(). error_s(fatal, _Depth) -> io_lib:format("* Concuerror crashed~n", []); error_s({Type, Info}, Depth) -...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/src/concuerror_io_lib.erl
erlang
@private -module(concuerror_io_lib). -export([error_s/2, pretty/3, pretty_s/2]). -include("concuerror.hrl"). -spec error_s(concuerror_scheduler:interleaving_error(), pos_integer()) -> string(). error_s(fatal, _Depth) -> io_lib:format("* Concuerror crashed~n", []); error_s({Type, Info}, Depth) -...
1668e2d241b2ff96b7962d6103ec845028408e8ee2a692a658a12f1d941c0e01
genmeblog/techtest
api.clj
(ns techtest.api (:refer-clojure :exclude [group-by drop concat rand-nth first last shuffle]) (:require [tech.parallel.utils :as exporter])) (exporter/export-symbols tech.v2.datatype clone) (exporter/export-symbols tech.ml.dataset column-count ...
null
https://raw.githubusercontent.com/genmeblog/techtest/4b8111fde17fcffd7f7fb6fa9454d030f1847adc/src/techtest/api.clj
clojure
(ns techtest.api (:refer-clojure :exclude [group-by drop concat rand-nth first last shuffle]) (:require [tech.parallel.utils :as exporter])) (exporter/export-symbols tech.v2.datatype clone) (exporter/export-symbols tech.ml.dataset column-count ...
264f9cfaef19b8812b8c0494cb6740d21d7adf10cc438e30757c750a7b27f480
openbadgefactory/salava
routes.cljs
(ns salava.location.ui.routes (:require [salava.core.ui.layout :as layout] [salava.core.i18n :as i18n :refer [t]] [salava.core.ui.helper :refer [base-path path-for]] [salava.location.ui.explore :as explore] [salava.location.ui.block] [salava.location.ui.moda...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/cljs/salava/location/ui/routes.cljs
clojure
(ns salava.location.ui.routes (:require [salava.core.ui.layout :as layout] [salava.core.i18n :as i18n :refer [t]] [salava.core.ui.helper :refer [base-path path-for]] [salava.location.ui.explore :as explore] [salava.location.ui.block] [salava.location.ui.moda...
4659eee2d21d8310c0481754d73bbbd81ce1b4f49e96ca76a81e571155e79553
ocamllabs/ocaml-effects
asttypes.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/parsing/asttypes.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . Auxiliary a.s.t . types used by parse...
62e0bf954a26111199d2a08960423464327c65834d6a32b01c2bc9a516ea19ce
jjmrocha/kill-bill
kb_cowboy_toppage.erl
%% Copyright 2013 %% 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 ...
null
https://raw.githubusercontent.com/jjmrocha/kill-bill/1ba409c39524f2b47ff1338214bc9b4de3f2659e/src/kb_cowboy_toppage.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 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(kb_cowboy_toppage). -behaviour(cowboy_http_handler). -include("kill_bill.hrl"). -export([init/3, handle/2, terminate/3]). init(_Transport, Data, ...
a657a4d5e4d12b075ee5c90f4d5a97ab2740235553d5b2816f6833977fa84c17
typeclasses/dsv
FileStrictCsvMap.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module DSV.FileStrictCsvMap ( mapCsvFileStrictWithoutHeader , mapCsvFileStrictIgnoringHeader , mapCsvFileStrictUsingHeader ) where import DSV.ByteString import DSV.CommonDelimiters import DSV.FileStrictMap import DSV.IO import DSV.ParseStop impor...
null
https://raw.githubusercontent.com/typeclasses/dsv/ae4eb823e27e4c569c4f9b097441985cf865fbab/dsv/library/DSV/FileStrictCsvMap.hs
haskell
^ The path of a CSV file to read ^ Conversion function by which you specify how to interpret one row of bytes from the CSV file ^ The path of a CSV file to read ^ Conversion function by which you specify how to interpret one row of bytes from the CSV file ^ The path of a CSV file to read
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module DSV.FileStrictCsvMap ( mapCsvFileStrictWithoutHeader , mapCsvFileStrictIgnoringHeader , mapCsvFileStrictUsingHeader ) where import DSV.ByteString import DSV.CommonDelimiters import DSV.FileStrictMap import DSV.IO import DSV.ParseStop impor...
0ec3c3adfc5f275532cee066e10a4d5d601fa83c1a292ca91e4282603c63eb92
futurice/haskell-futurice-prelude
TypeTag.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE Standa...
null
https://raw.githubusercontent.com/futurice/haskell-futurice-prelude/56192d63bea76d06cb456c5ce4c776cf41a5cd7e/src/Futurice/TypeTag.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE KindSignatures # # LANGUAGE PolyKinds # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # * TT * SomeTT * Is --------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # module Futurice.TypeTag ( TT (..), typeTags, typeTagDict, typeTagDict2, typeTagDict3, SomeTT (..), someTTToText, someTTFromText, someTTToInt, Is, ) where import Data.Aeson...
4a17207fa590f8a25a274faa7f4d5e5026bdb6949bfab2e2ddebce8c79bf776a
sol/hpack
EndToEndSpec.hs
# LANGUAGE FlexibleContexts # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE LambdaCase # {-# LANGUAGE ConstraintKinds #-} module EndToEndSpec (spec) where import Prelude hiding (writeFile) import qualified Prelude import Helper import Test.HUnit import Syste...
null
https://raw.githubusercontent.com/sol/hpack/cee15a6473ffac98bd86aaab49b90492533018bc/test/EndToEndSpec.hs
haskell
# LANGUAGE ConstraintKinds # NOTE: We do not set this to 2.0 on purpose, so that the .cabal IMPORTANT: This is crucial as a workaround for garbage in, garbage out related bug:
# LANGUAGE FlexibleContexts # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # # LANGUAGE LambdaCase # module EndToEndSpec (spec) where import Prelude hiding (writeFile) import qualified Prelude import Helper import Test.HUnit import System.Directory (canonicalizePath) im...
25163f1cfd1cb9f19d2874db37b97fa9df8fd82397e1177c8393f2a8a13c2543
qkrgud55/ocamlmulti
stdLabels.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , Kyot...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/stdlib_r/stdLabels.mli
ocaml
********************************************************************* OCaml ...
, Kyoto University RIMS Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : stdLabels.mli 12823 2012 - 08 - 06...
8198bd63c8b310c48dc52e35a8ffba679e2683e0646f197b421227fee91ec9e1
bennn/forth
two-and-two-make-four.rkt
#lang forth push 2 push 2 +
null
https://raw.githubusercontent.com/bennn/forth/2e9247b1b8c28402d0eecfc3fb97e805e3074255/examples/two-and-two-make-four.rkt
racket
#lang forth push 2 push 2 +
09d42b35aba41e97342d4d8f3fbcafaea378da923c286e8891e73a966f747090
petelliott/raylib-guile
core-3d-camera-first-person.scm
(use-modules (raylib)) (define screen-width 800) (define screen-height 450) (define columns 20) (InitWindow screen-width screen-height "raylib [core] example - 3d camera first person") ;; Define the camera to look into our 3d world (position, target, up vector) (define camera (make-Camera3D (make-Vector3 4 2 4) ...
null
https://raw.githubusercontent.com/petelliott/raylib-guile/88689ffc1704d0974a5b017ff409a852c6cb7635/examples/core/core-3d-camera-first-person.scm
scheme
Define the camera to look into our 3d world (position, target, up vector) Generates some random columns Draw ground Draw a blue wall Draw a green wall Draw a yellow wall draw some cubes around
(use-modules (raylib)) (define screen-width 800) (define screen-height 450) (define columns 20) (InitWindow screen-width screen-height "raylib [core] example - 3d camera first person") (define camera (make-Camera3D (make-Vector3 4 2 4) (make-Vector3 0 1.8 0) (make-Vector3 0 1 0) ...
ebb8666b782c9297f9258be439d8656396e8748fc31386af3b1b9fc36e02db7b
janestreet/async_unix
thread_safe_ivar.ml
open! Core open! Import module Mutex = Error_checking_mutex type 'a t = { mutable value : 'a option ; mutable num_waiting : int ; mutex : (Mutex.t [@sexp.opaque] (* Threads that do [read t] when [is_none t.value] block using [Condition.wait t.full]. When [fill] sets [t.value], it us...
null
https://raw.githubusercontent.com/janestreet/async_unix/e5d9e9d388a23237cec3bf42d7e310c459de4309/thread_safe_ivar/src/thread_safe_ivar.ml
ocaml
Threads that do [read t] when [is_none t.value] block using [Condition.wait t.full]. When [fill] sets [t.value], it uses [Condition.broadcast] to wake up all the blocked threads.
open! Core open! Import module Mutex = Error_checking_mutex type 'a t = { mutable value : 'a option ; mutable num_waiting : int ; mutex : (Mutex.t [@sexp.opaque] ; full : (Condition.t[@sexp.opaque]) } [@@deriving sexp_of] let create () = { value = None; num_waiting = 0; mutex = Mutex.create (...
6e257655cf7a645891614b3d1b7e9a5eb2a989e0da09acdcdb86cc394f0050b1
valis/hoq
Utils.hs
module TypeChecking.Expressions.Utils where import Data.Bifunctor import Data.Void import Syntax import Syntax.ErrorDoc import Syntax.PrettyPrinter import Semantics import Semantics.Value import TypeChecking.Context import TypeChecking.Monad.Warn data Error = Error { errorType :: ErrorType, errorMsg :: EMsg (Term Sy...
null
https://raw.githubusercontent.com/valis/hoq/9d2d2f5dee367ca5a609199856ca5964499bf33a/src/TypeChecking/Expressions/Utils.hs
haskell
module TypeChecking.Expressions.Utils where import Data.Bifunctor import Data.Void import Syntax import Syntax.ErrorDoc import Syntax.PrettyPrinter import Semantics import Semantics.Value import TypeChecking.Context import TypeChecking.Monad.Warn data Error = Error { errorType :: ErrorType, errorMsg :: EMsg (Term Sy...
2be142f75e041289bd334aa3d19b0494a6ce9b4bc61d7f43438df7ebc5b96392
cstar/ejabberd-old
mod_vcard_ldap.erl
%%%---------------------------------------------------------------------- %%% File : mod_vcard_ldap.erl Author : < > Purpose : Support for VCards from LDAP storage . Created : 2 Jan 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne %%% %%% This program is free software; you c...
null
https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/mod_vcard_ldap.erl
erlang
---------------------------------------------------------------------- File : mod_vcard_ldap.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without eve...
Author : < > Purpose : Support for VCards from LDAP storage . Created : 2 Jan 2003 by < > ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have receiv...
9d14830ac91d8ec8939a2bce79fb5dfec60300511c5b1f47ea439ed60865f5f5
expipiplus1/vulkan
VK_NV_external_memory_win32.hs
{-# language CPP #-} -- | = Name -- -- VK_NV_external_memory_win32 - device extension -- -- == VK_NV_external_memory_win32 -- -- [__Name String__] -- @VK_NV_external_memory_win32@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 58 -- -- [__Revision__] 1 -- -- [...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/src/Vulkan/Extensions/VK_NV_external_memory_win32.hs
haskell
# language CPP # | = Name VK_NV_external_memory_win32 - device extension == VK_NV_external_memory_win32 [__Name String__] @VK_NV_external_memory_win32@ [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] - Requ...
58 1 - Requires support for Vulkan 1.0 - 2016 - 08 - 19 - , NVIDIA - , NVIDIA Applications may wish to export memory to other Vulkan instances or other APIs , or import memory from other Vulkan instances or other APIs to enable Vulkan workloads to be spl...
83d031ee1c4cf59a5317389de9bf170343ade59b714aac026fd5a112d1001af5
blockfrost/blockfrost-haskell
BlockHash.hs
-- | Hash of the block module Blockfrost.Types.Shared.BlockHash where import Data.Aeson (FromJSON, ToJSON) import Data.Char (isDigit) import Data.String (IsString (..)) import Data.Text (Text) import qualified Data.Text import GHC.Generics import Servant.API (Capture, FromHttpApiData (..), ToHttpApiData (..)) impor...
null
https://raw.githubusercontent.com/blockfrost/blockfrost-haskell/edfd43a95a21356b0cc540002bd1583a35883f85/blockfrost-api/src/Blockfrost/Types/Shared/BlockHash.hs
haskell
| Hash of the block # OVERLAPS # # OVERLAPS #
module Blockfrost.Types.Shared.BlockHash where import Data.Aeson (FromJSON, ToJSON) import Data.Char (isDigit) import Data.String (IsString (..)) import Data.Text (Text) import qualified Data.Text import GHC.Generics import Servant.API (Capture, FromHttpApiData (..), ToHttpApiData (..)) import Servant.Docs (DocCapt...
da488a9899506c8890af00ddbc373116bbfff8d52287ed1cf176af12ca7c994e
tezos/tezos-mirror
node_rpc.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2020 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/c3eece7be0d381ee003f7677d3e2664df86d0ef6/src/proto_alpha/lib_delegate/node_rpc.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2020 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
c77d5207b8723e0222bd2d4e352aedf4b5a31882eba56c5325cf1e08170d765c
lesguillemets/sicp-haskell
2.2.3.hs
module SequencesasConventionalInterfaces where import Data.List restricting our interest for lists as in : filter' :: (a -> Bool) -> [a] -> [a] filter' predicate seq_ | null seq_ = [] | predicate (head seq_) = head seq_ : filter' predicate (tail seq_) | otherwise = filter predicate (tail seq_) -- | ...
null
https://raw.githubusercontent.com/lesguillemets/sicp-haskell/df524a1e28c45fb16a56f539cad8babc881d0431/text/chap02/sect2/2.2.3.hs
haskell
| [1,3,5] | | [0,2,8,34] | >>> listFibSquares 10 | - Nested Mappings flatMap is concatMap. | | >>> sort (permutations' [1,2,3]) == sort (permutations [1,2,3]) True
module SequencesasConventionalInterfaces where import Data.List restricting our interest for lists as in : filter' :: (a -> Bool) -> [a] -> [a] filter' predicate seq_ | null seq_ = [] | predicate (head seq_) = head seq_ : filter' predicate (tail seq_) | otherwise = filter predicate (tail seq_) > > >...
eebc8e003a02776eccc0bfb223db5cc24a78519fd8bfcd4d28128352b61579f7
mfp/extprot
bm_expat.ml
open Printf let parse s = let p = Expat.parser_create None in try Expat.parse p s with Expat.Expat_error e as exn -> printf "Error (%d:%d): %s\n" (Expat.get_current_column_number p) (Expat.get_current_line_number p) (Expat.xml_error_to_string e); raise exn let rounds = ref 10 let ...
null
https://raw.githubusercontent.com/mfp/extprot/c69eb66398e35b964c4232a7c3c85151fb5eddbe/test/bm_expat.ml
ocaml
open Printf let parse s = let p = Expat.parser_create None in try Expat.parse p s with Expat.Expat_error e as exn -> printf "Error (%d:%d): %s\n" (Expat.get_current_column_number p) (Expat.get_current_line_number p) (Expat.xml_error_to_string e); raise exn let rounds = ref 10 let ...
c59f4185b1ff1254f28eb3d5380ce3c2dedc5ae592bcf651d753472debd732f5
tekul/broch
Config.hs
{-# LANGUAGE OverloadedStrings, RecordWildCards #-} module Broch.Server.Config where import Control.Concurrent.MVar import Control.Error import Control.Monad (when) import Control.Monad.IO.Class import Crypto.Hash import Crypto.Random (withDRG, getSystemDRG)...
null
https://raw.githubusercontent.com/tekul/broch/885ace4652cad4dcd806c8c31c1a59bf6a9a3337/Broch/Server/Config.hs
haskell
# LANGUAGE OverloadedStrings, RecordWildCards # | The configuration data needed to create a Broch server ^ Keys which should be returned form the jwks_uri endpoint which are expired but may still be used to verify an OP signature. Public encryption keys only include the current key or keys. ^ Private keys which th...
module Broch.Server.Config where import Control.Concurrent.MVar import Control.Error import Control.Monad (when) import Control.Monad.IO.Class import Crypto.Hash import Crypto.Random (withDRG, getSystemDRG) import qualified Data.Aeson as A import qualified D...
30e40ea2be0b37bacba548fceadc36d5230882d9dd4731fe015bfb94b9ec0298
ocsigen/macaque
ambiguous_nesting.ml
let comp = << {a = row.a} | row in $ << {a = 1; row = {a = 2}} >> $ >> let () = let res = List.hd (Query.view (PGOCaml.connect ()) comp) in Printf.printf "a:%ld\n" res#!a
null
https://raw.githubusercontent.com/ocsigen/macaque/a92e91c7ed443086551d909c3cfad22c71144f54/src/tests/ambiguous_nesting.ml
ocaml
let comp = << {a = row.a} | row in $ << {a = 1; row = {a = 2}} >> $ >> let () = let res = List.hd (Query.view (PGOCaml.connect ()) comp) in Printf.printf "a:%ld\n" res#!a
c2a8c686f7885b67a627971e4b1b3097e9fae80484de73dbf40b7e3bf443fcea
coccinelle/coccinelle
get_metas.ml
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/df71c5c0fe2a73c7358f73f45a550b57a7e30d85/parsing_cocci/get_metas.ml
ocaml
--------------------------------------------------------------------- creates AsExpr, etc @ attached metavariables can only be associated with positions, so nothing to do for them
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
a2571c16c799f2df9444945443ce82a63d40e1879f2504d3f01260082b5636e6
orionsbelt-battlegrounds/obb-rules
firingsquad.cljc
(ns ^{:added "1.10" :author "Pedro Santos"} obb-rules.ai.firingsquad "Firingsquad bot implementation" (:require [obb-rules.math :as math] [obb-rules.actions.move :as move] [obb-rules.element :as element] [obb-rules.ai.common :as common] [obb-rules.game :as game] ...
null
https://raw.githubusercontent.com/orionsbelt-battlegrounds/obb-rules/97fad6506eb81142f74f4722aca58b80d618bf45/src/obb_rules/ai/firingsquad.cljc
clojure
(ns ^{:added "1.10" :author "Pedro Santos"} obb-rules.ai.firingsquad "Firingsquad bot implementation" (:require [obb-rules.math :as math] [obb-rules.actions.move :as move] [obb-rules.element :as element] [obb-rules.ai.common :as common] [obb-rules.game :as game] ...
30c885aed2747359205c31806d8065155cba7da4d07c22f7159f1ca5a041ff3e
openmusic-project/RQ
quant-voice-panel.lisp
(in-package :rq) ;;; Quant-voice Panel ;;; All the functions related to the bottom panel ;;; In particular, there are the functions to open the editor dialog (with the list of propositions for a subtree) and the user-edit dialog (to type a subtree) (defclass! quant-voice-panel (om::voicePanel) ()) ;Update the chor...
null
https://raw.githubusercontent.com/openmusic-project/RQ/d6b1274a4462c1500dfc2edab81a4425a6dfcda7/src/gui/panel/quant-voice-panel.lisp
lisp
Quant-voice Panel All the functions related to the bottom panel In particular, there are the functions to open the editor dialog (with the list of propositions for a subtree) and the user-edit dialog (to type a subtree) Update the chord-seq view each time the voice-panel is clicked in order to highlight in the top p...
(in-package :rq) (defclass! quant-voice-panel (om::voicePanel) ()) (defmethod om-view-click-handler ((self quant-voice-panel) where) "When the voice panel is clicked, updates the chord-seq panel to highlight the current subdivision." (call-next-method) (when (parent (om::editor self)) (om::update-panel (...
500b5e8065a9b92c2eb3b5e299365f914978321253dfe5d112609c25336516d5
HugoPeters1024/hs-sleuth
IO.hs
# LANGUAGE BangPatterns , CPP , RecordWildCards # -- | -- Module : Data.Text.Internal.IO Copyright : ( c ) 2009 , 2010 , ( c ) 2009 -- License : BSD-style -- Maintainer : -- Stability : experimental Portability : GHC -- -- /Warning/: this is an internal module, and does not have ...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/385655e62031959a14a3bac5e9ccd1c42c045f0c/test-project/text-1.2.3.2/Data/Text/Internal/IO.hs
haskell
| Module : Data.Text.Internal.IO License : BSD-style Maintainer : Stability : experimental /Warning/: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk! | Read a sin...
# LANGUAGE BangPatterns , CPP , RecordWildCards # Copyright : ( c ) 2009 , 2010 , ( c ) 2009 Portability : GHC Low - level support for text I\/O. module Data.Text.Internal.IO ( hGetLineWith , readChunk ) where import qualified Control.Exception as E import Data.IORef (re...
f2529707c82d915513901179395b3c1980c03351b1b9b913b016fd1e274f6489
poseidon-framework/poseidon-hs
Survey.hs
{-# LANGUAGE OverloadedStrings #-} module Poseidon.CLI.Survey where import Poseidon.BibFile (BibTeX) import Poseidon.GenotypeData (GenotypeDataSpec (..)) import Poseidon.Janno (JannoRow (..), JannoRows (..)) import Poseidon.Package (PackageReadOptions (..),...
null
https://raw.githubusercontent.com/poseidon-framework/poseidon-hs/8d43c54cfccae1f05e0f7e7d16cd4d61f3a173f1/src/Poseidon/CLI/Survey.hs
haskell
# LANGUAGE OverloadedStrings # | A datatype representing command line options for the survey command collect information geno janno bib print information print help
module Poseidon.CLI.Survey where import Poseidon.BibFile (BibTeX) import Poseidon.GenotypeData (GenotypeDataSpec (..)) import Poseidon.Janno (JannoRow (..), JannoRows (..)) import Poseidon.Package (PackageReadOptions (..), ...
3092c252094ce0ae893357581a816723971acf1467fc80af24fd495db9c6520a
pallet/pallet
node_test.clj
(ns pallet.node-test (:require [clojure.test :refer :all] [pallet.compute.node-list :refer [make-node]] [pallet.node :refer [node-address]])) (deftest node-address-test (let [ip "1.2.3.4"] (is (= ip (node-address (make-node nil nil ip nil)))) (is (= ip (node-address (make-node nil ...
null
https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/test/pallet/node_test.clj
clojure
(ns pallet.node-test (:require [clojure.test :refer :all] [pallet.compute.node-list :refer [make-node]] [pallet.node :refer [node-address]])) (deftest node-address-test (let [ip "1.2.3.4"] (is (= ip (node-address (make-node nil nil ip nil)))) (is (= ip (node-address (make-node nil ...
f3fd8f5dd7d74d5144b71174491df2ac6fe16898c5da81868f500736d1c5d1cd
wilbowma/cur
main.rkt
#lang reprovide cur cur/ntac/base cur/ntac/metantac cur/stdlib/sugar (for-syntax racket/base racket/list racket/match racket/pretty syntax/stx cur/ntac/ctx cur/ntac/utils macrotypes/stx-utils (for-syntax racket/base ...
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-lib/cur/metantac/main.rkt
racket
#lang reprovide cur cur/ntac/base cur/ntac/metantac cur/stdlib/sugar (for-syntax racket/base racket/list racket/match racket/pretty syntax/stx cur/ntac/ctx cur/ntac/utils macrotypes/stx-utils (for-syntax racket/base ...
313dea4c165c2811582e18c0263e4df186d30846085624067e236c7b41331df0
Frama-C/Frama-C-snapshot
loop_analysis.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/loop_analysis/loop_analysis.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
4471652bba846cb7a0187021dd7ae24414bd6d8b27e621952a8a2bb9a21ea763
skanev/playground
68-tests.scm
(require rackunit rackunit/text-ui) (load "../68.scm") (define sample-tree (make-code-tree (make-leaf 'A 4) (make-code-tree (make-leaf 'B 2) (make-code-tree (make-leaf 'D 1) (make-leaf 'C 1))))) (define sample-message '(0 ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/02/tests/68-tests.scm
scheme
(require rackunit rackunit/text-ui) (load "../68.scm") (define sample-tree (make-code-tree (make-leaf 'A 4) (make-code-tree (make-leaf 'B 2) (make-code-tree (make-leaf 'D 1) (make-leaf 'C 1))))) (define sample-message '(0 ...
b83f9e0c69f8d9ba2712fb069f53527644bb02fa8d4eb8b67738b9cd2077d360
hswick/jutsu.ai
core.clj
(ns jutsu.ai.core (:import [org.datavec.api.split FileSplit] [org.datavec.api.util ClassPathResource] [org.datavec.api.io.labels ParentPathLabelGenerator] [org.datavec.image.recordreader ImageRecordReader] [org.nd4j.linalg.dataset.api.preprocessor ImagePreProcessingScaler] ...
null
https://raw.githubusercontent.com/hswick/jutsu.ai/5f9a20b0ef0360b74b67137853344e084347b48c/src/jutsu/ai/core.clj
clojure
from #Invoking_Java_method_through_method_name_as_a_String Order of header-body-footer matters builds a transducer of instance methods to call on the neural net object split config at layers index set true for online learning
(ns jutsu.ai.core (:import [org.datavec.api.split FileSplit] [org.datavec.api.util ClassPathResource] [org.datavec.api.io.labels ParentPathLabelGenerator] [org.datavec.image.recordreader ImageRecordReader] [org.nd4j.linalg.dataset.api.preprocessor ImagePreProcessingScaler] ...
2b1f7c42667eda58d11a4bcb5275d31a56c8076dbfc179e765234266a29d5eb3
ChrisTitusTech/gimphelp
210_edges_photo-border-fancy.scm
; 210_edges_photo-border-fancy.scm last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 ;================================================== ; ; Installation: ; This script should be placed in the user or system-wide script folder. ; ; Windows 7/10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts ...
null
https://raw.githubusercontent.com/ChrisTitusTech/gimphelp/fdbc7e3671ce6bd74cefd83ecf7216e5ee0f1542/gimp_scripts-2.10/210_edges_photo-border-fancy.scm
scheme
210_edges_photo-border-fancy.scm ================================================== Installation: This script should be placed in the user or system-wide script folder. Windows 7/10 or Linux /home/yourname/.config/GIMP/2.10/scripts or Linux system-wide /usr/share/gimp/2.0/scripts =================...
last modified / tested by [ gimphelp.org ] 05/11/2019 on GIMP 2.10.10 C:\Program Files\GIMP 2\share\gimp\2.0\scripts C:\Users\YOUR - NAME\AppData\Roaming\GIMP\2.10\scripts it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the Lice...
43195d1b46964ba29211176594c5ae98c51af70c1d3a65a0c4f10014bc3c06be
hiredman/clojurebot
core.clj
(ns clojurebot.core (:use [conduit.irc :only [irc-run a-irc *pircbot* pircbot]] [conduit.core] [clojurebot.conduit :only [a-indirect a-if a-cond null a-when]] [hiredman.clojurebot.factoids :only [factoid-lookup factoid-command? ...
null
https://raw.githubusercontent.com/hiredman/clojurebot/1e8bde92f2dd45bb7928d4db17de8ec48557ead1/src/clojurebot/core.clj
clojure
pipelines addressed pipelines are run when a message has been determined to have been addressed specificly at the bot stupid implemention looking for config defined addressed-plugins ends up search through the list twice run logging plugins we only want the passed through value /pipelines load the namespaces for...
(ns clojurebot.core (:use [conduit.irc :only [irc-run a-irc *pircbot* pircbot]] [conduit.core] [clojurebot.conduit :only [a-indirect a-if a-cond null a-when]] [hiredman.clojurebot.factoids :only [factoid-lookup factoid-command? ...
38bc50e982f225a89241bc3b78ca341109ccda27927a38fb9d5f2ce30473fb81
lehins/Color
LCHSpec.hs
# LANGUAGE FlexibleInstances # # LANGUAGE TypeApplications # module Graphics.Color.Model.LCHSpec (spec) where import Graphics.Color.Model import Graphics.Color.Model.Common instance (Elevator e, Random e) => Arbitrary (Color LCH e) where arbitrary = ColorLCH <$> arbitraryElevator <*> arbitraryElevator <*> arbitrary...
null
https://raw.githubusercontent.com/lehins/Color/c91f6c5c372d9ba7a80b297d767b3a11a70a9253/Color/tests/Graphics/Color/Model/LCHSpec.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE TypeApplications # module Graphics.Color.Model.LCHSpec (spec) where import Graphics.Color.Model import Graphics.Color.Model.Common instance (Elevator e, Random e) => Arbitrary (Color LCH e) where arbitrary = ColorLCH <$> arbitraryElevator <*> arbitraryElevator <*> arbitrary...
6568025b64f86ee8eeed99bd4abc2ab7ca699c5577211d9b93ad321a3a05e468
naveensundarg/prover
output.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- ;;; File: output.lisp 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 distr...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/output.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark -*- File: output.lisp 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 / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific langu...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2012 . ...
5b03c3fb46bcae242096968ab14bf73385f2baee8033b079a0e5a225aa7b23cb
mark-watson/loving-common-lisp
package.lisp
package.lisp (defpackage #:openai (:use #:cl #:uiop #:cl-json) (:export #:completions #:summarize #:answer-question))
null
https://raw.githubusercontent.com/mark-watson/loving-common-lisp/8403617c3f644f02aa6f5bed2820f1e92086cd76/src/openai/package.lisp
lisp
package.lisp (defpackage #:openai (:use #:cl #:uiop #:cl-json) (:export #:completions #:summarize #:answer-question))
5d85b3dc357ffb9dbb292f3dfbe8802b48f313721b97ecd7c3468918db341629
binaryage/cljs-oops
oset_dynamic.cljs
(ns oops.arena.oset-dynamic (:require-macros [oops.arena.macros :refer [macro-identity]]) (:require [oops.core :refer [oset! oset!+]] [oops.config :refer [without-diagnostics with-debug]] [oops.tools :refer [init-arena-test! done-arena-test! testing]])) (init-arena-test!) ; we are compilin...
null
https://raw.githubusercontent.com/binaryage/cljs-oops/a2b48d59047c28decb0d6334e2debbf21848e29c/test/src/arena/oops/arena/oset_dynamic.cljs
clojure
we are compiling under advanced mode
(ns oops.arena.oset-dynamic (:require-macros [oops.arena.macros :refer [macro-identity]]) (:require [oops.core :refer [oset! oset!+]] [oops.config :refer [without-diagnostics with-debug]] [oops.tools :refer [init-arena-test! done-arena-test! testing]])) (init-arena-test!) (testing "dynami...
87c28782c049c09beabe7332ae69372fabbf44df09e44016a86c73398f9194e3
pveber/biotk
jaspar.ml
open Core open Result.Monad_infix type matrix = { id : string ; tf_name : string ; counts : int array array ; } let parse_header s = try Scanf.sscanf s ">%s %s" (fun x y -> Ok (x, y)) with Scanf.Scan_failure _ -> Error "Incorrect header" let%test "Jaspar header" = Poly.(parse_header ">MA0597.1 THAP...
null
https://raw.githubusercontent.com/pveber/biotk/0906a650a324f020c9caa3377233ac3a1f217921/lib/jaspar.ml
ocaml
open Core open Result.Monad_infix type matrix = { id : string ; tf_name : string ; counts : int array array ; } let parse_header s = try Scanf.sscanf s ">%s %s" (fun x y -> Ok (x, y)) with Scanf.Scan_failure _ -> Error "Incorrect header" let%test "Jaspar header" = Poly.(parse_header ">MA0597.1 THAP...
662df7522f05450629fc534c030736e7f302df8c05164bf48f70cc180d8ee381
kappelmann/engaging-large-scale-functional-programming
Exercise05.hs
module Exercise05 where May or may not be useful : computes the logarithm base 2 ( rounded down ) of the given number . -- You don't have to move this into the WETT tags if you want to use it. log2 :: (Integral a, Num b) => a -> b log2 = let go acc n = if n <= 1 then acc else go (acc + 1) (n `div` 2) in go 0 {-WETT...
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/c3fd53e1ca7f36a79b0f808c83aae87270e84999/resources/cuboid/assignment/src/Exercise05.hs
haskell
You don't have to move this into the WETT tags if you want to use it. WETT
module Exercise05 where May or may not be useful : computes the logarithm base 2 ( rounded down ) of the given number . log2 :: (Integral a, Num b) => a -> b log2 = let go acc n = if n <= 1 then acc else go (acc + 1) (n `div` 2) in go 0 decompose :: [Integer] -> [Integer] decompose ds = undefined TTEW
85dff6a47b34ce5f5e026dd577ac3c84d0919728797053b2f3e59d5dd91c018a
aturon/Caper
semantics.rkt
#lang racket ; The semantics of the core reagent forms (require caper/core/kcas (for-syntax syntax/parse racket/syntax) racket/unsafe/ops syntax/parse syntax/parse/define racket/syntax racket/stxparam racket/stxparam-exptime) (provide #%return #%bind #%seq #%retry #%block #%cas! #%choose ...
null
https://raw.githubusercontent.com/aturon/Caper/be05f13f3189c7717cd14a223b0cb3b188fe5bb1/core/semantics.rkt
racket
The semantics of the core reagent forms TODO: replace this with an exported debugging expansion function for debugging only (provide with-cas with-retry-handler with-block-handler with-offer do-kcas!) the continuation environment normal continuation transient failure permanent failure syntax for ...
#lang racket (require caper/core/kcas (for-syntax syntax/parse racket/syntax) racket/unsafe/ops syntax/parse syntax/parse/define racket/syntax racket/stxparam racket/stxparam-exptime) (provide #%return #%bind #%seq #%retry #%block #%cas! #%choose #%read #%postlude #%match #%reflect #%reif...
852604b359b006479aad16c05034ad3e7a4dd903b2c18c83f8d3c7b011dd69b5
aryx/yacfe
statistics_code.ml
open Common was first done for CComment (*****************************************************************************) (* Entities stat *) (*****************************************************************************) * This module can be used to store stat on code entities or commented * code entities , be ...
null
https://raw.githubusercontent.com/aryx/yacfe/86a4994822abca03ec9e03f1a7e60eca66db0a08/pl_info/statistics_code.ml
ocaml
*************************************************************************** Entities stat *************************************************************************** constructor :)
open Common was first done for CComment * This module can be used to store stat on code entities or commented * code entities , be it C , C++ , or Java entities . * * The numbers can represent anything . * * todo ? : a little bit of overlap with Comments.place ? and quite tedious * all those fie...
36e515cf6d350b0047e2012d7e27addfad33c707f277c53cbd9cdd036f4e5cf2
keithfancher/kept
PathSpec.hs
module PathSpec (spec) where import Note (ChecklistItem (..), Metadata (..), Note (..), NoteContent (..), mkTags) import Parse (microTimestampToUTC) import Path import Test.Hspec spec :: Spec spec = do describe "getNotePath" $ do it "generates the correct path for an untitled text note" $ do getNotePath b...
null
https://raw.githubusercontent.com/keithfancher/kept/f7ff01ba1e7f71ca93b539440628788a9c770d5b/test/PathSpec.hs
haskell
Note: This won't work as-is as a filename D:
module PathSpec (spec) where import Note (ChecklistItem (..), Metadata (..), Note (..), NoteContent (..), mkTags) import Parse (microTimestampToUTC) import Path import Test.Hspec spec :: Spec spec = do describe "getNotePath" $ do it "generates the correct path for an untitled text note" $ do getNotePath b...
9ea60e96b75f761aba0037159949a37392fa3f4aac4a35e9a44574f2ec4688d1
nondeterministic/ltl3tools
minimise.ml
This is part of the LTL3 tools ( see / ) Copyright ( c ) 2008 - 2009 < > 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 , or ( at ...
null
https://raw.githubusercontent.com/nondeterministic/ltl3tools/57bf366e11ffb98c5903b392deee2900fa19a48e/src/minimise.ml
ocaml
i i s Returns [true] if the output symbol associated with state [(a, b)] is the same as that of state [(c, d)], or if both states represent ?-states. s [state] is a state (x, y), and [unmarked_states] a list of unmarked state pairs, such that the function returns a list of type [(a', a') list] containing all e...
This is part of the LTL3 tools ( see / ) Copyright ( c ) 2008 - 2009 < > 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 , or ( at ...
f42217c662d364de5b2c76b88ef5329c98e861d218e390853e167c6fc5357341
axch/test-manager
load.scm
;;; ---------------------------------------------------------------------- Copyright 2007 - 2009 . ;;; ---------------------------------------------------------------------- ;;; This file is part of Test Manager. ;;; ;;; Test Manager is free software; you can redistribute it and/or modify it under the terms of t...
null
https://raw.githubusercontent.com/axch/test-manager/511922c64e189522bef02686a7b9bf050aec0ce2/test/load.scm
scheme
---------------------------------------------------------------------- ---------------------------------------------------------------------- This file is part of Test Manager. Test Manager is free software; you can redistribute it and/or modify (at your option) any later version. Test Manager is distributed ...
Copyright 2007 - 2009 . 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 (load-relative "general") MIT Scheme specific features (cond-expand (guile '...
b41eff9be7b8841a71862d0bb3661945dae7b9860181feb7897e176bf278af73
haskoin/haskoin-core
BlockSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Haskoin.BlockSpec ( spec, ) where import Control.Monad.State.Strict import Data.Either (fromRight) import Data.Maybe (fromJust) import Data.String (fromString) import Data.String.Conversions (cs) import Data.Text (Text) import Data.Word (Word32) import Haskoin.Block impor...
null
https://raw.githubusercontent.com/haskoin/haskoin-core/d155f8803ce73f1211b4f7456e63d27ea9a48b96/test/Haskoin/BlockSpec.hs
haskell
# LANGUAGE OverloadedStrings # ↓ ↓ Merkle Trees Block 00000000000007cc4b6f07bfed72bccc1ed8dd031a93969a4c22211f784457d4 Block 000000000004d160ac1f7b775d7c1823345aeadd5fcb29ca2ad2403bb7babd4c Block 000000000001d1b13a7e86ddb20da178f20d6da5cd037a29c2a15b8b84cc774e Block 0000000000000630a4e2266a31776...
module Haskoin.BlockSpec ( spec, ) where import Control.Monad.State.Strict import Data.Either (fromRight) import Data.Maybe (fromJust) import Data.String (fromString) import Data.String.Conversions (cs) import Data.Text (Text) import Data.Word (Word32) import Haskoin.Block import Haskoin.Constants import Haskoin....
0c054fec92e9fe7b499aab2df1cf925ce3e2c866910121463be397c9cd0e353b
petitnau/algoml
typecheck.ml
(* open General *) open Types open Amlprinter let raise_var_not_found k : 'a = raise(TypeError(Printf.sprintf "Var %s was not found" (string_of_key k))) let raise_duplicate_var k : 'a = raise(TypeError(Printf.sprintf "Var %s is duplicate" (string_of_key k))) let raise_var_mistype c t1 t2 : 'a = ignore c; ...
null
https://raw.githubusercontent.com/petitnau/algoml/a6ec67f5dea913f2c6cad347da0ab4d4ed3e7722/src/static/typecheck.ml
ocaml
open General
open Types open Amlprinter let raise_var_not_found k : 'a = raise(TypeError(Printf.sprintf "Var %s was not found" (string_of_key k))) let raise_duplicate_var k : 'a = raise(TypeError(Printf.sprintf "Var %s is duplicate" (string_of_key k))) let raise_var_mistype c t1 t2 : 'a = ignore c; raise(TypeError(Pri...
5d67216a6bc4d82cbe4481702d34e8dcbb4af873d44c8099d6d2051bbbcdac54
haskell-suite/haskell-names
SimpleImport.hs
# LANGUAGE NoImplicitPrelude # here Prelude acts as an ordinary input module SimpleImport where import Prelude
null
https://raw.githubusercontent.com/haskell-suite/haskell-names/795d717541484dbe456342a510ac8e712e1f16e4/tests/imports/SimpleImport.hs
haskell
# LANGUAGE NoImplicitPrelude # here Prelude acts as an ordinary input module SimpleImport where import Prelude
371b1145e4ac0783485e33e3be48ceba58015aa61c8bad003efdeb09db372fe2
susanemcg/pandoc-tufteLaTeX2GitBook
Process.hs
Copyright ( C ) 2013 - 2014 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program is distribut...
null
https://raw.githubusercontent.com/susanemcg/pandoc-tufteLaTeX2GitBook/00c34b4299dd89c4e339e1cde006061918b559ab/pandoc-1.12.4.2/src/Text/Pandoc/Process.hs
haskell
| Version of 'System.Process.readProcessWithExitCode' that uses lazy bytestrings instead of strings and allows setting environment variables. @readProcessWithExitCode@ creates an external process, reads its standard output and standard error strictly, waits until the process terminates, and then returns the 'ExitCode...
Copyright ( C ) 2013 - 2014 < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . This program is distribut...
c5900dac2d52216e9548f3788480aba33d0ddfa275cf7e96f84604761ce2e41b
grin-compiler/ghc-grin
boyer2.hs
module Main(main) where import Lisplikefns import import Rulebasetext import Checker module Lisplikefns ( ( .. ) , Lisplist ( .. ) , LUT , mkLisplist , strToToken , tv , atom , car , cdr , cadr , caddr , cadddr , assoc , newLUT , addtoLUT , getLUT --) --where type Token = String -- "(" or ")" ...
null
https://raw.githubusercontent.com/grin-compiler/ghc-grin/ebc4dca2e1f5b3581d4b84726730564ce909d786/ghc-grin-benchmark/boq-custom/todo/boyer2.hs
haskell
) where "(" or ")" or "Lisp Symbol" stringGT :: String -> String -> Bool stringGT x y = y `stringLT` x These functions provide more complex operations based on a Lisp-like functionality, they do not exactly match the equivalent Lisp functions set-up functions for creating rulebase from text strings Main fun...
module Main(main) where import Lisplikefns import import Rulebasetext import Checker module Lisplikefns ( ( .. ) , Lisplist ( .. ) , LUT , mkLisplist , strToToken , tv , atom , car , cdr , cadr , caddr , cadddr , assoc , newLUT , addtoLUT , getLUT deriving ( Eq , : Text- } ) eq :: Lisplist ...
4a67eaac8f9f608a48da0325d9ba266a69330c43e67a8a49db727b1845b936be
commercialhaskell/stack
Main.hs
import StackTest main :: IO () main = do stackErr ["build"] stack ["build", "--flag", "new-template:fixIt"] stack ["build", "--flag", "new-template:fixit"] stack ["build", "--flag", "new-template:fiXit"] stack ["build", "--flag", "*:fiXit"] stackErr ["build", "--flag", "*:fiXit-else"]
null
https://raw.githubusercontent.com/commercialhaskell/stack/255cd830627870cdef34b5e54d670ef07882523e/test/integration/tests/397-case-insensitive-flags/Main.hs
haskell
import StackTest main :: IO () main = do stackErr ["build"] stack ["build", "--flag", "new-template:fixIt"] stack ["build", "--flag", "new-template:fixit"] stack ["build", "--flag", "new-template:fiXit"] stack ["build", "--flag", "*:fiXit"] stackErr ["build", "--flag", "*:fiXit-else"]
d6e443d09de3b32ea0943a2352c91f93a57fa5dd833a49a956f35a9c4f4033f9
MaskRay/OJHaskell
70.hs
import Math.Sieve.Phi import Data.List import Data.Ratio import Data.Ord main = do let sie = sieve $ 10^7 print . fst . minimumBy (comparing $ snd) $ [(n, n % phi sie n) | n <- [2..10^7-1], sort (show n) == sort (show $ phi sie n)]
null
https://raw.githubusercontent.com/MaskRay/OJHaskell/ba24050b2480619f10daa7d37fca558182ba006c/Project%20Euler/70.hs
haskell
import Math.Sieve.Phi import Data.List import Data.Ratio import Data.Ord main = do let sie = sieve $ 10^7 print . fst . minimumBy (comparing $ snd) $ [(n, n % phi sie n) | n <- [2..10^7-1], sort (show n) == sort (show $ phi sie n)]
0ad852860f96e090d8fe395b49cb3d8fe89c80388f68ebc3ac2a5720c1b37c38
songyahui/AlgebraicEffect
test2.ml
effect Foo : (unit -> unit) effect Goo : (unit -> unit) effect Foo1 : (unit -> unit) effect Goo1 : (unit -> unit) let f () (*@ requires (true, emp, ()) @*) @ ensures ( true , ( Foo!).(Goo!).(Foo1!).(Goo1!).Goo?().Foo?().Foo1?().Goo1 ? ( ) , ( ) ) @ (*@ ensures (true, (Foo!).(Goo!).(Foo1!).(Goo1!).Goo?().Fo...
null
https://raw.githubusercontent.com/songyahui/AlgebraicEffect/27688952b598a101a27523be796e8011d70b02de/src/evaluation/test2.ml
ocaml
@ requires (true, emp, ()) @ @ ensures (true, (Foo!).(Goo!).(Foo1!).(Goo1!).Goo?().Foo?().Foo1?()._, ()) @ @ ensures (true, ((Foo!).(Goo!).(Foo1!).(Goo1!).Goo?().Foo?().Foo1?().Goo1?())^*, ()) @ @ ensures (true, (Foo!).(Goo!).Goo?(), ()) @ @ requires (true, emp, ()) @ @ ensures (true, (Goo), ()) @ @ ensu...
effect Foo : (unit -> unit) effect Goo : (unit -> unit) effect Foo1 : (unit -> unit) effect Goo1 : (unit -> unit) let f () @ ensures ( true , ( Foo!).(Goo!).(Foo1!).(Goo1!).Goo?().Foo?().Foo1?().Goo1 ? ( ) , ( ) ) @ @ ensures ( true , ( ? ( ) , ( ) ) @ @ ensures ( true , ( _ ) ^w , ( ) ) @ = let x...
6fa218e1314697bda7834ce88ff4b8514a998a39fbfe1e0c4b12f31cfff4f120
open-company/open-company-storage
generate.clj
(ns oc.storage.util.generate " Commandline client to generate data, in a date range, into an existing OpenCompany org, according to a configuration file. Usage: lein run -m oc.storage.util.generate -- <org-slug> <config-file> <start-date> <end-date> lein run -m oc.storage.util.generate -- 18f ./opt/gener...
null
https://raw.githubusercontent.com/open-company/open-company-storage/ae4bbe6245f8736f3c1813c3048448035aff5815/src/oc/storage/util/generate.clj
clojure
(:require [clojure.string :as s] [clojure.walk :refer (keywordize-keys)] [clojure.tools.cli :refer (parse-opts)] [defun.core :refer (defun-)] [clj-http.client :as http] [cheshire.core :as json] [clj-time.core :as t] [clj-time.format :as f] ...
(ns oc.storage.util.generate " Commandline client to generate data, in a date range, into an existing OpenCompany org, according to a configuration file. Usage: lein run -m oc.storage.util.generate -- <org-slug> <config-file> <start-date> <end-date> lein run -m oc.storage.util.generate -- 18f ./opt/gener...
39422c921cb224e4bef2a758520b8555759d29b6f1c4e4ebf3628d15b23f5355
YoshikuniJujo/test_haskell
CheckOverlappable.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # , # LANGUAGE FlexibleInstances , UndecidableInstances # # OPTIONS_GHC -Wall -fno - warn - tabs # module CheckOverlappable where class Foo a b where foo :: a -> b -> Int instance Foo a a where foo _ _ = 123 instance {-# OVERLAPPABLE #-} Foo ...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/a1e9a8c459fffbf994cd1f6073a04a155dae7d3f/features/generics/try-tuple-index/src/CheckOverlappable.hs
haskell
# OVERLAPPABLE #
# LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # , # LANGUAGE FlexibleInstances , UndecidableInstances # # OPTIONS_GHC -Wall -fno - warn - tabs # module CheckOverlappable where class Foo a b where foo :: a -> b -> Int instance Foo a a where foo _ _ = 123 foo _ _ = 321 class Bar a b wher...
ca07341c533a2764f9b0a7964ae56651441768a4d2586b6fea0872a6c9ec5a2c
rpav/spatial-trees
basedefs.lisp
;;; The base definitions for protocol classes and functions for ;;; spatial trees. (in-package "SPATIAL-TREES-IMPL") (defclass spatial-tree () ((root-node :initarg :root-node :accessor root-node) (rectfun :initarg :rectfun :reader rectfun) (max-per-node :initform 7 :reader max-per-node) (min-per-node :init...
null
https://raw.githubusercontent.com/rpav/spatial-trees/81fdad0a0bf109c80a53cc96eca2e093823400ba/basedefs.lisp
lisp
The base definitions for protocol classes and functions for spatial trees.
(in-package "SPATIAL-TREES-IMPL") (defclass spatial-tree () ((root-node :initarg :root-node :accessor root-node) (rectfun :initarg :rectfun :reader rectfun) (max-per-node :initform 7 :reader max-per-node) (min-per-node :initform 3 :reader min-per-node))) (defmethod print-object ((o spatial-tree) s) (prin...
894858f640c8dad7c05a45f939b6536c6dc80ab9f2aef327ee1bed54b34256e7
DestructHub/cats
generator.lisp
;;; Functions related to the README.md(s) generation (in-package #:cats) (defvar cat-folder "cats") (defvar cat-path (portable-pathname cat-folder)) (defun get-folder-name (pathname) "Return only the pathname's folder as string instead of the entire path." (first (last (pathname-directory pathname)))) (defun g...
null
https://raw.githubusercontent.com/DestructHub/cats/5620a38a23bee46eb709992a6747ba670f2ebf8d/src/generator.lisp
lisp
Functions related to the README.md(s) generation
(in-package #:cats) (defvar cat-folder "cats") (defvar cat-path (portable-pathname cat-folder)) (defun get-folder-name (pathname) "Return only the pathname's folder as string instead of the entire path." (first (last (pathname-directory pathname)))) (defun get-cats-names () "Return a list of the cats names b...
02936a9d98e1c1e62096d1aef30f2dfce5267cf39c26fd758a47099556c4c72f
oofp/Beseder
WSClient.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies ...
null
https://raw.githubusercontent.com/oofp/Beseder/a0f5c5e3138938b6fa18811d646535ee6df1a4f4/src/Beseder/Resources/Comm/Impl/WSClient.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeSynonymInstances # IOException where
# LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE RecordWildCards # mo...
ef58c6e439853c4f7b3945cab6104d9d5c3a8d8819478f34fbfd602cf17f04c1
ocsigen/eliom
eliom_config.client.mli
Ocsigen * * Copyright ( C ) 2011 * * 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 the License , or ( at your ...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_config.client.mli
ocaml
* Not tracing by default. Can be dynamically set by adding ["#__trace"] to the URL. * Same as [Ocsigen_config.get_debugmode]. On client side, returns [false] for now.
Ocsigen * * Copyright ( C ) 2011 * * 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 the License , or ( at your ...
7b542475c966b2deca8a5e43646fce74b77eb14119a0596edda2de86d2ff5a94
luminus-framework/examples
ajax.cljs
(ns guestbook-datomic.ajax (:require [ajax.core :as ajax])) (defn local-uri? [{:keys [uri]}] (not (re-find #"^\w+?://" uri))) (defn default-headers [request] (if (local-uri? request) (-> request (update :headers #(merge {"x-csrf-token" js/csrfToken} %))) request)) (defn load-interceptors! [] ...
null
https://raw.githubusercontent.com/luminus-framework/examples/cbeee2fef8f457a6a6bac2cae0b640370ae2499b/guestbook-datomic/src/cljs/guestbook_datomic/ajax.cljs
clojure
(ns guestbook-datomic.ajax (:require [ajax.core :as ajax])) (defn local-uri? [{:keys [uri]}] (not (re-find #"^\w+?://" uri))) (defn default-headers [request] (if (local-uri? request) (-> request (update :headers #(merge {"x-csrf-token" js/csrfToken} %))) request)) (defn load-interceptors! [] ...
353e2d59933c9a5f9fe6aa58f730c618fd37c692989b49c1935908a7a55a5536
aryx/fork-efuns
move.mli
(* characters *) val move_backward : Efuns.frame -> Text.delta -> unit val move_forward : Efuns.frame -> Text.delta -> unit (* words *) val in_next_word : Text.t -> Text.point -> bool array -> unit val in_prev_word : Text.t -> Text.point -> bool array -> unit val to_begin_of_word : Text.t -> Text.point -> bool array...
null
https://raw.githubusercontent.com/aryx/fork-efuns/8f2f8f66879d45e26ecdca0033f9c92aec2b783d/features/move.mli
ocaml
characters words line paragraph file mark history navigation not an action
val move_backward : Efuns.frame -> Text.delta -> unit val move_forward : Efuns.frame -> Text.delta -> unit val in_next_word : Text.t -> Text.point -> bool array -> unit val in_prev_word : Text.t -> Text.point -> bool array -> unit val to_begin_of_word : Text.t -> Text.point -> bool array -> unit val to_end_of_word :...
54ec98ea50347bcdbef32b3e01ace100d4db0b453d77f2d539cb4e76e899a683
grin-compiler/ghc-wpc-sample-programs
DropArgs.hs
module Agda.TypeChecking.DropArgs where import Control.Arrow (second) import Agda.Syntax.Common import Agda.Syntax.Internal import Agda.TypeChecking.Monad.Base import Agda.TypeChecking.Substitute import Agda.TypeChecking.CompiledClause import Agda.TypeChecking.Coverage.SplitTree import Agda.Utils.Functor import A...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/Agda-2.6.1/src/full/Agda/TypeChecking/DropArgs.hs
haskell
------------------------------------------------------------------------- * Dropping initial arguments to create a projection-like function ------------------------------------------------------------------------- arguments. | NOTE: This creates telescopes with unbound de Bruijn indices. | NOTE: does not work for...
module Agda.TypeChecking.DropArgs where import Control.Arrow (second) import Agda.Syntax.Common import Agda.Syntax.Internal import Agda.TypeChecking.Monad.Base import Agda.TypeChecking.Substitute import Agda.TypeChecking.CompiledClause import Agda.TypeChecking.Coverage.SplitTree import Agda.Utils.Functor import A...
d7d9ff0200b9949573f7af1a833a037a9de50356126f90c44c9bf697de899121
ucsd-progsys/nate
ocaml_specific.mli
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamlbuild/ocaml_specific.mli
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : ocaml_specific.mli , v 1.2 2007/02/26 16:27:...
8fcfb9874eebc0a884019caa0aaccb41e7c60de32e430572adeab542ff2f4d9a
jgpc42/jmh-clojure
instrument_test.clj
(ns jmh.instrument-test (:require [jmh.instrument :as inst] [jmh.core :as core] [jmh.test-util :as test] [clojure.test :refer :all])) (deftest test-intern-fn (let [env (inst/env) _ (inst/with-instrumentation env (let [v1 (inst/intern-fn (fn [a b] (+ a b)) :fo...
null
https://raw.githubusercontent.com/jgpc42/jmh-clojure/78f6ebcd59d782b0ca3b4f04d15a037657b87304/test/jmh/instrument_test.clj
clojure
(ns jmh.instrument-test (:require [jmh.instrument :as inst] [jmh.core :as core] [jmh.test-util :as test] [clojure.test :refer :all])) (deftest test-intern-fn (let [env (inst/env) _ (inst/with-instrumentation env (let [v1 (inst/intern-fn (fn [a b] (+ a b)) :fo...
9af7d54ab7ca54a236e9014430381940451692d9dd7e7b4f2de4affa71471cab
esb-lwb/lwb
roths_pred_test.clj
lwb Logic WorkBench -- Natural deduction -- tests Copyright ( c ) 2016 , THM . All rights reserved . ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) . ; By using this software in any fashion, you are agreeing to be bound by ; the terms of this licen...
null
https://raw.githubusercontent.com/esb-lwb/lwb/bba51ada7f7316341733d37b0dc4848c4891ef3a/test/lwb/nd/roths_pred_test.clj
clojure
The use and distribution terms for this software are covered by the By using this software in any fashion, you are agreeing to be bound by the terms of this license. backward only (step-b :forall-i k) (step-f :forall-e m n) forward only backward only (step-b :exists-i k) (step-b :exists-i k m) (step-f :exist...
lwb Logic WorkBench -- Natural deduction -- tests Copyright ( c ) 2016 , THM . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) . (ns lwb.nd.roths-pred-test (:require [clojure.test :refer :all] [lwb.nd.rules :refer :all] [lwb.nd.repl :refer :all])) (defn setup [] (loa...
eccfb78be2ea7292168beb30a5c455b9ed9783fe2640ac073e39069b60befc54
jrm-code-project/LISP-Machine
db.lisp
-*- Mode : LISP ; Package : SYSTEM - INTERNALS ; -*- (Defun disk-16b (unit PART b) (WITH-DECODED-DISK-UNIT (UNIT UNIT (FORMAT NIL "reading ~A partition" PART)) (MULTIPLE-VALUE-BIND (PART-BASE PART-SIZE NIL NIL) (FIND-DISK-PARTITION-FOR-READ PART NIL UNIT) (CHECK-ARG B (AND (NOT (< B 0)) (< B P...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/db.lisp
lisp
Package : SYSTEM - INTERNALS ; -*-
(Defun disk-16b (unit PART b) (WITH-DECODED-DISK-UNIT (UNIT UNIT (FORMAT NIL "reading ~A partition" PART)) (MULTIPLE-VALUE-BIND (PART-BASE PART-SIZE NIL NIL) (FIND-DISK-PARTITION-FOR-READ PART NIL UNIT) (CHECK-ARG B (AND (NOT (< B 0)) (< B PART-SIZE)) "inside the partition") (WITH-DISK-RQB ...
54445b72eb731b89df115428b612c0f26bbef54b412e366b029ea77090ec70bf
bvaugon/ocapic
com.ml
(*************************************************************************) (* *) (* OCaPIC *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/tests/pprog/soft/com.ml
ocaml
*********************************************************************** OCaPIC ...
This file is distributed under the terms of the CeCILL license . open Printf;; open Serial;; type c2p = | START | STOP | OFFSET_ADDRESS of int | BULK_ERASE_PROGRAM | BULK_ERASE_DATA | DISABLE_CODE_PROTECTION | WRITE_PROGRAM of int ar...
b509e5f9427287bd2a77b54aed3be6d559ae158a1df82655cff9a5d385e95b87
ekasilicon/jade
sumtype.rkt
#lang racket/base (require (for-syntax racket/base racket/match racket/string syntax/parse racket/provide-transform) racket/match "record.rkt") (begin-for-syntax (struct sumtype-info (variants ?) #:property prop...
null
https://raw.githubusercontent.com/ekasilicon/jade/115eb389a20968b3ac90a2deed17016a9d44d174/src/static/sumtype.rkt
racket
previously bound but not as a record a new record definition make sure that each variant is in list of variants make sure that each variant shows up at most once so that the semantics is that order doesn't matter we want to keep as much structure of variants as possible if the id we're looking for comes from t...
#lang racket/base (require (for-syntax racket/base racket/match racket/string syntax/parse racket/provide-transform) racket/match "record.rkt") (begin-for-syntax (struct sumtype-info (variants ?) #:property prop...
48f563bc6f599b95bfc0b04732fe564b833161209b7a55fda0f93802875e8c54
dyzsr/ocaml-selectml
t12bad.ml
TEST flags = " -w -a " ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output flags = " -w -a " ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) (* Bad (not regular) *) module rec M :...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/typing-recmod/t12bad.ml
ocaml
Bad (not regular)
TEST flags = " -w -a " ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output flags = " -w -a " ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) module rec M : sig class ['a...
cd150290e0829c9566ce0bc8ce9131133475c30f0c0953de887f079f0cc4137d
amosr/folderol
TopQ2F.hs
-- needs to be a separate file because of stage restriction. -- a bit of a shame. # LANGUAGE TemplateHaskell # module Bench.Correlation.TopQ2F where import Bench.Correlation.Queries import Bench.Plumbing.Folderol import Folderol.Splice q2'fused :: (FilePath,FilePath) -> IO (Double,Double) q2'fused (fpStock, fpMarke...
null
https://raw.githubusercontent.com/amosr/folderol/9b8c0cd30cfb798dadaa404cc66404765b1fc4fe/bench/Bench/Correlation/TopQ2F.hs
haskell
needs to be a separate file because of stage restriction. a bit of a shame.
# LANGUAGE TemplateHaskell # module Bench.Correlation.TopQ2F where import Bench.Correlation.Queries import Bench.Plumbing.Folderol import Folderol.Splice q2'fused :: (FilePath,FilePath) -> IO (Double,Double) q2'fused (fpStock, fpMarket) = do (c1,(c2,())) <- scalarIO $ \snkC1 -> scalarIO $ \snkC2 -> $$(fuse de...
d23ea12b190dcef494567628cccce92108ac5879e8579134e53057bcba69ee32
rabbitmq/rabbitmq-test
rabbit_backing_queue_qc.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, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-test/c77ef827396a32aa67b4cbfe9c237485a2650d2d/test/src/rabbit_backing_queue_qc.erl
erlang
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 / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. int int int ...
The contents of this file are subject to the Mozilla Public License 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 , Inc. Copyright ( c ) 2011 - 2015 Pivotal Software , Inc. All rights reserved . ...
e04b90e0a2e3f4a974fce25e33c05bf2d519e25da136efb5c02996c4d7be295f
dwayne/eopl3
screen.rkt
#lang racket (provide initialize-screen! print get-output) (define the-screen 'uninitialized) (define (initialize-screen!) (set! the-screen '())) (define (print val) (set! the-screen (cons val the-screen))) (define (get-output) the-screen)
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/04-ch4/interpreters/racket/STATEMENTS-4.23/screen.rkt
racket
#lang racket (provide initialize-screen! print get-output) (define the-screen 'uninitialized) (define (initialize-screen!) (set! the-screen '())) (define (print val) (set! the-screen (cons val the-screen))) (define (get-output) the-screen)
d20337c6a09a8a119d15403bdea41b2702c16f89cadc6fb377c7e10c584e3365
lojic/LearningRacket
anagram.rkt
#lang racket (provide anagrams) (define (anagrams word candidates) (define base (string-downcase word)) (filter (λ (candidate) (anagram? base (string-downcase candidate))) candidates)) (define (anagram? a b) (if (string=? a b) #f (apply equal? (map (λ (e) (sort (string->list ...
null
https://raw.githubusercontent.com/lojic/LearningRacket/eb0e75b0e16d3e0a91b8fa6612e2678a9e12e8c7/exercism.io/anagram/anagram.rkt
racket
#lang racket (provide anagrams) (define (anagrams word candidates) (define base (string-downcase word)) (filter (λ (candidate) (anagram? base (string-downcase candidate))) candidates)) (define (anagram? a b) (if (string=? a b) #f (apply equal? (map (λ (e) (sort (string->list ...
ef8ba27baa8351b91ad355aa65f9045da1c60681a9943612b403f2c2b36a17ae
daveconservatoire/dcsite-cljs
project.clj
(defproject dcex-cljs "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :clean-targets ^{:protect false} ["resources/public/devcards" "resources/public/site-min" "resources/public/site" "target"] :test-paths ["test/server...
null
https://raw.githubusercontent.com/daveconservatoire/dcsite-cljs/0b9c17569de092b5ea7fbf000ab528ac1b82851c/project.clj
clojure
prod server builds
(defproject dcex-cljs "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :clean-targets ^{:protect false} ["resources/public/devcards" "resources/public/site-min" "resources/public/site" "target"] :test-paths ["test/server...
443ac02b48f8cacef9a6b804438c46ac0c0256f0e7797c5553066ffe6795332f
ssm-lang/sslang
Inference.hs
# LANGUAGE ViewPatterns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # # LANGUAGE PartialTypeSignatures # {-# OPTIONS_GHC -Wno-partial-type-signatures #-} | type inference with union - find . module IR.Types.Inference ( inferProgram ) where import IR.IR import IR.Segmen...
null
https://raw.githubusercontent.com/ssm-lang/sslang/c4924a1721a6580be2676157032cddba6c8be371/src/IR/Types/Inference.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS_GHC -Wno-partial-type-signatures # | Helper notation for constructing arrow types. | State maintained during type inference. ^ mapping from vars to schemes ^ mapping from tcons to kinds | Perform an 'Infer' monad, with the environmnt extended by some bindings. | Look up th...
# LANGUAGE ViewPatterns # # LANGUAGE TupleSections # # LANGUAGE PartialTypeSignatures # | type inference with union - find . module IR.Types.Inference ( inferProgram ) where import IR.IR import IR.SegmentLets ( segmentDefs ) import qualified IR.Types.Type ...