_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
76ce159be56b958c1ee546b4f0b45c47ddb48a4a2fcabb53cc5d71de84fefb59
juxt/jinx
schema.cljc
Copyright © 2019 , JUXT LTD . (ns juxt.jinx.alpha.schema (:refer-clojure :exclude [number? integer?]) #?@ (:clj [(:require [juxt.jinx.alpha.core :refer [array? integer? number? object? regex? schema?]] [lambdaisland.uri :refer [join]]) (:import clojure.lang.ExceptionInfo)] ...
null
https://raw.githubusercontent.com/juxt/jinx/48c889486e5606e39144043946063803ad6effa8/src/juxt/jinx/alpha/schema.cljc
clojure
TODO: Ensure schema is returned as-is if it's existing schema TODO: Add ^:juxt/schema true - which is the right keyword here? TODO: Try against all schemas in test-suite the :base-uri for the object's metadata.
Copyright © 2019 , JUXT LTD . (ns juxt.jinx.alpha.schema (:refer-clojure :exclude [number? integer?]) #?@ (:clj [(:require [juxt.jinx.alpha.core :refer [array? integer? number? object? regex? schema?]] [lambdaisland.uri :refer [join]]) (:import clojure.lang.ExceptionInfo)] ...
b31d2a5fea69314f8bfad4add4d4f31b7238480b65f779c807ae02fd06427887
emilaxelsson/syntactic
Monad.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeOperators # # OPTIONS_GHC -Wno - missing - methods # # OPTIONS_GHC -Wno - simplifiable - class - constraints # -- | This module demonstrates monad reification. See \"Generic Monadic Constructs for Embedded " ( P...
null
https://raw.githubusercontent.com/emilaxelsson/syntactic/c51258ed96d4e9704e5842ce15667e7d3e5b77d7/examples/Monad.hs
haskell
# LANGUAGE RankNTypes # | This module demonstrates monad reification. <>) for details. | Literal
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TypeOperators # # OPTIONS_GHC -Wno - missing - methods # # OPTIONS_GHC -Wno - simplifiable - class - constraints # See \"Generic Monadic Constructs for Embedded " ( Persson et al . , IFL 2011 module Monad where import Control.Monad (replic...
b713e08580bfda1edc14a4dd8455099fbce6d4504fc392ff4a1012931d09ec23
appleby/Lisp-In-Small-Pieces
chap9z.scm
$ I d : chap9z.scm , v 4.2 2006/11/25 17:01:28 ;;;(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) ;;; This file is derived from the files that accompany the book: LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( Cambridge Unive...
null
https://raw.githubusercontent.com/appleby/Lisp-In-Small-Pieces/af4139232bb7170f32470774a92d647e83254721/src/chap9z.scm
scheme
(((((((((((((((((((((((((((((((( L i S P )))))))))))))))))))))))))))))))) This file is derived from the files that accompany the book: The original sources can be downloaded from the author's website at -systeme.lip6.fr/Christian.Queinnec/WWW/LiSP.html This file may have been altered from the original in order to...
$ I d : chap9z.scm , v 4.2 2006/11/25 17:01:28 LISP Implantation Semantique Programmation ( InterEditions , France ) or Lisp In Small Pieces ( Cambridge University Press ) . By Christian Queinnec < > (define (prepare expression directives) (let ((macroexpand (generate-macroexpand directives))...
ec7d28eb960d6b36f1e548e7ef7eb5ff3324a4cacae05c7b4ce0e45de4a3631c
antoniogarrote/levanzo
jsonld.clj
(ns levanzo.jsonld (:require [clojure.spec :as s] [clojure.test.check.generators :as tg]) (:import [com.github.jsonldjava.core JsonLdProcessor JsonLdOptions DocumentLoader])) ;; list without duplicates (s/def ::list-no-dups (s/with-gen (s/and ;; it has t...
null
https://raw.githubusercontent.com/antoniogarrote/levanzo/53a8fa134099b3ad6310bfc3493cc1fb9eb38f2f/src/levanzo/jsonld.clj
clojure
list without duplicates it has to be a collection after transforming collection into set, the number of items is the same we generate a vector of ints for the tests if we don't find the element in the list, the length of the args collection and output colleciton must be the same element is at the end
(ns levanzo.jsonld (:require [clojure.spec :as s] [clojure.test.check.generators :as tg]) (:import [com.github.jsonldjava.core JsonLdProcessor JsonLdOptions DocumentLoader])) (s/def ::list-no-dups (s/with-gen (s/and (s/coll-of any?) ...
16011336a9a67440299e6b1ba141aefdd5f9094151de124eacd08df4f02f6625
qiao/sicp-solutions
2.74.scm
;; a. (define (make-generic-employee-file division employee-file) (cons division employee-file)) (define (division generic-employee-file) (car generic-employee-file)) (define (employee-file generic-employee-file) (cdr generic-employee-file)) (define (get-record employee-name generic-employee-file) ((get 'get-...
null
https://raw.githubusercontent.com/qiao/sicp-solutions/a2fe069ba6909710a0867bdb705b2e58b2a281af/chapter2/2.74.scm
scheme
a. b. c. d. Each new division needs to install their own getters into the table.
(define (make-generic-employee-file division employee-file) (cons division employee-file)) (define (division generic-employee-file) (car generic-employee-file)) (define (employee-file generic-employee-file) (cdr generic-employee-file)) (define (get-record employee-name generic-employee-file) ((get 'get-record...
76acc747357a02eacc6abc8b31ea6893448535f3e24e58f4444ac81d16ef65c1
mwunsch/overscan
message.rkt
#lang racket/base (require ffi/unsafe/introspection racket/class racket/contract (only-in racket/function thunk curry curryr) "private/core.rkt" (only-in gstreamer/gst gst-object%) gstreamer/clock gstreamer/context) (provide (contract-out [message? ...
null
https://raw.githubusercontent.com/mwunsch/overscan/f198e6b4c1f64cf5720e66ab5ad27fdc4b9e67e9/gstreamer/message.rkt
racket
TODO: Investigate if this works with its stated contract
#lang racket/base (require ffi/unsafe/introspection racket/class racket/contract (only-in racket/function thunk curry curryr) "private/core.rkt" (only-in gstreamer/gst gst-object%) gstreamer/clock gstreamer/context) (provide (contract-out [message? ...
651ae1a7ceab1c439d051607dbb7c67cddf6d64379a11e8564fc3afe2818f67c
hemmi/coq2scala
vernacentries.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/toplevel/vernacentries.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * The main interpretation function o...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Term open Ver...
29d779b4f032644badfbe0b5f3e05eadacd322d12fee14017ba12da09d8e9703
portkey-cloud/aws-clj-sdk
_2009-03-31.clj
(ns portkey.aws.elasticmapreduce.-2009-03-31 (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "elasticmapreduce", :region "ap-northeast-1"}, :ssl-common-name "ap-northeast-1.elasticmapreduce.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/elasticmapreduce/_2009-03-31.clj
clojure
(ns portkey.aws.elasticmapreduce.-2009-03-31 (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "elasticmapreduce", :region "ap-northeast-1"}, :ssl-common-name "ap-northeast-1.elasticmapreduce.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-...
8c76df7692d05248e25dc4c03d1165885db3a76c01502cb4ab21a9a492bb9730
PrincetonUniversity/lucid
Syntax.ml
Abstract syntax of Lucid open Batteries include TQVar.TQVar_tys These types need to be declared mutually recursive so that the visitors deriving plugin develops a visitor for each of them . The above four types have a visitor already defined in TQVar.ml , so they 're placed separately deriving plugin ...
null
https://raw.githubusercontent.com/PrincetonUniversity/lucid/8ca93fd803caaa80cf2e301154791564dd3fed7e/src/lib/frontend/Syntax.ml
ocaml
User-defined size Number of bits raw_ty is the type when it was a TName number of bits This has to be a ref to perform unification during typechecking. Do not mutate it anywhere else! Only used for pretty-printing Size of the tuple, index to get values Stage number expressions Cast a size to int...
Abstract syntax of Lucid open Batteries include TQVar.TQVar_tys These types need to be declared mutually recursive so that the visitors deriving plugin develops a visitor for each of them . The above four types have a visitor already defined in TQVar.ml , so they 're placed separately deriving plugin ...
37e663633d5d04eb08061e130ace7ddcc178e8179ee04aedf141f9357bd03281
jrm-code-project/LISP-Machine
format.lisp
-*- Mode : LISP ; Package : LISP - IO ; : CL ; -*- ;;; FORMAT.LISP ;;; ;;; FORMAT Interpreter ;; Problems: parsing ,,, ;; cryptic error messages. how should they work, anyway? nice errors. ;; check types of arguments ;; piggyback stream for column counting? ;;;---------------------------------------- ;;; En...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/rauen/format.lisp
lisp
Package : LISP - IO ; : CL ; -*- FORMAT Interpreter Problems: parsing ,,, cryptic error messages. how should they work, anyway? nice errors. check types of arguments piggyback stream for column counting? ---------------------------------------- Entry ---------------------------------------- ---------------...
FORMAT.LISP (defun format (destination control-string &rest arguments) (let ((stream (cond ((streamp destination) destination) ((eq destination NIL) (make-string-output-stream)) ((eq destination T) ...
2ca66212806e671bb6b111dbe59e87be2a05ea6996546a57f546c8beb90c210f
metametadata/carry
view_model.cljs
(ns unit.view-model (:require [friend-list.core :as friend-list] [reagent.core :as r] [reagent.ratom :refer [run! reaction]] [schema-generators.generators :as g] [clojure.test :refer [deftest is]])) (defn test-view-model-tracks-model-key [model-key action expected-view-model-value] (let [{:ke...
null
https://raw.githubusercontent.com/metametadata/carry/fa5c7cd0d8f1b71edca70330acc97c6245638efb/examples/friend-list/test/unit/view_model.cljs
clojure
act force reaction updates assert
(ns unit.view-model (:require [friend-list.core :as friend-list] [reagent.core :as r] [reagent.ratom :refer [run! reaction]] [schema-generators.generators :as g] [clojure.test :refer [deftest is]])) (defn test-view-model-tracks-model-key [model-key action expected-view-model-value] (let [{:ke...
da84902f035dc3980353cf003279bf63b59508aa09a7593a93bc15d1cc279ab1
nokia/web-assembly-self-certifying-compilation-framework
bdse_pass.ml
* Copyright 2020 Nokia Licensed under the BSD 3 - Clause License . SPDX - License - Identifier : BSD-3 - Clause Copyright 2020 Nokia Licensed under the BSD 3-Clause License. SPDX-License-Identifier: BSD-3-Clause *) Basic Dead Store Elimination ( DSE ) Pass . * * Assumes that the progr...
null
https://raw.githubusercontent.com/nokia/web-assembly-self-certifying-compilation-framework/8c31df0bd7d2d94cfbc22089944f5cabb3a61158/src/compiler/passes/bdse_pass.ml
ocaml
store_info keeps track of definitions and uses of local variables maps a local variable to its defining vertex, if any maps a local variable to the number of uses of that variable list of variables whose definitions are removed add definition location for variable x increment use count for all variables in ...
* Copyright 2020 Nokia Licensed under the BSD 3 - Clause License . SPDX - License - Identifier : BSD-3 - Clause Copyright 2020 Nokia Licensed under the BSD 3-Clause License. SPDX-License-Identifier: BSD-3-Clause *) Basic Dead Store Elimination ( DSE ) Pass . * * Assumes that the progr...
63ce5bce8dd1959c0f2aa8184e35046b6957a8c9e4072ca4292c623457bf8147
ChesleyTan/ascii-chat
utils.mli
(* [safe_int_of_string] is a wrapper around [int_of_string], returning None when * the string cannot be converted to an integer *) val safe_int_of_string : string -> int option (* Returns the ip address and port of this user *) val get_address_self : unit -> string
null
https://raw.githubusercontent.com/ChesleyTan/ascii-chat/f2670c4a9d8b8e555d6b42741b314257db942c30/src/utils.mli
ocaml
[safe_int_of_string] is a wrapper around [int_of_string], returning None when * the string cannot be converted to an integer Returns the ip address and port of this user
val safe_int_of_string : string -> int option val get_address_self : unit -> string
9785d77e52a5348af01d11959ffe18168a4ec75ef132facdfc2fb3f29699397b
ocaml-multicore/parafuzz
backreferences.ml
(* TEST *) testing backreferences ; some compilation scheme may handle differently recursive references to a mutually - recursive RHS depending on whether it is before or after in the bindings list differently recursive references to a mutually-recursive RHS depending on whether it is before or after...
null
https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/testsuite/tests/letrec-compilation/backreferences.ml
ocaml
TEST
testing backreferences ; some compilation scheme may handle differently recursive references to a mutually - recursive RHS depending on whether it is before or after in the bindings list differently recursive references to a mutually-recursive RHS depending on whether it is before or after in the bin...
0d70c238ada6441b460fb61e35e41c97cf88c8d6ea3951f24ae174104ed51ff1
fourier/ppath
posix.lisp
(defpackage ppath.details.posix (:use :cl :alexandria :ppath.details.constants) (:nicknames ppath-posix) (:export abspath basename dirname exists expanduser expandvars getsize isabs isdir isfile islink ...
null
https://raw.githubusercontent.com/fourier/ppath/eb1a8173b4d1d691ea9a7699412123462f58c3ce/src/details/posix.lisp
lisp
finalizing recursion clause a component is an absolute path, discard all previous components to the left just concat and continue to join have to add "/" in between empty clause is a directory drop the last separator if the path components is bigger than 1 the tests could override it the tests could override...
(defpackage ppath.details.posix (:use :cl :alexandria :ppath.details.constants) (:nicknames ppath-posix) (:export abspath basename dirname exists expanduser expandvars getsize isabs isdir isfile islink ...
f8da158a4e775a471694fc4143a5739d0995fce44a5672834d82ca9dc72d46f9
barrel-db/barrel
barrel_replicate_alg.erl
Copyright 2017 , Copyright 2017 , %% 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 dis...
null
https://raw.githubusercontent.com/barrel-db/barrel/1695ca4cfe821808526f9ecb2e019bc1b8eff48e/src/replicator/barrel_replicate_alg.erl
erlang
use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitation...
Copyright 2017 , Copyright 2017 , Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(barrel_replicate_alg). -author("Bernard Notarianni"). -export([ replicate/4 ]). replicate(Source, Tar...
960e6a065d8722703f4656ca39fc46622bbeb9a923910962db3cafd242242693
racket/redex
traces.rkt
#lang racket/base (require "1.rkt" "types.rkt" "../traces-colors.rkt" "../space-snip.rkt" redex) (define (bw-ize f) (lambda (x) (cond [(not (f x)) "gray"] [else #t]))) (with-colors (λ () (traces/ps mod3 (term (+ (+ 1 1) (+ 2 1))) ...
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-test/redex/tests/sewpr/types/traces.rkt
racket
#lang racket/base (require "1.rkt" "types.rkt" "../traces-colors.rkt" "../space-snip.rkt" redex) (define (bw-ize f) (lambda (x) (cond [(not (f x)) "gray"] [else #t]))) (with-colors (λ () (traces/ps mod3 (term (+ (+ 1 1) (+ 2 1))) ...
68178f476b32a9d75dfbd7f47a129b7b778e756f8699b84cb7aa8c0240829758
drapanjanas/pneumatic-tubes
main.cljs
(ns ^:figwheel-no-load env.android.main (:require [reagent.core :as r] [group-chat-app.android.core :as core] [figwheel.client :as figwheel :include-macros true])) (enable-console-print!) (def cnt (r/atom 0)) (defn reloader [] @cnt [core/app-root]) (def root-el (r/as-element [reloader])) (f...
null
https://raw.githubusercontent.com/drapanjanas/pneumatic-tubes/ea3834ea04e06cd2d4a03da333461a474c0475f5/examples/group-chat-app/env/dev/env/android/main.cljs
clojure
(ns ^:figwheel-no-load env.android.main (:require [reagent.core :as r] [group-chat-app.android.core :as core] [figwheel.client :as figwheel :include-macros true])) (enable-console-print!) (def cnt (r/atom 0)) (defn reloader [] @cnt [core/app-root]) (def root-el (r/as-element [reloader])) (f...
b0224d3aa57468b61811ce4fc219381cf654f0aef65aa494057d5989c17406b7
ypyf/fscm
recursion.scm
(define (fib n) (if (or (= n 1) (= n 2)) 1 (fibTail n 1 1))) (define (fibTail n a b) (if (= n 3) (+ a b) (fibTail (- n 1) b (+ a b)))) (define foo (lambda (x) (if (> x 100) (+ x 10) ...
null
https://raw.githubusercontent.com/ypyf/fscm/4e6a31665051d51bbcfc823ac8d85dcc3491a6ef/test/recursion.scm
scheme
add-all最后一句中的 (lambda (x) (+ x n))可以单独拿出来: 此时可以这样调用:
(define (fib n) (if (or (= n 1) (= n 2)) 1 (fibTail n 1 1))) (define (fibTail n a b) (if (= n 3) (+ a b) (fibTail (- n 1) b (+ a b)))) (define foo (lambda (x) (if (> x 100) (+ x 10) ...
2593d82724d81acfe600f2a08c276bcaca0f9d9b77002a7e4858a3f6228bb855
SnootyMonkey/Falkland-CMS
REPL_notes.clj
;; productive set of development namespaces (Clojure API) (require '[cheshire.core :as json]) (require '[com.ashafa.clutch :as clutch]) (require '[fcms.config :as config] :reload) (require '[fcms.resources.common :as common] :reload) (require '[fcms.resources.collection-resource :as resource] :reload) (require '[fcms.r...
null
https://raw.githubusercontent.com/SnootyMonkey/Falkland-CMS/bd653c23dd458609b652dfac3f0f2f11526f00d1/REPL_notes.clj
clojure
productive set of development namespaces (Clojure API) productive set of development namespaces (REST API) make a REST API request print last exception run unit tests on a specific namespace auto-run tests in the repl view docs connect to a loaded cljs page in the browser
(require '[cheshire.core :as json]) (require '[com.ashafa.clutch :as clutch]) (require '[fcms.config :as config] :reload) (require '[fcms.resources.common :as common] :reload) (require '[fcms.resources.collection-resource :as resource] :reload) (require '[fcms.resources.collection :as collection] :reload) (require '[fc...
f9cc7f7877ed6dbe12f37a7c63d153d238eb34348a9b7714aa3d0be321f1c4c3
uwplse/Cassius
get-directory.rkt
#lang racket (require json) (require "../src/common.rkt") (define (resolve-dir) (define result #f) (for ([sexp (in-port)] #:break (eq? result #t)) (match sexp [`(define-problem ,name ,rest ...) (define properties (attributes->dict rest)) (define url (car (dict-ref properties ':url))) ...
null
https://raw.githubusercontent.com/uwplse/Cassius/edcb8302c43b7b149280504c00672d8133219b44/infra/get-directory.rkt
racket
#lang racket (require json) (require "../src/common.rkt") (define (resolve-dir) (define result #f) (for ([sexp (in-port)] #:break (eq? result #t)) (match sexp [`(define-problem ,name ,rest ...) (define properties (attributes->dict rest)) (define url (car (dict-ref properties ':url))) ...
263d565b3517ae44abad8e78c4241244dcd0ccb68cd21cfd27e9bd1c9934b7e3
m4b/rdr
ElfReloc.ml
typedef struct { r_offset ; uint32_t r_info ; int32_t r_addend ; } Elf32_Rela ; typedef struct { Elf64_Addr r_offset ; uint64_t r_info ; int64_t r_addend ; ...
null
https://raw.githubusercontent.com/m4b/rdr/2bf1f73fc317cd74f8c7cacd542889df729bd003/lib/elf/ElfReloc.ml
ocaml
bytes
typedef struct { r_offset ; uint32_t r_info ; int32_t r_addend ; } Elf32_Rela ; typedef struct { Elf64_Addr r_offset ; uint64_t r_info ; int64_t r_addend ; ...
12ca169976643f20a4f5b77e3f00a37abc64a677e3f8559574bf584f4c833b4a
Reisen/pixel
Commands.hs
module API.User.Commands ( createUser , changePassword ) where import Protolude import Data.Time ( UTCTime ) import Data.UUID ( UUID ) import Eventless ( Command, emit ) import Pixel.Model.Users ( User(..), UserEvent(..), Email, Password ) ------------------------------------------------...
null
https://raw.githubusercontent.com/Reisen/pixel/9096cc2c5b909049cdca6d14856ffc1fc99d81b5/src/app/API/User/Commands.hs
haskell
------------------------------------------------------------------------------
module API.User.Commands ( createUser , changePassword ) where import Protolude import Data.Time ( UTCTime ) import Data.UUID ( UUID ) import Eventless ( Command, emit ) import Pixel.Model.Users ( User(..), UserEvent(..), Email, Password ) createUser :: Monad m => UUID -> Email ...
b1ac4485ba02472b6decff746ca1a2c23f2d4350bbedfe993c3d2ba076c7af48
GillianPlatform/Gillian
report_builder.ml
module Report_state = struct type t = { previous : Report_id.t option ref; parents : Report_id.t Stack.t } let make () = { previous = ref None; parents = Stack.create () } let clone { previous; parents } = { previous = ref !previous; parents = Stack.copy parents } let global_state = make () let active_...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/c794de7417f29e3c23146f9958ead7e4ad0216ce/GillianCore/logging/report_builder.ml
ocaml
module Report_state = struct type t = { previous : Report_id.t option ref; parents : Report_id.t Stack.t } let make () = { previous = ref None; parents = Stack.create () } let clone { previous; parents } = { previous = ref !previous; parents = Stack.copy parents } let global_state = make () let active_...
dee23f8acf8780466f35216cab1d3e12dca8d05c213fd255627d9b547f2851b4
TerrorJack/ghc-alter
qsemn001.hs
import Control.Concurrent import Control.Exception import Control.Monad import Data.List new = newQSemN wait = waitQSemN signal = signalQSemN -------- -- dummy test-framework type Assertion = IO () x @?= y = when (x /= y) $ error (show x ++ " /= " ++ show y) testCase :: String -> IO () -> IO () testCase n io = put...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/tests/qsemn001.hs
haskell
------ dummy test-framework ----
import Control.Concurrent import Control.Exception import Control.Monad import Data.List new = newQSemN wait = waitQSemN signal = signalQSemN type Assertion = IO () x @?= y = when (x /= y) $ error (show x ++ " /= " ++ show y) testCase :: String -> IO () -> IO () testCase n io = putStrLn ("test " ++ n) >> io defau...
208d6d8ba1eb62e654201156843932605a4fca3f53fd055472d1a19ac35ffe3b
coccinelle/coccinelle
seq.mli
type 'a t = unit -> 'a node and 'a node = | Nil | Cons of 'a * 'a t val is_empty : 'a t -> bool val uncons : 'a t -> ('a * 'a t) option val length : 'a t -> int val iter : ('a -> unit) -> 'a t -> unit val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a val iteri : (int -> 'a -> unit) -> 'a t -> unit val fold_lef...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/5448bb2bd03491ffec356bf7bd6ddcdbf4d36bc9/bundles/stdcompat/stdcompat-current/interfaces/4.14/seq.mli
ocaml
type 'a t = unit -> 'a node and 'a node = | Nil | Cons of 'a * 'a t val is_empty : 'a t -> bool val uncons : 'a t -> ('a * 'a t) option val length : 'a t -> int val iter : ('a -> unit) -> 'a t -> unit val fold_left : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a val iteri : (int -> 'a -> unit) -> 'a t -> unit val fold_lef...
0026c21df0c7e5926679a409702ee7f3eb87d81295505c2250f748ac5bf8df4d
yjqww6/racket-x64asm
info.rkt
#lang info (define scribblings '(["scribblings/x64asm.scrbl" (multi-page)]))
null
https://raw.githubusercontent.com/yjqww6/racket-x64asm/73c2b8edc7e96a6248a7ee25fd7a6ae7065ee966/x64asm-doc/x64asm/info.rkt
racket
#lang info (define scribblings '(["scribblings/x64asm.scrbl" (multi-page)]))
07b3d2688d31c6dd1f8502f58381a7a81d6c4b209bec39d6079d697401ad8e56
homebaseio/datalog-console
extension_cards.cljs
(ns datalog-console.workspaces.chrome.extension-cards {:no-doc true} (:require [nubank.workspaces.core :as ws] [cljs.reader] [nubank.workspaces.card-types.react :as ct.react] [datalog-console.workspaces.workspace-db-conn :refer [conn]] [datalog-console.integrations.da...
null
https://raw.githubusercontent.com/homebaseio/datalog-console/af831c85addc345cc5e1af4412821f0cfb80b808/src/dev/datalog_console/workspaces/chrome/extension_cards.cljs
clojure
(ns datalog-console.workspaces.chrome.extension-cards {:no-doc true} (:require [nubank.workspaces.core :as ws] [cljs.reader] [nubank.workspaces.card-types.react :as ct.react] [datalog-console.workspaces.workspace-db-conn :refer [conn]] [datalog-console.integrations.da...
b3d4c65405e79cf70edf0448c16423d3d24c9ebe05fe6206e6db76d8276981fc
c-cube/ocaml-containers
CCThread.ml
(* This file is free software, part of containers. See file "license" for more details. *) (** {1 Threads} *) type t = Thread.t let spawn f = Thread.create f () let spawn1 f x = Thread.create f x let spawn2 f x y = Thread.create (fun () -> f x y) () let detach f = ignore (Thread.create f ()) let finally_ f x ~h = ...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/src/threads/CCThread.ml
ocaml
This file is free software, part of containers. See file "license" for more details. * {1 Threads}
type t = Thread.t let spawn f = Thread.create f () let spawn1 f x = Thread.create f x let spawn2 f x y = Thread.create (fun () -> f x y) () let detach f = ignore (Thread.create f ()) let finally_ f x ~h = try let res = f x in ignore (h ()); res with e -> ignore (h ()); raise e module Arr = ...
62dd7c993182914b16a2231d9adf9cec3c2b44dc1fd2158bff44f86b1761c035
vaibhavsagar/experiments
XmlCharacterData.hs
module Dotnet.System.Xml.XmlCharacterData where import Dotnet import qualified Dotnet.System.Xml.XmlLinkedNode data XmlCharacterData_ a type XmlCharacterData a = Dotnet.System.Xml.XmlLinkedNode.XmlLinkedNode (XmlCharacterData_ a) foreign import dotnet "method Dotnet.System.Xml.XmlCharacterData.ReplaceData" repla...
null
https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/dotnet/lib/Dotnet/System/Xml/XmlCharacterData.hs
haskell
module Dotnet.System.Xml.XmlCharacterData where import Dotnet import qualified Dotnet.System.Xml.XmlLinkedNode data XmlCharacterData_ a type XmlCharacterData a = Dotnet.System.Xml.XmlLinkedNode.XmlLinkedNode (XmlCharacterData_ a) foreign import dotnet "method Dotnet.System.Xml.XmlCharacterData.ReplaceData" repla...
8af4fd2bf238fa8cace6392c058144d7581374b7b5c7fba7969cb6310af633a4
oscoin/oscoin
Mock.hs
# LANGUAGE DataKinds # module Oscoin.Protocol.Sync.Mock where import Oscoin.Crypto import Oscoin.Prelude import Oscoin.Crypto.Blockchain (Blockchain, tip) import Oscoin.Crypto.Blockchain.Block (Block, Score, Sealed, blockHash, blockHeader, blockHeight) import ...
null
https://raw.githubusercontent.com/oscoin/oscoin/2eb5652c9999dd0f30c70b3ba6b638156c74cdb1/src/Oscoin/Protocol/Sync/Mock.hs
haskell
----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Smart constructors / helper functions / combinators ------------------------...
# LANGUAGE DataKinds # module Oscoin.Protocol.Sync.Mock where import Oscoin.Crypto import Oscoin.Prelude import Oscoin.Crypto.Blockchain (Blockchain, tip) import Oscoin.Crypto.Blockchain.Block (Block, Score, Sealed, blockHash, blockHeader, blockHeight) import ...
26b76f3926d1ca50997cce5e09f86b6b8d67bb4ad03c555d82f69d087cd9e6c6
darrenldl/ProVerif-ATP
version.mli
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/proverif2.00/src/version.mli
ocaml
Version number
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
77eb00ba2a34474837deb9e83d8ffefa17bdc19fe38e0d79d28f5217de98e55e
swaywm/wlroots-ocaml
wlroots_config.ml
let stubgen_prologue =" #define _POSIX_C_SOURCE 200809L #include <wayland-server.h> #include <wlr/backend.h> #include <wlr/render/wlr_renderer.h> #include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_data_device.h> #include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr...
null
https://raw.githubusercontent.com/swaywm/wlroots-ocaml/a4a36121a331c14b0f2ab363a6a59065513985e5/config/wlroots_config.ml
ocaml
let stubgen_prologue =" #define _POSIX_C_SOURCE 200809L #include <wayland-server.h> #include <wlr/backend.h> #include <wlr/render/wlr_renderer.h> #include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_data_device.h> #include <wlr/types/wlr_input_device.h> #include <wlr/types/wlr...
69800166dfc07832332f7b6a0da9da392be355207e2f4cbdf9332f79b01b1799
UnixJunkie/carbon
uts.ml
Copyright ( C ) 2021 , laboratory , Tokyo university , 5 - 1 - 5 Kashiwa - no - ha , , Chiba - ken , 277 - 8561 , Japan . Tsuda laboratory, Tokyo university, 5-1-5 Kashiwa-no-ha, Kashiwa-shi, Chiba-ken, 277-8561, Japan. *) open Printf module A = BatArray module Fn = Filename module Ht = BatH...
null
https://raw.githubusercontent.com/UnixJunkie/carbon/97883f3f34d39dcb4e7029d6af0ee868366cc2a9/src/uts.ml
ocaml
sparse vector of integer features abort if condition is not met no_prefix no_suffix read 'nlines' from 'input' in_channel skip 'nb' blocks from file being read run the given command in a sub process (in parallel to the current process) and returns its pid so that we can wait for it later child process...
Copyright ( C ) 2021 , laboratory , Tokyo university , 5 - 1 - 5 Kashiwa - no - ha , , Chiba - ken , 277 - 8561 , Japan . Tsuda laboratory, Tokyo university, 5-1-5 Kashiwa-no-ha, Kashiwa-shi, Chiba-ken, 277-8561, Japan. *) open Printf module A = BatArray module Fn = Filename module Ht = BatH...
5e09e0f3c58a38f039faa542d884f73119299ebfe68683fc412d53e88495a318
WorksHub/client
scroll.cljs
(ns wh.common.fx.scroll (:require [re-frame.core :refer [reg-fx]] [wh.pages.core :refer [force-scroll-to-top!]])) (defn scroll-to-top ([] (force-scroll-to-top!)) ([_ & rest] (scroll-to-top))) ;; (defn verticalPosition "distance between page top and element top" [elm] (let [page-top-to-v...
null
https://raw.githubusercontent.com/WorksHub/client/a51729585c2b9d7692e57b3edcd5217c228cf47c/client/src/wh/common/fx/scroll.cljs
clojure
(ns wh.common.fx.scroll (:require [re-frame.core :refer [reg-fx]] [wh.pages.core :refer [force-scroll-to-top!]])) (defn scroll-to-top ([] (force-scroll-to-top!)) ([_ & rest] (scroll-to-top))) (defn verticalPosition "distance between page top and element top" [elm] (let [page-top-to-view...
5c884c38227e2d7345910262d0c3fce24a77b3392e6665d1d10c4d7b2bcaa1e8
slagyr/joodo
project.clj
(defproject chee "2.0.0" :description "Support utilities" :license {:name "The MIT License" :url "file" :distribution :repo :comments "Copyright (c) 2011-2013 Micah Martin All Rights Reserved."} :dependencies [[org.clojure/clojure "1.5.1"]] :profiles {:dev {:dependencies [[sp...
null
https://raw.githubusercontent.com/slagyr/joodo/e7edbc707a7901d1a1c5465382dd25db368f4596/chee/project.clj
clojure
(defproject chee "2.0.0" :description "Support utilities" :license {:name "The MIT License" :url "file" :distribution :repo :comments "Copyright (c) 2011-2013 Micah Martin All Rights Reserved."} :dependencies [[org.clojure/clojure "1.5.1"]] :profiles {:dev {:dependencies [[sp...
c128a6f648a094258fa4e7e2d7cb4c921aaed192684cc3bff3843053f7110b88
simplex-chat/simplexmq
DoubleRatchetTests.hs
# LANGUAGE DataKinds # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - unticked - promoted - constructors # module AgentTests.DoubleRatchetTests where import C...
null
https://raw.githubusercontent.com/simplex-chat/simplexmq/8f9e6c2112c21cba3a29889d0fce3b161f137a76/tests/AgentTests/DoubleRatchetTests.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # fails on duplicate message
# LANGUAGE DataKinds # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # OPTIONS_GHC -fno - warn - unticked - promoted - constructors # module AgentTests.DoubleRatchetTests where import Control.Concurrent.STM import Control.Monad.Except import Data.A...
71fba35f232c06274ce16fd1fec190c71feda8ea8bd1426bd8788786d3119dd3
idubrov/siperl
sip_ua.erl
@author < > @doc UAC / UAS server %%% %%% %%% Automatic response handling: %%% <ul> < li > If response is redirect ( ) , populate target set with values from %%% Contact header(s) and send request to next URI from the target set.</li> < li > If response is 503 ( Service Unavailable ) or 408 ( Request Time...
null
https://raw.githubusercontent.com/idubrov/siperl/251daf3a0d7c7442f56f42cfd6c92764a4f475a7/apps/sip/src/cores/sip_ua.erl
erlang
Automatic response handling: <ul> Contact header(s) and send request to next URI from the target set.</li> target set. If no URIs in target set, let callback handle the response.</li> <li>If another failed response is detected, try next URI from target set. If target set is empty, let callback handle the respon...
@author < > @doc UAC / UAS server < li > If response is redirect ( ) , populate target set with values from < li > If response is 503 ( Service Unavailable ) or 408 ( Request Timeout ) , try next IP address ( RFC 3263 ) . If no such destinations , try next URI from the < li > Otherwise , let UAC callb...
f101d60d4f917744780ff9eef4917428afef648717827881ff7d6505bd7a8b30
progman1/genprintlib
events.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.07.1/events.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Instruct let get_pos ev = match ev.ev_kind with...
1a4f782f74b37236f645e5988e6d56e3d08f0fedeb98cc6815fd8a6bccb198b3
RedlineResearch/floorplan
Types.hs
module Language.Floorplan.Preproc.Types where import Language.Floorplan.Core.Syntax hiding (accum) import Language.Floorplan.Syntax import qualified Data.Map.Strict as M import Data.List (sort) import Data.Maybe (fromJust, isJust) import Debug.Trace as D data PreprocError = Recursive [String] -- ^...
null
https://raw.githubusercontent.com/RedlineResearch/floorplan/dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf/src/Language/Floorplan/Preproc/Types.hs
haskell
^ String is a grafting ID that's part of a recursive path. ^ String is the symbol that's undefined. ^ The list of attributes contains unnecessary duplicates. ^ %begin / %end are unbalanced. ^ A regex was unable to be compiled. ^ String is an error message.
module Language.Floorplan.Preproc.Types where import Language.Floorplan.Core.Syntax hiding (accum) import Language.Floorplan.Syntax import qualified Data.Map.Strict as M import Data.List (sort) import Data.Maybe (fromJust, isJust) import Debug.Trace as D data PreprocError = deriving (Eq, Ord, Show)
a7f0734d7a7fd57b3e40e0087b9eb45dcb664a758aa27ac28fedd68cda664a30
wdebeaum/step
compare.lisp
;;;; ;;;; File: compare.lisp Creator : Created : Thu Jun 21 12:46:16 2012 Time - stamp : < Thu Jun 21 12:59:14 EDT 2012 ferguson > ;;;; (unless (find-package :trips) (load (make-pathname :directory '(:relative :up "config" "lisp") :name "trips"))) (load #!TRIPS"src;LexiconManager;defsys") (mk:load...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/converter/compare.lisp
lisp
File: compare.lisp
Creator : Created : Thu Jun 21 12:46:16 2012 Time - stamp : < Thu Jun 21 12:59:14 EDT 2012 ferguson > (unless (find-package :trips) (load (make-pathname :directory '(:relative :up "config" "lisp") :name "trips"))) (load #!TRIPS"src;LexiconManager;defsys") (mk:load-system :lxm) (in-package :lxm) ...
1476e60259afd7649f87dde0925879966bf7053cf88107a23285272fb6e62f6f
JustusAdam/language-haskell
T0064.hs
SYNTAX TEST " source.haskell " " Comments in module exports " module M -- ( f -- ^ comment.line.double-dash.haskell -- where ^^^^^ comment.line.double-dash.haskell where module M ( f -- ^ meta.declaration.exports.haskell entity.name.function.haskell -- g -- ^ comment.lin...
null
https://raw.githubusercontent.com/JustusAdam/language-haskell/c9ee1b3ee166c44db9ce350920ba502fcc868245/test/tickets/T0064.hs
haskell
( f ^ comment.line.double-dash.haskell where ^ meta.declaration.exports.haskell entity.name.function.haskell g ^ comment.line.double-dash.haskell
SYNTAX TEST " source.haskell " " Comments in module exports " module M ^^^^^ comment.line.double-dash.haskell where module M ( f ) where
739d79db2b26230f0534354f2cb5a7a6983977e7554abb16aa7e75c96acafcac
kostyushkin/erlworld
actor_state.erl
%%% Actor_State %%% @author %%% @doc %%% The actor_state is essentially a map that stores properties to values. What %%% makes this different to other maps is that it also includes some common %%% properties that all actors require. These are a name, location and size. %%% %%% Extra propertie...
null
https://raw.githubusercontent.com/kostyushkin/erlworld/1c55c9eb0d12db9824144b4ff7535960c53e35c8/src/actor_state.erl
erlang
Actor_State @doc The actor_state is essentially a map that stores properties to values. What makes this different to other maps is that it also includes some common properties that all actors require. These are a name, location and size. Extra properties can be added by the user through the s...
@author By default this will terminate itself when removed from a World . To alter -module( actor_state ). -author("Joseph Lenton"). -include("actor_state.hrl"). -define( ACTOR_STATE_DEFAULT_NAME, actor ). -export([ new/0, new/1, new/3, new/4 ]). -export([ set/2, set/3, get...
11ea56ef5b19ab0a297aa9da1a8e8414b97f541fb89c1b6d16b5cfa982ffb67e
overtone/mini-beast
version.clj
(ns minibeast.version) (def BEAST-VERSION {:major 0 :minor 0 :patch 1 :snapshot true}) (def BEAST-VERSION-STR (let [version BEAST-VERSION] (str "v" (:major version) "." (:minor version) (if-not (= 0 (:patch version))...
null
https://raw.githubusercontent.com/overtone/mini-beast/16cd076d95e419ee72a1fa8827170c34e271456e/src/minibeast/version.clj
clojure
(ns minibeast.version) (def BEAST-VERSION {:major 0 :minor 0 :patch 1 :snapshot true}) (def BEAST-VERSION-STR (let [version BEAST-VERSION] (str "v" (:major version) "." (:minor version) (if-not (= 0 (:patch version))...
dcd710a5e572b85d91577791c96e915fefda31781c0bce8a03ad5b92d89c6745
wangkuiyi/graphviz-server
parse-http-request-test.rkt
#lang racket (require "./parse-http-request.rkt") (require rackunit) (define test-http-request "POST /graphviz/ HTTP/1.0\r\n\ X-Scheme: http\r\n\ Host: graphviz.server:9981\r\n\ Connection: close\r\n\ Content-Length: 71\r\n\ Cache-Control: max-age=0\r\n\ Origin: \r\n\ Content-Type: text/plain\r\n\ Accept: */*\r\n\ ...
null
https://raw.githubusercontent.com/wangkuiyi/graphviz-server/30dede62a11e36ac443a4f49eb313bf13955e9fe/parse-http-request-test.rkt
racket
q=0.7,*;q=0.3\r\n\ \n\ \n\
#lang racket (require "./parse-http-request.rkt") (require rackunit) (define test-http-request "POST /graphviz/ HTTP/1.0\r\n\ X-Scheme: http\r\n\ Host: graphviz.server:9981\r\n\ Connection: close\r\n\ Content-Length: 71\r\n\ Cache-Control: max-age=0\r\n\ Origin: \r\n\ Content-Type: text/plain\r\n\ Accept: */*\r\n\ ...
6c623daba622e8f52c7de2e21a7558c3a2bf685c79681bd2976c6a6318c0e63f
narkisr-deprecated/core
clone.clj
(comment re-core, Copyright 2012 Ronen Narkis, narkisr.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software distri...
null
https://raw.githubusercontent.com/narkisr-deprecated/core/85b4a768ef4b3a4eae86695bce36d270dd51dbae/src/kvm/clone.clj
clojure
see clone
(comment re-core, Copyright 2012 Ronen Narkis, narkisr.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software distri...
aec237959a9bfee97262b62922746215e897f423abc7b9f7e709329cad64ad60
adomokos/haskell-katas
Ex54_MonadsBirdLandingWithDoNotationSpec.hs
module Solutions.Ex54_MonadsBirdLandingWithDoNotationSpec ( spec ) where import Test.Hspec type Birds = Int type Pole = (Birds, Birds) landLeft1 :: Birds -> Pole -> Pole landLeft1 n (left, right) = (left + n, right) landRight1 :: Birds -> Pole -> Pole landRight1 n (left, right) = (left, right + n) x -: f = f ...
null
https://raw.githubusercontent.com/adomokos/haskell-katas/be06d23192e6aca4297814455247fc74814ccbf1/test/Solutions/Ex54_MonadsBirdLandingWithDoNotationSpec.hs
haskell
Improved logic with checks same as above, but use Maybe empty string as input
module Solutions.Ex54_MonadsBirdLandingWithDoNotationSpec ( spec ) where import Test.Hspec type Birds = Int type Pole = (Birds, Birds) landLeft1 :: Birds -> Pole -> Pole landLeft1 n (left, right) = (left + n, right) landRight1 :: Birds -> Pole -> Pole landRight1 n (left, right) = (left, right + n) x -: f = f ...
dd4af1ef6823b0ddddbbad66e7e41a6503ea45bfb6573b5abbaf42f45d5362a7
teawaterwire/type-letter
server.clj
(ns type.server (:require [type.handler :refer [app]] [config.core :refer [env]] [ring.adapter.jetty :refer [run-jetty]]) (:gen-class)) (defn -main [& args] (let [port (Integer/parseInt (or (env :port) "3000"))] (run-jetty app {:port port :join? false})))
null
https://raw.githubusercontent.com/teawaterwire/type-letter/fe30703a313d02eb3844e1838161121ca828f083/src/clj/type/server.clj
clojure
(ns type.server (:require [type.handler :refer [app]] [config.core :refer [env]] [ring.adapter.jetty :refer [run-jetty]]) (:gen-class)) (defn -main [& args] (let [port (Integer/parseInt (or (env :port) "3000"))] (run-jetty app {:port port :join? false})))
725c86cb0bcad0f1c03ab2726543e7b8212b41c9882a949aad7bdb50d8365fa3
qkrgud55/ocamlmulti
tetris.ml
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of OCaml (* *) , , and ...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/otherlibs/labltk/examples_labltk/tetris.ml
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of OCaml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
b444fdff4c45f8b527ee16a7fd9845ce8d4d72ba36cecaefa0540850ad0dbaf0
tmattio/js-bindings
vscode_languageclient_protocol_code_action.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 (* import * as vscode from 'vscode'; *) module ProtocolCodeAction : sig type t val t_to_js : t -> Ojs.t val t_of_js : Ojs.t -> t val get_data : t -> unknown or_undefined [@@js.get "data"] val create : title:...
null
https://raw.githubusercontent.com/tmattio/js-bindings/ca3bd6a12db519c8de7f41b303f14cf70cfd4c5f/lib/vscode-languageclient/vscode_languageclient_protocol_code_action.mli
ocaml
import * as vscode from 'vscode'; TODO: Move me
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 module ProtocolCodeAction : sig type t val t_to_js : t -> Ojs.t val t_of_js : Ojs.t -> t val get_data : t -> unknown or_undefined [@@js.get "data"] val create : title:string -> data:unknown or_undefined -> t...
0ddda064f6eacd26f18313c15c4cff476bba13fe7a537d4d3d618b3b8f40fbed
DaMSL/K3
Values.hs
module Language.K3.Interpreter.Values (tests) where import Data.Map ( Map ) import qualified Data.Map as Map import Test.HUnit hiding (Test) import Test.Framework.Providers.API import Test.Framework.Providers.HUnit import Language.K3.Core.Common import Language.K3.Interpreter_new.Data.Types import Language.K3.Inter...
null
https://raw.githubusercontent.com/DaMSL/K3/51749157844e76ae79dba619116fc5ad9d685643/test/Language/K3/Interpreter/Values.hs
haskell
module Language.K3.Interpreter.Values (tests) where import Data.Map ( Map ) import qualified Data.Map as Map import Test.HUnit hiding (Test) import Test.Framework.Providers.API import Test.Framework.Providers.HUnit import Language.K3.Core.Common import Language.K3.Interpreter_new.Data.Types import Language.K3.Inter...
1b4b68c05d5d7b6cf8e2f468a52e6388a15766f22d251adfccd02d4d306f30ad
ghc/nofib
Goals.hs
module Goals where import Unparse import X_interface import Edlib import Core_datatype import Vtslib import Tree import Globals import Lookup -- stub import Parse import Kernel import Sub_Core1 import Sub_Core2 import Sub_Core3 import Sub_Core4 import Type_defs import Tags {- (*************************...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/veritas/Goals.hs
haskell
stub (******************************************************************************) (* A goal consists of: a tactic name, a list of arguments, a comment, a *) (* unique identifier and a specification. *) (*********************************************************************...
module Goals where import Unparse import X_interface import Edlib import Core_datatype import Vtslib import Tree import Globals import Parse import Kernel import Sub_Core1 import Sub_Core2 import Sub_Core3 import Sub_Core4 import Type_defs import Tags data GOAL = Goal ( Option String ) data Obj =...
e05f07c4d1f4756ec42567777379b0d9ff919a67fde913c6b5dd3e1f216fa8d3
McCLIM/McCLIM
edward.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) copyright 2020 - 2023 < > ;;; ;;; -------------------------------------------------...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/cb1622a27988c1441d2623ab042130069ab62a5e/Core/clim-core/input-editor/edward.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- Edward operations. aka "p...
( c ) copyright 2020 - 2023 < > Edward - the input editor ( based on ) . (in-package #:climi) (defclass edward-mixin () ((edward-buffer :initarg :input-buffer :reader input-editor-buffer :initform (make-cluffer)) :reader cursors :initform (make-hash-table)) :reader slides :init...
33581e3fc322d259d9455c1fbd652d776c3eb3f8b5847dede5b3f618a2490fea
jasongilman/proto-repl-demo
autoeval.clj
(ns autoeval) ;; This file demonstrates the autoeval functionality. ;; All top level forms will be immediately evaluated. ;; Turn on autoeval by bringing up the command palette and selecting Proto Repl : Autoeval File ;; Uncomment this line. It should be immediately evaluated ; (+ 2 3) ;; Uncomment me ( for [ n...
null
https://raw.githubusercontent.com/jasongilman/proto-repl-demo/361e17b7bc67a5afa60ac5029cca5a93fa626044/autoeval.clj
clojure
This file demonstrates the autoeval functionality. All top level forms will be immediately evaluated. Turn on autoeval by bringing up the command palette Uncomment this line. It should be immediately evaluated (+ 2 3) Uncomment me See -repl-charts Uncomment me "Trigonometry" Turn off Autoeval by bringing up ...
(ns autoeval) and selecting Proto Repl : Autoeval File ( for [ n ( range 10 ) ] ( * 2 n ) ) Proto REPL Charts work as well if you have it installed . ( prc / line - chart { " sin " ( map # ( Math / sin % ) ( range 0.0 6.0 0.2 ) ) " cos " ( map # ( Math / cos % ) ( range 0.0 6.0 0.2 ) ) } ) P...
4166fefe7e8326cf59166c82e37dd92367c4f30b12b1920851b2198f0eaba5f7
pfdietz/ansi-test
hash-table-aux.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Oct 4 09:24:24 2003 ;;;; Contains: Aux. functions for testing hash tables (eval-when (:load-toplevel :compile-toplevel :execute) (compile-and-load "ANSI-TESTS:AUX;random-aux.lsp")) (defparameter *hash-table-test-iters* 1000) (defun test-hash-table-1 (&r...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/auxiliary/hash-table-aux.lsp
lisp
-*- Mode: Lisp -*- Contains: Aux. functions for testing hash tables Build a hash table using the arguments in ARGS. Perform *hash-table-test-iters* iterations of random hash table operations (universe-size (length universe-vec)) Insert Delete element in the set Delete random element from universe Not prese...
Author : Created : Sat Oct 4 09:24:24 2003 (eval-when (:load-toplevel :compile-toplevel :execute) (compile-and-load "ANSI-TESTS:AUX;random-aux.lsp")) (defparameter *hash-table-test-iters* 1000) (defun test-hash-table-1 (&rest args) (let ((table (apply #'make-hash-table args)) (test (or (ge...
958a0c2881c075423733282b7c552b22ff0e0a3fc74e880862100f128494d682
joelburget/lvca
Edits.ml
module Model = struct let initial_model = () end module View = struct open Brr.El let view _model = div [ txt' "TODO" ] end let stateless_view () = View.view Model.initial_model
null
https://raw.githubusercontent.com/joelburget/lvca/0bf86d981cab5d45d1c21918305f0d448ba57ca4/pages/Edits.ml
ocaml
module Model = struct let initial_model = () end module View = struct open Brr.El let view _model = div [ txt' "TODO" ] end let stateless_view () = View.view Model.initial_model
6d4ee256bad4c2adacaaa492a5bd7b554115fb7fa2d549039f9688fa33020be6
spurious/sagittarius-scheme-mirror
unicode.sps
#!r6rs (import (tests r6rs unicode) (tests r6rs test) (rnrs io simple)) (display "Running tests for (rnrs unicode)\n") (run-unicode-tests) (report-test-results)
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/test/r6rs-test-suite/tests/r6rs/run/unicode.sps
scheme
#!r6rs (import (tests r6rs unicode) (tests r6rs test) (rnrs io simple)) (display "Running tests for (rnrs unicode)\n") (run-unicode-tests) (report-test-results)
72503145c57877fc98592a7f629aff2f42925f550cb9185245dc50efb8fe8e99
r0man/sqlingvo
drop_table_test.cljc
(ns sqlingvo.drop-table-test (:require #?(:clj [sqlingvo.test :refer [db sql=]] :cljs [sqlingvo.test :refer [db] :refer-macros [sql=]]) [clojure.test :refer [deftest is]] [sqlingvo.core :as sql])) (deftest test-drop-table-keyword-db (sql= (sql/drop-table :postgresql [:contine...
null
https://raw.githubusercontent.com/r0man/sqlingvo/1f13624ed60ec0866fe51311d92da73638708172/test/sqlingvo/drop_table_test.cljc
clojure
(ns sqlingvo.drop-table-test (:require #?(:clj [sqlingvo.test :refer [db sql=]] :cljs [sqlingvo.test :refer [db] :refer-macros [sql=]]) [clojure.test :refer [deftest is]] [sqlingvo.core :as sql])) (deftest test-drop-table-keyword-db (sql= (sql/drop-table :postgresql [:contine...
010e12cb935225bf884f8875cc1ca9537d6d4201e53171d62a7fa2d17f555957
skynet-gh/skylobby
battles.cljs
(ns skylobby.view.battles (:require [re-frame.core :as rf] [skylobby.data :as data] [skylobby.util :as u] [skylobby.view.server-nav :as server-nav] [skylobby.view.servers-nav :as servers-nav])) (defn listen [query-v] @(rf/subscribe query-v)) (def title-class "light-gray") (defn battles-page...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/e25c88d149c298326ec8a32306a86485c2324fd8/src/cljs/skylobby/view/battles.cljs
clojure
(ns skylobby.view.battles (:require [re-frame.core :as rf] [skylobby.data :as data] [skylobby.util :as u] [skylobby.view.server-nav :as server-nav] [skylobby.view.servers-nav :as servers-nav])) (defn listen [query-v] @(rf/subscribe query-v)) (def title-class "light-gray") (defn battles-page...
09fa88ea596ea30d4d3a3ca1ff5e1f5578aa6790e7ec10804464477b3577a44d
static-analysis-engineering/codehawk
tCHBchlibarm32Utils.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Unit Testing Framework Author : Adapted from : ( ) ------------------------------------------------------------------------------ ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/e8fed9f226abe38578768968279c8242eb21fea9/CodeHawk/CHT/CHB_tests/bchlibarm32_tests/tbchlibarm32/tCHBchlibarm32Utils.ml
ocaml
bchlib bchlibarm32
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Unit Testing Framework Author : Adapted from : ( ) ------------------------------------------------------------------------------ ...
ec79c11caa9031161d11ad2ab858d320b62d3fbcbb98d08e41836b70be84c2ca
ocaml/oasis
OMakeFields.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/plugins/omake/OMakeFields.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
e387f873eb63ad758b4c2d66db87628a245863bf4a51189ac67ca74bf5dfd51d
tmfg/mmtis-national-access-point
change_utilities.cljs
(ns ote.views.transit-visualization.change-utilities "Helper ui components for transit visualization." (:require [cljs-react-material-ui.icons :as ic] [stylefy.core :as stylefy] [ote.style.transit-changes :as style] [ote.ui.icons :as ote-icons] [ote.ui.icon_labeled :a...
null
https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/a86cc890ffa1fe4f773083be5d2556e87a93d975/ote/src/cljs/ote/views/transit_visualization/change_utilities.cljs
clojure
Ensure that all icons have unique key
(ns ote.views.transit-visualization.change-utilities "Helper ui components for transit visualization." (:require [cljs-react-material-ui.icons :as ic] [stylefy.core :as stylefy] [ote.style.transit-changes :as style] [ote.ui.icons :as ote-icons] [ote.ui.icon_labeled :a...
80fb02f40ae70bcf5574a5a013898158c21852f5f72c80b112869d490474cd77
iskandr/parakeet-retired
CostModel2.ml
(* pp: -parser o pa_macro.cmo *) open Base open SSA type compute_location = GPU | CPU (* want: compute_location = backend option *) type cost = float (* describe_value *) (* (shapeEnv : Shape.t ID.Map.t) *) ( backends : backend String . ) ( varSets : ID.Set.t String . ) ( valNode : SSA.value...
null
https://raw.githubusercontent.com/iskandr/parakeet-retired/3d7e6e5b699f83ce8a1c01290beed0b78c0d0945/Runtime/CostModel/CostModel2.ml
ocaml
pp: -parser o pa_macro.cmo want: compute_location = backend option describe_value (shapeEnv : Shape.t ID.Map.t) since shape information has already been fully inferred in the for now only compute call cost to initializer function and assume it has a comparable cost to the actual reducer don...
open Base open SSA type compute_location = GPU | CPU type cost = float ( backends : backend String . ) ( varSets : ID.Set.t String . ) ( valNode : SSA.value_node ) let describe_value (shapeEnv : Shape.t ID.Map.t) (gpuSet : ID.Set.t) (valNode : SSA.value_node) : Dyn...
0eeb072856f5b1de45ef29a726c7bfdebfee20e4d1a4514b340d14ff21b29595
openmusic-project/openmusic
bpc.lisp
;========================================================================= OpenMusic : Visual Programming Language for Music Composition ; Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . ; This file is part of the OpenMusic environment sources ; OpenMusic is free software : you ...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/projects/basicproject/classes/bpc.lisp
lisp
========================================================================= (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ======...
OpenMusic : Visual Programming Language for Music Composition Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . This file is part of the OpenMusic environment sources OpenMusic is free software : you can redistribute it and/or modify it under the terms of the GNU General Public ...
f6d8138ed429c5b6ee948444e1da1960fe7248f85c7d70477ccb598db98f713b
yapsterapp/deferst
build.clj
(require '[cljs.build.api :as b]) (println "Building ...") (let [start (System/nanoTime)] (b/build (b/inputs "assets" "test" "src") {:main 'deferst.core-test :output-to "out/tests.js" :output-dir "out/tests" :target :nodejs :pretty-print true :optimizations :advanced :language-in :ecm...
null
https://raw.githubusercontent.com/yapsterapp/deferst/13ef02499211b42b1876e3b170ca27e9f721ad2b/scripts/build.clj
clojure
(require '[cljs.build.api :as b]) (println "Building ...") (let [start (System/nanoTime)] (b/build (b/inputs "assets" "test" "src") {:main 'deferst.core-test :output-to "out/tests.js" :output-dir "out/tests" :target :nodejs :pretty-print true :optimizations :advanced :language-in :ecm...
8ff785f8023113f43cfb1e1e2c9523cc9c9370f22e003cd8204e52eda7c1a9e2
janestreet/expect_test_helpers_async
test_within_temp_dir.ml
open! Core open Poly open! Async open! Import let%expect_test "[within_temp_dir `In_temp_as]" = let jbuild = "jbuild" in let foobar = "foobar" in let%bind jbuild_contents = Reader.file_contents jbuild in let%bind () = within_temp_dir ~links:[ jbuild, `In_temp_as, foobar ] (fun () -> le...
null
https://raw.githubusercontent.com/janestreet/expect_test_helpers_async/d17cc3dd46abfbe6f09755e55efe04d28ba8d624/test/test_within_temp_dir.ml
ocaml
Print any PATH entries under [tmp]. Print all files and directories under [tmp]. no links temp links only path links only temp and path links without [in_dir] with [in_dir]
open! Core open Poly open! Async open! Import let%expect_test "[within_temp_dir `In_temp_as]" = let jbuild = "jbuild" in let foobar = "foobar" in let%bind jbuild_contents = Reader.file_contents jbuild in let%bind () = within_temp_dir ~links:[ jbuild, `In_temp_as, foobar ] (fun () -> le...
9149782722aba54c6569d00de81ca303c038c1fb7fa57c6590dd2a4a591cadb9
denisidoro/graffiti
query.clj
(ns graffiti.query (:require [com.walmartlabs.lacinia :as lacinia] [graffiti.interceptors :as interceptors] [clojure.core.async :as async])) (defn graphql [{:graffiti/keys [mesh] :as context} query variables] (-> (lacinia/execute (:lacinia/schema mesh) query variables context) inter...
null
https://raw.githubusercontent.com/denisidoro/graffiti/f4ea2103e060fafe2c84a14aff5f68cf8039e1aa/src/graffiti/query.clj
clojure
(ns graffiti.query (:require [com.walmartlabs.lacinia :as lacinia] [graffiti.interceptors :as interceptors] [clojure.core.async :as async])) (defn graphql [{:graffiti/keys [mesh] :as context} query variables] (-> (lacinia/execute (:lacinia/schema mesh) query variables context) inter...
48acecb7b654e8f0bd45992c3e0249964a80934d82d459e72b13d326bb471d65
silky/quipper
Testing.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== # OPTIONS_GHC -fno - warn - incomplete - patterns...
null
https://raw.githubusercontent.com/silky/quipper/1ef6d031984923d8b7ded1c14f05db0995791633/tests/Testing.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== $ Generate some circuits for the slides in the PI presentation.
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the # OPTIONS_GHC -fno - warn - incomplete - patterns # import Quipper example_H3 :: Qubit -> Qubit -> Qubit -> Qubit -> Circ () example_H3 h a b c = do with_ancilla $ \d -> do with_ancilla $ \e -> do qnot_at d `controlled` a .==....
75f8207f6a101aec4fe37d11ced0586690f991b44e9bb5223a25a93d95720f1d
DerekCuevas/interview-cake-clj
core_test.clj
(ns top-scores.core-test (:require [clojure.test :refer :all] [top-scores.core :refer :all])) (defn ordered? [coll] (if (<= (count coll) 1) true (apply <= coll))) (def coll-a (shuffle [5 3 4 8])) (def coll-b (shuffle [45 78 2 4 9 99 100 23 17])) (def coll-c (shuffle [4 49 15 2 2 3 15 17 9 13 2...
null
https://raw.githubusercontent.com/DerekCuevas/interview-cake-clj/f17d3239bb30bcc17ced473f055a9859f9d1fb8d/top-scores/test/top_scores/core_test.clj
clojure
(ns top-scores.core-test (:require [clojure.test :refer :all] [top-scores.core :refer :all])) (defn ordered? [coll] (if (<= (count coll) 1) true (apply <= coll))) (def coll-a (shuffle [5 3 4 8])) (def coll-b (shuffle [45 78 2 4 9 99 100 23 17])) (def coll-c (shuffle [4 49 15 2 2 3 15 17 9 13 2...
adea38a27d48f92fc9a4b51c18810d40e5a7bd68c14691e809353a8b09d90361
igorhvr/bedlam
qp.scm
;;;; "qp.scm" Print finite length representation for any Scheme object. Copyright ( C ) 1991 , 1992 , 1993 , 1995 , 2003 ; ;Permission to copy this software, to modify it, to redistribute it, ;to distribute modified versions, and to use it for any purpose is ;granted, subject to the following restrictions and under...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/qp.scm
scheme
"qp.scm" Print finite length representation for any Scheme object. Permission to copy this software, to modify it, to redistribute it, to distribute modified versions, and to use it for any purpose is granted, subject to the following restrictions and understandings. in full. this software will be error-free, and I...
Copyright ( C ) 1991 , 1992 , 1993 , 1995 , 2003 1 . Any copy made of this software must include this copyright notice 2 . I have made no warranty or representation that the operation of 3 . In conjunction with products arising from the use of this (define *qp-width* (output-port-width (current-output-port))...
47da756196b2222980b593257ca128caa773bcea8541c2bfd290f7665a96e0e5
tweag/ormolu
pattern-bind-out.hs
foo = bar where Foo bar baz = quux Baz quux = zoo foo = bar where Foo bar baz = quux
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/value/function/pattern/pattern-bind-out.hs
haskell
foo = bar where Foo bar baz = quux Baz quux = zoo foo = bar where Foo bar baz = quux
bd7ebc8a5c3b0b3874ca4dedbb5dfd81b28b2fed6f54ec33d9fbf62baa699188
gonzojive/elephant
schemas.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;; ;;; metaclasses.lisp -- persistent objects via metaobjects ;;; Initial version 8/26/2004 by ;;; <> ;;; ;;; part of ;;; Elephant : an object - oriented database for Common Lisp ;;; Copyright ( c ) 2004 by and ;;; <> <> ;;; Portions Cop...
null
https://raw.githubusercontent.com/gonzojive/elephant/b29a012ab75ccea2fc7fc4f1e9d5e821f0bd60bf/src/elephant/schemas.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- metaclasses.lisp -- persistent objects via metaobjects <> part of <> <> Elephant users are granted the rights to distribute and use this software (), also known as the LLGPL. ========================================= Compute a schema from a slot definiti...
Initial version 8/26/2004 by Elephant : an object - oriented database for Common Lisp Copyright ( c ) 2004 by and Portions Copyright ( c ) 2005 - 2007 by and < common - lisp net > < ieslick common - lisp net > as governed by the terms of the Lisp Lesser GNU Public License (in-package "ELEPHANT") ...
7a3525c96daa5929dc90cff854b169f65e594822fd9a3d8c40c0e6c8b46264a9
gethop-dev/hop-cli
landing.cljs
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this ;; file, You can obtain one at / {{=<< >>=}} (ns <<project.name>>.client.landing (:require [<<project.name>>.client.view :as view])) (defn- main [] [:div.landing [:a {:h...
null
https://raw.githubusercontent.com/gethop-dev/hop-cli/c7b848915ff268aa41ff9a61a62c614f58ecbeb9/resources/bootstrap/profiles/frontend/app/src/%7B%7Bproject.files-name%7D%7D/client/landing.cljs
clojure
file, You can obtain one at /
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this {{=<< >>=}} (ns <<project.name>>.client.landing (:require [<<project.name>>.client.view :as view])) (defn- main [] [:div.landing [:a {:href "/" :target "_blank"}...
d9a93fa8abf7aaacc288a9cd4b651204335d5969933dd3c2d2a4ce38beafff08
ghc/testsuite
SeqRule.hs
-- This test checks that the magic treatment of RULES -- for 'seq' works right. -- See Note [ RULES for seq ] in MkId for more details module Main where # NOINLINE f # f x = not x {-# RULES "f/seq" forall n e. seq (f n) e = True #-} main = print (seq (f True) False)
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/simplCore/should_run/SeqRule.hs
haskell
This test checks that the magic treatment of RULES for 'seq' works right. # RULES "f/seq" forall n e. seq (f n) e = True #
See Note [ RULES for seq ] in MkId for more details module Main where # NOINLINE f # f x = not x main = print (seq (f True) False)
496bc13f230b106cf7670646beb21aeb6f070a9aca180b8fab6569782cf2c3c0
avsm/eeww
patmatch_for_multiple.ml
(* TEST flags = "-drawlambda -dlambda" * expect *) (* Note: the tests below contain *both* the -drawlambda and the -dlambda intermediate representations: -drawlambda is the Lambda code generated directly by the pattern-matching compiler; it contain "alias" bindings or static exits that are unused...
null
https://raw.githubusercontent.com/avsm/eeww/23ca8b36127b337512e13c6fb8e86b3a7254d4f9/boot/ocaml/testsuite/tests/basic/patmatch_for_multiple.ml
ocaml
TEST flags = "-drawlambda -dlambda" * expect Note: the tests below contain *both* the -drawlambda and the -dlambda intermediate representations: -drawlambda is the Lambda code generated directly by the pattern-matching compiler; it contain "alias" bindings or static exits that are unused, and w...
match (3, 2, 1) with | (_, 3, _) | (1, _, _) -> true | _ -> false ;; [%%expect{| match*/276 = 3 * match*/277 = 2 * match*/278 = 1 ) ( catch ( catch ( catch ( if ( ! = * match*/277 3 ) ( exit 3 ) ( exit 1 ) ) with ( 3 ) ( if ( ! = * match*/276 1 ) ( exit 2 ) ( exit 1 ) ) ) with ( 2 )...
4ec13b6e34c8da94c27fda7c9facf0cbbfe2dfede79a365fd4edf90b88388239
benknoble/frosthaven-manager
helpers.rkt
#lang racket/base (provide translate-to-top-coords) (require racket/class) (define (translate-to-top-coords this top x y) (define-values (xs ys) (send this client->screen x y)) (send top screen->client xs ys))
null
https://raw.githubusercontent.com/benknoble/frosthaven-manager/93954054b089d82dd6ff9bab8ff36a252039974d/gui/helpers.rkt
racket
#lang racket/base (provide translate-to-top-coords) (require racket/class) (define (translate-to-top-coords this top x y) (define-values (xs ys) (send this client->screen x y)) (send top screen->client xs ys))
3203acee4a3db00ca3e17e5918dc64d9b67566fb43c8d3b9a34fa7f2d91c6370
ocaml-flambda/ocaml-jst
inlining_transforms.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/7e5a626e4b4e12f1e9106564e1baba4d0ef6309a/middle_end/flambda/inlining_transforms.ml
ocaml
************************************************************************ OCaml ...
, OCamlPro and , Copyright 2014 - -2016 Jane Street Group LLC the GNU Lesser General Public License version 2.1 , with the [@@@ocaml.warning "+a-4-9-30-40-41-42-66"] open! Int_replace_polymor...
49f0940a6a045aecb4b084bce8eecdca4ea7d90d90b35744a6099c1ca6a33ce5
agentm/project-m36
TypeConstructorDef.hs
module ProjectM36.TypeConstructorDef where import ProjectM36.Base name :: TypeConstructorDef -> TypeConstructorName name (ADTypeConstructorDef nam _) = nam name (PrimitiveTypeConstructorDef nam _) = nam typeVars :: TypeConstructorDef -> [TypeVarName] typeVars (PrimitiveTypeConstructorDef _ _) = [] ...
null
https://raw.githubusercontent.com/agentm/project-m36/57a75b35e84bebf0945db6dae53350fda83f24b6/src/lib/ProjectM36/TypeConstructorDef.hs
haskell
module ProjectM36.TypeConstructorDef where import ProjectM36.Base name :: TypeConstructorDef -> TypeConstructorName name (ADTypeConstructorDef nam _) = nam name (PrimitiveTypeConstructorDef nam _) = nam typeVars :: TypeConstructorDef -> [TypeVarName] typeVars (PrimitiveTypeConstructorDef _ _) = [] ...
fd7354c0bde36991f25ad0b33a441ebbe6608fa9c267cdbe9423607162eced5b
racket/deinprogramm
DMdA-beginner-reader.rkt
#lang scheme/base (require deinprogramm/DMdA/private/DMdA-reader) (provide (rename-out (-read-syntax read-syntax)) (rename-out (-read read))) (define -read-syntax (make-read-syntax '(lib "DMdA-beginner.rkt" "deinprogramm"))) (define -read (make-read '(lib "DMdA-beginner.rkt" "deinprogramm")))
null
https://raw.githubusercontent.com/racket/deinprogramm/e9fb68455641ae7d409ddb48f5e584c9d014ef4f/deinprogramm/deinprogramm/DMdA-beginner-reader.rkt
racket
#lang scheme/base (require deinprogramm/DMdA/private/DMdA-reader) (provide (rename-out (-read-syntax read-syntax)) (rename-out (-read read))) (define -read-syntax (make-read-syntax '(lib "DMdA-beginner.rkt" "deinprogramm"))) (define -read (make-read '(lib "DMdA-beginner.rkt" "deinprogramm")))
ba6c83ef68ebd1688c84f099c4a1304d6b7d7c7de033f9fd1f0c23e38087b435
aggieben/weblocks
debug-mode.lisp
(in-package :weblocks) (defun render-debug-toolbar () "When weblocks is started in debug mode, called on every request to present the user with a toolbar that aids development." (with-html (:div :class "debug-toolbar" (:a :href (make-action-url "debug-reset-sessions") :title "Reset Sessions" ...
null
https://raw.githubusercontent.com/aggieben/weblocks/8d86be6a4fff8dde0b94181ba60d0dca2cbd9e25/src/debug-mode.lisp
lisp
(in-package :weblocks) (defun render-debug-toolbar () "When weblocks is started in debug mode, called on every request to present the user with a toolbar that aids development." (with-html (:div :class "debug-toolbar" (:a :href (make-action-url "debug-reset-sessions") :title "Reset Sessions" ...
9543738f6cc333a6882e4cc1892ae467a79562a1b20e4c381c9f9292d2e110fb
otpcl/otpcl
otpcl.erl
@doc One - stop shop for all your OTPCL needs . % % The `otpcl' module re-exports various functions for convenience when using OTPCL from within other OTP applications . -module(otpcl). -behaviour(application). -include("otpcl.hrl"). -export([start/2, stop/1, scan/1, scan/2, parse/1, interpret/1, interpret/2, ...
null
https://raw.githubusercontent.com/otpcl/otpcl/b174e6dce625f7bca4772c1bca65f4a9e7bbd769/src/otpcl.erl
erlang
The `otpcl' module re-exports various functions for convenience when using @hidden @hidden Re-exposing some of the module functions for convenience ('cause it's annoying to have to type otpcl_foo:foo() all the time). resulting tokens will start from the default starting position (`{nofile,0,0}'). resulting tok...
@doc One - stop shop for all your OTPCL needs . OTPCL from within other OTP applications . -module(otpcl). -behaviour(application). -include("otpcl.hrl"). -export([start/2, stop/1, scan/1, scan/2, parse/1, interpret/1, interpret/2, eval/1, eval/2, eval_file/1, eval_file/2, get/2, set/3, import/2, ...
fe5fa105b75fa9911a2115b26061b0e3c9966510647db6dffdcf5a3cb969b238
sgbj/MaximaSharp
result.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/result.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; assumes same m...
(in-package :maxima) (macsyma-module result) (declare-top (special varlist genvar $ratfac $keepfloat modulus *alpha xv)) (load-macsyma-macros ratmac) (defmfun $poly_discriminant (poly var) (let* ((varlist (list var)) ($ratfac nil) (genvar ()) (rform (rform poly)) (rvar (car (last genvar))) (n (pdegree ...
9acce2af2d96c30e9f1a99f2b13986f58adcd9c9360ba7069f2dde166785868f
VERIMAG-Polyhedra/VPL
MSetPositive.ml
open BinNums open Datatypes module PositiveSet = struct type elt = positive type tree = | Leaf | Node of tree * bool * tree type t = tree (** val empty : t **) let empty = Leaf * : positive - > t - > bool * let rec mem i = function | Leaf -> false | Node (l, o, r) -> (match i with ...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/extracted/MSetPositive.ml
ocaml
* val empty : t * * val inter : t -> t -> t * * val fold : (positive -> 'a1 -> 'a1) -> t -> 'a1 -> 'a1 *
open BinNums open Datatypes module PositiveSet = struct type elt = positive type tree = | Leaf | Node of tree * bool * tree type t = tree let empty = Leaf * : positive - > t - > bool * let rec mem i = function | Leaf -> false | Node (l, o, r) -> (match i with | Coq_xI i0 -> mem ...
f8fdd3a2f04a30ea729b5318e70f6fe1fa63feaf8d1206eb5c9b07f4b78c4c96
ygmpkk/house
Access.hs
-- #hide ----------------------------------------------------------------------------- -- | -- Module : Control.Access Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Control.Access contains all read functions on con...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/ObjectIO/Graphics/UI/ObjectIO/Control/Access.hs
haskell
#hide --------------------------------------------------------------------------- | Module : Control.Access License : BSD-style Maintainer : Stability : provisional Portability : portable Control.Access contains all read functions on controls. ----------------------------------------------...
Copyright : ( c ) 2002 module Graphics.UI.ObjectIO.Control.Access ( getcontrolslayouts, getcontrolsviewsizes , getcontrolsoutersizes, getcontrolsselects , getcontrolsshowstates, getcontrolstexts , getcontrolsnrlines, getcontrolslooks , getcontrolsminsizes, getcontrolsresizes ...
3f60a9e3509625043b5852a0f48b12e6e3073736dab37289301518c964236fd2
tmfg/mmtis-national-access-point
login.clj
(ns ote.services.login "Login related services" (:require [buddy.hashers :as hashers] [hiccup.core :refer [html]] [ote.components.http :as http] [ote.middleware.throttler :as throttler] [compojure.core :refer [routes POST wrap-routes]] [ote.nap.cookie :as ...
null
https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/6fe377adb9ad43864ec66365b1299fc4a00a99da/ote/src/clj/ote/services/login.clj
clojure
If email not confirmed send proper error User was found and password is correct, return user info Login shall indicate error in a general way and not reveal which credential was invalid Always send :ok back, no matter what that have not been used yet Found a valid password reset request No valid password reset re...
(ns ote.services.login "Login related services" (:require [buddy.hashers :as hashers] [hiccup.core :refer [html]] [ote.components.http :as http] [ote.middleware.throttler :as throttler] [compojure.core :refer [routes POST wrap-routes]] [ote.nap.cookie :as ...
52e94b4a70e66744422197d258d403b2ee0eea63803d6109d2864942e908844b
rems-project/cerberus
fixpoint.ml
open Pgraph open Nested_list let debug msg = Debug_ocaml.print_debug 5 [] (fun _ -> msg) module type FIXPOINT = sig type 'a absstate type 'a t = { bottom: vertex_id -> 'a absstate; init: vertex_id -> 'a absstate; is_bottom: vertex_id -> 'a absstate -> bool; is_leq: vertex_id -> 'a absstate ...
null
https://raw.githubusercontent.com/rems-project/cerberus/124c93f10cb4c235f6396adec82ebf9563daeb7e/backend/absint/src/fixpoint.ml
ocaml
state attached to vertices abstract state quick way to bot, since functions are strict whether or not is coming from a bot state strategy point state unused type strategy = point Nested_list.nlist internal state iterations until start widening check b do f () if true otherwise returns false Quick...
open Pgraph open Nested_list let debug msg = Debug_ocaml.print_debug 5 [] (fun _ -> msg) module type FIXPOINT = sig type 'a absstate type 'a t = { bottom: vertex_id -> 'a absstate; init: vertex_id -> 'a absstate; is_bottom: vertex_id -> 'a absstate -> bool; is_leq: vertex_id -> 'a absstate ...
44e92681108ff5e375865de01925ac65d33eee4af6eb3525b9026620f7529288
VERIMAG-Polyhedra/VPL
FactoryMaker.ml
module Cs = Cstr.Rat module Vec = Cs.Vec module CP = CstrPoly module Polynomial = CP.Poly module Coeff = Scalar.Rat module type Type = sig (** Type of certificates. *) type cert (** The factory itself. *) val factory : cert Factory.t (** Builds a certificate from a contraint.*) val mk : Cs.t -> cert ...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/interface/FactoryMaker.ml
ocaml
* Type of certificates. * The factory itself. * Builds a certificate from a contraint. * Checks if a constraint and a certificate represent the same space.
module Cs = Cstr.Rat module Vec = Cs.Vec module CP = CstrPoly module Polynomial = CP.Poly module Coeff = Scalar.Rat module type Type = sig type cert val factory : cert Factory.t val mk : Cs.t -> cert val equal : Pol.Cs.t -> cert -> bool end module Make(F : Type) = struct include F let mkCons : Cstr....
e6fffb189c85bacd21dde7864d34b28fb45dc440cf013279119b41428f6d6879
ghcjs/ghcjs-dom
DataTransferItemList.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.DataTransferItemList (js_item, item, item_, js_clear, clear, js_addFile, addFile, ...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/DataTransferItemList.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.DataTransferItemList (js_item, item, item_, js_clear, clear, js_addFile, addFile, js_add, add, js_getLength, getLength, DataTransferItemList(..), gTypeDataTransferItemLis...
ffbad6646b75e2599b23e3b6b3a7782b303d6cac69ce43b3d85ec30de22e83c7
obsidiansystems/obelisk
Gather.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} -- | Functions for collecting up files to be processed by the asset pipeline module Obelisk.Asset.Gather ( gatherHashedPaths , toHashedPath ) where import Control.DeepSeq (force) import Control.Monad (forM) import Data.Bits (shift, (.|.), (.&.)) im...
null
https://raw.githubusercontent.com/obsidiansystems/obelisk/d779d5ab007d8ee5c3cd3400473453e1d106f5f1/lib/asset/manifest/src/Obelisk/Asset/Gather.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns # | Functions for collecting up files to be processed by the asset pipeline | Given a path, recursively explore it, creating hashed paths for all files found ^ The root of the directory to process ^ A mapping of original paths to hashed paths (all relative to t...
module Obelisk.Asset.Gather ( gatherHashedPaths , toHashedPath ) where import Control.DeepSeq (force) import Control.Monad (forM) import Data.Bits (shift, (.|.), (.&.)) import qualified Data.ByteString.Lazy as LBS (readFile, toStrict, ByteString, length, index) import qualified Data.ByteString.Lazy.Builder as LB...
141096a95026bab12b45b44303c1ad85058612e76ba5d3b787ed5585cc2510a9
CodyReichert/qi
random.lisp
#+xcvb (module (:depends-on ("package" "conditions" "ffi" (:cond ((:featurep :clisp) "ffi-buffer-clisp") (t "ffi-buffer")) "ffi-buffer-all"))) (in-package :cl+ssl) (defun random-bytes (count) "Generates COUNT cryptographically strong...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl%2Bssl-latest/random.lisp
lisp
TODO: Should we define random-specific constants and condition classes for RAND_F_RAND_GET_RAND_METHOD, RAND_F_SSLEAY_RAND_BYTES, RAND_R_PRNG_NOT_SEEDED Where to place these constants/condtitions, here or in the conditions.lisp? On the other hand, those constants are just numbers defined for C, for now we jsut re...
#+xcvb (module (:depends-on ("package" "conditions" "ffi" (:cond ((:featurep :clisp) "ffi-buffer-clisp") (t "ffi-buffer")) "ffi-buffer-all"))) (in-package :cl+ssl) (defun random-bytes (count) "Generates COUNT cryptographically strong...
b3b7739f2f0009a44268bfdeef176885350c6f28c72a3d68a7d14e4177066226
korya/efuns
local.ml
(***********************************************************************) (* *) (* ____________ *) (* *) Fabrice Le Fessa...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/efuns/local.ml
ocaml
********************************************************************* ____________ ...
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Obj type 'a var = string module Vars = Map.Make (struct type t = string let...
8669bde20b98999b666d68a7834ce1331d2c01ba5dcf8a4e66eba8ec1de5a420
incoherentsoftware/defect-process
EnemyPullDummyProjectile.hs
module Player.MovementSkill.All.GrappleSkill.EnemyPullDummyProjectile ( mkEnemyPullDummyProjectile ) where import Control.Monad.IO.Class (MonadIO) import Collision import Configs.All.PlayerSkill.Grapple import Id import Msg import Player.MovementSkill.All.GrappleSkill.Util import Projectile as P import Util ...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Player/MovementSkill/All/GrappleSkill/EnemyPullDummyProjectile.hs
haskell
module Player.MovementSkill.All.GrappleSkill.EnemyPullDummyProjectile ( mkEnemyPullDummyProjectile ) where import Control.Monad.IO.Class (MonadIO) import Collision import Configs.All.PlayerSkill.Grapple import Id import Msg import Player.MovementSkill.All.GrappleSkill.Util import Projectile as P import Util ...
998e989528c1590a05ca77e37483f700796781bcb9db6cfe86f684f519cdbde8
rtoy/ansi-cl-tests
unless.lsp
;-*- Mode: Lisp -*- Author : Created : Fri Oct 18 19:39:34 2002 ;;;; Contains: Tests of UNLESS (in-package :cl-test) (deftest unless.1 (unless t) nil) (deftest unless.2 (unless nil) nil) (deftest unless.3 (unless 'b 'a) nil) (deftest unless.4 (unless nil 'a) a) (deftest unless.5 (un...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/unless.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of UNLESS No implicit tagbody Test that explicit calls to macroexpand in subforms are done in the correct environment
Author : Created : Fri Oct 18 19:39:34 2002 (in-package :cl-test) (deftest unless.1 (unless t) nil) (deftest unless.2 (unless nil) nil) (deftest unless.3 (unless 'b 'a) nil) (deftest unless.4 (unless nil 'a) a) (deftest unless.5 (unless nil (values))) (deftest unless.6 (unless nil (v...
e7ebf86490f48d2db6b6820694b48b220a40c8634046934e2f15524524a9e8be
archimag/cl-pdf
pdf-geom.lisp
cl - pdf copyright 2002 - 2003 see license.txt for details . ;;; You can reach me at or ;;; The homepage of cl-pdf is here: -pdf.html (in-package #:pdf) Geometry functions contributed by ;;; Exported functions (defconstant +2pi+ (* 2 pi)) (defconstant +pi/2+ (/ pi 2)) (defun arc (center-x center-y radius...
null
https://raw.githubusercontent.com/archimag/cl-pdf/b4925b5df9cb07b37ce4246c91914853e565a5bb/pdf-geom.lisp
lisp
You can reach me at or The homepage of cl-pdf is here: -pdf.html Exported functions Non exported functions Better do nothing. start and extent should be in radians. end-point-x end-point-y ============================================================================; (angle-3points <point> <point> <po...
cl - pdf copyright 2002 - 2003 see license.txt for details . (in-package #:pdf) Geometry functions contributed by (defconstant +2pi+ (* 2 pi)) (defconstant +pi/2+ (/ pi 2)) (defun arc (center-x center-y radius start extent) (move-to (+ center-x (* radius (cos start))) (+ center-y (* radius (si...
2ebc598f169a225ecb0959a5b8e9d9d021d392aa5d3612844fdbe85a0cde814b
soarlab/FPTaylor
more_num_tests.ml
open Num let num_of_float x = match classify_float x with | FP_nan | FP_infinite -> Int 0 | FP_zero -> Int 0 | FP_normal | FP_subnormal -> let m, e = frexp x in let t = Int64.of_float (ldexp m 53) in num_of_big_int (Big_int.big_int_of_int64 t) */ (Int 2 **/ Int (e - 53)) let log_big_int_floor b...
null
https://raw.githubusercontent.com/soarlab/FPTaylor/efbbc83970fe3c9f4cb33fafbbe1050dd18749cd/unused/more_num_tests.ml
ocaml
Random.self_init ();
open Num let num_of_float x = match classify_float x with | FP_nan | FP_infinite -> Int 0 | FP_zero -> Int 0 | FP_normal | FP_subnormal -> let m, e = frexp x in let t = Int64.of_float (ldexp m 53) in num_of_big_int (Big_int.big_int_of_int64 t) */ (Int 2 **/ Int (e - 53)) let log_big_int_floor b...
661e4e70c264df3e3f55f154fbade4bb35b729f617132db9ae9a90ee4f858a45
GaloisInc/cryptol
Monad.hs
-- | Module : Cryptol . ModuleSystem . Monad Copyright : ( c ) 2013 - 2016 Galois , Inc. -- License : BSD3 -- Maintainer : -- Stability : provisional -- Portability : portable # LANGUAGE FlexibleContexts # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedSt...
null
https://raw.githubusercontent.com/GaloisInc/cryptol/f8b55439467abe3e7427b80edc37ff95a13de62b/src/Cryptol/ModuleSystem/Monad.hs
haskell
| License : BSD3 Maintainer : Stability : provisional Portability : portable # LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # Errors ---------------------------------------------------------------------- ^ Unable to find the module given, tried looking in these paths ^ Unable to open a fil...
Module : Cryptol . ModuleSystem . Monad Copyright : ( c ) 2013 - 2016 Galois , Inc. # LANGUAGE FlexibleContexts # # LANGUAGE DeriveGeneric # module Cryptol.ModuleSystem.Monad where import Cryptol.Eval (EvalEnv,EvalOpts(..)) import Cryptol.Backend.FFI (ForeignSrc) import ...
8c4e7400dd04855ff5cd3b0fe65717cf7e82add7543317017258b851538d5854
ranjitjhala/haddock-annot
Compiler.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Compiler Copyright : 2003 - 2004 -- -- Maintainer : -- Portability : portable -- -- This should be a much more sophisticated abstraction than it is. Currently -- it's just a bit of data ...
null
https://raw.githubusercontent.com/ranjitjhala/haddock-annot/ffaa182b17c3047887ff43dbe358c246011903f6/Cabal-1.10.1.1/Distribution/Simple/Compiler.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Simple.Compiler Maintainer : Portability : portable This should be a much more sophisticated abstraction than it is. Currently it's just a bit of data about the compiler, like it's flavour and name and ...
Copyright : 2003 - 2004 ' PackageDB ' type which is used to refer to package databases . Most compilers only know about a single global package collection but GHC has a global and All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted ...
0d2da3b5e4e29d335a286a9e0b60e01e70df3f59fab271596b1883b593c172a1
gator1/jepsen
etcd.clj
(ns jepsen.etcd (:gen-class) (:require [clojure.tools.logging :refer :all] [clojure.string :as str] [verschlimmbesserung.core :as v] [slingshot.slingshot :refer [try+]] [knossos.model :as model] [jepsen [checker :as checker] [cli :as c...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/etcd/src/jepsen/etcd.clj
clojure
If our connection were stateful, we'd close it here. close it.
(ns jepsen.etcd (:gen-class) (:require [clojure.tools.logging :refer :all] [clojure.string :as str] [verschlimmbesserung.core :as v] [slingshot.slingshot :refer [try+]] [knossos.model :as model] [jepsen [checker :as checker] [cli :as c...
abe1f479521d081cdf4be8af264c29a812d842fce1afdee9337ccd14cfd31abc
nikita-volkov/rebase
Free.hs
module Rebase.Control.Selective.Free ( module Control.Selective.Free ) where import Control.Selective.Free
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Control/Selective/Free.hs
haskell
module Rebase.Control.Selective.Free ( module Control.Selective.Free ) where import Control.Selective.Free
d634c827c7bb6d9b78a3e85c233563d734b8d53450103fd3219a57418bb97ece
rixed/ramen
RamenSyncTree.ml
(* The configuration tree is a map of some keys into tome values, where the keys * can also be considered as a hierarchy. * * The API we need for the configuration service is: * - Add a new binding, which overwrite any previous one; * - Remove a binding by key; * - Check if a key is bound; * - Lookup a key; * -...
null
https://raw.githubusercontent.com/rixed/ramen/11b1b34c3bf73ee6c69d7eb5c5fbf30e6dd2df4f/src/RamenSyncTree.ml
ocaml
The configuration tree is a map of some keys into tome values, where the keys * can also be considered as a hierarchy. * * The API we need for the configuration service is: * - Add a new binding, which overwrite any previous one; * - Remove a binding by key; * - Check if a key is bound; * - Lookup a key; * - I...
module type KEY = sig type t val of_string : string -> t val to_string : t -> string val print : 'a BatIO.output -> t -> unit val equal : t -> t -> bool val hash : t -> int end module type TREE = sig module Key : KEY type 'a t Signature suggest a mutable implementation ( despite the first * im...