_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
1c6ef859e80f0055de0c6304ec55a1cb2b52740de11903602559b7a5d51d13a9
droundy/iolaus-broken
Viewing.hs
Copyright ( C ) 2002 - 2004,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 2 , or ( at your option ) -- any later version. -- -- This program is distributed in the ...
null
https://raw.githubusercontent.com/droundy/iolaus-broken/e40c001f3c5a106bf39f437d6349858e7e9bf51e/Iolaus/Patch/Viewing.hs
haskell
This program is free software; you can redistribute it and/or modify any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more...
Copyright ( C ) 2002 - 2004,2009 it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 , or ( at your option ) You should have received a copy of the GNU General Public License the Free Software Foundation , Inc. , 51 Franklin Street , Fifth Flo...
adcba3d81e1cc9693d156fa49fb42c485bc6fdda2c44a0467667ebca688f9202
flambard/cl-erlang-term
packages.lisp
(defpackage #:etf-atom-cache-interface (:documentation "A generic atom cache interface. This interface is expected to be implemented by an application that wants to use cached atom references.") (:nicknames #:etf-aci) (:use #:cl) (:export #:*atom-cache* #:get-atom #:put-atom )) (defpackage #:etf-...
null
https://raw.githubusercontent.com/flambard/cl-erlang-term/8e4da084107c2a6a3778856fe554dc37e9bc46bb/src/packages.lisp
lisp
Type Base classes Classes Class methods and functions Conditions Special variables Constants
(defpackage #:etf-atom-cache-interface (:documentation "A generic atom cache interface. This interface is expected to be implemented by an application that wants to use cached atom references.") (:nicknames #:etf-aci) (:use #:cl) (:export #:*atom-cache* #:get-atom #:put-atom )) (defpackage #:etf-...
1f72392f21406b60c1c55bb631f36e8f3bd2542b57ac500740aefb48f2eff044
S8A/htdp-exercises
ex492.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex492) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp")))...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex492.rkt
racket
about the language level of this file in a form that our tools can easily process. A Node is a Symbol. A Path is a [List-of Node]. interpretation The list of nodes specifies a sequence Node on the list to the last one. finds a path from origin to dest in G if there is no path, the function produces #false Node ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex492) (read-case-sensitive #t) (teachpacks ((lib "abstraction.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "abstraction.rk...
9e9f506a574159fe6a81f01eadb81d710d66350c4aa24c9833ce28c2a74daf11
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
PostOrdersIdCancel.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the different functions to run the operation postOrdersIdCancel module StripeAP...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Operations/PostOrdersIdCancel.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the different functions to run the operation postOrdersIdCancel | > POST /v1/orders/{id}/cancel | The request body to send | Monadic computation which returns the result of the operation | Defines the object schema locat...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Operations.PostOrdersIdCancel where import qualified Control.Monad.Fail import qualified Control.Monad.Trans.Reader import qualified Data.Aeson import qualified Data.Aeso...
2b4d35422f839255625697b3315ebabe276d021a3cc5fd9d92533e5e38238a67
tommaisey/aeon
buf-dur.help.scm
( buf - dur rate bufnum ) ;; Current duration of buffer. (with-sc3 (lambda (fd) (async fd (b-alloc-read 0 "/home/rohan/audio/metal.wav" 0 0)))) (let* ((t (impulse ar (recip (buf-dur kr 0)) 0)) (p (sweep t (buf-sample-rate kr 0)))) (audition (out 0 (buf-rd 1 ar 0 p 0 2))))
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/information/buf-dur.help.scm
scheme
Current duration of buffer.
( buf - dur rate bufnum ) (with-sc3 (lambda (fd) (async fd (b-alloc-read 0 "/home/rohan/audio/metal.wav" 0 0)))) (let* ((t (impulse ar (recip (buf-dur kr 0)) 0)) (p (sweep t (buf-sample-rate kr 0)))) (audition (out 0 (buf-rd 1 ar 0 p 0 2))))
ab80f5cae3afcaf477093b280acc821bee2a7e4fe54aad7eaf1843bc26669a22
triffon/fp-2021-22
ex07-20211126-solutions.rkt
#lang racket (define head car) (define tail cdr) ; Стандартен "интерфейс" (define empty-tree '()) не ( define make - tree list ) - защо ? (define (make-leaf root) (make-tree root empty-tree empty-tree)) ; за удобство (define root-tree car) (define left-tree cadr) (define right-tree caddr) (define empty-tree? null?)...
null
https://raw.githubusercontent.com/triffon/fp-2021-22/71bb5d59d1b99e2f8be243d8809e7df77779b682/exercises/5/ex07-20211126-solutions.rkt
racket
Стандартен "интерфейс" за удобство Зад.1 Зад.2 Зад.3 Зад.4 Зад.5 Зад.6 Зад.7 Решение: слагаме всеки елемент в наредена двойка с преизчислената си стойност и сортираме "бързо". Зад.8 - ГРЕШНА (define (bst-valid? t) (if (empty-tree? t) #t (let [(l (left-tree t)) (r (right-tree t))] ...
#lang racket (define head car) (define tail cdr) (define empty-tree '()) не ( define make - tree list ) - защо ? (define root-tree car) (define left-tree cadr) (define right-tree caddr) (define empty-tree? null?) (define test-tree (make-tree 10 (make-tree 7 (make-leaf 10) ...
5052fe9ef386e8a6f6e360f39a61b5c55bb62e9248acb40052d4d4f33b014d3d
open-telemetry/opentelemetry-erlang-api
ot_instrument.erl
%%%------------------------------------------------------------------------ Copyright 2020 , OpenTelemetry Authors 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 %% %% Unl...
null
https://raw.githubusercontent.com/open-telemetry/opentelemetry-erlang-api/41cb700d60a7dcfdb4165aca73634bbe1c07a33f/src/ot_instrument.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 o...
Copyright 2020 , OpenTelemetry Authors Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , measurements for an instrument it must first be created with ` new ' and -module(ot_instrument). -callback new(opentelemetry:meter(),...
36a748acb8eb572f662ed03a35de19e48772a4ef3a44d1a04b5c00a597ee60e3
facebookarchive/pfff
test_dynlink.ml
Dynlink.loadfile "foo";;
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/ocamlgtk/test_dynlink.ml
ocaml
Dynlink.loadfile "foo";;
b925c1e4fd819fdeedc604aaff419e8e5c6d480dd618b5a13119b030e6b45444
racketscript/racketscript
util-untyped.rkt
#lang racket (provide links-module? improper->proper *jsident-pattern* js-identifier?) (require setup/dirs setup/link) ;; Path Path -> Boolean ;; Returns true if path has base as prefix (define (subpath? base path) (define base* (explode-path base)) (define path* (explode-path...
null
https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/racketscript-compiler/racketscript/compiler/util-untyped.rkt
racket
Path Path -> Boolean Returns true if path has base as prefix If `mod-path` belongs to a module listed in (find-links-file), return a list containing: - the link name, - and path to root of the module e.g., '("racketscript-compiler" #<path:/home/username/racketscript/racketscript-compiler>) else return ...
#lang racket (provide links-module? improper->proper *jsident-pattern* js-identifier?) (require setup/dirs setup/link) (define (subpath? base path) (define base* (explode-path base)) (define path* (explode-path path)) (cond [(>= (length base*) (length path*)) #f] [el...
998a5778bc88331e75d552904b06bc786967759a78353757beef36fa1860b816
losfair/Violet
Branch.hs
module Violet.Backend.Branch where import Clash.Prelude import qualified Violet.Types.Pipe as PipeT import qualified Violet.Types.Gpr as GprT import qualified Violet.Types.Issue as IssueT import qualified Violet.Types.Fetch as FetchT branch' :: Maybe IssueT.IssuePort -> (GprT.RegValue, GprT.RegValue) ...
null
https://raw.githubusercontent.com/losfair/Violet/dcdd05f8dc08a438a157347f424966da73ccc9b8/src/Violet/Backend/Branch.hs
haskell
jal jalr: link condSatisfied
module Violet.Backend.Branch where import Clash.Prelude import qualified Violet.Types.Pipe as PipeT import qualified Violet.Types.Gpr as GprT import qualified Violet.Types.Issue as IssueT import qualified Violet.Types.Fetch as FetchT branch' :: Maybe IssueT.IssuePort -> (GprT.RegValue, GprT.RegValue) ...
26415f5e33f492b87bd9073bd5be52582495c4edd62680080b083c160a62e36e
narkisr-deprecated/core
core.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 ...
null
https://raw.githubusercontent.com/narkisr-deprecated/core/85b4a768ef4b3a4eae86695bce36d270dd51dbae/src/re_core/api/core.clj
clojure
(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 ...
65f5e05f5de9216e5ed21349eef96508e8867c152ac093f81cadedc661fe1f4b
colis-anr/morsmall
morsmall.mli
(***************************************************************************) (* A concise AST for POSIX shell *) (* *) Copyright ( C ) 2017,2018,2019 , , ...
null
https://raw.githubusercontent.com/colis-anr/morsmall/33cd42984f421e5da8414e18059dcef276f0593b/src/morsmall.mli
ocaml
************************************************************************* A concise AST for POSIX shell This program is free s...
Copyright ( C ) 2017,2018,2019 , , 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 ...
79b34d3d954d871683b0be5a00107709a4b40aa0bf15acf3ad64911cc1491d8c
interstar/Patterning-Core
view.cljc
(ns patterning.view (:require [clojure.string :as string] [patterning.maths :refer [tx]] [patterning.strings :as strings] [patterning.sshapes :refer []] [patterning.groups :refer []] [patterning.color :refer [stroke-gen fill-gen p-color]]) ) ;; Viewing p...
null
https://raw.githubusercontent.com/interstar/Patterning-Core/4ff050026ed9d7ddf013e83444701599dfdbac73/src/cljc/patterning/view.cljc
clojure
Viewing pipeline SVG generation
(ns patterning.view (:require [clojure.string :as string] [patterning.maths :refer [tx]] [patterning.strings :as strings] [patterning.sshapes :refer []] [patterning.groups :refer []] [patterning.color :refer [stroke-gen fill-gen p-color]]) ) (defn make-...
4878d39b23e1d8ef2f9059ed2a456bd67379126dcb77a9cd7a7294a7658c8a42
NetComposer/nklib
nklib_syntax.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2019 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the...
null
https://raw.githubusercontent.com/NetComposer/nklib/1f29f8f566586618651e4680dcc488f2dc11ff5c/src/nklib_syntax.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2019 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(nklib_syntax). -auth...
7cb8722c046c93cc5a62332937915d515c43b22a90c76d7027b317d4f0eb8134
PLSysSec/lio
Responses.hs
# LANGUAGE Trustworthy # {-# LANGUAGE OverloadedStrings #-} This file is copied from the simple framework , which borrows large portions from the hails framework . The two files are here : - -0.11.2/docs/Web-Simple-Responses.html - -0.11.2.1/docs/Hails-Web-Responses.html Below is the MIT copyright notice ....
null
https://raw.githubusercontent.com/PLSysSec/lio/622a3e7bc86a3b42ab4ce8be954064a5f142247a/lio-http-server/src/LIO/HTTP/Server/Responses.hs
haskell
# LANGUAGE OverloadedStrings # | This module defines some convenience functions for creating responses. | Type alias for 'S8.ByteString' body | Helper to make responses with content-type \"text/html\" given resposne body given resposne body given resposne body that URL. authentication in the given realm.
# LANGUAGE Trustworthy # This file is copied from the simple framework , which borrows large portions from the hails framework . The two files are here : - -0.11.2/docs/Web-Simple-Responses.html - -0.11.2.1/docs/Hails-Web-Responses.html Below is the MIT copyright notice . Received explicit permission from ...
676b738ef5fcde9e9ac10ae34e5564238f7e8a6691f022e6ca1ae00bd3a93b47
Gertjan423/KHC
FcTypeChecker.hs
{-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # module Backend.FcTypeChecker (fcTypeCheck) where import Backend.FcTypes import Utils.Substitution import Utils.Var import Utils.Kind import Utils.Unique import Utils.AssocLis...
null
https://raw.githubusercontent.com/Gertjan423/KHC/07d00ebaab5245f632eff8ae7930711a44259192/Backend/FcTypeChecker.hs
haskell
# LANGUAGE TypeSynonymInstances # * Type checking monad ---------------------------------------------------------------------------- * Lookup things in the global environment ---------------------------------------------------------------------------- | Lookup something in the global environment | Lookup the info...
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # module Backend.FcTypeChecker (fcTypeCheck) where import Backend.FcTypes import Utils.Substitution import Utils.Var import Utils.Kind import Utils.Unique import Utils.AssocList import Utils.Ctx import Utils.Pretty...
8ddda3a84d76454b95fb7993ce4e560b74d5dca29f1d385af86dbf61632d6a82
feliciofilipe/university
Zombie.hs
module Zombie where import Player type Zombie = Player
null
https://raw.githubusercontent.com/feliciofilipe/university/f2b5a00921c97d48033edbe21488ac829927caae/1st/LI1/clean/Tanks1939/src/Zombie.hs
haskell
module Zombie where import Player type Zombie = Player
153fda409c30a77af5574675c9666ec90627faaded86150dbb5006785c48ee21
akmiller78/tut-omnext-tempids
project.clj
(defproject om-a-1 "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.7.170"] [org.clojure/core.async "0.2.374"] ...
null
https://raw.githubusercontent.com/akmiller78/tut-omnext-tempids/3334db2f08a68b022a51548a74b0af3fc9ff3507/project.clj
clojure
This next build is an compressed minified build for production. You can build this with: :http-server-root "public" ;; default and assumes "resources" ; default watch and update CSS if you want to embed a ring handler into the figwheel http-kit server, this is for simple ring servers, if this doesn't work for y...
(defproject om-a-1 "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.7.0"] [org.clojure/clojurescript "1.7.170"] [org.clojure/core.async "0.2.374"] ...
1e4a93902e81b415955b013e2622d9af9aec5b7155aa29fa72c040921a7ef71b
dedbox/racket-voxel
block.rkt
#lang racket/base (provide (all-defined-out)) (define-syntax-rule (define-block-types type-id ...) (begin (define type-id (string->unreadable-symbol (format "~a" 'type-id))) ...)) (define-block-types WHITE-BLOCK RED-BLOCK GREEN-BLOCK BLUE-BLOCK) (struct block (type active?) #:transparent #:mutable ...
null
https://raw.githubusercontent.com/dedbox/racket-voxel/9c23d1e8e71a80bac6e4251a517f70aef002ab9f/block.rkt
racket
#lang racket/base (provide (all-defined-out)) (define-syntax-rule (define-block-types type-id ...) (begin (define type-id (string->unreadable-symbol (format "~a" 'type-id))) ...)) (define-block-types WHITE-BLOCK RED-BLOCK GREEN-BLOCK BLUE-BLOCK) (struct block (type active?) #:transparent #:mutable ...
3bec7e7e0551afc2d88459d9e47f5c903fe3a66ecd8f67ecfe8781102ed0a92f
silverbullettt/SICP
3.62.rkt
(load "stream.rkt") (load "3.60.rkt") (load "3.61.rkt") (define (div-series s1 s2) (if (= (stream-car s2) 0) (error "CONSTANT CAN'T BE ZERO -- s2" div-series) (mul-series s1 (recip-seires s2))))
null
https://raw.githubusercontent.com/silverbullettt/SICP/e773a8071ae2fae768846a2b295b5ed96b019f8d/3.62.rkt
racket
(load "stream.rkt") (load "3.60.rkt") (load "3.61.rkt") (define (div-series s1 s2) (if (= (stream-car s2) 0) (error "CONSTANT CAN'T BE ZERO -- s2" div-series) (mul-series s1 (recip-seires s2))))
a0a4dfe86465a83c9f58dc2b4d6c49fb1fd364a23d9ab69a82bb40ef5335bf24
lambdaisland/kaocha-cucumber
gherkin_test.clj
(ns lambdaisland.cucumber.gherkin-test (:require [clojure.test :refer :all] [lambdaisland.cucumber.gherkin :refer :all] [clojure.java.io :as io] [lambdaisland.cucumber.jvm :as jvm])) (deftest gherkin->edn-test (is (= (read-string (slurp (io/file "resources/lambdaisland/gherkin/t...
null
https://raw.githubusercontent.com/lambdaisland/kaocha-cucumber/b4d36f5e5b65cae123503909cbab22d5dc6083a3/test/unit/lambdaisland/cucumber/gherkin_test.clj
clojure
(ns lambdaisland.cucumber.gherkin-test (:require [clojure.test :refer :all] [lambdaisland.cucumber.gherkin :refer :all] [clojure.java.io :as io] [lambdaisland.cucumber.jvm :as jvm])) (deftest gherkin->edn-test (is (= (read-string (slurp (io/file "resources/lambdaisland/gherkin/t...
446660df17516c0b6738411fd702ea87b244d22090f9af124890f19ca607c179
marick/Midje
fim_open_protocols.clj
(ns implementation.fim-open-protocols (:require [midje.open-protocols :refer :all] [midje.sweet :refer :all] [midje.test-util :refer :all] [midje.util :refer :all])) (expose-testables midje.open-protocols) (fact "can distinguish a protocol/interface name from a function implementa...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/test/implementation/fim_open_protocols.clj
clojure
(ns implementation.fim-open-protocols (:require [midje.open-protocols :refer :all] [midje.sweet :refer :all] [midje.test-util :refer :all] [midje.util :refer :all])) (expose-testables midje.open-protocols) (fact "can distinguish a protocol/interface name from a function implementa...
b20e75cc221757052a3de2bd67d6c70c9443a72df1470b98b94e202656cca139
metabase/metabase
setting.clj
(ns metabase.api.setting "/api/setting endpoints" (:require [compojure.core :refer [GET PUT]] [metabase.api.common :as api] [metabase.api.common.validation :as validation] [metabase.models.setting :as setting] [metabase.util.schema :as su])) (defn- do-with-setting-access-control [thunk] (try ...
null
https://raw.githubusercontent.com/metabase/metabase/58f724f148dad777afe4ae4a0f14ca3b434e6ddd/src/metabase/api/setting.clj
clojure
(ns metabase.api.setting "/api/setting endpoints" (:require [compojure.core :refer [GET PUT]] [metabase.api.common :as api] [metabase.api.common.validation :as validation] [metabase.models.setting :as setting] [metabase.util.schema :as su])) (defn- do-with-setting-access-control [thunk] (try ...
93e2dcc08dfd6ebdf8792b8fe098ad0158f26a88628e4c5ddf757a8bb61cae35
egison/egison-haskell
QQ.hs
-- | Quasiquotation for rewriting a match clause. module Control.Egison.QQ ( mc ) where import Control.Egison.Core import Control.Monad ( (<=<) ) import Control.Monad.State ( runStateT , MonadState(..) ...
null
https://raw.githubusercontent.com/egison/egison-haskell/d72c4eeb39bda8fe19d81e90fb31871fc48a3582/src/Control/Egison/QQ.hs
haskell
| Quasiquotation for rewriting a match clause. | A quasiquoter for rewriting a match clause. === Wildcards A match clause that contains a wildcard > [mc| _ -> "Matched" |] is rewritten to > (\HNil -> "Matched") === Pattern variables A match clause that contains a pattern variable >...
module Control.Egison.QQ ( mc ) where import Control.Egison.Core import Control.Monad ( (<=<) ) import Control.Monad.State ( runStateT , MonadState(..) , modify...
2723772470d2316e8260341399f8515a82e1b35fe5122e9710e1c0e866db67f8
metaocaml/ber-metaocaml
pr5343_bad.ml
TEST flags = " -w a -rectypes " ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output flags = " -w a -rectypes " ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) module M : sig typ...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-rectypes-bugs/pr5343_bad.ml
ocaml
TEST flags = " -w a -rectypes " ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output flags = " -w a -rectypes " ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) module M : sig typ...
09cad3d8b2ebc7fdb26183291a353a77a794b7924ba9b973480ee19013d732c3
otherjoel/beeswax
test-output.rkt
#lang racket/base (require (for-syntax racket/base)) (require pollen/setup rackunit racket/list racket/string "data/test.html.pm" "data/template.html.rkt") (define output (parameterize ([current-project-root (build-path (current-directory) "data")]) (apply-template ...
null
https://raw.githubusercontent.com/otherjoel/beeswax/ad702b5a1c3024c6c7a2d19fa7b0c3c2586aa22b/test/test-output.rkt
racket
Line 6 Have to filter out the last part of the absolute path since it will be different on every computer Since `define`s get sifted and relocated, test to ensure that they can properly
#lang racket/base (require (for-syntax racket/base)) (require pollen/setup rackunit racket/list racket/string "data/test.html.pm" "data/template.html.rkt") (define output (parameterize ([current-project-root (build-path (current-directory) "data")]) (apply-template ...
51575dd2076aff4259a9584fcc3d41117170d1995fc714f7656bc901be0dc165
savonet/ocaml-posix
gen_constants_c.ml
module Types = Posix_base.Generators.Types (struct module Types = Posix_socket_constants.Def let c_headers = {| #ifdef _WIN32 #include <winsock2.h> #include <ws2tcpip.h> #else #include <sys/socket.h> #include <sys/un.h> #include <netdb.h> #endif #define SA_DATA_LEN (sizeof(((struct sockaddr*)0)->sa_...
null
https://raw.githubusercontent.com/savonet/ocaml-posix/d46d011de16154b34324eae6ee6e7010138cf4af/posix-socket/src/generator/gen_constants_c.ml
ocaml
module Types = Posix_base.Generators.Types (struct module Types = Posix_socket_constants.Def let c_headers = {| #ifdef _WIN32 #include <winsock2.h> #include <ws2tcpip.h> #else #include <sys/socket.h> #include <sys/un.h> #include <netdb.h> #endif #define SA_DATA_LEN (sizeof(((struct sockaddr*)0)->sa_...
ee9a4aaab232ab2b8863252a92862f09e52632aa6becc5aa2e85f971986eb7f4
helium/erlang-libp2p
peer_SUITE.erl
-module(peer_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0]). -export([coding_test/1, metadata_test/1, blacklist_test/1, association_test/1, signed_metadata_test/1]). all() -> [coding_test, metadata_test, blacklist_test, association_tes...
null
https://raw.githubusercontent.com/helium/erlang-libp2p/d587854c8a1f093576bbd05ab4616bcc2693e600/test/peer_SUITE.erl
erlang
Check peer list coding metadata does not affect similarity. Changing this behavior will BREAK peer gossiping so be very careful. Transmit metadata as part of peer encode/decode But metadata is NOT transmitted as part of an encoded list of peers. This avoids metedata being gossipped around. It's untrusted, and mo...
-module(peer_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([all/0]). -export([coding_test/1, metadata_test/1, blacklist_test/1, association_test/1, signed_metadata_test/1]). all() -> [coding_test, metadata_test, blacklist_test, association_tes...
73d2f845e3bbd8b2bd3e1164ffacb349303337f8671fca4b6efa1d3ea26d291a
emqx/esockd
esockd_dtls_acceptor_sup.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 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/esockd/6b8ec033bf50c21893e48428e002a05fa3994417/src/esockd_dtls_acceptor_sup.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 ) 2020 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(esockd_dtls_acceptor_sup). -behaviour(supervisor). -export([start_link/6]). -export([ start_...
ef5ab3b6af34cc470a131f47c3a36925aad23ce0b8f9832166de78a0e337cad6
clj-commons/rewrite-clj
node_test.cljc
(ns rewrite-clj.node.node-test (:require [clojure.test.check.clojure-test #?(:clj :refer :cljs :refer-macros) [defspec]] #?(:cljs [clojure.test.check :refer-macros [quick-check]]) [clojure.test.check.properties :as prop #?@(:cljs [:include-macros true])] [rewrite-clj.node :as node]...
null
https://raw.githubusercontent.com/clj-commons/rewrite-clj/7621126caae5f21dc5150d52a6c9b747dc0aeeff/test/rewrite_clj/node/node_test.cljc
clojure
(ns rewrite-clj.node.node-test (:require [clojure.test.check.clojure-test #?(:clj :refer :cljs :refer-macros) [defspec]] #?(:cljs [clojure.test.check :refer-macros [quick-check]]) [clojure.test.check.properties :as prop #?@(:cljs [:include-macros true])] [rewrite-clj.node :as node]...
06cc8bd6a65a53ec2bf75f6f8af4f5fef2f21febc4580ba8b4e94e0a77617c78
mdedwards/slippery-chicken
sc-and-clm-examples.lsp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; File: sc-and-clm-examples.lsp ;;; Class Hierarchy : None ;;; Version : 1.0 ;;; ;;; Project: slippery chicken (algorithmic composition) ;;; ;;; Purpose: Lisp-code examples to accompany sc-and...
null
https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/doc/examples/sc-and-clm-examples.lsp
lisp
File: sc-and-clm-examples.lsp Project: slippery chicken (algorithmic composition) Purpose: Lisp-code examples to accompany sc-and-clm.html Creation date: 17th July 2012 **** This file is part of slippery-chicken slippery-chicken is ...
Class Hierarchy : None Version : 1.0 Author : $ $ Last modified : 11:41:14 Mon Jun 10 2013 BST SVN ID : $ I d : sc-and-clm-examples.lsp 3673 2013 - 06 - 10 10:56:24Z medward2 $ Licence : Copyright ( c ) 2012 Public License as published by the Free Sof...
bc39fca978d7f93dd1d161ace2e1ee629e8ec5982a0b59f5f6d3baf87f9cd9b0
PaulGustafson/stringnet
Main.hs
module Main where import Stringnet import TambaraYamagami import Data.Matrix import Data.List --import Test main :: IO () main = print $ finalMorphism -- main = print $ substM finalMorphism -- main = print $ toTree finalMorphism main = print $ substM $ leaves ! ! 0 main = putStrLn $ latex $ rmatrix -- main = prin...
null
https://raw.githubusercontent.com/PaulGustafson/stringnet/10a256e198de40f4f54f3abbf67bab2a87083d6c/Main.hs
haskell
import Test main = print $ substM finalMorphism main = print $ toTree finalMorphism main = print rmatrix
module Main where import Stringnet import TambaraYamagami import Data.Matrix import Data.List main :: IO () main = print $ finalMorphism main = print $ substM $ leaves ! ! 0 main = putStrLn $ latex $ rmatrix latex :: Show a => Matrix a -> String latex m = intercalate " \\\\ \n" . map (intercalate " & ". map ...
bbe217b947767ee521cc84b06c4d1da4d9e841a66ab470a6317c0cd6003f1cf6
rootmos/loom
node_sup.erl
-module(node_sup). -behaviour(gen_server). -export([start_link/1]). -export([init/1, handle_call/3, handle_cast/2]). -include_lib("arweave/src/ar.hrl"). start_link(Args) -> gen_server:start_link({local, ?MODULE}, ?MODULE, Args, []). init(Faucets) -> DataDir = ar_meta_db:get(data_dir), ok = filelib:ensur...
null
https://raw.githubusercontent.com/rootmos/loom/5f68ef9a9a5350f14d70935bacec3287aca60f1f/apps/loom/src/node_sup.erl
erlang
-module(node_sup). -behaviour(gen_server). -export([start_link/1]). -export([init/1, handle_call/3, handle_cast/2]). -include_lib("arweave/src/ar.hrl"). start_link(Args) -> gen_server:start_link({local, ?MODULE}, ?MODULE, Args, []). init(Faucets) -> DataDir = ar_meta_db:get(data_dir), ok = filelib:ensur...
3b35512122f7e92a85a30505e3d0306ba920c64f30f62048b704b626c6e79b1c
lispnik/cl-http
sysdcl.lisp
-*- Mode : lisp ; Syntax : ansi - common - lisp ; Package : CL - USER ; Base : 10 -*- Copyright ( C ) 1994 , 1995 ( OBC ) all rights reserved . See copyright notice in MINIPROC file . (in-package "CL-USER") (defvar *minp-directory* (make-pathname :host (pathname-host *load-pathname*) :device (pathnam...
null
https://raw.githubusercontent.com/lispnik/cl-http/84391892d88c505aed705762a153eb65befb6409/clim/clim-sys/sysdcl.lisp
lisp
Syntax : ansi - common - lisp ; Package : CL - USER ; Base : 10 -*- Define or complement tranlations and defsystem.
Copyright ( C ) 1994 , 1995 ( OBC ) all rights reserved . See copyright notice in MINIPROC file . (in-package "CL-USER") (defvar *minp-directory* (make-pathname :host (pathname-host *load-pathname*) :device (pathname-device *load-pathname*) :directory (pathname-directory *load-pathname*) :nam...
76a7072d96302e38f59913fbde9a1c48b35c10c4b907ddb2e0bed6bd1424434a
robert-stuttaford/bridge
spec.cljc
(ns bridge.data.edit.spec (:require [clojure.spec.alpha :as s])) (require 'bridge.spec 'bridge.data.datomic.spec) (s/def :field/entity-id :bridge.datomic/stored-id) (s/def :field/attr keyword?) (s/def :field/value (s/or :scalar :bridge.datomic/scalar-value :lookup-ref :bridge.datomic/lookup-ref ...
null
https://raw.githubusercontent.com/robert-stuttaford/bridge/867d81354457c600cc5c25917de267a8e267c853/src/bridge/data/edit/spec.cljc
clojure
(ns bridge.data.edit.spec (:require [clojure.spec.alpha :as s])) (require 'bridge.spec 'bridge.data.datomic.spec) (s/def :field/entity-id :bridge.datomic/stored-id) (s/def :field/attr keyword?) (s/def :field/value (s/or :scalar :bridge.datomic/scalar-value :lookup-ref :bridge.datomic/lookup-ref ...
d779e358eb8a16f98c1317e6737568ab9388275cc652ebed576250cb56b62558
abdulapopoola/SICPBook
5.13.scm
#lang planet neil/sicp (define (make-machine ops controller-text) (let ((machine (make-new-machine))) ((machine 'install-operations) ops) ((machine 'install-instruction-sequence) (assemble controller-text machine)) machine)) (define (make-new-machine) (let ((pc (make-register 'pc)) (flag ...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%205/5.2/5.13.scm
scheme
#lang planet neil/sicp (define (make-machine ops controller-text) (let ((machine (make-new-machine))) ((machine 'install-operations) ops) ((machine 'install-instruction-sequence) (assemble controller-text machine)) machine)) (define (make-new-machine) (let ((pc (make-register 'pc)) (flag ...
40dbb7060f659734755f206aed70bb1a301ad105b400723c2bc35d63f4a6439d
fused-effects/fused-effects
Either.hs
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # | A carrier for a ' Throw ' effect . @since 1.0.0.0 @since 1.0.0.0 -} module Control.Carrier.Throw.Either ( -- * Throw carrier runThrow , Throw...
null
https://raw.githubusercontent.com/fused-effects/fused-effects/9790ed4fb2cbaaf8933ce0eb42d7c55bc38f12ac/src/Control/Carrier/Throw/Either.hs
haskell
* Throw carrier * Throw effect | Run a 'Throw' effect, returning failures in 'Left' and successful computations’ results in 'Right'.
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # | A carrier for a ' Throw ' effect . @since 1.0.0.0 @since 1.0.0.0 -} module Control.Carrier.Throw.Either runThrow , ThrowC(ThrowC) , module Co...
da52b33c2f0985f384969572f250d40983901ff0020e7209d4c315c9ca3accb0
codedownio/sandwich
ToBrickWidget.hs
# LANGUAGE CPP # {-# LANGUAGE MultiWayIf #-} module Test.Sandwich.Formatters.TerminalUI.Draw.ToBrickWidget where import Brick import Brick.Widgets.Border import Control.Exception.Safe import Control.Monad.Reader import qualified Data.List as L import Data.Maybe import Data.String.Interpolate import qualified Data.Tex...
null
https://raw.githubusercontent.com/codedownio/sandwich/80c5244a47a29c3ec20d68afec89297e014847b9/sandwich/unix-src/Test/Sandwich/Formatters/TerminalUI/Draw/ToBrickWidget.hs
haskell
# LANGUAGE MultiWayIf # * Util
# LANGUAGE CPP # module Test.Sandwich.Formatters.TerminalUI.Draw.ToBrickWidget where import Brick import Brick.Widgets.Border import Control.Exception.Safe import Control.Monad.Reader import qualified Data.List as L import Data.Maybe import Data.String.Interpolate import qualified Data.Text as T import Data.Time.Cloc...
f0529df536bca019866f57000ce8b25f682194c0fe1e09a248472ff64b865584
hopbit/sonic-pi-snippets
tut04.sps
# key: tut4 # point_line: 0 # point_index: 0 # -- # TUT 04 ------------------------------------------ # Ten sam akord mozemy tez zagrac za pomoca 3 nut # Akord C-dur play :c4 # 60.0 play :e4 # 64.0 play :g4 # 67.0
null
https://raw.githubusercontent.com/hopbit/sonic-pi-snippets/2232854ac9587fc2f9f684ba04d7476e2dbaa288/tutorial/tut04.sps
scheme
# key: tut4 # point_line: 0 # point_index: 0 # -- # TUT 04 ------------------------------------------ # Ten sam akord mozemy tez zagrac za pomoca 3 nut # Akord C-dur play :c4 # 60.0 play :e4 # 64.0 play :g4 # 67.0
6fb8a1a9af8c483c5ca457ba8f15214682bbe6848d2c6a864d24b138961a06ea
yzhs/ocamlllvm
proc.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/yzhs/ocamlllvm/45cbf449d81f2ef9d234968e49a4305aaa39ace2/src/asmcomp/sparc/proc.ml
ocaml
********************************************************************* Objective Caml ...
, 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 . $ I d : proc.ml 9547 2010 - 01 - 22 1...
5ae838fdb1cdaf695d5ec3e6f82335f8d6dffa317447ccef795252c9985a81c5
dinosaure/carton
verify.ml
open Prelude open Core module Fp = Carton.Dec.Fp(Uid) module Verify = Carton.Dec.Verify(Uid)(Us)(IO) let z = De.bigstring_create De.io_buffer_size let allocate bits = De.make_window ~bits let zip a b = if Array.length a <> Array.length b then Fmt.invalid_arg "Array.zip" ; Array.init (Array.length a) (fun i -> a....
null
https://raw.githubusercontent.com/dinosaure/carton/8cb8b3685fab477594b2d83c70b2fc965d1d59b9/bin/verify.ml
ocaml
OBJ_REF
open Prelude open Core module Fp = Carton.Dec.Fp(Uid) module Verify = Carton.Dec.Verify(Uid)(Us)(IO) let z = De.bigstring_create De.io_buffer_size let allocate bits = De.make_window ~bits let zip a b = if Array.length a <> Array.length b then Fmt.invalid_arg "Array.zip" ; Array.init (Array.length a) (fun i -> a....
769cd4d2243a42785d211a468c4dcca447ad999285e080a318257811ae467e17
jkk/loom
alg_generic.clj
(ns ^{:doc "Graph algorithms for use on any type of graph" :author "Justin Kramer"} loom.alg-generic) ;;; ;;; Utility functions ;;; (defn trace-path "Using a map of nodes-to-preds, traces a node's family tree back to the source. Cycles are not accounted for." [preds node] (take-while identity (iterate...
null
https://raw.githubusercontent.com/jkk/loom/45633e7ee8ad76e94689d986bd4f27f6adbea2c9/src/loom/alg_generic.clj
clojure
Utility functions Depth-first traversal TODO: graph-seq, analog of tree-seq TODO: this is awkward, devise something better For most graphs, being lazy wouldn't matter Breadth-first traversal from start to end from end to start TODO: watchers? FIXME: Decide whether this can be optimized and is worth keepin...
(ns ^{:doc "Graph algorithms for use on any type of graph" :author "Justin Kramer"} loom.alg-generic) (defn trace-path "Using a map of nodes-to-preds, traces a node's family tree back to the source. Cycles are not accounted for." [preds node] (take-while identity (iterate preds node))) (defn preds->s...
735d481b672e5d762b4f54ad54bb1f7be3be4f112aab59a9d6111f75a01af16f
xapi-project/xen-api-libs
mapext.mli
module type S = sig type key type +'a t val empty: 'a t val is_empty: 'a t -> bool val add: key -> 'a -> 'a t -> 'a t val find: key -> 'a t -> 'a val remove: key -> 'a t -> 'a t val mem: key -> 'a t -> bool val iter: (key -> 'a -> unit) -> 'a t -> unit val map: ('a -> 'b) -> '...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs/d603ee2b8456bc2aac99b0a4955f083e22f4f314/stdext/mapext.mli
ocaml
values: gives the list of values of the map. Update a value at a specific key with the result of the provided function. When the key is not a member of the map, the original map is returned.
module type S = sig type key type +'a t val empty: 'a t val is_empty: 'a t -> bool val add: key -> 'a -> 'a t -> 'a t val find: key -> 'a t -> 'a val remove: key -> 'a t -> 'a t val mem: key -> 'a t -> bool val iter: (key -> 'a -> unit) -> 'a t -> unit val map: ('a -> 'b) -> '...
3950120f66f186464467f2548ce39360593993226414dd13850b06703b87da99
hanshuebner/vlm
imacloop.lisp
-*- Mode : LISP ; Syntax : Common - Lisp ; Package : ALPHA - AXP - INTERNALS ; Base : 10 ; Lowercase : T -*- (in-package "ALPHA-AXP-INTERNALS") Macros in support of branch instructions . These are mostly in ifunloop.as ;;; Branch and loop instructions. (defmacro ibranchcond (invertp popp elsepopp extrapopp bri...
null
https://raw.githubusercontent.com/hanshuebner/vlm/20510ddc98b52252a406012a50a4d3bbd1b75dd0/alpha-emulator/imacloop.lisp
lisp
Syntax : Common - Lisp ; Package : ALPHA - AXP - INTERNALS ; Base : 10 ; Lowercase : T -*- Branch and loop instructions. pops if branch taken pops if taken NOT! branch offset in arg1. just for readability. Exception handler is uses the branch target as next-pc (to set in continuation) just for readability. Except...
(in-package "ALPHA-AXP-INTERNALS") Macros in support of branch instructions . These are mostly in ifunloop.as (defmacro ibranchcond (invertp popp elsepopp extrapopp brielab) "Expects to be called as :10-bit-signed-immediate :own-immediate t" (let ((dolab (intern (format nil "DoBr~a~a~a~a" (if inve...
1166698ce3cbb1332ae9ac3a56d3ad2bcc6a3c53c9b9a7253abce41e12c5478a
fyquah/hardcaml_zprize
bram.ml
open! Base open Hardcaml open Signal let create scope ~build_mode ~size ~read_latency ~clock ~port_a ~port_b = let port scope p = let ( -- ) = Scope.naming scope in Hardcaml_xilinx.Ram_port.(map2 p port_names ~f:( -- )) in Hardcaml_xilinx.True_dual_port_ram.create ~read_latency ~build_mode ~a...
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/hardcaml_ntt/src/bram.ml
ocaml
open! Base open Hardcaml open Signal let create scope ~build_mode ~size ~read_latency ~clock ~port_a ~port_b = let port scope p = let ( -- ) = Scope.naming scope in Hardcaml_xilinx.Ram_port.(map2 p port_names ~f:( -- )) in Hardcaml_xilinx.True_dual_port_ram.create ~read_latency ~build_mode ~a...
a4ea8f24114413596ba789b08c6072177fa163c31ec2fc39a6022a069344ee36
clojure/data.json
json.clj
Copyright ( c ) , 2012 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse ;; Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this ;; distribution. By using this software in any fashion, you are ;; agreeing to be bound ...
null
https://raw.githubusercontent.com/clojure/data.json/0b491b25e61d108951c64d33d28a90080758a271/src/main/clojure/clojure/data/json.clj
clojure
Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. JSON READER Expects to be called with ...
Copyright ( c ) , 2012 . All rights reserved . The use and distribution terms for this software are covered by the Eclipse (ns ^{:author "Stuart Sierra" :doc "JavaScript Object Notation (JSON) parser/generator. See /"} clojure.data.json (:refer-clojure :exclude (read)) (:require [clojure.pprint :...
e4a7dd454456aad281d439c9291708059f4cf49f8adcfccf82930d7f823dd467
wfnuser/sicp-solutions
e3-7.scm
(define (make-account balance password) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! balance (+ balance amount)) balance) (define (dispatch pw m) (...
null
https://raw.githubusercontent.com/wfnuser/sicp-solutions/2c94b28d8ee004dcbfe7311f866e5a346ee01d12/ch3/e3-7.scm
scheme
make sure password is correct (account 'password password)
(define (make-account balance password) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! balance (+ balance amount)) balance) (define (dispatch pw m) (...
308de300c570f2258b8452459a42be980ab980a41d03c8e51dc94b3b9dd73acb
LuKC1024/stacker
pict-of-state.rkt
#lang racket (provide pict-of-state) (require pict) (require (rename-in pict [text pict-text])) (require racket/draw) (require (only-in framework editor:get-current-preferred-font-size)) ;;; This color palette has been checked with ;;; -accessibility dark and light blue ( # 0000C8 & # 0000FF ) (define color-A-D (m...
null
https://raw.githubusercontent.com/LuKC1024/stacker/c0f68489a63797454b9ad9c895774fcfb7aa43ef/pict-of-state.rkt
racket
This color palette has been checked with -accessibility black and white These color palettes for texts have been checked with / string addresses means the address is not primitive (symbol address)
#lang racket (provide pict-of-state) (require pict) (require (rename-in pict [text pict-text])) (require racket/draw) (require (only-in framework editor:get-current-preferred-font-size)) dark and light blue ( # 0000C8 & # 0000FF ) (define color-A-D (make-object color% 0 0 200)) (define color-A-L (make-object color% ...
92ca99ecb3fa2f5e8782fa7a9915290df8927dffa8e7bb8c4630d1cfc3e9a860
haskell-github/github
ListDeployKeys.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import qualified GitHub as GH import Data.List (intercalate) import Data.Vector (toList) main :: IO () main = do let auth = GH.OAuth "auth_token" eDeployKeys <- GH.github auth GH.deployKeysForR "your_owner" "your_repo" GH.FetchAll case eDeployKeys of ...
null
https://raw.githubusercontent.com/haskell-github/github/81d9b658c33a706f18418211a78d2690752518a4/samples/Repos/DeployKeys/ListDeployKeys.hs
haskell
# LANGUAGE OverloadedStrings #
module Main (main) where import qualified GitHub as GH import Data.List (intercalate) import Data.Vector (toList) main :: IO () main = do let auth = GH.OAuth "auth_token" eDeployKeys <- GH.github auth GH.deployKeysForR "your_owner" "your_repo" GH.FetchAll case eDeployKeys of Left err -> putStrLn $ "...
50acad8b1c0a3f0bfef0eec1d698886994829631c28b03211ca5f9f30990ab6a
TerrorJack/ghc-alter
Bifunctor.hs
{-# LANGUAGE Safe #-} # LANGUAGE CPP # ----------------------------------------------------------------------------- -- | -- Module : Data.Bifunctor Copyright : ( C ) 2008 - 2014 , -- License : BSD-style (see the file LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : po...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/Data/Bifunctor.hs
haskell
# LANGUAGE Safe # --------------------------------------------------------------------------- | Module : Data.Bifunctor License : BSD-style (see the file LICENSE) Maintainer : Stability : provisional Portability : portable -----------------------------------------------------------------------...
# LANGUAGE CPP # Copyright : ( C ) 2008 - 2014 , @since 4.8.0.0 module Data.Bifunctor ( Bifunctor(..) ) where import Control.Applicative ( Const(..) ) import GHC.Generics ( K1(..) ) | Formally , the class ' Bifunctor ' represents a bifunctor from @Hask@ - > @Hask@. Intuitively it is a bifunctor...
bacd6baa2d24b71759deab798afa17a343b566ca8cfbb2c5bd39ded081034a8d
TheLortex/mirage-monorepo
print_cookie_driver.ml
open Ppxlib let value_x = ref "" let f = function | Some value_of_x -> value_x := Printf.sprintf "Value of cookie x: %i" value_of_x | None -> value_x := "Cookie x isn't set." let () = Ppxlib.Driver.Cookies.(add_simple_handler ~f "x" Ast_pattern.(eint __)) let print_cookie_x = object inherit Ast_trav...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/test/driver/flag_cookie/print_cookie_driver.ml
ocaml
open Ppxlib let value_x = ref "" let f = function | Some value_of_x -> value_x := Printf.sprintf "Value of cookie x: %i" value_of_x | None -> value_x := "Cookie x isn't set." let () = Ppxlib.Driver.Cookies.(add_simple_handler ~f "x" Ast_pattern.(eint __)) let print_cookie_x = object inherit Ast_trav...
c220bb880e7ac066ee7d736d34c768d7587934f6fb71799db6df215fb108fc0a
byorgey/diagrams-play
ArrowTest.hs
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude c1 = circle 1 # named "c1" c2 = circle 1 # named "c2" dia = c1 # translateY 1 <> c2 # translateX 2 main = defaultMain (dia # connect "c1" "c2")
null
https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/ArrowTest.hs
haskell
# LANGUAGE NoMonomorphismRestriction # import Diagrams.Backend.Cairo.CmdLine import Diagrams.Prelude c1 = circle 1 # named "c1" c2 = circle 1 # named "c2" dia = c1 # translateY 1 <> c2 # translateX 2 main = defaultMain (dia # connect "c1" "c2")
cf4e5731274cd4c4c523f1c0e48f4d03e89b683ca47bd65dddae245d16faf6ba
vult-dsp/vult
components.ml
The MIT License ( MIT ) Copyright ( c ) 2016 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights ...
null
https://raw.githubusercontent.com/vult-dsp/vult/860b2b7a8e891aa729578175a931ce2a9345428b/src/util/components.ml
ocaml
main type of a graph forward representation of the graph reversed repesentation of directed graph set with all the vertex in the graph returns an empty graph adds a graph edge inserts edge from_v to to_v inserts edge to_v to from_v adds both vertex to the set gets the all vertices pointed by a given ...
The MIT License ( MIT ) Copyright ( c ) 2016 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights ...
0db79dc28dcea816c5be94186b08c6cdee44419bf6ee2aa1bdc089bfc520ba17
yesodweb/wai
ResponseHeader.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} module Network.Wai.Handler.Warp.ResponseHeader (composeHeader) where import qualified Data.ByteString as S import Data.ByteString.Internal (create) import qualified Data.CaseInsensitive as CI import Data.List (foldl') import Foreign.Ptr import GHC.Stora...
null
https://raw.githubusercontent.com/yesodweb/wai/47aeb1708c728019cd82b598a6f3b239008b6414/warp/Network/Wai/Handler/Warp/ResponseHeader.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE BangPatterns # --------------------------------------------------------------
module Network.Wai.Handler.Warp.ResponseHeader (composeHeader) where import qualified Data.ByteString as S import Data.ByteString.Internal (create) import qualified Data.CaseInsensitive as CI import Data.List (foldl') import Foreign.Ptr import GHC.Storable import qualified Network.HTTP.Types as H import Network.Socke...
6fb43eb575243d2fbd2a3126dfd19a3b2a19e4c313c747f4efc2faa72820b5f0
TheLortex/mirage-monorepo
fuzz_int63.ml
open Monolith let int = le Int.max_int let int32 = let gen_random = let open Int32 in let bits () = of_int (Gen.bits ()) in fun () -> logxor (bits ()) (shift_left (bits ()) 30) in let pos = easily_constructible gen_random PPrint.OCaml.int32 in let neg = deconstructible PPrint.OCaml.int32 in ifpo...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/optint/fuzz/fuzz_int63.ml
ocaml
open Monolith let int = le Int.max_int let int32 = let gen_random = let open Int32 in let bits () = of_int (Gen.bits ()) in fun () -> logxor (bits ()) (shift_left (bits ()) 30) in let pos = easily_constructible gen_random PPrint.OCaml.int32 in let neg = deconstructible PPrint.OCaml.int32 in ifpo...
815cb9484f864eac3a5e343854eb72ab9c2baade86082acd3f7b06b19e169887
kcsongor/generic-lens
HList.hs
{-# LANGUAGE PackageImports #-} # LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE MonoLocalBinds # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeInType #-} # LANGUAGE Undecidabl...
null
https://raw.githubusercontent.com/kcsongor/generic-lens/8e1fc7dcf444332c474fca17110d4bc554db08c8/generic-lens/src/Data/Generics/Product/HList.hs
haskell
# LANGUAGE PackageImports # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeInType # --------------------------------------------------------------------------- | License : BSD3 Stability : experimental Portability : non-portable ------------------------...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE MonoLocalBinds # # LANGUAGE UndecidableInstances # Module : Data . Generics . Product . HList Copyright : ( C ) 2020 Maintainer : < > Derive an isomorphism ...
1958615c01bd9807631a74dbc80318d82f6c86c3c4a27adc8dc7ffd66422f935
avsm/mirage-duniverse
config.mli
open Nocrypto open Core * Configuration of the TLS stack * { 1 Config type } * certificate chain and private key of the first certificate type certchain = X509.t list * Nocrypto.Rsa.priv (** polymorphic variant of own certificates *) type own_cert = [ | `None | `Single of certchain | `Multiple of certchain li...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/tls/lib/config.mli
ocaml
* polymorphic variant of own certificates * configuration parameters * ordered list (regarding preference) of supported cipher suites * ordered list of supported hash algorithms (regarding preference) * endpoint should accept renegotiation requests * optional X509 authenticator * optional name of other endpoint (...
open Nocrypto open Core * Configuration of the TLS stack * { 1 Config type } * certificate chain and private key of the first certificate type certchain = X509.t list * Nocrypto.Rsa.priv type own_cert = [ | `None | `Single of certchain | `Multiple of certchain list | `Multiple_default of certchain * certcha...
53f64207a95048710ed8f7c896c8ca53a99b3f714df82e029958656a737f30c7
nvim-treesitter/nvim-treesitter
locals.scm
[ (program) (fn) (lambda) (let) (each) (for) (match) ] @scope ( (list . (symbol) @_special) @scope (#any-of? @_special "while" "if" "when" "do" "collect" "icollect" "accumulate") ) (fn name: (symbol) @definition.function (#set! definition.function.scope "parent")) (lambda name: (symbol) @definition.fu...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/a0c0269cbfc8a52fa2d400509f0d3402453c7b06/queries/fennel/locals.scm
scheme
TODO: use @definition.parameter for parameters
[ (program) (fn) (lambda) (let) (each) (for) (match) ] @scope ( (list . (symbol) @_special) @scope (#any-of? @_special "while" "if" "when" "do" "collect" "icollect" "accumulate") ) (fn name: (symbol) @definition.function (#set! definition.function.scope "parent")) (lambda name: (symbol) @definition.fu...
27b3c20beb049ef6b6d8ba81261e114b5053f844ddaf2c6115b7581d37924b27
brawnski/git-annex
DropKey.hs
git - annex command - - Copyright 2010 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2010 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.DropKey where import Command import qualified Annex import LocationLog import Types import Cont...
null
https://raw.githubusercontent.com/brawnski/git-annex/8b847517a810d384a79178124b9766141b89bc17/Command/DropKey.hs
haskell
git - annex command - - Copyright 2010 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2010 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Command.DropKey where import Command import qualified Annex import LocationLog import Types import Cont...
94d5a7c7cc57fce661ae1ae26ff138f9503c67a7a7eb811bd7fcc8373f62f2f8
c-cube/gen
genLabels.mli
(* This file is free software, part of gen. See file "license" for more details. *) (** {1 Generators} Label version of {!Gen} @since 0.2.4 *) * { 2 Global type declarations } type 'a t = unit -> 'a option (** A generator may be called several times, yielding the next value each time. It returns [None...
null
https://raw.githubusercontent.com/c-cube/gen/aad7246045a86a9a5a4684359da89d27cf4069b3/src/genLabels.mli
ocaml
This file is free software, part of gen. See file "license" for more details. * {1 Generators} Label version of {!Gen} @since 0.2.4 * A generator may be called several times, yielding the next value each time. It returns [None] when no elements remain * Get the next value * Synonym for {!get} * Get ...
* { 2 Global type declarations } type 'a t = unit -> 'a option type 'a gen = 'a t module type S = GenLabels_intf.S * { 2 Transient generators } val get : 'a t -> 'a option val next : 'a t -> 'a option val get_exn : 'a t -> 'a val junk : 'a t -> unit val repeatedly : (unit -> 'a) -> 'a t include S with type...
6d9850124770edcfcb0d8d746fa1f91ddedb6b60612b72167e751b70f76598dc
GaloisInc/HaLVM
IVC.hs
Copyright 2006 - 2008 , Galois , Inc. This software is distributed under a standard , three - clause BSD license . -- Please see the file LICENSE, distributed with this software, for specific -- terms and conditions. -- |Support for inter-domain communication through typed -- communication channels. The module pro...
null
https://raw.githubusercontent.com/GaloisInc/HaLVM/3ec1d7e4b6bcb91304ba2bfe8ee280cb1699f24d/src/HALVMCore/Communication/IVC.hs
haskell
Please see the file LICENSE, distributed with this software, for specific terms and conditions. |Support for inter-domain communication through typed communication channels. The module provides types that represent the input and ouput ends of open unidirectional communication channels. These channels are parame...
Copyright 2006 - 2008 , Galois , Inc. This software is distributed under a standard , three - clause BSD license . module Communication.IVC( InChannel, OutChannel, InOutChannel , ReadableChan, WriteableChan , makeNewInChannel, acceptNewInChannel , makeNewOutChannel, acceptNewOutChannel...
30405a2e63bcea7fbbfa70bbc934aaa8054e1b75afb3a48b1318f5cbbaad5115
jlouis/etorrent_core
etorrent.erl
@author < > @doc Etorrent Command line interface %% <p>This module implements the CLI of etorrent. It is the intended %% entry-point for a human being to query etorrent for what it is %% doing right now. A number of commands exist, which can be asked for with the help/0 call . From there the rest of the comm...
null
https://raw.githubusercontent.com/jlouis/etorrent_core/7db7f4ef36c1d055812504f00df92c6a67c2e4af/src/etorrent.erl
erlang
<p>This module implements the CLI of etorrent. It is the intended entry-point for a human being to query etorrent for what it is doing right now. A number of commands exist, which can be asked for perused.</p> @end API Query Etorrent-as-library ==================================================================...
@author < > @doc Etorrent Command line interface with the help/0 call . From there the rest of the commands can be -module(etorrent). -export([help/0, h/0, list/0, l/0, show/0, s/0, show/1, s/1, check/1]). -export([start_app/0, start_app/1, stop_app/0]). -export([start/1, start/2]). start_app() -> et...
e89b3c368469f6256a74f8af61b0b00eb5fc0b95e65869ce35405f3e3bb8bbb7
factisresearch/mq-demo
BrokerStub.hs
# OPTIONS_GHC -F -pgmF htfpp # {-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} module Mgw.MessageQueue.BrokerStub ( sendClientMain, recvClientMain , htf_thisModulesTests ) where #include "src/macros.h" ---------------------------------------- -- LOCAL --------------...
null
https://raw.githubusercontent.com/factisresearch/mq-demo/0efa1991ca647a86a8c22e516a7a1fb392ab4596/server/src/lib/Mgw/MessageQueue/BrokerStub.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # -------------------------------------- LOCAL -------------------------------------- -------------------------------------- SITE-PACKAGES -------------------------------------- -------------------------------------- STDLIB --------------------------------------...
# OPTIONS_GHC -F -pgmF htfpp # # LANGUAGE CPP # module Mgw.MessageQueue.BrokerStub ( sendClientMain, recvClientMain , htf_thisModulesTests ) where #include "src/macros.h" import Mgw.MessageQueue.BrokerServer import Mgw.MessageQueue.LocalBroker import Mgw.MessageQueue.Protocol import Mgw.MessageQueue...
be109c8d2d42f9eb1796f1fac8382a75fd7c89612742efa34b27032ff204e7b0
icicle-lang/icicle-ambiata
Simp.hs
-- | Simplifier for simple expressions # LANGUAGE NoImplicitPrelude # module Icicle.Common.Exp.Simp ( simp, simpKeepAnn, simpAnn ) where import Icicle.Common.Exp.Exp import Icicle.Common.Exp.Compounds import Icicle.Common.Exp.Simp.Beta import Icicle.Common.Exp.Simp.ANormal import Icicle.Common.Fresh import ...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-data/src/Icicle/Common/Exp/Simp.hs
haskell
| Simplifier for simple expressions | Just perform beta reduction for now
# LANGUAGE NoImplicitPrelude # module Icicle.Common.Exp.Simp ( simp, simpKeepAnn, simpAnn ) where import Icicle.Common.Exp.Exp import Icicle.Common.Exp.Compounds import Icicle.Common.Exp.Simp.Beta import Icicle.Common.Exp.Simp.ANormal import Icicle.Common.Fresh import P import Data.Hashable simp :: (Hasha...
b37b8f1b6b88737b17659ae3b1d7fbc8f3e594cad4f67aa9467f09e43c9e46fb
namin/clpsmt-miniKanren
full-interp-quine.scm
The definition of ' letrec ' is based based on code , using the " half - closure " approach from 's definitional ;; interpreters. (define (evalo expr val) (eval-expo expr initial-env val)) (define (eval-expo expr env val) (conde ((== `(quote ,val) expr) (absento 'closure val) (absento 'prim ...
null
https://raw.githubusercontent.com/namin/clpsmt-miniKanren/4fa74fb973c95b7913f0e0239852f18a23073ccc/full-interp-quine.scm
scheme
interpreters. Multi-argument variadic Multi-argument Multiple argument need to make sure lambdas are well formed. grammar constraints would be useful here!!!
The definition of ' letrec ' is based based on code , using the " half - closure " approach from 's definitional (define (evalo expr val) (eval-expo expr initial-env val)) (define (eval-expo expr env val) (conde ((== `(quote ,val) expr) (absento 'closure val) (absento 'prim val) (not-in...
760c5061303f82b5d1ade706e7c832ffcdd8f031551646f779e1d061d5f9d8b9
scrintal/heroicons-reagent
currency_pound.cljs
(ns com.scrintal.heroicons.mini.currency-pound) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M10 18a8 8 0 100-16 8 8 0 000 16zM8.732 6.232a2.5 2.5 0 013.536 0 .75.75 0 1...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/currency_pound.cljs
clojure
(ns com.scrintal.heroicons.mini.currency-pound) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M10 18a8 8 0 100-16 8 8 0 000 16zM8.732 6.232a2.5 2.5 0 013.536 0 .75.75 0 1...
c239156bdd0ea3ffe67bf2e0084eb0fca018386352ee10953a4a1b87d6548a31
ocamllabs/ocaml-modular-implicits
map.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/stdlib/map.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 GNU Library General Public License , with * Association tables over ordered types...
7780d9ee6b4333ba31054f59b751d350bc064e7efae66f8ec7cfa383db501bfe
tfausak/rattletrap
I32.hs
module Rattletrap.Type.I32 where import qualified Data.Int as Int import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.ByteGet as ByteGet import qualified Rattletrap.BytePut as BytePut import qualified Rattletrap.Schema as Schema import qualified Rattlet...
null
https://raw.githubusercontent.com/tfausak/rattletrap/cc6d6aba923d840f23de7673cab9a043096d3099/src/lib/Rattletrap/Type/I32.hs
haskell
module Rattletrap.Type.I32 where import qualified Data.Int as Int import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.ByteGet as ByteGet import qualified Rattletrap.BytePut as BytePut import qualified Rattletrap.Schema as Schema import qualified Rattlet...
c26cea0466196380d7028de99cf5f658ccbe6d9e5a84002dc581ab7d7147cc8d
plumatic/grab-bag
textarea.cljs
(ns tubes.textarea (:require [clojure.string :as str] [dommy.core :as dommy] [tubes.text-metrics :as text-metrics])) (defn listen-edit! [textarea f] (let [prev-value (atom (.-value textarea)) on-edit-fn #(let [new-value (.-value textarea)] (when-not (identical? new-value @prev-v...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/tubes/src/tubes/textarea.cljs
clojure
(ns tubes.textarea (:require [clojure.string :as str] [dommy.core :as dommy] [tubes.text-metrics :as text-metrics])) (defn listen-edit! [textarea f] (let [prev-value (atom (.-value textarea)) on-edit-fn #(let [new-value (.-value textarea)] (when-not (identical? new-value @prev-v...
a5557ae501f179a95edbeb97cb56ddc7e678b43afc8856b0ff241892e9726803
opencog/learn
lg-parser.scm
; ; lg-parser.scm -- Unified LG-based parsing framework. ; ; --------------------------------------------------------------------- (use-modules (ice-9 optargs)) ; for define*-public (use-modules (srfi srfi-1)) (use-modules (opencog) (opencog nlp) (opencog nlp lg-parse)) (use-modules (opencog exec)) (define*-public (...
null
https://raw.githubusercontent.com/opencog/learn/f9878985f09c44314bb6b22519087d4994fb2b8f/scm/parse/lg-parser.scm
scheme
lg-parser.scm -- Unified LG-based parsing framework. --------------------------------------------------------------------- for define*-public This is a hack for now. This is a hack for now. hack for now. Each section arrives already in the correct format. Thus, counting is trivial. Each link arrives already ...
(use-modules (srfi srfi-1)) (use-modules (opencog) (opencog nlp) (opencog nlp lg-parse)) (use-modules (opencog exec)) (define*-public (make-disjunct-counter STOBJ BLOBJ DICT #:key (NUM-LINKAGES 3) (ATOMSPACE #t) (STORAGE #f) ) " make-disjunct-counter STOBJ BLOBJ DICT -- Parse text using DICT. Return a f...
d2154a079dc9fd2ef6e8ee781283871b54767cc29733949532357dcca051e0d5
ocaml-multicore/ocaml-tsan
rec_check.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/ae9c1502103845550162a49fcd3f76276cdfa866/typing/rec_check.ml
ocaml
************************************************************************ OCaml ...
, University of Cambridge , , INRIA Saclay , ENS Lyon Copyright 2017 Copyright 2018 the GNU Lesser General Public License version 2.1 , with the * Static checking of recurs...
3a390eedf271e7baaad606d67dd589fbf95552c8f79acf609dde2096c4a54379
korya/efuns
test3.ml
let rec fon a b c d e f g h i j = if a > 0 then if b > 0 then if c > 0 then a + b + c + d + e + f + g + h + i + j else 0 else 0 else fon 0 b c d e f g h i j let x = ref 3 let g () = x := fon (!x) 1 2 3 4 5 6 7 8 9 ; !x, !x, !x
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/inliner/tests/test3.ml
ocaml
let rec fon a b c d e f g h i j = if a > 0 then if b > 0 then if c > 0 then a + b + c + d + e + f + g + h + i + j else 0 else 0 else fon 0 b c d e f g h i j let x = ref 3 let g () = x := fon (!x) 1 2 3 4 5 6 7 8 9 ; !x, !x, !x
a09e1c5127c30869260990fd37f228fe7987f8628b1795e8568bafc8ccd0475b
rbuchmann/samak
servers.cljc
(ns samak.runtime.servers #?@ (:clj [(:require [clojure.core.async :as a] [clojure.edn :as edn] [samak.pipes :as pipes] [samak.nodes :as n])] :cljs [(:require [clojure.core.async :as a] [cljs.reader :as edn] [samak.protocols :as p] ...
null
https://raw.githubusercontent.com/rbuchmann/samak/ab98d1a180ee02c6cd784962b3c03e473a6d481b/src/samak/runtime/servers.cljc
clojure
FIXME: think a little about the protocol (eval-ast [_ ast] (a/put! pipe (pr-str {:cmd :eval-ast :args {:ast ast}}))) (get-defined [_] (a/put! pipe (pr-str {:cmd :get-defined :args {}}))) (load-builtins [_ builtins] (a/put! pipe (pr-str {:cmd :load-builtins :args {:builtins builtins}}))) (unl...
(ns samak.runtime.servers #?@ (:clj [(:require [clojure.core.async :as a] [clojure.edn :as edn] [samak.pipes :as pipes] [samak.nodes :as n])] :cljs [(:require [clojure.core.async :as a] [cljs.reader :as edn] [samak.protocols :as p] ...
73da1a57094099d6d00ba4fc21680cdf7774aedff40007915fe07ec857ac3af6
GlideAngle/flare-timing
Speed.hs
# LANGUAGE DuplicateRecordFields # | Module : Flight . Track . Mask . Speed Copyright : ( c ) Block Scope Limited 2017 License : MPL-2.0 Maintainer : Stability : experimental Tracks masked with task control zones . Module : Flight.Track.Mask.Speed Copyright : (c) Block Scope L...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/comp/library/Flight/Track/Mask/Speed.hs
haskell
^ The best time ignoring start gates. ^ The best time from the start gate taken. ^ The task distance. ^ The speed section subset of the task distance. ^ For each pilot making goal, their time for the speed section and speed fraction, ignoring any start gates. ^ For each pilot making goal, their time for the spe...
# LANGUAGE DuplicateRecordFields # | Module : Flight . Track . Mask . Speed Copyright : ( c ) Block Scope Limited 2017 License : MPL-2.0 Maintainer : Stability : experimental Tracks masked with task control zones . Module : Flight.Track.Mask.Speed Copyright : (c) Block Scope L...
e0b3236b084086db7fb4fc127199d0f9f547ba8f0b376d95cf5f794b96ee793e
MyDataFlow/ttalk-server
elevator_fsm.erl
Copyright 2010 - 2011 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr 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 o...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/proper/examples/elevator_fsm.erl
erlang
PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License fo...
Copyright 2010 - 2011 < > , < > and < > This file is part of PropEr . 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 Pub...
5cae202d622e96dd077674e9f0c781814b9954ea6d65291a9806721a6c9bdf35
LPCIC/matita
ocaml.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2011 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/ng_extraction/ocaml.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** s Production of Ocaml syntax. s Som...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2011 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : ocaml.ml 14641 2011...
596790bb04cfbaa9386a22122ee0f316b1cda668573b9bd77df6bb4d2f0ba324
helins/binf.cljc
gen.cljc
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 helins.binf.gen "`test.check` generators for primitive integers, buffers, and views. Attention, `test.check` is not included and...
null
https://raw.githubusercontent.com/helins/binf.cljc/d6d12b3a08cf2ca1e183fd7c34dde76233490079/src/main/helins/binf/gen.cljc
clojure
Integers 64-bits Buffers
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 helins.binf.gen "`test.check` generators for primitive integers, buffers, and views. Attention, `test.check` is not included and...
18cb04107772345952e3ef0c6316d02af3c275b39aea7eb24c1ad299aa640edd
labra/Haws
paper2.hs
-- This module includes the definitions -- of the paper that contains shape expression schemas module Paper2 where import Data.Set (Set) import qualified Data.Set as Set import Data.Map (Map) import qualified Data.Map as Map type URI = String type Subject = URI type Predicate = URI type Object = URI type Vs = Set...
null
https://raw.githubusercontent.com/labra/Haws/2417adc37522994e2bbb8e9e397481a1f6f4f038/src/Haws/ESWC_Paper/paper2.hs
haskell
This module includes the definitions of the paper that contains shape expression schemas shape finds the triples that surround a node in a graph
module Paper2 where import Data.Set (Set) import qualified Data.Set as Set import Data.Map (Map) import qualified Data.Map as Map type URI = String type Subject = URI type Predicate = URI type Object = URI type Vs = Set Subject type Vp = Set Predicate type Vo = Set Object type Triple = (Subject,Predicate,Object) ...
621997a831a1f52d3e86e8671939757b7ef0be5b9c0ac8d8a6a86cf0264fcab8
bokesan/IntervalMap
BenchAll.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # import Criterion.Main import Criterion.Types (Config(..)) import Control.DeepSeq import Prelude hiding (lookup, max, foldr) import System.Random import Data.Foldable (foldr) import Data.List (sort) import Data.IntervalMap.Interval import qualified Dat...
null
https://raw.githubusercontent.com/bokesan/IntervalMap/5aac05a3cc0b3567e3a31aed738df7795a53bc3c/bench/BenchAll.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # import Criterion.Main import Criterion.Types (Config(..)) import Control.DeepSeq import Prelude hiding (lookup, max, foldr) import System.Random import Data.Foldable (foldr) import Data.List (sort) import Data.IntervalMap.Interval import qualified Dat...
bda0dcba68620438c32a045c8394c9e8b0fae21d894b5e201216a034b034c5f9
nd/bird
4.6.1.hs
foldr f e xs = foldl (flip f) e (reverse xs) xs is []: both sides are simplified to e xs is (x:xs): left side: foldr f e (x:xs) = {def of foldr} f x (foldr f e xs) = {induction hypothesis} f x (foldl (flip f) e (reverse xs)) right side: foldl (flip f) e (reverse x:xs) so we have to prove that f x (foldl (flip f) y...
null
https://raw.githubusercontent.com/nd/bird/06dba97af7cfb11f558eaeb31a75bd04cacf7201/ch04/4.6.1.hs
haskell
foldr f e xs = foldl (flip f) e (reverse xs) xs is []: both sides are simplified to e xs is (x:xs): left side: foldr f e (x:xs) = {def of foldr} f x (foldr f e xs) = {induction hypothesis} f x (foldl (flip f) e (reverse xs)) right side: foldl (flip f) e (reverse x:xs) so we have to prove that f x (foldl (flip f) y...
e3469848540d820c42ea048e739f7f4ab585a616d118d86f58f3521729800531
juspay/atlas
Quote.hs
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you m...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/Storage/Tabular/Quote.hs
haskell
# LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you m...
dd95e5bd5f98a27ae8dfab3e8fe3ff7467e593ead9d48dade977cfa8ab207c99
janestreet/learn-ocaml-workshop
problem.ml
open! Base Recall from exercise 2 that we use [ let ] to define functions . Definitions take on the form : { | let ... = BODY | } For example , here we define a function [ add1 ] that takes a single int argument and returns that argument plus 1 . Definitions take on the form: {| let...
null
https://raw.githubusercontent.com/janestreet/learn-ocaml-workshop/1ba9576b48b48a892644eb20c201c2c4aa643c32/02-exercises/03-define_functions/problem.ml
ocaml
We can annotate a function definition with types as well. In OCaml, outside of strings, whitespace and newlines are the same. So, you could also write {| let FUNCTION_NAME ARG1 ARG2 = BODY |} and it's the same to the compiler. Let's define a few more functions be...
open! Base Recall from exercise 2 that we use [ let ] to define functions . Definitions take on the form : { | let ... = BODY | } For example , here we define a function [ add1 ] that takes a single int argument and returns that argument plus 1 . Definitions take on the form: {| let...
5f224af86f96fa967c13c11a891388361bab1b8de4330c5024564bc205c00f9b
input-output-hk/cardano-benchmarking
Env.hs
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ExistentialQuantification # # LANGUAGE StandaloneDeriving # # LANGUAGE UndecidableInstances # module Cardan...
null
https://raw.githubusercontent.com/input-output-hk/cardano-benchmarking/af05b42df27e2cc7305475cf5c4efa81e7f97540/cardano-tx-generator/src/Cardano/Benchmarking/Script/Env.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes #
# LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ExistentialQuantification # # LANGUAGE StandaloneDeriving # # LANGUAGE UndecidableInstances # module Cardano.Benchmarking.Script.Env where import P...
18740e6b2f26fcf3c7892862ddee5ec2a6bde4c7a627f221339734f83deb2633
freiksenet/cl-zmq
local-lat-poll.lisp
Copyright ( c ) 2009 , 2010 < > ;; This file is part of CL - ZMQ . ;; grants you the rights to distribute ;; and use this software as governed by the terms of the Lisp Lesser GNU Public License ;; (), ;; known as the LLGPL. (asdf:oos 'asdf:load-op :zeromq) (defpackage :zeromq-test (:use :cl)) (in-pack...
null
https://raw.githubusercontent.com/freiksenet/cl-zmq/9acd1faa1ea3b2e322241aa126c57ba3a8907b79/perf/local-lat-poll.lisp
lisp
and use this software as governed by the terms (), known as the LLGPL.
Copyright ( c ) 2009 , 2010 < > This file is part of CL - ZMQ . grants you the rights to distribute of the Lisp Lesser GNU Public License (asdf:oos 'asdf:load-op :zeromq) (defpackage :zeromq-test (:use :cl)) (in-package :zeromq-test) (load "lat-parms") (zmq:with-context (ctx 1) (zmq:with-socket (s...
8ac919b508dc878ade200c2841f990305849ed80060974210deb7c30f71cf6be
LoupVaillant/Monokex
proto.ml
open Utils type key = E | S type exchange = key * key type action = Key of key | Exchange of exchange type message = Client of action list | Server of action list type protocol = message list * message list (* Alternate representation: Specify client/server at ...
null
https://raw.githubusercontent.com/LoupVaillant/Monokex/ea8a16156164644dab25f6e7aefd85b169a4e7ee/src/proto.ml
ocaml
Alternate representation: Specify client/server at the key level By the numbers
open Utils type key = E | S type exchange = key * key type action = Key of key | Exchange of exchange type message = Client of action list | Server of action list type protocol = message list * message list type cs_key = IE | IS | RE | RS type cs_action ...
da49e6f5f92a0af5ce4147117a393a9e73b9f96b77b02709233ba3a5c4154856
cardmagic/lucash
pedit.scm
Copyright ( c ) 1993 - 2001 by and . See file COPYING . ; Package / structure / interface mutation operations. ; None of these is essential for the static semantics of packages. ; They only come into play in order to implement dynamic package ; mutation, which is solely a debugging operation. ; This is work in...
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scheme/env/pedit.scm
scheme
Package / structure / interface mutation operations. None of these is essential for the static semantics of packages. They only come into play in order to implement dynamic package mutation, which is solely a debugging operation. This is work in progress. There are surely numerous bugs. (define (package-system-s...
Copyright ( c ) 1993 - 2001 by and . See file COPYING . (define (package-open! p struct-thunk) (if (not (memq (struct-thunk) (package-opens p))) (let ((thunk (package-opens-thunk p))) (set-package-opens-thunk! p (lambda () (cons (struct-thunk) (thunk)))) ...
b9c954a8a4cad7f3be9d1b546a87b969391a480491bb184e75fd447ae460b38d
eduardoaguacate/Object-Oriented-Haskell
OrderedMap.hs
module OrderedMap where import qualified Data.Map.Ordered as OMap import qualified Data.Map as Map type OrderedMap k v = (OMap.OMap k v) empty :: (Ord k) => (OMap.OMap k v) empty = OMap.empty insert :: (Ord k) => k -> v -> (OMap.OMap k v) -> (OMap.OMap k v) insert k v map = (OMap.>|) map (k,v) lookup :: (Ord k) =>...
null
https://raw.githubusercontent.com/eduardoaguacate/Object-Oriented-Haskell/2f6192ca98513886cbedffa7429c87c44ffdcf05/OrderedMap.hs
haskell
module OrderedMap where import qualified Data.Map.Ordered as OMap import qualified Data.Map as Map type OrderedMap k v = (OMap.OMap k v) empty :: (Ord k) => (OMap.OMap k v) empty = OMap.empty insert :: (Ord k) => k -> v -> (OMap.OMap k v) -> (OMap.OMap k v) insert k v map = (OMap.>|) map (k,v) lookup :: (Ord k) =>...
e2d72efc7a756d65b5cd2169ef9fcb6f031c90e9e6ed78ec6f346d136b108fb8
Helium4Haskell/helium
Lambda1.hs
module Lambda1 where main :: Int main = (\1 (x:xs) -> x) 1 [3]
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/correct/Lambda1.hs
haskell
module Lambda1 where main :: Int main = (\1 (x:xs) -> x) 1 [3]
441feefc234cdbbc56180884f9c516416fb40085b36f6aabd6b6de74e3a2636b
bmeurer/ocaml-experimental
stackoverflow.ml
let rec f x = if x land 0xFFFF <> 0 then 1 + f (x + 1) else try 1 + f (x + 1) with Stack_overflow -> print_string "x = "; print_int x; print_newline(); raise Stack_overflow let _ = try ignore(f 0) with Stack_overflow -> print_string "Stack overflow caught"; print_newline()
null
https://raw.githubusercontent.com/bmeurer/ocaml-experimental/fe5c10cdb0499e43af4b08f35a3248e5c1a8b541/testsuite/tests/runtime-errors/stackoverflow.ml
ocaml
let rec f x = if x land 0xFFFF <> 0 then 1 + f (x + 1) else try 1 + f (x + 1) with Stack_overflow -> print_string "x = "; print_int x; print_newline(); raise Stack_overflow let _ = try ignore(f 0) with Stack_overflow -> print_string "Stack overflow caught"; print_newline()
f1e2c55546e419ce9583aee5b8fb61832b92d00522dba023a3f29548b88f26e6
russmatney/ralphie
emacs.clj
(ns ralphie.emacs (:require [ralphie.notify :refer [notify]] [babashka.process :as process :refer [$ check]] [defthing.defcom :refer [defcom] :as defcom] [clojure.string :as string] [babashka.fs :as fs])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; emacs server /...
null
https://raw.githubusercontent.com/russmatney/ralphie/06ddd77ebfd7721fc3b0b365a3b44d9c2b717c83/src/ralphie/emacs.clj
clojure
(r.sh/zsh (str "emacsclient --alternate-editor='' --no-wait --create-frame" " -e '(delete-frame)'")) Open emacs client for passed workspace
(ns ralphie.emacs (:require [ralphie.notify :refer [notify]] [babashka.process :as process :refer [$ check]] [defthing.defcom :refer [defcom] :as defcom] [clojure.string :as string] [babashka.fs :as fs])) emacs server / client fns (defn emacs-server-running? [] (try (-> ($ emacsclient -a fals...
ae8c1a94f2e20ea8ea85dc33a9801e4dc655fad1b2f4e068217b5dd8a1e99107
supki/liblastfm
ArtistSpec.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} module Xml.ArtistSpec (spec) where import Data.Text (Text) import Data.Traversable (traverse) import Lastfm import Lastfm.Artist import Test.Hspec import Text.Xml.Lens import SpecHelper spec :: Spec spec = do   it "addTags" $    shouldHaveXml_ . privately $...
null
https://raw.githubusercontent.com/supki/liblastfm/754be163c4ce14c9b4819f1359b5f95a0f91a29d/test/api/Xml/ArtistSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # module Xml.ArtistSpec (spec) where import Data.Text (Text) import Data.Traversable (traverse) import Lastfm import Lastfm.Artist import Test.Hspec import Text.Xml.Lens import SpecHelper spec :: Spec spec = do   it "addTags" $    shouldHaveXml_ . privately $     addTags <*> artist "Егор Лет...
6d98eea7e090bca6ca0afeaf3595346d789f6dd230ceee9bb58009e0926f6836
dmotz/GildedGauge
state.cljs
(ns gilded-gauge.state (:require [gilded-gauge.utils :refer [parse-event]] [gilded-gauge.objects :refer [create-menagerie]] [gilded-gauge.rankings :refer [rankings]])) (def preset-names #{"Jeff Bezos" "Bill Gates" "Warren Buffet" "Ma...
null
https://raw.githubusercontent.com/dmotz/GildedGauge/4bc1c62387bb30c353143f9c482418709c71b020/src/gilded_gauge/state.cljs
clojure
(ns gilded-gauge.state (:require [gilded-gauge.utils :refer [parse-event]] [gilded-gauge.objects :refer [create-menagerie]] [gilded-gauge.rankings :refer [rankings]])) (def preset-names #{"Jeff Bezos" "Bill Gates" "Warren Buffet" "Ma...
7f18646d7f883c08157a5375edc0b1ee8035d4fbc401d5eb9f65edca7ee4fa6a
haskell/lsp
Lens.hs
{-# LANGUAGE TemplateHaskell #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE PolyKinds # {-# LANGUAGE GADTs #-} # LANGUAGE UndecidableInstances # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE Fle...
null
https://raw.githubusercontent.com/haskell/lsp/ce1a4538508b2c393e0f36a888717b7e5c7f08a9/lsp-types/src/Language/LSP/Types/Lens.hs
haskell
# LANGUAGE TemplateHaskell # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE FlexibleContexts # # LANGUAGE DataKinds # # LANGUAGE TypeInType # client capabilities --------------------------------------------------------------------- -----------...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE PolyKinds # # LANGUAGE UndecidableInstances # # LANGUAGE ExplicitNamespaces # module Language.LSP.Types.Lens where import Language.LSP.Types.CallHierarchy import ...
0ba953454ff952580a44a0e1447f864f4d8d50cd8c54a354805e8845f39561d6
hugoduncan/makejack
api_test.clj
(ns makejack.poly.api-test (:require [clojure.test :as test :refer :all] [makejack.poly.api :as poly])) (deftest dummy-test (is (= 1 1)))
null
https://raw.githubusercontent.com/hugoduncan/makejack/9676516be89b36295477bb59e26e09b8c9916597/components/poly/test/makejack/poly/api_test.clj
clojure
(ns makejack.poly.api-test (:require [clojure.test :as test :refer :all] [makejack.poly.api :as poly])) (deftest dummy-test (is (= 1 1)))
90176aaffcbbda21e01a7a331f7f1a8b72f7fe520a5cd7df284a5c955e073a01
unnohideyuki/Tiger-in-Haskell
Env.hs
module Env ( Access, Ty, EnvEntry(..) , base_tenv, base_venv ) where import qualified Symbol as S import qualified Types as T type Access = () type Ty = T.Ty data EnvEntry = VarEntry { ty :: Ty } | FunEntry { formals :: [Ty], result :: Ty } deriving (Eq, Show) ...
null
https://raw.githubusercontent.com/unnohideyuki/Tiger-in-Haskell/69fc976e64bfe7abfa842d7179e06eae740d36b9/chap5/Env.hs
haskell
module Env ( Access, Ty, EnvEntry(..) , base_tenv, base_venv ) where import qualified Symbol as S import qualified Types as T type Access = () type Ty = T.Ty data EnvEntry = VarEntry { ty :: Ty } | FunEntry { formals :: [Ty], result :: Ty } deriving (Eq, Show) ...
0dcb2e301a5fe0b26c198528588bd271459dbe2fe9be16f6791257e13b61bedb
bobatkey/foveran
RegexpDerivatives.hs
# LANGUAGE TypeFamilies , FlexibleInstances # -- | -- Module : Data.FiniteStateMachine.RegexpDerivatives Copyright : ( C ) 2013 -- License : BSD3 -- -- Maintainer : -- Stability : experimental -- Portability : unknown -- -- Regular expressions over an arbitrary bounde...
null
https://raw.githubusercontent.com/bobatkey/foveran/e57463e3f6923becdf1249cd2fd0ccfcd566f7c5/src/Data/FiniteStateMachine/RegexpDerivatives.hs
haskell
| Module : Data.FiniteStateMachine.RegexpDerivatives License : BSD3 Maintainer : Stability : experimental Portability : unknown Regular expressions over an arbitrary bounded alphabet. | Regular expressions over an arbitrary alphabet. --------------------------------------...
# LANGUAGE TypeFamilies , FlexibleInstances # Copyright : ( C ) 2013 module Data.FiniteStateMachine.RegexpDerivatives ( Regexp () , (.>>.) , star , zeroOrMore , oneOrMore , tok , module Data.BooleanAlgebra ) where import Prelude hiding (all, any) import qual...
c324d27a86b9f9fe91003f66ac58b66fce5695f2732ccd98f06cb3082ab4e2a9
Dexterminator/clj-templates
page.cljs
(ns clj-templates.pages.main.page (:require [re-frame.core :refer [subscribe]] [clj-templates.components.header.component :refer [header]] [clj-templates.components.footer.component :refer [footer]] [clj-templates.components.error-boundary.component :refer [error-boundary]] ...
null
https://raw.githubusercontent.com/Dexterminator/clj-templates/705e652fece2455257e5008c12c712bb9f7802d1/src/cljs/clj_templates/pages/main/page.cljs
clojure
(ns clj-templates.pages.main.page (:require [re-frame.core :refer [subscribe]] [clj-templates.components.header.component :refer [header]] [clj-templates.components.footer.component :refer [footer]] [clj-templates.components.error-boundary.component :refer [error-boundary]] ...
b32d9fa3912d64d83b747cb493ab6a9e1fea97dda51684aff21ce26a1605c275
tallaproject/talla
talla_dir_certificate_manager.erl
%%% Copyright ( c ) 2016 The Talla Authors . All rights reserved . %%% Use of this source code is governed by a BSD-style %%% license that can be found in the LICENSE file. %%% %%% ---------------------------------------------------------------------------- @author < > %%% @doc Certificate Manager. %%% @end %%% ...
null
https://raw.githubusercontent.com/tallaproject/talla/72cfbd8f48705a7a390cac2b8310ab7550c21c15/apps/talla_dir/src/talla_dir_certificate_manager.erl
erlang
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. ---------------------------------------------------------------------------- @doc Certificate Manager. @end ---------------------------------------------------------------------------- API. Types.
Copyright ( c ) 2016 The Talla Authors . All rights reserved . @author < > -module(talla_dir_certificate_manager). -behaviour(gen_server). -export([start_link/0]). Generic Server Behaviour . -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, ...
f88c80c30ed16b1aebbeeb3d55ceda28c9b76a9c3391e917b922d9fde62e0095
cardmagic/lucash
disclosers.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; -------------------- ; DISCLOSE methods (define-method &disclose ((obj :closure)) (let ((id (template-id (closure-template obj))) (name (template-print-name (closure-template obj)))) (if name (list 'procedure id ...
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scheme/env/disclosers.scm
scheme
-------------------- DISCLOSE methods A heuristic that sometimes loses. (if (and (pair? name) (eq? (car name) '#t) ;Curried (vector? (closure-env obj))) (error-form (if (null? (cdddr name)) ...
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define-method &disclose ((obj :closure)) (let ((id (template-id (closure-template obj))) (name (template-print-name (closure-template obj)))) (if name (list 'procedure id ( caddr name ) ...
eefde39a078d528d00ed38bd705dcfe098638cb56d8ed8e2d76862bacce50289
aryx/yacfe
parsing_hacks.ml
* * Copyright ( C ) 2007 , 2008 Ecole des Mines de Nantes * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU General Public License ( GPL ) * version 2 as published by the Free Software Foundation . * * This program is distributed in the...
null
https://raw.githubusercontent.com/aryx/yacfe/86a4994822abca03ec9e03f1a7e60eca66db0a08/parsing_c/parsing_hacks.ml
ocaml
*************************************************************************** Some debugging functions *************************************************************************** In the following, there are some harcoded names of types or macros * but they are not used by our heuristics! They are just here to * ena...
* * Copyright ( C ) 2007 , 2008 Ecole des Mines de Nantes * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU General Public License ( GPL ) * version 2 as published by the Free Software Foundation . * * This program is distributed in the...