_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
a94075fae0f8552ac3a504a64380a812aea9293efddedb2ff8e752f65ae25b22
byorgey/AoC
06.hs
#!/usr/bin/env stack -- stack --resolver lts-19.28 script --package containers --package split # LANGUAGE FlexibleContexts # import Control.Arrow (second, (&&&), (>>>)) import Data.List.Split (splitOn) import Data.Map (Map) import qualified Data.Map as M import ...
null
https://raw.githubusercontent.com/byorgey/AoC/4c4a79c7ede5676ed11b3ece6241567b983d2613/2019/06/06.hs
haskell
stack --resolver lts-19.28 script --package containers --package split ---------------------------------------------------------- Given a list of (child,parent) pairs, build the corresponding forest. If we know for sure there is a single tree. ----------------------------------------------------------
#!/usr/bin/env stack # LANGUAGE FlexibleContexts # import Control.Arrow (second, (&&&), (>>>)) import Data.List.Split (splitOn) import Data.Map (Map) import qualified Data.Map as M import Data.Set (Set) import qualified Data.Set as S import ...
d4505f02e066904684d2e431dd75d4acd6f50c3c8da9229fb0584309b150265b
falsetru/htdp
37.3.4.scm
#lang racket (require "37.2.1.scm") ;; Data Analysis and Definitions: ;; A letter is a symbol in: 'a ... 'z plus '_ A word is a ( listof letter ) . ;; A body-part is one of the following symbols: (define PARTS '(head body right-arm left-arm right-leg left-leg)) ;; Constants: ;; some guessing words: (define WOR...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/37/37.3.4.scm
scheme
Data Analysis and Definitions: A letter is a symbol in: 'a ... 'z plus '_ A body-part is one of the following symbols: Constants: some guessing words: the number of words we can choose from chosen-word : word the word that the player is to guess status-word : word represents which letters the player has and...
#lang racket (require "37.2.1.scm") A word is a ( listof letter ) . (define PARTS '(head body right-arm left-arm right-leg left-leg)) (define WORDS '((h e l l o) (w o r l d) (i s) (a) (s t u p i d) (p r o g r a m) (a n d) (s h o u l d) (n e v e r) (b e) (u s e d) (...
b17e9221fe69dbda6b0239bc5c6c5321b4e1614d1e5659dc8f37ed8f9fa8c2fe
polymeris/cljs-aws
cognito_identity.cljs
(ns cljs-aws.cognito-identity (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "CognitoIdentity" "cognito-identity-2014-06-30.min.json")
null
https://raw.githubusercontent.com/polymeris/cljs-aws/3326e7c4db4dfc36dcb80770610c14c8a7fd0d66/src/cljs_aws/cognito_identity.cljs
clojure
(ns cljs-aws.cognito-identity (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "CognitoIdentity" "cognito-identity-2014-06-30.min.json")
f049d254df33712ffdfc722943f8b66ca84df49f01be388ea3f3a66581bf07d1
jeffshrager/biobike
bbl-examples-topics-orthologs.lisp
-*- Package : help ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :help) ;;; +=========================================================================+ | Copyright ( c ) 2002 - 2006 JP , , | ;;; | | ;;; ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Doc/bbl-examples-topics-orthologs.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :help) | Copyright ( c ) 2002 - 2006 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to ...
462b056ffc70aca461194ae65ac8fc3144ffdc7fa1f5a4fcaef6a98ef1556369
tuura/pangraph
SampleGraph.hs
{-# LANGUAGE OverloadedStrings #-} module Pangraph.Examples.SampleGraph ( smallGraph ) where import Pangraph import Data.Maybe(fromJust) smallGraph :: Pangraph smallGraph = fromJust graph where graph = makePangraph [makeVertex "n0" [("id","n0")] ,makeVertex "n1" [("id","n1")] ...
null
https://raw.githubusercontent.com/tuura/pangraph/ca896f25e5b49e0f59b69367125d01a2aa42beb3/src/Pangraph/Examples/SampleGraph.hs
haskell
# LANGUAGE OverloadedStrings #
module Pangraph.Examples.SampleGraph ( smallGraph ) where import Pangraph import Data.Maybe(fromJust) smallGraph :: Pangraph smallGraph = fromJust graph where graph = makePangraph [makeVertex "n0" [("id","n0")] ,makeVertex "n1" [("id","n1")] ,makeVertex "n2" [("id","n2")]]...
8f2ea3e5ba6007539617c01135ede904411cb1ff644f7545f6f1e210d600ea11
Bogdanp/racket-gui-easy
table.rkt
#lang racket/base (require racket/gui/easy racket/gui/easy/operator racket/string) (define @csv (@ "a,b")) (define @entries (@csv . ~> . (λ (csv) (for/vector ([row (in-list (string-split csv "\n"))]) (for/vector ([col (in-list (string...
null
https://raw.githubusercontent.com/Bogdanp/racket-gui-easy/f0f02a327e0b05598c9452852695088f21ac28d0/examples/table.rkt
racket
#lang racket/base (require racket/gui/easy racket/gui/easy/operator racket/string) (define @csv (@ "a,b")) (define @entries (@csv . ~> . (λ (csv) (for/vector ([row (in-list (string-split csv "\n"))]) (for/vector ([col (in-list (string...
d205a268e27b1a5da684f6111bb021e60764bf1c09724f766ade0738381e8a05
vernemq/vernemq
vmq_generic_msg_store_SUITE.erl
-module(vmq_generic_msg_store_SUITE). -include("src/vmq_generic_msg_store.hrl"). -export([ %% suite/0, init_per_suite/1, end_per_suite/1, init_per_group/2, end_per_group/2, init_per_testcase/2, end_per_testcase/2, all/0, groups/0 ]...
null
https://raw.githubusercontent.com/vernemq/vernemq/eb1a262035af47e90d9edf07f36c1b1503557c1f/apps/vmq_generic_msg_store/test/vmq_generic_msg_store_SUITE.erl
erlang
suite/0, =================================================================== common_test callbacks =================================================================== {group, vmq_storage_engine_dets}, Actual Tests we should get back the exact same list delete all @doc test that the message store functions can...
-module(vmq_generic_msg_store_SUITE). -include("src/vmq_generic_msg_store.hrl"). -export([ init_per_suite/1, end_per_suite/1, init_per_group/2, end_per_group/2, init_per_testcase/2, end_per_testcase/2, all/0, groups/0 ]). -export([insert_d...
a46c57cd628144b475ba1a74f294fc4c0a936d532d8b02c6f012c1a1a8bf58df
lipas-liikuntapaikat/lipas
events.cljs
(ns lipas.ui.user.events (:require [ajax.core :as ajax] [re-frame.core :as re-frame])) (re-frame/reg-event-fx ::get-users-sports-sites (fn [{:keys [db]} _] (let [permissions (-> db :user :login :permissions)] {:dispatch-n (into [] (map (fn [lipas-id] [:lipas.ui.sp...
null
https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/02452fd4f9e93e0b4c844d8bb600a50aa9b3be71/webapp/src/cljs/lipas/ui/user/events.cljs
clojure
(ns lipas.ui.user.events (:require [ajax.core :as ajax] [re-frame.core :as re-frame])) (re-frame/reg-event-fx ::get-users-sports-sites (fn [{:keys [db]} _] (let [permissions (-> db :user :login :permissions)] {:dispatch-n (into [] (map (fn [lipas-id] [:lipas.ui.sp...
e0350b9efc1c9d61e4459b32dcc1f106dfabd67a1bb6d952a83f0c5c7911345d
fission-codes/fission
ClientError.hs
# OPTIONS_GHC -fno - warn - orphans # module Web.UCAN.Internal.Orphanage.ClientError () where import RIO import Servant.Client.Core instance Display ClientError where display = displayShow
null
https://raw.githubusercontent.com/fission-codes/fission/ae177407dccc20be67948a901956b99f40d37ac8/hs-ucan/library/Web/UCAN/Internal/Orphanage/ClientError.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Web.UCAN.Internal.Orphanage.ClientError () where import RIO import Servant.Client.Core instance Display ClientError where display = displayShow
6012d21d43f2801d8a6b211cf3b5636aa138a22746bf07a1569b14f18042bbd0
dongcarl/guix
cuirass.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2016 < > Copyright © 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2017 , 2020 < > Copyright © 2017 Jan Nieuwenhuizen < > Copyright © 2018 , 2019 < > Copyright © 2018 Clément < > ;;; ;;; This file is part of GNU Guix...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/services/cuirass.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify (at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR ...
Copyright © 2016 < > Copyright © 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2017 , 2020 < > Copyright © 2017 Jan Nieuwenhuizen < > Copyright © 2018 , 2019 < > Copyright © 2018 Clément < > it under the terms of the GNU General Public License as published by the Free Software F...
504920df5f2501d71275b481f8c5549cab1ec1e8982dcea948cbda10be4439f6
jeapostrophe/exp
df.rkt
#lang racket (require (for-syntax racket/function) racket/async-channel racket/stxparam) (provide (all-defined-out)) ; general (define-syntax-rule (while cond e ...) (let loop () (when cond (let () e ... (loop))))) (define (vector-ormap f v) (for/or ([e (in-vector v)]) (f e))) ; tee-channels ...
null
https://raw.githubusercontent.com/jeapostrophe/exp/43615110fd0439d2ef940c42629fcdc054c370f9/reactive/df.rkt
racket
general tee-channels XXX thread resume? XXX could reuse reply-ch n channel get Reactors Lifting XXX optimize constants Events Cells XXX Race Examples
#lang racket (require (for-syntax racket/function) racket/async-channel racket/stxparam) (provide (all-defined-out)) (define-syntax-rule (while cond e ...) (let loop () (when cond (let () e ... (loop))))) (define (vector-ormap f v) (for/or ([e (in-vector v)]) (f e))) (struct a-tee-channel (ma...
169e218278fe0a5cc9d252fede93064ab71a29261ccd692f4122e07a02bb85d6
fulcro-legacy/semantic-ui-wrapper
ui_modal_actions.cljs
(ns fulcrologic.semantic-ui.modules.modal.ui-modal-actions (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/modules/Modal/ModalActions" :default ModalActions])) (def ui-modal-actions "A modal can contain a row of actions. Props: - actions (custom): Array ...
null
https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/modules/modal/ui_modal_actions.cljs
clojure
(ns fulcrologic.semantic-ui.modules.modal.ui-modal-actions (:require [fulcrologic.semantic-ui.factory-helpers :as h] ["semantic-ui-react/dist/commonjs/modules/Modal/ModalActions" :default ModalActions])) (def ui-modal-actions "A modal can contain a row of actions. Props: - actions (custom): Array ...
4b4e8927a6b5d9b8ea9715866ca64037b623246e7a16c8a509811f340c1ca140
PacktPublishing/Haskell-High-Performance-Programming
stencil.hs
# LANGUAGE QuasiQuotes # import Data.Array.Repa as Repa import Data.Array.Repa.Stencil import Data.Array.Repa.Stencil.Dim2 import Data.Bits ((.|.)) image :: Array D DIM2 Double image = fromFunction (ix2 5 5) $ \(Z :. x :. y) -> if x == 0 || x == 2 || y == 2 then 1 else 0 stencil :: Stencil DIM2 Double stencil = ...
null
https://raw.githubusercontent.com/PacktPublishing/Haskell-High-Performance-Programming/2b1bfdb8102129be41e8d79c7e9caf12100c5556/Chapter05/stencil.hs
haskell
# LANGUAGE QuasiQuotes # import Data.Array.Repa as Repa import Data.Array.Repa.Stencil import Data.Array.Repa.Stencil.Dim2 import Data.Bits ((.|.)) image :: Array D DIM2 Double image = fromFunction (ix2 5 5) $ \(Z :. x :. y) -> if x == 0 || x == 2 || y == 2 then 1 else 0 stencil :: Stencil DIM2 Double stencil = ...
16c441c69bd8d030c85967e0ddc71ec72ffe1e0a6e89fa07825f2b5dd87fed50
vibrato-team/vibrato-programming-language
TAC.hs
module Backend.TAC.TAC where import qualified AST import Data.Maybe class SymEntryCompatible a where getSymID :: a -> String data ThreeAddressCode b = ThreeAddressCode { tacOperation :: Operation, tacLvalue :: Maybe (Operand Id b), tacRvalue1 :: Maybe (Operand Id b), tacRvalue2 :: Maybe (Operand Id ...
null
https://raw.githubusercontent.com/vibrato-team/vibrato-programming-language/f6d98c2686604a91cd99307bc3fdc06828c7f538/src/Backend/TAC/TAC.hs
haskell
Arithmetic | Addition | Substraction | Unary minus | Multiplication | Division | Modulus Logical | Logical and | Logical or | Logical not Comparators > 0 Greater than | Greater than or equal | Less than | Less than or equal | Equal | Not equal Jumping | goto <label> | if <var> goto <label> | if ~...
module Backend.TAC.TAC where import qualified AST import Data.Maybe class SymEntryCompatible a where getSymID :: a -> String data ThreeAddressCode b = ThreeAddressCode { tacOperation :: Operation, tacLvalue :: Maybe (Operand Id b), tacRvalue1 :: Maybe (Operand Id b), tacRvalue2 :: Maybe (Operand Id ...
014cb5c9b005c5c5a5c71e709bbbf7f5f0218b86dd31fc205a25af98aaa4401a
Deducteam/Logipedia
deps.mli
open Extras open Kernel open Parsing module QSet : Set.S with type elt = string (** Sets of strings. *) val dep_of_entry : Basic.mident list -> Entry.entry -> QSet.t (** [dep_of_entry mds e] compute the direct dependencies of [e] which are not part of [mds]. *) val deps_of_entry : Basic.mident -> Entry.entry -> ...
null
https://raw.githubusercontent.com/Deducteam/Logipedia/09797a35ae36ab671e40e615fcdc09a7bba69134/src/core/deps.mli
ocaml
* Sets of strings. * [dep_of_entry mds e] compute the direct dependencies of [e] which are not part of [mds]. * [deps_of_md ?transitive md] returns the set of modules id on which [md] depends. If [?transitive] is set to [true], the transitive closure is computed.
open Extras open Kernel open Parsing module QSet : Set.S with type elt = string val dep_of_entry : Basic.mident list -> Entry.entry -> QSet.t val deps_of_entry : Basic.mident -> Entry.entry -> Basic.name list * [ deps_of_entry m i e ] computes the list of all direct down dependencies of a entry [ e ] with nam...
bf807e8a25c976b8ee4d4cd311c28147ca930e68b772de81395e1b64a7efab20
yanatan16/fyra
base_relvars.clj
(ns real-estate.base-relvars (:require [fyra.sweet :refer (defrelvar)] [real-estate.types :refer :all])) (defrelvar Property "Basic property information" {:address Address :price Price :photo Filename :agent Agent :date-registered DateTime} :candidate [:address]) (defrelvar Offer "Of...
null
https://raw.githubusercontent.com/yanatan16/fyra/50e7272fd5e704d41cd077fe4c8655584c8ce908/example/real_estate/base_relvars.clj
clojure
(ns real-estate.base-relvars (:require [fyra.sweet :refer (defrelvar)] [real-estate.types :refer :all])) (defrelvar Property "Basic property information" {:address Address :price Price :photo Filename :agent Agent :date-registered DateTime} :candidate [:address]) (defrelvar Offer "Of...
7929e045b5fc52bd5ef9f4cea03f93f5563eb5dba384036b521180ba629d7610
VisionsGlobalEmpowerment/webchange
core.cljs
(ns webchange.interpreter.core (:require-macros [cljs.core.async.macros :refer [go]]) (:require [re-frame.core :as re-frame] [webchange.common.events :as ce] [cljs-http.client :as http] [cljs.core.async :refer [<!]] ["gsap/umd/TweenMax" :refer [TweenMax SlowMo]] [webchange.interpreter.render...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/02f21a019c1063ceaf0b64c9722a28de85b34ef8/src/cljs/webchange/interpreter/core.cljs
clojure
[easing] (case easing ToDo: Test :loop param ToDo: Test :skippable param ToDo: Implement :ease param
(ns webchange.interpreter.core (:require-macros [cljs.core.async.macros :refer [go]]) (:require [re-frame.core :as re-frame] [webchange.common.events :as ce] [cljs-http.client :as http] [cljs.core.async :refer [<!]] ["gsap/umd/TweenMax" :refer [TweenMax SlowMo]] [webchange.interpreter.render...
13f919171abc6a0658e5ed311da3eda3ebf57c86b860a6b3d4881f74e3455dba
hercules-ci/hercules-ci-agent
Instances.hs
# LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Define instances for C++ types in the Context module that ca n't be in that module because of TH staging restrictions . module Hercules.CNix.Std.String.Instances () where import Data.Semigroup (Semigroup ((<>))) import He...
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/5d29ff1d8959d15180fb2a36620a50777dca28e3/hercules-ci-cnix-store/src/Hercules/CNix/Std/String/Instances.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -Wno - orphans # | Define instances for C++ types in the Context module that ca n't be in that module because of TH staging restrictions . module Hercules.CNix.Std.String.Instances () where import Data.Semigroup (Semigroup ((<>))) import He...
68cab69503660c5714bf6dc16ff25fd2a672e6cc0a2876c5483bf622fb3f6408
jgm/pandoc-types
make_travis_yml.hs
#!/usr/bin/env runghc NB : This code deliberately avoids relying on non - standard packages import Control.Monad import Data.List import Data.Version import System.Environment import System.Exit import System.IO import Distribution.PackageDescription.Parse (readPackageDescription) import Distribution.PackageDescri...
null
https://raw.githubusercontent.com/jgm/pandoc-types/0158cd0e2a2ca9d6f14389a1a57bc64cab45a7dd/make_travis_yml.hs
haskell
-------------------------------------------------------------------------- travis.yml generation starts here version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]\"" HEAD HEAD
#!/usr/bin/env runghc NB : This code deliberately avoids relying on non - standard packages import Control.Monad import Data.List import Data.Version import System.Environment import System.Exit import System.IO import Distribution.PackageDescription.Parse (readPackageDescription) import Distribution.PackageDescri...
89ac1220760b8aee119fc59262563195695a2591acd61a8c7f38dc81b488367c
tek/ribosome
VariableWatcher.hs
|Interpreters for ' VariableWatcher ' module Ribosome.Interpreter.VariableWatcher where import Conc (interpretAtomic, interpretLockReentrant, lockOrSkip_) import qualified Data.Map.Strict as Map import Data.MessagePack (Object (ObjectNil)) import qualified Ribosome.Effect.VariableWatcher as VariableWatcher import R...
null
https://raw.githubusercontent.com/tek/ribosome/ca2e87d262adadc30c72941d3087fff7da97addb/packages/ribosome/lib/Ribosome/Interpreter/VariableWatcher.hs
haskell
|Interpret 'VariableWatcher' by doing nothing. |Fetch the current value of the watched variable and call the handler if its value has changed. |This is a reactive system that is triggered by several frequently sent autocommands to inspect a user-defined set of When a variable's value has been observed to have chang...
|Interpreters for ' VariableWatcher ' module Ribosome.Interpreter.VariableWatcher where import Conc (interpretAtomic, interpretLockReentrant, lockOrSkip_) import qualified Data.Map.Strict as Map import Data.MessagePack (Object (ObjectNil)) import qualified Ribosome.Effect.VariableWatcher as VariableWatcher import R...
d7f69f9d2a3c3bd2734ae786f14291e650bbb34fb72cae1c799e95ddc5bcbc85
liquidz/jubot
handler.clj
(ns jubot.handler "Jubot handler utilities." (:require [clojure.string :as str]) (:refer-clojure :exclude [comp])) (def ^{:const true :doc "The handler name regular expression for collecting handler functions automatically."} HANDLER_REGEXP #"^.*-handler$") (defn regexp "Choose and call h...
null
https://raw.githubusercontent.com/liquidz/jubot/0a2d7b18db801c3fe72f7ff216e8381df9b40815/src/jubot/handler.clj
clojure
(ns jubot.handler "Jubot handler utilities." (:require [clojure.string :as str]) (:refer-clojure :exclude [comp])) (def ^{:const true :doc "The handler name regular expression for collecting handler functions automatically."} HANDLER_REGEXP #"^.*-handler$") (defn regexp "Choose and call h...
2a145cbc26144edfc4416eb50c4a1cc3b77d779ca397748f28374b46d3be3b28
status-im/status-lib-archived
delivery.cljs
(ns status-im.protocol.delivery (:require [cljs.core.async :refer [<! timeout]] [cljs-time.core :as t] [cljs-time.coerce :refer [to-long from-long]] [status-im.utils.logging :as log] [status-im.protocol.state.state :refer [connectio...
null
https://raw.githubusercontent.com/status-im/status-lib-archived/0b07f54a6b8dc17490a74797fa04dae75e5668ca/src/cljs/status_im/protocol/delivery.cljs
clojure
(ns status-im.protocol.delivery (:require [cljs.core.async :refer [<! timeout]] [cljs-time.core :as t] [cljs-time.coerce :refer [to-long from-long]] [status-im.utils.logging :as log] [status-im.protocol.state.state :refer [connectio...
682569ac9cb654c3510691c1b5f3d13556a2f43c3b1a56f6ec89bd7a92758c5b
savonet/ocaml-posix
gen_constants_c.ml
module Types = Posix_base.Generators.Types (struct module Types = Posix_uname_constants.Def let c_headers = {| #include <sys/utsname.h> #define SYSNAME_LEN (sizeof(((struct utsname*)0)->sysname)) #define NODENAME_LEN (sizeof(((struct utsname*)0)->nodename)) #define RELEASE_LEN (sizeof(((struct utsname*)0)->re...
null
https://raw.githubusercontent.com/savonet/ocaml-posix/d46d011de16154b34324eae6ee6e7010138cf4af/posix-uname/src/generator/gen_constants_c.ml
ocaml
module Types = Posix_base.Generators.Types (struct module Types = Posix_uname_constants.Def let c_headers = {| #include <sys/utsname.h> #define SYSNAME_LEN (sizeof(((struct utsname*)0)->sysname)) #define NODENAME_LEN (sizeof(((struct utsname*)0)->nodename)) #define RELEASE_LEN (sizeof(((struct utsname*)0)->re...
e962fac2e114047cabe573e4b9637f786f31bf69fad3e2dbc749a25916fd7046
webyrd/mediKanren
string-search.rkt
#lang racket (provide find-ids-named find-concepts-named string-search-init-rel make-stsopt stsopt-t param-fd-input-binary test:read-name-corpus test:suffix:corpus2->index-suffixes (prefix-out test: build-string-index-via-codec-and-write) (prefix-out test: build-string-index-via-codec) (prefix-out test: ens...
null
https://raw.githubusercontent.com/webyrd/mediKanren/23a4ed6997b0c76c507d867659198fe2ba58f88b/medikanren2/string-search.rkt
racket
*** routines for index building *** in-name-corpus build-string-index-via-codec find-ids-named Consult the string index associated with rel to find the ids according to options stsopt. If the associated string index has not been previously prepared, fail. find-ids-named Consult the string index associated wit...
#lang racket (provide find-ids-named find-concepts-named string-search-init-rel make-stsopt stsopt-t param-fd-input-binary test:read-name-corpus test:suffix:corpus2->index-suffixes (prefix-out test: build-string-index-via-codec-and-write) (prefix-out test: build-string-index-via-codec) (prefix-out test: ens...
c339fa8190bc7cfcdf46311476efc5e107efdfddb1d870287dd6519b5ef3b1c8
facebook/pyre-check
algorithms.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/aa32279bd58810b10e2704dd12d97387b181128d/source/algorithms.mli
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
bed5c132a0723d37b86ad597eb2d38e4cd3866b55557f32d87efd2aaa1231643
mirage/ocaml-hvsock
cstructs.ml
* Copyright ( C ) 2015 < > * Copyright ( C ) 2016 Docker Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFT...
null
https://raw.githubusercontent.com/mirage/ocaml-hvsock/6242f89010e79ae0e658880e4ce773587c815c9b/lwt/cstructs.ml
ocaml
for thread safety. trim the length either t is consumed and we only need ts, or t has data remaining in which case we're finished
* Copyright ( C ) 2015 < > * Copyright ( C ) 2016 Docker Inc * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFT...
254dbca42074d940fe40541e7fabec7adeadbeb75f287b0499440d043fc726eb
typelead/etlas
Parser.hs
{-# LANGUAGE CPP #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PatternGuards # ----------------------------------------------------------------------------- -- | Module : Distribution . Parsec . -- License : BSD3 -- -- Maintainer : --...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas-cabal/Distribution/Parsec/Parser.hs
haskell
# LANGUAGE CPP # --------------------------------------------------------------------------- | License : BSD3 Maintainer : Portability : portable * Types * Grammar and parsing $grammar * Internal | Get lexer warnings accumulated so far | Set Alex code i.e. the mode "state" lexer is...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PatternGuards # Module : Distribution . Parsec . module Distribution.Parsec.Parser ( Field(..), Name(..), FieldLine(..), SectionArg(..), readFields, readFields', #ifdef CABAL_PARSEC_DEBUG pa...
ca829090a82f45896fedcdc898642c9f55f2c46e0455b2b62ba3935bbe6ab8db
qiaoyuguo/practice
hw5test.rkt
#lang racket ;; Programming Languages Homework5 Simple Test ;; Save this file to the same directory as your homework file ;; These are basic tests. Passing these tests does not guarantee that your code will pass the actual homework grader ;; Be sure to put your homework file in the same folder as this test file. ;; Un...
null
https://raw.githubusercontent.com/qiaoyuguo/practice/100ebd324018238fe542b9a1c4de1b0b64b7e911/programming-languages/assign5/hw5test.rkt
racket
Programming Languages Homework5 Simple Test Save this file to the same directory as your homework file These are basic tests. Passing these tests does not guarantee that your code will pass the actual homework grader Be sure to put your homework file in the same folder as this test file. Uncomment the line below a...
#lang racket (require "hw5.rkt") (require rackunit) (define tests (test-suite "Sample tests for Assignment 5" (check-equal? (racketlist->mupllist (list (int 3) (int 4))) (apair (int 3) (apair (int 4) (aunit))) "racketlist->mupllist test") (check-equal? (mupllist->racketlist (apair (int 3) (apair (...
f3adb6de6758210ec3d052e0734ea5b59da63435ddab2195085eecb67b3d5846
AntidoteDB/antidote_aql
ipa_fk_SUITE.erl
-module(ipa_fk_SUITE). -include_lib("aql.hrl"). -include_lib("parser.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(SHADOW_AB, {[{'FkC', 'FkB'}, {'FkB', 'FkA'}], ?CRDT_INTEGER}). -define(SHADOW_ABC, {[{'FkD', 'FkC'}, {'FkC', 'FkB'}, {'FkB', 'FkA'}], ?CRDT_INTEGER}...
null
https://raw.githubusercontent.com/AntidoteDB/antidote_aql/e7ef4913d233c2fee8ebff582d91fe3e2e95786c/test/ipa_fk_SUITE.erl
erlang
aql:stop(), cannot create table that points to a non-existent table cannot create a table that points to a non-existent column cannot create a table that points to a non-primary key column bottom level insert will not be visible because a new version for
-module(ipa_fk_SUITE). -include_lib("aql.hrl"). -include_lib("parser.hrl"). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -define(SHADOW_AB, {[{'FkC', 'FkB'}, {'FkB', 'FkA'}], ?CRDT_INTEGER}). -define(SHADOW_ABC, {[{'FkD', 'FkC'}, {'FkC', 'FkB'}, {'FkB', 'FkA'}], ?CRDT_INTEGER}...
3a2a34b6ac47ce452abe62818ddd1b5d26883ce9b57e8a81118039217d9ceaeb
protz/mezzo
Signatures.ml
module type NAME = sig (* A type of names. *) type name (* Maps whose keys are names. *) module Map : sig type 'a t val empty: 'a t val add: name -> 'a -> 'a t -> 'a t val find: name -> 'a t -> 'a val mem: name -> 'a t -> bool end (* [fresh x] produces a new name, which serves as a re...
null
https://raw.githubusercontent.com/protz/mezzo/4e9d917558bd96067437116341b7a6ea02ab9c39/alphaLib/Signatures.ml
ocaml
A type of names. Maps whose keys are names. [fresh x] produces a new name, which serves as a replacement for the previous name [x]. Passing [x] to [fresh] allows it to retain some information, such as a printing hint, or a sort (if there are several sorts of names). TEMPORARY not yet implemented ...
module type NAME = sig type name module Map : sig type 'a t val empty: 'a t val add: name -> 'a -> 'a t -> 'a t val find: name -> 'a t -> 'a val mem: name -> 'a t -> bool end val fresh: unit -> name end module type PATTERN = sig type ('x, 'i, 'o) pat val map: ('x1 -> 'x2) ->...
6db94e36211343a2cac7af3b9f5bb842feb353f529c76eead1283d04d2f43747
GaloisInc/macaw
PPCReg.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE Template...
null
https://raw.githubusercontent.com/GaloisInc/macaw/ff894f9286f976d0ab131325bea902ef6275aad2/macaw-ppc/src/Data/Macaw/PPC/PPCReg.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE TypeSynonymInstances # | Defines the register types for PowerPC, along with some helpers | The register type for PowerPC, parameterized by architecture to support both PowerPC32 and PowerPC64 Currently, we are only considering the n...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeFam...
b5890393c076090124a5962d18ace64215f503d1075d3f0f4188501f834882c3
Ericson2314/lighthouse
CoordTrans.hs
-------------------------------------------------------------------------------- -- | Module : Graphics . Rendering . OpenGL.GL.CoordTrans Copyright : ( c ) 2002 - 2006 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : -- Stability : stable -- Portability :...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/OpenGL/Graphics/Rendering/OpenGL/GL/CoordTrans.hs
haskell
------------------------------------------------------------------------------ | License : BSD-style (see the file libraries/OpenGL/LICENSE) Maintainer : Stability : stable Portability : portable ------------------------------------------------------------------------------ * Matrices * Normal Tr...
Module : Graphics . Rendering . OpenGL.GL.CoordTrans Copyright : ( c ) 2002 - 2006 This module corresponds to section 2.11 ( Coordinate Transformations ) of the OpenGL 2.1 specs . module Graphics.Rendering.OpenGL.GL.CoordTrans ( * Controlling the Viewport depthRange, Position(..), Size(....
832cb238a29c7374d186c148bc2d1f7c3b1cc7795191fa03cb5a74d9af401e15
IndecisionTree/adventofcode2022
Tests.hs
{-# LANGUAGE OverloadedStrings #-} module Tests (test) where import AOC (Solution (..), showSolution) import Data.Text qualified as T import Data.Text.IO qualified as T import Data.Void (Void) import System.FilePath ((<.>), (</>)) import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (testCase, (@=?)) impor...
null
https://raw.githubusercontent.com/IndecisionTree/adventofcode2022/3ef082dc306acca983ff1c4e9845c0638cc6f390/runner/Tests.hs
haskell
# LANGUAGE OverloadedStrings # | Test solution via tests in 'data/examples/(Day #)/part{1,2}.txt' | Given an input parser, part1 or part2 function, and a test input,
module Tests (test) where import AOC (Solution (..), showSolution) import Data.Text qualified as T import Data.Text.IO qualified as T import Data.Void (Void) import System.FilePath ((<.>), (</>)) import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (testCase, (@=?)) import Test.Tasty.Ingredients (tryIngred...
0ed2eb5f30798387461f9602433cc8f47e1eeb6a86777ed223760ac25a217739
astrada/ocaml-extjs
ext_data_writer_Writer.ml
class type t = object('self) inherit Ext_Base.t method getRecordData : Ext_data_Model.t Js.t -> Ext_data_Operation.t Js.t Js.optdef -> _ Js.t Js.meth method write : Ext_data_Request.t Js.t -> Ext_data_Request.t Js.t Js.meth end class type configs = object('self) inherit Ext_Base.configs method d...
null
https://raw.githubusercontent.com/astrada/ocaml-extjs/77df630a75fb84667ee953f218c9ce375b3e7484/lib/ext_data_writer_Writer.ml
ocaml
class type t = object('self) inherit Ext_Base.t method getRecordData : Ext_data_Model.t Js.t -> Ext_data_Operation.t Js.t Js.optdef -> _ Js.t Js.meth method write : Ext_data_Request.t Js.t -> Ext_data_Request.t Js.t Js.meth end class type configs = object('self) inherit Ext_Base.configs method d...
8842dbcc84595f2aae4cdf57812e4e7c8e7fb20a3fb7a361decf01467bcb1904
michalmarczyk/flexvec
project.clj
(defproject flexvec "0.0.8" :description "RRB-Trees for Clojure(Script) -- see Bagwell & Rompf" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"]] :warn-on-reflection true)
null
https://raw.githubusercontent.com/michalmarczyk/flexvec/9bb05476df02fd7ff19983a7644342b84d7f0a21/project.clj
clojure
(defproject flexvec "0.0.8" :description "RRB-Trees for Clojure(Script) -- see Bagwell & Rompf" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"]] :warn-on-reflection true)
799af95e447b24b63f11ea6eb96b840c7765bca8211185ba9194a32ac8a4d673
bakul/s9fes
soccat.scm
#! /usr/local/bin/s9 ; soccat -- connect to remote hosts By , 2010 ; Placed in the Public Domain ; ; Usage: soccat [-i] host port/service ; ; Read a request from default input and send it to the specific ; remote host. Simultaneously pass input from the remote host to ; the default output. In interactive mode rec...
null
https://raw.githubusercontent.com/bakul/s9fes/74c14c0db5f07f5bc6d94131e9e4ee15a29275aa/prog/soccat.scm
scheme
soccat -- connect to remote hosts Placed in the Public Domain Usage: soccat [-i] host port/service Read a request from default input and send it to the specific remote host. Simultaneously pass input from the remote host to the default output. In interactive mode reconnect automatically when the remote side br...
#! /usr/local/bin/s9 By , 2010 (load-from-library "read-line.scm") (load-from-library "displaystar.scm") (load-from-library "flush-output-port.scm") (load-from-library "parse-optionsb.scm") (define (soccat reconnect host port) (let* ((s (sys:inet-connect host port)) (in (sys:make-input-port s)) ...
7a20beb5a582a8de38db006e26ce7478b0668ae552252973fcc210f2d460457a
politrons/Dive_into_Haskell
MySQLConnector.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE MultiParamTypeClasses # | Author : working in top of library MySQL - Haskell -haskell The version of MySQL - Haskell 0.8.3.0 only works properly with MySQL server 5.5 Connector working in top of library MySQL-Haskell -haskell The version of MySQL-Haskell ...
null
https://raw.githubusercontent.com/politrons/Dive_into_Haskell/fd9dec14b87aecba0b3561385c1d75cf969546a4/src/connectors/MySQLConnector.hs
haskell
# LANGUAGE OverloadedStrings # | MySQL CRUD ------------- | User --------- | Function for select all. We select we use [queryStmt] operator followed by the statement created previously. For the prepare statement we use the [prepareStmt] operator followed by the connection and query. For all this operations ...
# LANGUAGE MultiParamTypeClasses # | Author : working in top of library MySQL - Haskell -haskell The version of MySQL - Haskell 0.8.3.0 only works properly with MySQL server 5.5 Connector working in top of library MySQL-Haskell -haskell The version of MySQL-Haskell 0.8.3.0 only works properly with My...
57c300f2fd5deaa39cdcb187431b4e151c3d31e169cb63143df870fc19017558
lvh/caesium
sign_test.clj
(ns caesium.crypto.sign-test (:require [caesium.crypto.sign :as s] [caesium.byte-bufs :as bb] [caesium.vectors :refer [hex-resource]] [clojure.test :refer [deftest is testing]] [caesium.test-utils :refer [const-test]])) (const-test s/bytes 64 s/seedbytes 32 s/public...
null
https://raw.githubusercontent.com/lvh/caesium/cb90a4325fa48a2e4fb6cad810f340125a53fc57/test/caesium/crypto/sign_test.clj
clojure
(ns caesium.crypto.sign-test (:require [caesium.crypto.sign :as s] [caesium.byte-bufs :as bb] [caesium.vectors :refer [hex-resource]] [clojure.test :refer [deftest is testing]] [caesium.test-utils :refer [const-test]])) (const-test s/bytes 64 s/seedbytes 32 s/public...
d293734172eb83d7cc12d54d9f35f960a556d6203d3c62f38f713da8aa1ab048
thephoeron/quipper-language
Main.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== -- | Author : -- An implementation of the...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/Algorithms/USV/Main.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== | problem is an /n/×/n/ integer matrix /B/ with the property that the lattice /L(B)/ spanned by /B/ contains a unique vector /u/ s...
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the Author : An implementation of the Unique Shortest Vector ( USV ) algorithm . The input to the Unique Shortest Vector longer then /u/ by a factor of /n/[sup 3 ] . The The algorithm proceeds in two steps : first it uses ’s meth...
ab76bac98d41aa8599a1e3e7f022cbb42174a64ec9c0ff501aa88590c3b052bc
cirodrig/triolet
THRecord.hs
| The TH functions in this module automate the task of creating large , -- single-constructor, record data types. -- To use this module , first create a /specification/ module that exports -- a data type specification. Then create an /implementation/ module that -- declares the data type using 'declareRecord', and...
null
https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/Common/THRecord.hs
haskell
single-constructor, record data types. a data type specification. Then create an /implementation/ module that declares the data type using 'declareRecord', and possibly declares other functions using the other code generation functions. * Creating record data type specifications * Code generation fields | Cre...
| The TH functions in this module automate the task of creating large , To use this module , first create a /specification/ module that exports # LANGUAGE TemplateHaskell , ScopedTypeVariables # module Common.THRecord (RecordDef, recordDef, uniformRecord, uniformStrictRecord, uniformNonStrictRecord,...
f3837b1a19ad02176c1af865fe218404b1be2b1a7d854b55e4aed243369a2c7f
google/ormolu
SpanStream.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE GeneralizedNewtypeDeriving # | Build span stream from AST . module Ormolu.Printer.SpanStream ( SpanStream (..), mkSpanStream, ) where import Data.DList (DList) import qualified Data.DList as D import Data.Data (Data) import Data.Generics (everything, ext2Q) imp...
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/src/Ormolu/Printer/SpanStream.hs
haskell
# LANGUAGE DeriveDataTypeable # | A stream of 'RealSrcSpan's in ascending order. This allows us to tell element and comment we're considering for printing. | Create 'SpanStream' from a data structure containing \"located\" elements. | Data structure to inspect (AST)
# LANGUAGE GeneralizedNewtypeDeriving # | Build span stream from AST . module Ormolu.Printer.SpanStream ( SpanStream (..), mkSpanStream, ) where import Data.DList (DList) import qualified Data.DList as D import Data.Data (Data) import Data.Generics (everything, ext2Q) import Data.List (sortOn) import Data.T...
023ccc3b9ffadda464121820e420dcc034bc2b4b278ba55fa49c0c8587235ac0
bitonic/tog
Pretty.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoImplicitPrelude # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Tog.Term.Pretty () where import qualified Data.HashSet as HS import Tog.Prelude import Tog.Names import Tog.PrettyPrint ...
null
https://raw.githubusercontent.com/bitonic/tog/0da3b6ec82ac1fa3ce91d7f9b683a8ddedfd732f/src/Tog/Term/Pretty.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module Tog.Term.Pretty () where import qualified Data.HashSet as HS import Tog.Prelude import Tog.Names import Tog.PrettyPrint ((<+>), ($$), (</>), ...
c7ac8f3a5fcea3f053d24971e9130f018959e395bbdf0e3b9bb04c99c7420d2e
fadbadml-dev/FADBADml
exampleFAD.ml
(**************************************************************************) (* *) (* FADBADml *) (* *) ...
null
https://raw.githubusercontent.com/fadbadml-dev/FADBADml/bd5668433b8ad297aa70e91a032953d55923b533/example/exampleFAD.ml
ocaml
************************************************************************ FADBADml ...
OCaml port by and Based on FADBAD++ , written by and Copyright 2019 - 2020 This file is distributed under the terms of the CeCILL - C license . module Op = Fadbad.OpFloat module F = Fadbad.F(Op) let func x y = let...
085ed1b0420f0b1b49f714ddba5a7b289bc1abce2988b3cdd909425c2ea1d882
plow-technologies/hspec-golden-aeson
GenericSpecs.hs
| Module : Test . Aeson . GenericSpecs Description : Export all necessary functions Copyright : ( c ) Plow Technologies , 2016 License : : Stability : Beta This package provides tools for testing serialization . - Test that ' ToJSON ' and ' FromJSON ' instances are isomorphic . ...
null
https://raw.githubusercontent.com/plow-technologies/hspec-golden-aeson/2d8ed8ea6edad8e2d2a4f0ea1017b388d93c467d/src/Test/Aeson/GenericSpecs.hs
haskell
* Arbitrary testing * ToADTArbitrary testing * Make Files * Util * re-exports | run roundtrip and golden test for a type. sampleSize is used only when creating the golden file. When it is compared, the sampleSize is derived from the file. | 'roundtripAndGoldenSpecs' with custom settings. | run roundtrip and g...
| Module : Test . Aeson . GenericSpecs Description : Export all necessary functions Copyright : ( c ) Plow Technologies , 2016 License : : Stability : Beta This package provides tools for testing serialization . - Test that ' ToJSON ' and ' FromJSON ' instances are isomorphic . ...
6c26059564649551bf4dae36485e1d018f18f8fd011844a181ba5d229e6cf943
dpiponi/Wattage
ex1.hs
import Formal as F import Homogeneous as H import Multivariate as M import Data.Function.Memoize import Data.Array as A import Debug.Trace -- Some definitions that make use of self-reference -- lambertW = do let x = F.var :: Formal Q let u = [0, 1] ... F.integrate (1 / (x + exp u)) print $ F.truncate 15 u pr...
null
https://raw.githubusercontent.com/dpiponi/Wattage/9c0f9a729978574d2ca686183e2792b9f2e91f21/examples/ex1.hs
haskell
Some definitions that make use of self-reference CLASSICAL HURWITZ NUMBERS AND RELATED COMBINATORICS [2]
import Formal as F import Homogeneous as H import Multivariate as M import Data.Function.Memoize import Data.Array as A import Debug.Trace lambertW = do let x = F.var :: Formal Q let u = [0, 1] ... F.integrate (1 / (x + exp u)) print $ F.truncate 15 u print $ F.truncate 15 $ inverse $ (x * exp x) Evaluatin...
8624613d6269b371d9462ad69d1577128d954e9f9d22717cab22726cf7c37ed8
MinaProtocol/mina
unsigned_extended.mli
open Intf type nonrec uint64 = uint64 type nonrec uint32 = uint32 module type S = S module Extend : F module UInt64 : sig [%%versioned: module Stable : sig [@@@no_toplevel_latest_type] module V1 : sig [@@@with_all_version_tags] type t = Unsigned.UInt64.t [@@deriving bin_io, sexp, ha...
null
https://raw.githubusercontent.com/MinaProtocol/mina/d6436be74fd3fa5e38bbf95ad2f2c6dfd10cfe37/src/lib/unsigned_extended/unsigned_extended.mli
ocaml
open Intf type nonrec uint64 = uint64 type nonrec uint32 = uint32 module type S = S module Extend : F module UInt64 : sig [%%versioned: module Stable : sig [@@@no_toplevel_latest_type] module V1 : sig [@@@with_all_version_tags] type t = Unsigned.UInt64.t [@@deriving bin_io, sexp, ha...
6195e8f178b6e16a57fc92afa364439d68e0434fdb93a5804fa13c079461e351
boris-ci/boris
Git.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Boris.Service.Git ( InitialiseError (..) , initialise , discovering , findRef , renderInitialiseError ) where import Boris.Core.Data.Build import Boris.Core.Data.Configuration import Boris.Core.Data.Ins...
null
https://raw.githubusercontent.com/boris-ci/boris/c321187490afc889bf281442ac4ef9398b77b200/boris-service/src/Boris/Service/Git.hs
haskell
# LANGUAGE OverloadedStrings # | Workspace initialisation: * Take a mirror of the target repository. The fact that it is a mirror is of critical importance to pattern resolution. if we were to take a normal clone or bare repo, we between a local ref and a remote ref. * Load boris-git.toml off of the ...
# LANGUAGE NoImplicitPrelude # module Boris.Service.Git ( InitialiseError (..) , initialise , discovering , findRef , renderInitialiseError ) where import Boris.Core.Data.Build import Boris.Core.Data.Configuration import Boris.Core.Data.Instance import Boris.Core.D...
2a8b180cfc7e73158750568054a5fb68d0f6b54857df80dd9fdba288fe453b0e
hopv/horsat2
grammar.ml
open Utilities exception Fatal of string type nameNT = int (** names of non-terminal symbols; they are just integers **) type nameT = string (** names of terminal symbols **) type nameV = nameNT * int (* pair of the non-terminal and the variable index *) type term = NT of nameNT | T of nameT | Var of nameV | App of ...
null
https://raw.githubusercontent.com/hopv/horsat2/22c8b3e5d6a5751f28824182d4f27728e3acbf82/grammar.ml
ocaml
* names of non-terminal symbols; they are just integers * * names of terminal symbols * pair of the non-terminal and the variable index store the original name of each non-terminal and its kind store the original name of each variable -1 if the arity is unknown int: the number of formal parameters stored her...
open Utilities exception Fatal of string type term = NT of nameNT | T of nameT | Var of nameV | App of term * term type kind = O | Kfun of kind * kind type state_id = int type ity_id = int type ity = ItyQ of state_id | ItyFun of ity_id * ty * ity and ty = ity list type nonterminals = (string * kind) array type rul...
822ca0b4560bc64a4b49d3af319c54547eb3a3dcb1b7630155f5a63e6286855f
trainline/optimus
async_task_test.clj
Copyright ( c ) Trainline Limited , 2017 . All rights reserved . See LICENSE.txt in the project root for license information (ns optimus.service.backends.async-task-test (:require [midje.sweet :refer :all] [optimus.service [async-task :as a] [backend :as b] [core...
null
https://raw.githubusercontent.com/trainline/optimus/caf4d065f40d5edef87eeb60d767b8379465501e/service/test/optimus/service/backends/async_task_test.clj
clojure
transition to :publishing status create a new version handle :prepare action update status to :saving handle :save action update status to :publishing handle :publish action
Copyright ( c ) Trainline Limited , 2017 . All rights reserved . See LICENSE.txt in the project root for license information (ns optimus.service.backends.async-task-test (:require [midje.sweet :refer :all] [optimus.service [async-task :as a] [backend :as b] [core...
786a0ef121ae7e2f6729eb886676d8db9bf05b854f5b41956075a7ce7e2dc7d4
atolab/apero-net
net.mli
open Apero (** I/O related functions *) val read : Lwt_unix.file_descr -> Abuf.t -> int -> int Lwt.t * [ read fd buf len ] reads at most [ len ] bytes out of the file descriptior [ fd ] in to the buffer [ buf ] at index [ w_pos buf ] . Returns the actual number of bytes read . file descriptior [fd] ...
null
https://raw.githubusercontent.com/atolab/apero-net/d21290610d06a36f1ee571dea475f25ed5735151/lib/net.mli
ocaml
* I/O related functions
open Apero val read : Lwt_unix.file_descr -> Abuf.t -> int -> int Lwt.t * [ read fd buf len ] reads at most [ len ] bytes out of the file descriptior [ fd ] in to the buffer [ buf ] at index [ w_pos buf ] . Returns the actual number of bytes read . file descriptior [fd] in to the buffer [buf] at ind...
cbe1999cc5aeb675094c6442a8807daa994230339226fd3369be31c03a427c3b
5outh/Bang
Class.hs
| Module : Bang . Music . Class Description : Data declarations for Bang Copyright : ( c ) , 2014 License : MIT Maintainer : Stability : experimental Portability : Implements the core data structures for use in the library . Module : Bang.Music.Class Description : Data d...
null
https://raw.githubusercontent.com/5outh/Bang/46ae674621c33e67ce57dc96d38f9e97ea6b4d05/src/Bang/Music/Class.hs
haskell
| Primitive objects in music are simply notes with duration and type, or rests with only duration. | A `Note` with duration `dur` and type `ntype` | A `Rest` with a duration | A Primitive musical object. | Sequential composition of music | Parallel composition of music | Simple data type representing different c...
| Module : Bang . Music . Class Description : Data declarations for Bang Copyright : ( c ) , 2014 License : MIT Maintainer : Stability : experimental Portability : Implements the core data structures for use in the library . Module : Bang.Music.Class Description : Data d...
9a98509906111e9959b5c5229fa60b38ede515406969f3246583f50fee40e3be
nikodemus/SBCL
defglobal.impure.lisp
;;;; DEFGLOBAL and related tests This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; While most of SBCL is derived from the CMU CL system , the test ;;;; files (like this one) were written from scratch after the fork from CMU CL . ;;;; ;;;; This software is in the publi...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/tests/defglobal.impure.lisp
lisp
DEFGLOBAL and related tests more information. files (like this one) were written from scratch after the fork This software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Cannot proclaim or declare a global as special Dead globals ge...
This software is part of the SBCL system . See the README file for While most of SBCL is derived from the CMU CL system , the test from CMU CL . (proclaim '(special *foo*)) (defun eval* (form) (let ((*evaluator-mode* :interpret)) (eval form))) (defun unbound-marker () (sb-c::%primitive sb-c:make-unbou...
1d0b84e40e59f2325839478404ed9256fbbb461d9e63b495c93602cbb3e6e05b
coco-team/lustrec
location.ml
(********************************************************************) (* *) The LustreC compiler toolset / The LustreC Development Team Copyright 2012 - -- ONERA - CNRS - INPT (* ...
null
https://raw.githubusercontent.com/coco-team/lustrec/b21f9820df97e661633cd4418fdab68a6c6ca67d/src/location.ml
ocaml
****************************************************************** LustreC is free software, distributed WITHOUT ANY WARRANTY under the terms of the GNU Lesser General Public L...
The LustreC compiler toolset / The LustreC Development Team Copyright 2012 - -- ONERA - CNRS - INPT version 2.1 . type t = { loc_start: Lexing.position; loc_end: Lexing.position } type filename = string let dummy_loc = {lo...
2393ae5f6dcbbe6f7d82f69339986ae6a4eabc7fdafc42b6759581e97ad26d72
lisp/de.setf.thrift
SmallTest.lisp
;;; -*- Package: testnamespace -*- ;;; Autogenerated by Thrift ;;; DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING (def-package :testnamespace) (defun test-i32 (boo) (incf boo)) (defun test-void () (error 'goodbye :simple -1 :complex (map '(1 . 1)) :complexer (map (c...
null
https://raw.githubusercontent.com/lisp/de.setf.thrift/32b0d1ca3d9fa95327165b8090e1021bc563ed3e/test/gen-cl/SmallTest.lisp
lisp
-*- Package: testnamespace -*- DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING (test-server)
Autogenerated by Thrift (def-package :testnamespace) (defun test-i32 (boo) (incf boo)) (defun test-void () (error 'goodbye :simple -1 :complex (map '(1 . 1)) :complexer (map (cons 0 (map (cons 1 2)))))) (defun test-me (hello wonk) (incf (hello-simple wonk) hello) wonk) (defun te...
009cef7a1b5c81ac6d41f9a47fc25530d1762bc5126fc8210c5371f1708610a2
dbuenzli/cmdliner
test_pos.ml
open Cmdliner let pos l t r = print_endline (String.concat "\n" (l @ ["--"; t; "--"] @ r)) let test_pos = let l = Arg.(value & pos_left 2 string [] & info [] ~docv:"LEFT") in let t = Arg.(value & pos 2 string "undefined" & info [] ~docv:"TWO") in let r = Arg.(value & pos_right 2 string [] & info [] ~docv:"RIG...
null
https://raw.githubusercontent.com/dbuenzli/cmdliner/1c5eff9f94ed8660a52d5190155aeca3b39558ec/test/test_pos.ml
ocaml
open Cmdliner let pos l t r = print_endline (String.concat "\n" (l @ ["--"; t; "--"] @ r)) let test_pos = let l = Arg.(value & pos_left 2 string [] & info [] ~docv:"LEFT") in let t = Arg.(value & pos 2 string "undefined" & info [] ~docv:"TWO") in let r = Arg.(value & pos_right 2 string [] & info [] ~docv:"RIG...
1a3532adf1553e20baa010b0194a8924c5e71b2e4d3ab8e2f70258ce482435d5
dvingo/cljs-emotion
devcards.cljs
(ns dv.cljs-emotion.devcards (:require [devcards.core :as dc :refer (defcard)] [dv.cljs-emotion.fulcro-cards] [dv.cljs-emotion.reagent-cards] [dv.cljs-emotion.reagent-debug] [dv.cljs-emotion.debug] [dv.cljs-emotion.helix-cards] [dv.cljs-emotion.target-styled] [sablono.core :as sab :ref...
null
https://raw.githubusercontent.com/dvingo/cljs-emotion/0e2d7339657bd2957f03fbf8f4bb4a97b4fefc81/src/dev/dv/cljs_emotion/devcards.cljs
clojure
keyframes keyframes change global "Some text on a lightgrey background."))
(ns dv.cljs-emotion.devcards (:require [devcards.core :as dc :refer (defcard)] [dv.cljs-emotion.fulcro-cards] [dv.cljs-emotion.reagent-cards] [dv.cljs-emotion.reagent-debug] [dv.cljs-emotion.debug] [dv.cljs-emotion.helix-cards] [dv.cljs-emotion.target-styled] [sablono.core :as sab :ref...
6e86e04b760d0f6abaf4d173c1843a9ec7414f82066a4bcd66c18273b1847d2e
dyzsr/ocaml-selectml
t193-setfloatfield-2.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; type t = { mutable a : float; mutable b : float; };; let x =...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t193-setfloatfield-2.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; type t = { mutable a : float; mutable b : float; };; let x =...
1b1234c82b9f32d7df321f664b65ed4165d12f38ed878b179dff23d4e9f3fd1a
ghadishayban/pex
json.clj
(ns com.champbacon.pex.examples.json (:require [com.champbacon.pex :as pex]) (:import (com.champbacon.pex ParseAction CharMatcher))) ;; HOW TO RUN AT THE BOTTOM (def JSON '{json [whitespace value EOI] ;; Main Rule value (/ string number object array jtrue jfalse jnull) ...
null
https://raw.githubusercontent.com/ghadishayban/pex/aa3255f6aa9086ca867d0ff401b8bbb2a306d86c/src/com/champbacon/pex/examples/json.clj
clojure
HOW TO RUN AT THE BOTTOM Main Rule sp is a rule macro that chews whitespace input "\"42\""
(ns com.champbacon.pex.examples.json (:require [com.champbacon.pex :as pex]) (:import (com.champbacon.pex ParseAction CharMatcher))) value (/ string number object array jtrue jfalse jnull) (? (:join [string (:sp ":") value] (:sp ","))) (:sp "}") ...
f1fa71f8b46f304e830d206d0bc07aa5277431248fbce1758289d90f6667805c
marigold-dev/deku
n.mli
type nat type t = nat [@@deriving show, eq, ord] exception Not_a_natural val zero : nat val one : nat (* repr *) val of_z : Z.t -> nat option val to_z : nat -> Z.t val encoding : nat Data_encoding.t (* operations *) val ( + ) : nat -> nat -> nat val ( - ) : nat -> nat -> nat option val ( > ) : nat -> nat -> bool m...
null
https://raw.githubusercontent.com/marigold-dev/deku/cdf82852196b55f755f40850515580be4fd9a3fa/deku-p/src/core/stdlib/n.mli
ocaml
repr operations
type nat type t = nat [@@deriving show, eq, ord] exception Not_a_natural val zero : nat val one : nat val of_z : Z.t -> nat option val to_z : nat -> Z.t val encoding : nat Data_encoding.t val ( + ) : nat -> nat -> nat val ( - ) : nat -> nat -> nat option val ( > ) : nat -> nat -> bool module Map : Map_ext.S with t...
1ed848e627fcebc43f06fd7d35d4d92da221b23be727249b0ffcb9e0ebb57c24
MaartenFaddegon/Hoed
Insertion_Sort_elements_disappear.hs
version of the buggy insertion sort as shown in -- A Declarative Debugging Scheme. -- As Insort1 , but with observe rather than templated observers . import Debug.Hoed.Pure -- Insertion sort. isort :: [Char] -> [Char] isort = observe "isort" isort' isort' [] = [] isort' (n:ns) = insert n (isort ns) -- Ins...
null
https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/examples/Insertion_Sort_elements_disappear.hs
haskell
A Declarative Debugging Scheme. Insertion sort. Insert number into sorted list. bug: `m' is missing in this case
version of the buggy insertion sort as shown in As Insort1 , but with observe rather than templated observers . import Debug.Hoed.Pure isort :: [Char] -> [Char] isort = observe "isort" isort' isort' [] = [] isort' (n:ns) = insert n (isort ns) insert :: Char -> [Char] -> [Char] insert = observe "insert" in...
98cc48e77afbb49cbd63f0c893ad9b68df48c009f1c91ed9a7e899a236fa977d
ujamjar/hardcaml
comb.mli
* hardcaml - hardware design in OCaml * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * hardcaml - hardware design in OCaml * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) (** Combinatorial API *) (** Type required to generate the full combinat...
null
https://raw.githubusercontent.com/ujamjar/hardcaml/65f32f543348e81cbb7f6d0e77f1f1203bf4e335/src/comb.mli
ocaml
* Combinatorial API * Type required to generate the full combinatorial API * the empty signal * returns the width of a signal * creates a constant * concatenates a list of signals * multiplexer * select a range of bits * creates an unassigned wire * names a signal * bitwise and * bitwise or * bitwise xor *...
* hardcaml - hardware design in OCaml * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * hardcaml - hardware design in OCaml * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) module type T = sig type t val empty : t val wi...
eb566da84aaf1e58275a12c5a56e9f2869a3769706c3fcd5f781a24644c012c5
clojerl/doodler
doodler_gl.erl
-module(doodler_gl). -export([ canvas/2 , render/1 , draw/0 ]). -export([info/0]). -export([ arc/5 , circle/3 , cone/5 , cylinder/6 , line/4 , line/6 , point/2 , point/3 , quad/8 , quad/12 , rect/4 , spher...
null
https://raw.githubusercontent.com/clojerl/doodler/5b9946e5bf14b416bf37e90200732a9ecca8284f/src/doodler_gl.erl
erlang
============================================================================== API ============================================================================== Multisampling Anti-aliasing Setup OpenGL Shapes Push the current matrix mode We need to specify a smaller inner radius so that something is drawn of th...
-module(doodler_gl). -export([ canvas/2 , render/1 , draw/0 ]). -export([info/0]). -export([ arc/5 , circle/3 , cone/5 , cylinder/6 , line/4 , line/6 , point/2 , point/3 , quad/8 , quad/12 , rect/4 , spher...
b3db4032d41c8fe49bb158f8c3abd5e50320d9da7239d4f6f4f81e7494dee114
clojurians-org/haskell-example
Lib.hs
# LANGUAGE DeriveGeneric # # LANGUAGE TypeOperators # # LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE QuasiQuotes # module Lib (libMain ) where import GHC.Generics (Generic) import Data.Proxy (Proxy(..)) import NeatInterpolation (text...
null
https://raw.githubusercontent.com/clojurians-org/haskell-example/c96b021bdef52a121e04ea203c8c3e458770a25a/rest-api/src/Lib.hs
haskell
# LANGUAGE OverloadedStrings # }
# LANGUAGE DeriveGeneric # # LANGUAGE TypeOperators # # LANGUAGE DataKinds # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE QuasiQuotes # module Lib (libMain ) where import GHC.Generics (Generic) import Data.Proxy (Proxy(..)) import NeatInterpolation (text) import Network.Wai.Handler.Warp ...
4eebccdaa7022725921163c50a45e176c9d69b4ee9fc235803022d4e719aaa37
OCamlPro/ocp-build
buildMain.ml
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/b29be2f23ebe8db4bd3f16e035770b038876b9bc/tools/ocp-build/buildMain.ml
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file open Ezcmd.V2 open EZCMD.TYPES open OcpCompat open BuildActions open BuildGlobals open BuildArgs let verbose = OcpDebug.verbose_function ["B"; "BuildMain" ] let ...
0d3eba90d33a97369d6cad597602c2ef0f9b12ec7ee207a6e77eeb5aa3d2a7ea
Funkschy/weebmanager
macros.cljc
(ns weebmanager.macros) (defmacro react-$ ([tag] `(uix.core/as-react (fn [^js props#] (uix.core/$ ~tag (~'js->clj (.-argv props#) :keywordize-keys true))))) ([tag props & children] `(uix.core/as-react (fn [^js props#] (uix.core/$ ~tag (merge (~'js->clj ~props :keywo...
null
https://raw.githubusercontent.com/Funkschy/weebmanager/9aadca2564e8e48ac1a544e1ff53c8e2d8b2e03a/src/main/weebmanager/macros.cljc
clojure
(ns weebmanager.macros) (defmacro react-$ ([tag] `(uix.core/as-react (fn [^js props#] (uix.core/$ ~tag (~'js->clj (.-argv props#) :keywordize-keys true))))) ([tag props & children] `(uix.core/as-react (fn [^js props#] (uix.core/$ ~tag (merge (~'js->clj ~props :keywo...
365b53b34adb9d8e87e9c0e1d7cfef1b85d1655228a6220c1f3e1efb4f2ec9ca
takikawa/racket-ppa
defzuomodule.rkt
#lang at-exp racket/base (require scribble/manual) (provide defzuomodule) @(define-syntax-rule (defzuomodule zuo/x) (begin @defmodule[zuo/x #:no-declare #:packages ()] @declare-exporting[zuo zuo/x #:packages () #:use-sources (zuo-doc/fake-zuo)] @para{The @racketmodname[zuo/x] module is reprovided by...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/src/zuo/zuo-doc/defzuomodule.rkt
racket
#lang at-exp racket/base (require scribble/manual) (provide defzuomodule) @(define-syntax-rule (defzuomodule zuo/x) (begin @defmodule[zuo/x #:no-declare #:packages ()] @declare-exporting[zuo zuo/x #:packages () #:use-sources (zuo-doc/fake-zuo)] @para{The @racketmodname[zuo/x] module is reprovided by...
eabf14ae5df3746bc3e978f399eb9d6924650913e7018163493a753ab89a4a97
aryx/xix
main.ml
(*s: version_control/main.ml *) (*s: copyright ocamlgit *) Copyright 2017 , see copyright.txt (*e: copyright ocamlgit *) open Common (*****************************************************************************) (* Prelude *) (*****************************************************************************) An OCa...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/version_control/main.ml
ocaml
s: version_control/main.ml s: copyright ocamlgit e: copyright ocamlgit *************************************************************************** Prelude *************************************************************************** *************************************************************************** Helpers...
Copyright 2017 , see copyright.txt open Common An OCaml port of git , a distributed version control system . * * Some of the code derives from dulwich ( a clone of git in Python ) * and ocaml - git ( another clone of git in OCaml ) . * * Main limitations compared to git / dulwich / ocaml - git : ...
79f69cf09a5f74ed95fff40dad570cae637a77f6e574385792c6d01e86becf51
Eduap-com/WordMat
unicode-sniffer.lisp
unicode-sniffer.lisp -- attempt to determine Unicode encoding by inspecting bytes copyright 2018 by I release this work under terms of the GNU General Public License , version 2 ;; Adapted from: (defparameter unicode-signatures ;; Sort signatures in order of decreasing length, so longer signatures are tes...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/stringproc/unicode-sniffer.lisp
lisp
Adapted from: Sort signatures in order of decreasing length, but it is harmless in other cases. Returns the symbol name (i.e., a string) of the encoding, if any was found, otherwise false. Try to verify that the inferred encoding is among the encodings known to this Lisp implementation. If there is no known me...
unicode-sniffer.lisp -- attempt to determine Unicode encoding by inspecting bytes copyright 2018 by I release this work under terms of the GNU General Public License , version 2 (defparameter unicode-signatures so longer signatures are tested first . This really only makes a difference for UTF-16le vs UTF-...
9cc60cbb7a1738ad33536cea1e47793608b4f9311a10bb73b9bf7b527eaabf68
tonyrog/can
can_sock.erl
%%%---- BEGIN COPYRIGHT -------------------------------------------------------- %%% Copyright ( C ) 2007 - 2012 , Rogvall Invest AB , < > %%% %%% This software is licensed as described in the file COPYRIGHT, which %%% you should have received as part of this distribution. The terms %%% are also available at . %%% %...
null
https://raw.githubusercontent.com/tonyrog/can/6dc5b145469a31fff75c48447ea53fd2a0223841/src/can_sock.erl
erlang
---- BEGIN COPYRIGHT -------------------------------------------------------- This software is licensed as described in the file COPYRIGHT, which you should have received as part of this distribution. The terms are also available at . You may opt to use, copy, modify, merge, publish, distribute and/or sell furn...
Copyright ( C ) 2007 - 2012 , Rogvall Invest AB , < > copies of the Software , and permit persons to whom the Software is This software is distributed on an " AS IS " basis , WITHOUT WARRANTY OF ANY Author : < > Created : 8 Jun 2010 by < > -module(can_sock). -behaviour(gen_server). -include("../i...
031de4c3639b9cffc765552ab400183d686943865f47e8cce7d2351e2f792cff
uber/queryparser
Tables.hs
Copyright ( c ) 2017 Uber Technologies , Inc. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights -- to use, copy, modify, mer...
null
https://raw.githubusercontent.com/uber/queryparser/6ae2e94567189cf842f7134d65b14e1089f06970/src/Database/Sql/Util/Tables.hs
haskell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2017 Uber Technologies , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
7b8f99917a483cb6f9ac8f0aba22ede91f661f8bb2a15e88e8d7038bff03b843
amnh/PCG
Fastc.hs
----------------------------------------------------------------------------- -- | -- Module : File.Format.Fastc Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- Functions for for parsing FASTC files i...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/file-parsers/src/File/Format/Fastc.hs
haskell
--------------------------------------------------------------------------- | Module : File.Format.Fastc License : BSD-style Maintainer : Stability : provisional Portability : portable ---------------------------------------------------------------------------
Copyright : ( c ) 2015 - 2021 Ward Wheeler Functions for for parsing FASTC files into a naive sequence form . # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # module File.Format.Fastc ( CharacterSequence , FastcParseResult , FastcSequence(..) , Identifier , Symbol , fastcStreamParser ...
dd7fc1da275f63bfa994c006510140c56bfd5fe1c58244dbba2deade7a392650
ChrisPenner/comonads-by-example
Middleware.hs
{-# LANGUAGE OverloadedStrings #-} module Comonads.Store.Middleware where import qualified Data.Text as T import Comonads.Store import Control.Comonad -- Precompose normalizePath :: Store T.Text T.Text -> T.Text normalizePath = peeks cleaned where cleaned url = T.strip . T.toLower ...
null
https://raw.githubusercontent.com/ChrisPenner/comonads-by-example/1d7626f759e59ac8019322612ed6d7ff00da75c9/src/Comonads/Store/Middleware.hs
haskell
# LANGUAGE OverloadedStrings # Precompose Postcompose Wrapping transform
module Comonads.Store.Middleware where import qualified Data.Text as T import Comonads.Store import Control.Comonad normalizePath :: Store T.Text T.Text -> T.Text normalizePath = peeks cleaned where cleaned url = T.strip . T.toLower $ url collapseSlashes :: Store T.Text T.Text -> ...
ed25a3575506703e4d417f226ed0d250f38fad5b5ec62477498276e9da37be17
ocaml/dune
foreign_sources.ml
open Import open Dune_file module Library = Dune_file.Library (* TODO: This is a strange module; it seems to add unnecessary indirection for accessing foreign sources. It's worth checking if it can be simplified away. Before this module is removed, there should be a good way to handle new types of source fil...
null
https://raw.githubusercontent.com/ocaml/dune/873c6ba90327b347524c39b2b09942c09dfd62ca/src/dune_rules/foreign_sources.ml
ocaml
TODO: This is a strange module; it seems to add unnecessary indirection for accessing foreign sources. It's worth checking if it can be simplified away. Before this module is removed, there should be a good way to handle new types of source files without shoving everything into [Dir_contents]. Furthermor...
open Import open Dune_file module Library = Dune_file.Library type t = { libraries : Foreign.Sources.t Lib_name.Map.t ; archives : Foreign.Sources.t Foreign.Archive.Name.Map.t ; executables : Foreign.Sources.t String.Map.t } let for_lib t ~name = Lib_name.Map.find_exn t.libraries name let for_archive t ~arch...
6eca452921eb3a9252b9c5def64c10f3efbf08e161aba2f81a3309e8114d43a4
zero-one-group/fxl
specs_test.clj
(ns zero-one.fxl.specs-test (:require [clojure.string :refer [includes?]] [midje.sweet :refer [facts fact =>]] [zero-one.fxl.specs :as fs])) (facts "On valid? and invalid?" (fact "Should give correct results" (fs/valid? nat-int? 10) => true (fs/invalid? nat-int? 10) => false (fs/invalid? nat-i...
null
https://raw.githubusercontent.com/zero-one-group/fxl/6b9f63a30db3eaea4968782749bfadb8eb3441db/test/zero_one/fxl/specs_test.clj
clojure
(ns zero-one.fxl.specs-test (:require [clojure.string :refer [includes?]] [midje.sweet :refer [facts fact =>]] [zero-one.fxl.specs :as fs])) (facts "On valid? and invalid?" (fact "Should give correct results" (fs/valid? nat-int? 10) => true (fs/invalid? nat-int? 10) => false (fs/invalid? nat-i...
1523d9bf7961d87ea5c8427523c75de602ad34b8428b690ecd5f2fb338a5b6ef
LexiFi/menhir
codeBackend.ml
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/codeBackend.ml
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
561d0a6118c9d9ce78b82a3d713b266b56b5a155c0292a05e7dbd73c0d62ea93
RichiH/git-annex
evilsplicer-headers.hs
This file was modified by the EvilSplicer , adding these headers , - and expanding Template Haskell . - - * * DO NOT COMMIT * * - and expanding Template Haskell. - - ** DO NOT COMMIT ** -} import qualified Data.Monoid import qualified Control.Applicative import qualified Data.Set import qualified ...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/standalone/no-th/evilsplicer-headers.hs
haskell
This file was modified by the EvilSplicer , adding these headers , - and expanding Template Haskell . - - * * DO NOT COMMIT * * - and expanding Template Haskell. - - ** DO NOT COMMIT ** -} import qualified Data.Monoid import qualified Control.Applicative import qualified Data.Set import qualified ...
b87ca029d3f3ab5c597ca2417906bf1bb82ba5c0f3cf66ed1df9b7bd94e0e766
davisp/couchdb
mochiweb_socket.erl
@copyright 2010 Mochi Media , Inc. @doc MochiWeb socket - wrapper for plain and ssl sockets . -module(mochiweb_socket). -export([listen/4, accept/1, after_accept/1, recv/3, send/2, close/1, port/1, peername/1, setopts/2, type/1]). -define(ACCEPT_TIMEOUT, 2000). -define(SSL_ACCEPT_TIMEOUT, 30000). list...
null
https://raw.githubusercontent.com/davisp/couchdb/b0420f9006915149e81607615720f32f21c76725/src/mochiweb/mochiweb_socket.erl
erlang
@copyright 2010 Mochi Media , Inc. @doc MochiWeb socket - wrapper for plain and ssl sockets . -module(mochiweb_socket). -export([listen/4, accept/1, after_accept/1, recv/3, send/2, close/1, port/1, peername/1, setopts/2, type/1]). -define(ACCEPT_TIMEOUT, 2000). -define(SSL_ACCEPT_TIMEOUT, 30000). list...
5116db0042eb64b7d4704fdbdf5e8aacefeba70338b443cc6ea5ff4fc310b0ab
klarna-incubator/bec
bec_wz_pr_restriction_t.erl
%%============================================================================== Type definition for the Workzone Pull Request Restriction data structure %%============================================================================== -module(bec_wz_pr_restriction_t). %%==============================================...
null
https://raw.githubusercontent.com/klarna-incubator/bec/88da4f40ddbc119f3cb652a86b22e05960ef5396/src/bec_wz_pr_restriction_t.erl
erlang
============================================================================== ============================================================================== ============================================================================== Exports ==========================================================================...
Type definition for the Workzone Pull Request Restriction data structure -module(bec_wz_pr_restriction_t). -export([ from_map/1, to_map/1]). -include("bitbucket.hrl"). -type restriction() :: #{ 'branch-id' := bec_branch_t:id() , 'approval-quota' := integer() , '...
dc6c6dfc445277b617572b0becda44baccf7f08ad2a72c472c22b554e9733e55
gregnwosu/haskellbook
RWCDemo.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # module RWCDemo where import Control.Concurrent (forkIO, threadDelay) import Control.Exception import Control.Monad (forever) import Data.List (intersperse) import Data.Text (Text) import qualified Data.Text as T import Data.Text.En...
null
https://raw.githubusercontent.com/gregnwosu/haskellbook/b21fb6772e58f07cff334d9c551d0477ec856897/chapter31/src/RWCDemo.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards # module RWCDemo where import Control.Concurrent (forkIO, threadDelay) import Control.Exception import Control.Monad (forever) import Data.List (intersperse) import Data.Text (Text) import qualified Data.Text as T import Data.Text.Encoding (decodeUtf8, encodeUtf8) imp...
b4fa6c09f0bfe8d70db1243899e7d86ac8117920bb324a6759327a67ece9c978
conal/Fran
Editor0.hs
-- Version 0. A simple point editor, allowing the user to grab it with -- the left mouse button and move it around. module Editor0 where import Fran import qualified StaticTypes as S Initially we will represent control points by points . type CPoint = S.Point2 type CPointB = Point2B -- The look...
null
https://raw.githubusercontent.com/conal/Fran/a113693cfab23f9ac9704cfee9c610c5edc13d9d/demos/CurveEditor/Editor0.hs
haskell
Version 0. A simple point editor, allowing the user to grab it with the left mouse button and move it around. The looks of a control point size of point image Test: tracks mouse position. Use "displayU renderPoint" to test under user control. User can grab with left button when Track mouse while grabbin...
module Editor0 where import Fran import qualified StaticTypes as S Initially we will represent control points by points . type CPoint = S.Point2 type CPointB = Point2B renderPoint :: CPointB -> ImageB renderPoint pos = moveTo pos (stretch pointSize circle) pointSize :: RealB renderPointTest...
01e33f2b267f6bffd3ef51007d9d245c0b4acb8fd3df35d8b332fc84e30c71cb
jeaye/orchestra
core_test.cljc
(ns orchestra.core-test (:require #?@(:clj [[clojure.test :refer :all] [clojure.spec.alpha :as s] [clojure.spec.test.alpha :as cst] [orchestra.spec.test :as st] [orchestra.core :refer [defn-spec]]] :cljs [[cljs.test...
null
https://raw.githubusercontent.com/jeaye/orchestra/81e5181f7b42e5e2763a2b37db17954f3be0314e/test/cljc/orchestra/core_test.cljc
clojure
Blocked on a ClojureScript bug for now
(ns orchestra.core-test (:require #?@(:clj [[clojure.test :refer :all] [clojure.spec.alpha :as s] [clojure.spec.test.alpha :as cst] [orchestra.spec.test :as st] [orchestra.core :refer [defn-spec]]] :cljs [[cljs.test...
7f7d417543d59837776780e2c9460227de4617711d1a43022cea1d1c2a0e826a
haskell-servant/servant
Client.hs
-- | This module provides 'client' which can automatically generate -- querying functions for each endpoint just from the type representing your -- API. module Servant.Client ( client , ClientM , runClientM , ClientEnv(..) , mkClientEnv , defaultMakeClientRequest , hoistClient , module Servant.Client....
null
https://raw.githubusercontent.com/haskell-servant/servant/d06b65c4e6116f992debbac2eeeb83eafb960321/servant-client/src/Servant/Client.hs
haskell
| This module provides 'client' which can automatically generate querying functions for each endpoint just from the type representing your API.
module Servant.Client ( client , ClientM , runClientM , ClientEnv(..) , mkClientEnv , defaultMakeClientRequest , hoistClient , module Servant.Client.Core.Reexport ) where import Servant.Client.Core.Reexport import Servant.Client.Internal.HttpClient
c3933afcf3a99ba1ecce5fac8c8b556b9f7c10716f1bf7f09b0cd69ad82a25bb
TristanCacqueray/haskell-butler
Prelude.hs
# OPTIONS_GHC -Wno - orphans # module Butler.Prelude ( -- * Custom helpers die, showT, putTextLn, whenM, unlessM, -- * ki module Ki.Unlifted, -- * unliftio module UnliftIO, module UnliftIO.STM, Control.Concurrent.STM.stateTVar, Control.Concurrent.STM.check, --...
null
https://raw.githubusercontent.com/TristanCacqueray/haskell-butler/d3bf40d665264d31a76e2f3ff842658aa41ee720/src/Butler/Prelude.hs
haskell
* Custom helpers * ki * unliftio * PyF * lucid * optparse-applicative * aeson * xstatic * witch * lens * lens-aeson * uuid * servant * serialise * time * text bytestring containers * base extra
# OPTIONS_GHC -Wno - orphans # module Butler.Prelude ( die, showT, putTextLn, whenM, unlessM, module Ki.Unlifted, module UnliftIO, module UnliftIO.STM, Control.Concurrent.STM.stateTVar, Control.Concurrent.STM.check, module PyF, module Lucid, module Lucid.Htmx, ...
386903dd0b4b3d3a412d2f6b28ed0788505600bda2f0ec2805049195b70f6183
oxheadalpha/TZComet
token_viewer.ml
open! Import open Js_of_ocaml let copy_src_id = "copy_src_id" let copy_src_var : string Lwd.var = Reactive.var "" let go_action ctxt ~wip = let token_id = State.token_id ctxt |> Reactive.peek in let address = State.token_address ctxt |> Reactive.peek in let protocol = Url.Current.protocol in let host = Url.Cu...
null
https://raw.githubusercontent.com/oxheadalpha/TZComet/267327042fc4651bc04b4e2eb3c8c6b1e4bcd0fa/src/client/token_viewer.ml
ocaml
A URL that ends with a dot is usually a URL plus a period: Can seem to limit the height and keeping the images “inside”: Same as async_work
open! Import open Js_of_ocaml let copy_src_id = "copy_src_id" let copy_src_var : string Lwd.var = Reactive.var "" let go_action ctxt ~wip = let token_id = State.token_id ctxt |> Reactive.peek in let address = State.token_address ctxt |> Reactive.peek in let protocol = Url.Current.protocol in let host = Url.Cu...
c0364feb37581d440332c4c6dd1eb719f518b9848d11a0cc8fc8c362bba799f0
mitchellwrosen/repld
Prelude.hs
module Repld.Prelude ( module X, module Repld.Prelude, ) where import Control.Monad as X (forever, when) import Control.Monad.IO.Class as X (liftIO) import Data.Bifunctor import Data.ByteString as X (ByteString) import Data.Function as X ((&)) import Data.Text as X (Text) mapLeft :: (a -> b) -> Either a c -> ...
null
https://raw.githubusercontent.com/mitchellwrosen/repld/100bd424e1b0320b5246647abeec3e60582ec39c/src/Repld/Prelude.hs
haskell
module Repld.Prelude ( module X, module Repld.Prelude, ) where import Control.Monad as X (forever, when) import Control.Monad.IO.Class as X (liftIO) import Data.Bifunctor import Data.ByteString as X (ByteString) import Data.Function as X ((&)) import Data.Text as X (Text) mapLeft :: (a -> b) -> Either a c -> ...
07c8828e5040ed93a5db52cb7f4d5a4f7f6813629bb0efdcc05e744c50755452
day8/re-frame-10x
fx.cljc
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.fx (:require [day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.router :as router] [day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.db :refer [app-db]] [day8.re-frame-10x.inlined-deps.re-fra...
null
https://raw.githubusercontent.com/day8/re-frame-10x/d8dcb17e217449aba2cf64b9f843b0e9f86cfcb6/gen-src/day8/re_frame_10x/inlined_deps/re_frame/v1v1v2/re_frame/fx.cljc
clojure
-- Registration ------------------------------------------------------------ -- Interceptor ------------------------------------------------------------- :db effect is guaranteed to be handled before all other effects. :dispatch-later usage: ; in 200ms do this : ( dispatch [: event - id " param " ] ) Note:...
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.fx (:require [day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.router :as router] [day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.db :refer [app-db]] [day8.re-frame-10x.inlined-deps.re-fra...
fece9a0c47e6b1da45d9dbf16d477c72fdc856b37082fb20c4feb0347d8305a3
exoscale/clojure-kubernetes-client
v1beta1_storage_class.clj
(ns clojure-kubernetes-client.specs.v1beta1-storage-class (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-topology-selector-term :refer :all] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] ) (:import...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1beta1_storage_class.clj
clojure
(ns clojure-kubernetes-client.specs.v1beta1-storage-class (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-topology-selector-term :refer :all] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] ) (:import...
3e746b566ee7da88e44e3c2ceab56f515bf6aa84f62cba35780cec24ded7efa3
witan-org/witan
events.mli
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/core/events.mli
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
f4a34e138869c9a5aa69df4311e73cb07d60811ad58d4a31b00a7e739b971023
typedclojure/typedclojure
load.cljc
Copyright ( c ) , contributors . ;; 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 by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/d954d947581d996809dae20e5547dd0081a604c8/typed/clj.runtime/src/clojure/core/typed/load.cljc
clojure
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 by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns clojure.core.typed.load "Front end for actual implementation in clojure.core.typed.load1. Indirection is necessary to delay loading core.typed as long as possible." (:require [clojure.core.typed.load-if-needed :refer [load-if-needed]] [clojure.core.typ...
eea48382e726d41d5f1c07ca245ee41e93132ae6d72810282553446f4cdc9d50
eugeneia/athens
package.lisp
Package definition for FILE - TYPES . (defpackage file-types (:documentation "Simple scheme to classify file types in a hierarchical fashion.") (:use :cl) (:export :file-tags :file-mime))
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/file-types-20160929-git/package.lisp
lisp
Package definition for FILE - TYPES . (defpackage file-types (:documentation "Simple scheme to classify file types in a hierarchical fashion.") (:use :cl) (:export :file-tags :file-mime))
b83baf40f9579f8d9b40bba6c354f2304baf04b88e9f007e58c0dd99e8a488fd
craff/pacomb
ext2.ml
(* This code is to benchmark extensible grammar ... it is not the best code to do a calculator with an extensible grammar *) open Pacomb let get_op2 = function | "*" -> ( *. ) | "+" -> ( +. ) | "/" -> ( /. ) | "-" -> ( -. ) | "^" -> ( ** ) | _ -> failwith "invalid binary op" let get_op1 = function ...
null
https://raw.githubusercontent.com/craff/pacomb/3e83f56bc483f6b9c495ae91d773aa9b484eb321/benchmarks/calc/ext2.ml
ocaml
This code is to benchmark extensible grammar ... it is not the best code to do a calculator with an extensible grammar * a parsing rule: a grammar from an environment * get the next priority * the maximum priority * add a rule with the given priority * get all the rule of a given priority * the parsing for ex...
open Pacomb let get_op2 = function | "*" -> ( *. ) | "+" -> ( +. ) | "/" -> ( /. ) | "-" -> ( -. ) | "^" -> ( ** ) | _ -> failwith "invalid binary op" let get_op1 = function | "cos" -> cos | "sin" -> sin | "tan" -> tan | "ln" -> log | "exp" -> exp | _ -> failwith "invalid unary op" * Bi...
c170d87d83c7d8b327d9a3579e1eb20a66381001d446b710440f8d0fb7ce5c3b
bytekid/mkbtt
interfaceTTT.ml
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mascott/src/interfaceTTT.ml
ocaml
* Calls TTT2 for termination checks ** OPENS ******************************************************************* ** SUBMODULES ********************************************************* ** FUNCTIONS ********************************************************** let answer = function | Some (_, _, s), t when s = Status.t...
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
0e576fd029f37aaa68c2c085148dfb54b4078e8a1a84b20a58fc9f444bf26914
andersfugmann/ppx_protocol_conv
test_driver.ml
open Protocol_conv open Runtime open Base type t = | Record of (string * t) list | Variant of string * t list | Tuple of t list | Option of t option | List of t list | Int of int | Int32 of int32 | Int64 of int64 | Nativeint of nativeint | String of string | Bytes of bytes | Float of float | ...
null
https://raw.githubusercontent.com/andersfugmann/ppx_protocol_conv/81e2acd5b3557443d73c9c0a2d5775a9e1f0c10e/ppx/test/test_driver.ml
ocaml
Register exception printer
open Protocol_conv open Runtime open Base type t = | Record of (string * t) list | Variant of string * t list | Tuple of t list | Option of t option | List of t list | Int of int | Int32 of int32 | Int64 of int64 | Nativeint of nativeint | String of string | Bytes of bytes | Float of float | ...
bb69cff613eb911bdb9166e1fde5485c5ea19871e5d833ed50a07657efa9d601
LPCIC/matita
libraryClean.ml
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/library/libraryClean.ml
ocaml
$Id: libraryClean.ml 11124 2010-12-16 17:10:54Z sacerdot $ MATITA 1.0 let buri = safe_buri_of_suri suri in if Hashtbl.mem cache_of_processed_baseuri buri then [] else begin Hashtbl.add cache_of_processed_baseuri buri true; let query = let buri = buri ^ "/" in let buri = H...
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
77d2cb9d2d8cb94bcc89084fecf8093d098e1499b51fa689cd805b3e34bf5ded
ftovagliari/ocamleditor
ocaml_home.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/53284253cf7603b96051e7425e85a731f09abcd1/src/ocaml_home.ml
ocaml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
042c61df5d9e275af033d949eed7557205b4d75b9e8b4ddc551cc9bc052698aa
facebook/infer
fol_test.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/9d9a3a42b75697db86bc0da3092137f175782773/sledge/src/test/fol_test.ml
ocaml
* tests incomplete incomplete
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
b0c796042bf06390dd5afd4cdca99a2390a537fea90fbc1c669e65eff622a8ad
dmwit/universe
Helpers.hs
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >=704 {-# LANGUAGE Safe #-} #elif __GLASGOW_HASKELL__ >=702 # LANGUAGE Trustworthy # #endif module Data.Universe.Helpers ( -- | This module is for functions that are useful for writing instances, -- but not necessarily for using them (and hence are not exported by the -- m...
null
https://raw.githubusercontent.com/dmwit/universe/3a63cca98c313db47b82a3ec5ac11b1e72f48758/universe-base/src/Data/Universe/Helpers.hs
haskell
# LANGUAGE Safe # | This module is for functions that are useful for writing instances, but not necessarily for using them (and hence are not exported by the main module to avoid cluttering up the namespace). * Building lists * Building cardinalities | These functions are handy for inheriting the definition of '...
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >=704 #elif __GLASGOW_HASKELL__ >=702 # LANGUAGE Trustworthy # #endif module Data.Universe.Helpers ( universeDef, interleave, diagonal, diagonals, (+++), cartesianProduct, (+*+), (<+*+>), choices, > instance Finite Foo where cardinality = retagWith cardina...
7db384b947def7c4d1008716829684f4b5b5c4007c765eb8370ef692a930d724
dyoo/whalesong
base.rkt
#lang s-exp "kernel.rkt" (provide (except-out (all-from-out "kernel.rkt") Do n't publically export the bindings from # % paramz . exception-handler-key parameterization-key break-enabled-key ;; or define-syntax-parameter ...
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/lang/base.rkt
racket
or define-syntax-parameter
#lang s-exp "kernel.rkt" (provide (except-out (all-from-out "kernel.rkt") Do n't publically export the bindings from # % paramz . exception-handler-key parameterization-key break-enabled-key define-syntax-parameter ...
049f1dd460fc2d5f49834756b783c85617e822b1c60f1e5c3cddcb89c1d84a37
thobbs/genartlib
geometry.clj
(ns genartlib.geometry (:require [genartlib.algebra :refer [angle avg interpolate]] [quil.core :refer [dist cos sin]]) (:import [genartlib PolyUtils])) (defn rotate-polygon "Rotates a polygon clockwise about its centroid. The theta argument determines how the polygon is rotated. `points` is a se...
null
https://raw.githubusercontent.com/thobbs/genartlib/e6092cf32e2402fc4e6a3651ce291de1bc765210/src/clj/genartlib/geometry.clj
clojure
(ns genartlib.geometry (:require [genartlib.algebra :refer [angle avg interpolate]] [quil.core :refer [dist cos sin]]) (:import [genartlib PolyUtils])) (defn rotate-polygon "Rotates a polygon clockwise about its centroid. The theta argument determines how the polygon is rotated. `points` is a se...
00839537b2c7d0154bbe02d097e312e3e70b9e83a9dc5c2c32521c846c68517f
kawasima/back-channeling
token_test.clj
(ns back-channeling.component.token-test (:require [back-channeling.component.token :refer :all] [com.stuartsierra.component :as component] [clojure.pprint :refer :all] [clojure.test :refer :all])) (deftest token-provider-test (testing "New token" (let [token-provider (compo...
null
https://raw.githubusercontent.com/kawasima/back-channeling/05d06278cedc35e4e7866384c2903d3c903a19fc/test/clj/back_channeling/component/token_test.clj
clojure
(ns back-channeling.component.token-test (:require [back-channeling.component.token :refer :all] [com.stuartsierra.component :as component] [clojure.pprint :refer :all] [clojure.test :refer :all])) (deftest token-provider-test (testing "New token" (let [token-provider (compo...