_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
cbe2107c1407fce57700a4fdc4bd421939eab5fd15a604b7ea26bc20a7619ace
haskell-servant/servant-multipart
Server.hs
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # import Control.Monad import Control.Monad.IO.Class import Network.Socket (withSocketsDo) import Network.Wai.Handler.Warp import Servant import Servant.Multipart import qualified Data.ByteString.Laz...
null
https://raw.githubusercontent.com/haskell-servant/servant-multipart/909539ed934d2e4488c109aa49c0abbb33eb483c/servant-multipart-client/exe/Server.hs
haskell
# LANGUAGE OverloadedStrings # Our API, which consists in a single POST endpoint at / that takes a multipart/form-data request body and pretty-prints the data it got to stdout before returning 0. The handler for our single endpoint. Its concrete type is: accessible through its "inputs" field, as well as files, ...
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE TypeFamilies # import Control.Monad import Control.Monad.IO.Class import Network.Socket (withSocketsDo) import Network.Wai.Handler.Warp import Servant import Servant.Multipart import qualified Data.ByteString.Lazy as LBS type API = MultipartForm ...
98b03ef9519cc166bd73ae442bc15195e8729b42d4b3b14ca6c5aa96eed02eb3
Kappa-Dev/KappaTools
export_to_KaSa.ml
* * export_to_KaSa.ml * openkappa * , project Antique , INRIA Paris * * Creation : June 30 2016 * Last modification : Time - stamp : < Dec 04 2018 > * * * * Copyright 2010,2011 Institut National de Recherche en Informatique et * en Automatique . All rights reserved . This f...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/export/export_to_KaSa.ml
ocaml
************************************************ work in process ************************************************
* * export_to_KaSa.ml * openkappa * , project Antique , INRIA Paris * * Creation : June 30 2016 * Last modification : Time - stamp : < Dec 04 2018 > * * * * Copyright 2010,2011 Institut National de Recherche en Informatique et * en Automatique . All rights reserved . This f...
1e8568659040674c5c9814123e46f345624fffbb055e80be454f67e9ba5b7fe8
aeolus-project/zephyrus
minizinc.mli
(****************************************************************************) (* *) This file is part of Zephyrus . (* *) Z...
null
https://raw.githubusercontent.com/aeolus-project/zephyrus/0b52de4038bbab724e6a9628430165a7f09f77ae/src/engine/solvers/minizinc/minizinc.mli
ocaml
************************************************************************** (at your option) any later version. ...
This file is part of Zephyrus . Zephyrus 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 Zephyru...
968406d033a4886a13eadeb313d1fd1e88f5f0b45325bd77101b5a57ef335b1b
jackfirth/lens
match.rkt
#lang reprovide lens/private/match
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-unstable/unstable/lens/match.rkt
racket
#lang reprovide lens/private/match
b6f13c8f9678062b7e95dc1bb6aaf52df4f5b7497fbf3ae81e3ac1e08c21fa39
atlas-engineer/nkeymaps
translators.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nkeymaps/translator) (declaim (ftype (function (string) string) toggle-case)) (defun toggle-case (string) "Return the input with reversed case if it has only one character." (if (= 1 (length string)) ...
null
https://raw.githubusercontent.com/atlas-engineer/nkeymaps/d43267a56f0ac264e4bdb3c75bbfc426f5ac5b2e/translators.lisp
lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nkeymaps/translator) (declaim (ftype (function (string) string) toggle-case)) (defun toggle-case (string) "Return the input with reversed case if it has only one character." (if (= 1 (length string)) ...
79ad07e5cbc619e2b677110c4485a70907856be07b44ab089c2d52bd1b7e6ada
fpco/stackage-curator
PackageIndex.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RankNTypes # {-# LANGUAG...
null
https://raw.githubusercontent.com/fpco/stackage-curator/c25cf6959a1d1b3129b18855ddbc7974324cc422/src/Stackage/PackageIndex.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings # # LANGUAGE GADTs # # LANGUAGE TemplateHaskell # | Dealing with the 00-index file and all its cabal files. Stack 2 package description itself ready to be parsed. It's left in...
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE NoImplicitPrelude # # LANGUAGE RankNTypes # # LANGUAGE StandaloneDeriving # # LANGUAGE RecordWildCards # # OPTIONS_GHC -fno - warn - orphans -fno - warn - deprecations # module Stackage.PackageIn...
df68b7a8265c05eca21b4c5d871e2937472357fd6711e31df22c7c34ddff02d2
racket/string-constants
bulgarian-string-constants.rkt
Bulgarian translation of Racket string constants file , version : 1.43 ;; This file is distributed under the same terms as Racket Copyright on translation : < > , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 , 2022 . (module bulgarian-string-constants "string-constant-lang.rkt" when translating this constan...
null
https://raw.githubusercontent.com/racket/string-constants/1cd2fbc72954e8f0092d5ca6b9d054a77fcf7f39/string-constants-lib/string-constants/private/bulgarian-string-constants.rkt
racket
This file is distributed under the same terms as Racket that go the with the string above. as in, close an open window or tab. must match close-menu-item in the sense that, when the &s have been stripped from close-menu-item, it must be the same string as this. for use in button and menu item labels, with short c...
Bulgarian translation of Racket string constants file , version : 1.43 Copyright on translation : < > , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 , 2022 . (module bulgarian-string-constants "string-constant-lang.rkt" when translating this constant , substitute name of actual language for ` English ' (i...
f522aeea0f0fbaf45e7c93d9b6b91b00c6f8db20022976552502fe67e5f458dd
resttime/cl-liballegro
events.lisp
(in-package :cl-liballegro) (defcenum event-types (:joystick-axis 1) (:joystick-button-down 2) (:joystick-button-up 3) (:joystick-configuration 4) (:key-down 10) (:key-char 11) (:key-up 12) (:mouse-axis 20) (:mouse-button-down 21) (:mouse-button-up 22) (:mouse-enter-display 23) (:mouse-leave-...
null
https://raw.githubusercontent.com/resttime/cl-liballegro/c7fc389af5be1441a6b023cf196de1d9063ce368/src/constants/events.lisp
lisp
Audio event type (addon) Video event type (addon)
(in-package :cl-liballegro) (defcenum event-types (:joystick-axis 1) (:joystick-button-down 2) (:joystick-button-up 3) (:joystick-configuration 4) (:key-down 10) (:key-char 11) (:key-up 12) (:mouse-axis 20) (:mouse-button-down 21) (:mouse-button-up 22) (:mouse-enter-display 23) (:mouse-leave-...
da7226f2d504edfa675a001474d3b54206693ec225887b4228adc5ac4d18a39a
mitchellwrosen/riak2
RiakIndex.hs
module RiakIndex ( Index(..) , getIndex , getIndexes , putIndex , putIndexWith , PutIndexOpts(..) , deleteIndex ) where import RiakError import RiakHandle (Handle) import RiakHandleError (HandleError) import RiakIndexName import RiakSchema (defaultSchema) import qualified RiakHandle as Handl...
null
https://raw.githubusercontent.com/mitchellwrosen/riak2/d3c4ef4389012c70e72623cdf9a4caec0a07e568/riak2/src/RiakIndex.hs
haskell
| A Solr index. @nodes@ is necessary for query plan calculation, and indicates the number of nodes that each bucket with which this index is associated with is replicated to. ^ Must be positive | Get a Solr index. ^ ^ | Get all Solr indexes. ^ | Put a Solr index. +----------------------------------+------...
module RiakIndex ( Index(..) , getIndex , getIndexes , putIndex , putIndexWith , PutIndexOpts(..) , deleteIndex ) where import RiakError import RiakHandle (Handle) import RiakHandleError (HandleError) import RiakIndexName import RiakSchema (defaultSchema) import qualified RiakHandle as Handl...
0fcbb2847104be1f8adc5c5dce2619dfec33416fd60e56fd7e04452a1b0e38f5
achirkin/qua-kit
Application.hs
{-# OPTIONS_HADDOCK hide, prune #-} # OPTIONS_GHC -fno - warn - orphans # {-# Language CPP #-} module Application ( getApplicationDev , appMain , develMain , makeFoundation , makeLogWare -- * for DevelMain , getApplicationRepl , shutdownApp -- * for GHCI , handler , db ) ...
null
https://raw.githubusercontent.com/achirkin/qua-kit/9f859e2078d5f059fb87b2f6baabcde7170d4e95/apps/hs/qua-server/src/Application.hs
haskell
# OPTIONS_HADDOCK hide, prune # # Language CPP # * for DevelMain * for GHCI Run grading simulation (long time proc). automatically import some data to start with schedule sending grades to edX from time to time Import all relevant handler modules here. Don't forget to add new modules to your cabal file! comment...
# OPTIONS_GHC -fno - warn - orphans # module Application ( getApplicationDev , appMain , develMain , makeFoundation , makeLogWare , getApplicationRepl , shutdownApp , handler , db ) where import Control.Monad.Logger (liftLoc, runLoggingT) import Database.Persist...
a4a5222145b7fc5310eae24b56d86a0cd4c746e84d3dcc766f8f07548a44994d
mzp/min-caml
anchor.ml
let re = Str.regexp "\\([(\\/]\\)\\* \\(.*\\) (caml2html: \\([a-zA-Z0-9_]+\\)) \\*\\([)\\/]\\)" let rec loop previous_lines = try let current_line = read_line () in let new_line = try ignore (Str.search_forward re current_line 0); let comment = Str.matched_group 2 current_line in let anchor = Str.ma...
null
https://raw.githubusercontent.com/mzp/min-caml/cf1180792a2a0bc895ba17a0052e3b6f4a74e444/src/anchor.ml
ocaml
let re = Str.regexp "\\([(\\/]\\)\\* \\(.*\\) (caml2html: \\([a-zA-Z0-9_]+\\)) \\*\\([)\\/]\\)" let rec loop previous_lines = try let current_line = read_line () in let new_line = try ignore (Str.search_forward re current_line 0); let comment = Str.matched_group 2 current_line in let anchor = Str.ma...
87c33cf2326bf5650a7c0b5610cd84d5efa38d68ef0d0ba80d4bd664bb641011
WeiDUorg/weidu
biff.ml
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 6 November 2005 . All changes for this file are listed in ...
null
https://raw.githubusercontent.com/WeiDUorg/weidu/ade8c4d7a05849f1c8e9a50bac0a83c6bf644498/src/biff.ml
ocaml
create a biff from a bunch of components * save the biff to the disk * returns an updated KEY _that can only be saved, cannot be used_ resource location resource location remove duplicates! buffer holds the uncompressed bytes [start_unc,end_unc] result log_and_print "cmp_off = %d unc_off = %d :: c...
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 6 November 2005 . All changes for this file are listed in ...
fa89d9e4c97e9ddb8cf2b62adab46c123d7235720886c877c512fa607ca8746e
jubnzv/iec-checker
plcopen_cp25.ml
open Core open IECCheckerCore module TI = Tok_info module S = Syntax let types_can_be_casted ty_from ty_to = let open S in match (ty_from, ty_to) with | (DTyDeclSingleElement(se_from_spec,_),DTyDeclSingleElement(se_to_spec,_)) -> begin match (se_from_spec, se_to_spec) with | (DTySpecElementary(REAL|...
null
https://raw.githubusercontent.com/jubnzv/iec-checker/ea3c217cda56dfb8a84e85773876d58e358fc499/src/lib/plcopen_cp25.ml
ocaml
open Core open IECCheckerCore module TI = Tok_info module S = Syntax let types_can_be_casted ty_from ty_to = let open S in match (ty_from, ty_to) with | (DTyDeclSingleElement(se_from_spec,_),DTyDeclSingleElement(se_to_spec,_)) -> begin match (se_from_spec, se_to_spec) with | (DTySpecElementary(REAL|...
c60a61c199d267f898c305821e750bbcd70a79debee7e2a90fe9b44bf9fc5cf1
roburio/dns-primary-git
unikernel.ml
( c ) 2017 , 2018 , all rights reserved open Lwt.Infix module Main (R : Mirage_random.S) (P : Mirage_clock.PCLOCK) (M : Mirage_clock.MCLOCK) (T : Mirage_time.S) (S : Tcpip.Stack.V4V6) (_ : sig end) = struct module Store = Git_kv.Make(P) let inc = let create ~f = let data : (string, int) Hashtbl.t ...
null
https://raw.githubusercontent.com/roburio/dns-primary-git/158958a2cddf453e96baeb9c7cd55c02f8f8a16a/unikernel.ml
ocaml
TODO error recovery could be to increment the SOA serial, followed by a push to git (the other errors above and below can't be fixed automatically - thus a git pull can always fail :/)
( c ) 2017 , 2018 , all rights reserved open Lwt.Infix module Main (R : Mirage_random.S) (P : Mirage_clock.PCLOCK) (M : Mirage_clock.MCLOCK) (T : Mirage_time.S) (S : Tcpip.Stack.V4V6) (_ : sig end) = struct module Store = Git_kv.Make(P) let inc = let create ~f = let data : (string, int) Hashtbl.t ...
e6887a57247e42c33175b2cf536bfa3cdf6406c9c428bbb6b91c88a616135035
j-mie6/ParsleyHaskell
QueueLike.hs
| Module : Parsley . Internal . Common . Description : Operations to work with Queue - like things . License : BSD-3 - Clause Maintainer : : experimental Exposes the core shared operations of queue implementations . @since 1.5.0.0 Module : Parsley.Internal.Common.QueueLike Descr...
null
https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/045ab78ed7af0cbb52cf8b42b6aeef5dd7f91ab2/parsley-core/src/ghc/Parsley/Internal/Common/QueueLike.hs
haskell
| Module : Parsley . Internal . Common . Description : Operations to work with Queue - like things . License : BSD-3 - Clause Maintainer : : experimental Exposes the core shared operations of queue implementations . @since 1.5.0.0 Module : Parsley.Internal.Common.QueueLike Descr...
cfa9931d3f8d7c20517ffeb0686f6583ebbea765ed5de8bc46883cbdc3818b92
paurkedal/viz
ocaml_array.ml
Copyright ( C ) 2011 - -2016 Petter A. Urkedal < > * * This file is part of the Viz Standard Library < / > . * * The Viz Standard Library ( VSL ) 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 Softw...
null
https://raw.githubusercontent.com/paurkedal/viz/ab1f1071fafdc51eae69185ec55d7a6e7bb94ea9/vsl/compat/ocaml_array.ml
ocaml
Copyright ( C ) 2011 - -2016 Petter A. Urkedal < > * * This file is part of the Viz Standard Library < / > . * * The Viz Standard Library ( VSL ) 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 Softw...
26693c68271ec037761770d8716283459b659fbae90722cddcef8ca888329ecc
acieroid/scala-am
rng.scm
;; Random number generate sharing state among multiple threads (define N (+ (random 42) 10)) (define (range from to) (if (= from to) (cons from '()) (cons from (range (+ from 1) to)))) (define (rng seed) (letrec ((state (ref seed)) (lock (new-lock))) (lambda () (acquire lock) ...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/concurrentScheme/threads/rng.scm
scheme
Random number generate sharing state among multiple threads
(define N (+ (random 42) 10)) (define (range from to) (if (= from to) (cons from '()) (cons from (range (+ from 1) to)))) (define (rng seed) (letrec ((state (ref seed)) (lock (new-lock))) (lambda () (acquire lock) (ref-set state (modulo (+ (* 5245 (deref state)) 12345) 10737...
b9b148b68ee7b1fddeec9185cbbc5e3fbc412fb0c6da5e6deaab3a1f8c3786ac
ntoronto/pict3d
center-pointer.rkt
#lang racket/base (require racket/class racket/math) (provide (all-defined-out)) #;(: snip-center-pointer (-> (Instance Snip%) (Values (U #f Integer) (U #f Integer)))) (define (snip-center-pointer snip) (define admin (send snip get-admin)) (define editor (and admin (send admin get-editor))) (define ca...
null
https://raw.githubusercontent.com/ntoronto/pict3d/09283c9d930c63b6a6a3f2caa43e029222091bdb/pict3d/private/gui/utils/center-pointer.rkt
racket
(: snip-center-pointer (-> (Instance Snip%) (Values (U #f Integer) (U #f Integer))))
#lang racket/base (require racket/class racket/math) (provide (all-defined-out)) (define (snip-center-pointer snip) (define admin (send snip get-admin)) (define editor (and admin (send admin get-editor))) (define canvas (and editor (send editor get-active-canvas))) (cond [(and editor canvas) ...
2c0391858879d4cf2c735040fc9928f4d5fa25f92f32dfaf9a2d4b85aa0826f0
csabahruska/jhc-components
Binary.hs
module Name.Binary() where import Data.Monoid import Maybe import Data.Binary import GenUtil(replicateM) import Name.Id import Name.Internals import Support.MapBinaryInstance instance Binary IdSet where put ids = do putList [ id | id <- idSetToList ids, isNothing (fromId id)] putList [ n | id <- ...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/jhc-common/src/Name/Binary.hs
haskell
module Name.Binary() where import Data.Monoid import Maybe import Data.Binary import GenUtil(replicateM) import Name.Id import Name.Internals import Support.MapBinaryInstance instance Binary IdSet where put ids = do putList [ id | id <- idSetToList ids, isNothing (fromId id)] putList [ n | id <- ...
0d90054f186098199dd39fd16535ca9f01c63fc3f4d93356889d8569da1c9a3c
swarm-game/swarm
VarUsage.hs
{-# LANGUAGE OverloadedStrings #-} -- | SPDX - License - Identifier : BSD-3 - Clause module Swarm.Language.LSP.VarUsage where import Control.Monad (guard) import Data.List.NonEmpty (NonEmpty (..)) import Data.Map (Map) import Data.Map qualified as M import Data.Set (Set) import Data.Set qualified as S import Data.T...
null
https://raw.githubusercontent.com/swarm-game/swarm/affc8668b77b7e85d3d23c182a5159df36d17306/src/Swarm/Language/LSP/VarUsage.hs
haskell
# LANGUAGE OverloadedStrings # | ^ Variable references ^ Variable declarations without any references A leading underscore will suppress the unused variable warning | Descends the syntax tree rooted at a variable declaration, accumulating variable references. Generates a "problem" if an associated variable refer...
SPDX - License - Identifier : BSD-3 - Clause module Swarm.Language.LSP.VarUsage where import Control.Monad (guard) import Data.List.NonEmpty (NonEmpty (..)) import Data.Map (Map) import Data.Map qualified as M import Data.Set (Set) import Data.Set qualified as S import Data.Text (Text) import Data.Text qualified as...
03aa4210503701571376566cc442d2a0dbf6cce504ec4509ac6d556a4cb5b25f
simonmar/parconc-examples
geturlscancel2.hs
{-# LANGUAGE DeriveDataTypeable, CPP #-} ( c ) 2011 , see the file LICENSE for copying terms . -- Sample geturls.hs ( CEFP summer school notes , 2011 ) -- -- Downloading multiple URLs concurrently, timing the downloads, -- and the user may press 'q' to stop the downloads at any time. -- -- Compile with: -- ghc...
null
https://raw.githubusercontent.com/simonmar/parconc-examples/840a3f508f9bb6e03961e1b90311a1edd945adba/geturlscancel2.hs
haskell
# LANGUAGE DeriveDataTypeable, CPP # Downloading multiple URLs concurrently, timing the downloads, and the user may press 'q' to stop the downloads at any time. Compile with: ghc -threaded --make geturlscancel.hs --------------------------------------------------------------------------- Our Async API: <<As...
( c ) 2011 , see the file LICENSE for copying terms . Sample geturls.hs ( CEFP summer school notes , 2011 ) import GetURL import TimeIt import Data.Either import System.IO import Control.Monad #if __GLASGOW_HASKELL__ < 706 import Control.Concurrent #else forkFinally was added in GHC 7.6 import Control.Concurr...
6cc43705ff20a504e52cf1503d663e994a26421f438cbad0560c92f987a265ac
kowainik/policeman
Diff.hs
{- | -} module Policeman.Core.Diff ( PackageDiff (..) , Diff (..) , emptyDiff , hasDiffAdded , hasDiffDeleted ) where import Policeman.Core.Package (Export, Module) import qualified Data.Set as Set data PackageDiff = PackageDiff { pdModule :: !(Diff Module) , pdExport :: !(HashMap M...
null
https://raw.githubusercontent.com/kowainik/policeman/26a92678c76b145ad9ae30054bf978a0d6ec2a58/src/Policeman/Core/Diff.hs
haskell
|
module Policeman.Core.Diff ( PackageDiff (..) , Diff (..) , emptyDiff , hasDiffAdded , hasDiffDeleted ) where import Policeman.Core.Package (Export, Module) import qualified Data.Set as Set data PackageDiff = PackageDiff { pdModule :: !(Diff Module) , pdExport :: !(HashMap Module (D...
a8e5c194d3c35da9ff2307f95d8efbc41185029b0f6e584bf0d93ef906fe0c28
TerrorJack/ghc-alter
Base.hs
NOTA BENE : Do NOT use ( $ ) anywhere in this module ! The type of ( $ ) is slightly magical ( it can return unlifted types ) , and it is wired in . But , it is also * defined * in this module , with a non - magical type . GHC gets terribly confused ( and * hangs * ) if you try to use ( $ ) in this module , ...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/GHC/Base.hs
haskell
------------------------------------------- ------------------------------------------- -Wno-orphans is needed for things like: # OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | Module : GHC.Base License : see libraries/base/LICENSE Maintainer : ...
NOTA BENE : Do NOT use ( $ ) anywhere in this module ! The type of ( $ ) is slightly magical ( it can return unlifted types ) , and it is wired in . But , it is also * defined * in this module , with a non - magical type . GHC gets terribly confused ( and * hangs * ) if you try to use ( $ ) in this module , ...
8e560dd777cc3c02999a51a037bfc96781cb7b5e052fdc69a78f626476756c33
chef-boneyard/opscode-pushy-server
pushy_job_output_resource.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et @author < > %%% @doc %%% REST resource providing the output blobs from jobs %%% @end Copyright 2014 Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %%...
null
https://raw.githubusercontent.com/chef-boneyard/opscode-pushy-server/7272326960fcc35eaa99fa8d5f5bd58959755b3e/apps/pushy/src/pushy_job_output_resource.erl
erlang
ex: ts=4 sw=4 et @doc REST resource providing the output blobs from jobs @end Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- @author < > Copyright 2014 Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTI...
6b4dd35bbe9421c3801e94d59cb7ce21e8ee8ff6438cf9adfea1abf74e06fb84
AndrasKovacs/ELTE-func-lang
Notes03.hs
-- Semigroup, Monoid, Functor ------------------------------------------------------------ bevezetés , egyszerű : Semigroup , Monoid tárgy anyagának jelentős része : 3 class , összesen 4 daraba metódus Functor , Applicative , Monad import Prelude hiding (Functor(..), Semigroup(..), Monoid(..)) ig...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/88d41930999d6056bdd7bfaa85761a527cce4113/2019-20-2/gyak_1/Notes03.hs
haskell
Semigroup, Monoid, Functor ---------------------------------------------------------- (a <> b) <> c = a <> (b <> c) összefűzés (xs ++ ys) ++ zs = xs ++ (ys ++ zs) (xs ++ []) = xs (<>) :: (a, b) -> (a, b) -> (a, b) emlékeztető: ("foo", "bar") <> ("a", "b") == ("fooa", "barb") ("foo", ("bar", "a")) <> ...
bevezetés , egyszerű : Semigroup , Monoid tárgy anyagának jelentős része : 3 class , összesen 4 daraba metódus Functor , Applicative , Monad import Prelude hiding (Functor(..), Semigroup(..), Monoid(..)) igaz : osztályok ( elnevezés + definíció ) kategóriaelméletből ( ) infixr 6 <> ...
b9fb524884f9d005f6aabe2ba51d81ffb619794e235c41cadd4f103aeac5f3e1
mumuki/mulang
Aliaser.hs
module Language.Mulang.Transform.Aliaser ( alias) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Language.Mulang.Ast import Language.Mulang.Ast.Operator (Operator) import Language.Mulang.Ast.Visitor alias :: Map Identifier Operator -> Exp...
null
https://raw.githubusercontent.com/mumuki/mulang/92684f687566b2adafb331eae5b5916e2d90709e/src/Language/Mulang/Transform/Aliaser.hs
haskell
module Language.Mulang.Transform.Aliaser ( alias) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Language.Mulang.Ast import Language.Mulang.Ast.Operator (Operator) import Language.Mulang.Ast.Visitor alias :: Map Identifier Operator -> Exp...
c07ba76b649cdd8e9598c4e74b649ff8b42d323d620ee9885ef482ea0021985f
racket/racket-lang-org
color.rkt
#lang racket/base (require pict) (provide (all-defined-out)) (define scheme-color "purple") (define racket-color "blue") (define old-racket-color "lightblue") (define oldish-racket-color "deepskyblue") (define c-color "red") (define scrbl-color "forestgreen") (define linklet-color "SlateBlue") (define r6-color "tom...
null
https://raw.githubusercontent.com/racket/racket-lang-org/88dada2ee769ada9afaf1e3ec1fb28b8ddf216db/blog/_src/posts/racket-status-jan2021/color.rkt
racket
#lang racket/base (require pict) (provide (all-defined-out)) (define scheme-color "purple") (define racket-color "blue") (define old-racket-color "lightblue") (define oldish-racket-color "deepskyblue") (define c-color "red") (define scrbl-color "forestgreen") (define linklet-color "SlateBlue") (define r6-color "tom...
1e06f9303a2ad5c30894673131ed4c49be18d5f61ae9b68e719a5bd028f3d1ae
kcsongor/generic-lens
HList.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TupleSections # # LANGUAGE Ty...
null
https://raw.githubusercontent.com/kcsongor/generic-lens/de57d7a8ce7ce9f5b93f27565ec6fc98d659e03f/generic-lens-core/src/Data/Generics/Product/Internal/HList.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE FlexibleContexts # # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeInType # # LANGUAGE TypeOperators # --------------------------------------------------------------------...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # Module : Data . Generics . Product . Internal . HList Copyright : ( C ) 2020 ...
def92696f5b3f72ccd877b2d98b8dc00719933fca0967895b09caf74131b4119
clojerl/clojerl
clojerl.ISeqable.erl
%%% Code generate by scripts/generate-protocols -module('clojerl.ISeqable'). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -clojure(true). -protocol(true). -export(['seq'/1, 'to_list'/1]). -export([?SATISFIES/1]). -export([?EXTENDS/1]). -callback 'seq'(any()) -> any(). -callback 'to_list'(any()) -> any(). -...
null
https://raw.githubusercontent.com/clojerl/clojerl/aa35847ca64e1c66224867ca4c31ca6de95bc898/src/erl/lang/protocols/clojerl.ISeqable.erl
erlang
Code generate by scripts/generate-protocols
-module('clojerl.ISeqable'). -include("clojerl.hrl"). -include("clojerl_int.hrl"). -clojure(true). -protocol(true). -export(['seq'/1, 'to_list'/1]). -export([?SATISFIES/1]). -export([?EXTENDS/1]). -callback 'seq'(any()) -> any(). -callback 'to_list'(any()) -> any(). -optional_callbacks(['seq'/1, 'to_list'/1]). 'se...
f9866f2db1cd750650670ad668778ae319ea7d01889ebc343f377f26652eb71b
tek/polysemy-http
Http.hs
{-# options_haddock prune #-} -- |Description: Streaming Implementation, Internal module Polysemy.Http.Http where import qualified Data.ByteString as ByteString import Polysemy.Http.Data.HttpError (HttpError) import Polysemy.Http.Data.Request (Request) import Polysemy.Http.Data.Response (Response (Response)) import ...
null
https://raw.githubusercontent.com/tek/polysemy-http/37b0cfbd8987e2a64d65687f46a09ae5481b3eaa/packages/polysemy-http/lib/Polysemy/Http/Http.hs
haskell
# options_haddock prune # |Description: Streaming Implementation, Internal |Initiate a request and stream the response, calling @process@ after connecting, for every chunk, after closing the connection, and for the return value. 'StreamEvent' is used to indicate the stage of the request cycle. The optional 'Int' a...
module Polysemy.Http.Http where import qualified Data.ByteString as ByteString import Polysemy.Http.Data.HttpError (HttpError) import Polysemy.Http.Data.Request (Request) import Polysemy.Http.Data.Response (Response (Response)) import Polysemy.Http.Data.StreamChunk (StreamChunk (StreamChunk)) import qualified Polyse...
671ef0735887dee29d315e53027826b7b07a381d6f1f4a17f838617da6ae8f64
ahf/peculium_core
peculium_core_transaction_outpoint.erl
%%% Copyright ( c ) 2013 . %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the following conditions are met: %%% %%% * Redistributions of source code must retain the above copyright notice, this %%% list of condition...
null
https://raw.githubusercontent.com/ahf/peculium_core/50259b7ee11ad31316e97c7e88b33cae3f89e5a1/src/peculium_core_transaction_outpoint.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions...
Copyright ( c ) 2013 . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF S...
85fa47c0b687766a69aaae75ae9c4426855c7b83652d3de1bef338a5195277de
dsheets/codoc
codocDocHtml.ml
* Copyright ( c ) 2014 < > * * 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 SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/dsheets/codoc/382077cf3e7e20e478bd97cc0b348e0b2ec926db/lib/codocDocHtml.ml
ocaml
TODO: link TODO: link TODO: test TODO: test TODO: test TODO: output special unlinked ref TODO: test TODO: test TODO: test hyperlink TODO: test TODO: test TODO: test TODO: test TODO: test TODO: test TODO: test TODO: test TODO: test TODO: test syntactically unspecified syntactic...
* Copyright ( c ) 2014 < > * * 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 SOFTWARE IS PROVIDED " AS IS " AND THE AU...
8deaf75525fd747e808ad941af79f6b92b4db9bf55c2ca1005b252d8ff6d94e9
tatut/postgrest-ui
filters.cljs
(ns postgrest-ui.components.filters "Helpers to create forms that filter listing views." (:require [reagent.core :as r] [clojure.string :as str] [postgrest-ui.elements :refer [element]]) (:require-macros [postgrest-ui.impl.state :refer [define-stateful-component]])) (defn simple-search-fo...
null
https://raw.githubusercontent.com/tatut/postgrest-ui/a6a38d14433ec793c6d9df0a288d8501073eabe7/src/cljs/postgrest_ui/components/filters.cljs
clojure
{:or {"field1" [:ilike "%text%"] ... "fieldn" [:ilike "%text"]}}
(ns postgrest-ui.components.filters "Helpers to create forms that filter listing views." (:require [reagent.core :as r] [clojure.string :as str] [postgrest-ui.elements :refer [element]]) (:require-macros [postgrest-ui.impl.state :refer [define-stateful-component]])) (defn simple-search-fo...
90a22a9597ea7f7f3fda47bd945874f5514c40b11dc10fb3811ab3b8e0a8bdd9
clojure-interop/java-jdk
SynthRootPaneUI.clj
(ns javax.swing.plaf.synth.SynthRootPaneUI "Provides the Synth L&F UI delegate for JRootPane." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.synth SynthRootPaneUI])) (defn ->synth-root-pane-ui "Constructor." (^SynthRootPaneUI [] (new SynthRootPaneUI ))) (defn *create-ui ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/plaf/synth/SynthRootPaneUI.clj
clojure
(ns javax.swing.plaf.synth.SynthRootPaneUI "Provides the Synth L&F UI delegate for JRootPane." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.plaf.synth SynthRootPaneUI])) (defn ->synth-root-pane-ui "Constructor." (^SynthRootPaneUI [] (new SynthRootPaneUI ))) (defn *create-ui ...
4a68134b80fad82e2f10cd6c279f008944462ad811bb968a3917d63d0c57fbf2
anoma/juvix
test026.hs
data Tree = Leaf | Node Tree Tree gen :: Int -> Tree gen n = if n <= 0 then Leaf else Node (gen (n - 2)) (gen (n - 1)) f :: Tree -> Integer f Leaf = 1 f (Node l r) = let l' = g l in let r' = g r in let a = case l' of Leaf -> -3 Node l r -> f l + f r in let b = ca...
null
https://raw.githubusercontent.com/anoma/juvix/3db92fa28668659c61c30986858c7108c2e63647/tests/Core/positive/reference/test026.hs
haskell
data Tree = Leaf | Node Tree Tree gen :: Int -> Tree gen n = if n <= 0 then Leaf else Node (gen (n - 2)) (gen (n - 1)) f :: Tree -> Integer f Leaf = 1 f (Node l r) = let l' = g l in let r' = g r in let a = case l' of Leaf -> -3 Node l r -> f l + f r in let b = ca...
5398414ea80e39b4e0983d406ba95bdda3e0e010859cbe69f9de01773d342faa
appleshan/cl-http
w4-45-8.lisp
-*- Mode : LISP ; Syntax : ansi - common - lisp ; Package : http ; Base : 10 ; Patch - File : t -*- Patch file for W4 version 45.8 ;;; Reason: Provide resource body caching. ;;; Function ( CLOS : METHOD HTTP::CHUNKED - INPUT - CAPTURE ( T T T ) ): use resources . ;;; Function HTTP::%GET-URL-HEADERS-AND-BODY: ...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/lispm/w4/patch/w4-45/w4-45-8.lisp
lisp
Syntax : ansi - common - lisp ; Package : http ; Base : 10 ; Patch - File : t -*- Reason: Provide resource body caching. Function HTTP::%GET-URL-HEADERS-AND-BODY: use resources. Function (CLOS:METHOD W4::CLEAR-WALKER-CACHE (URL:URL)): - Function HTTP::WITHOUT-WEB-WALKER-CACHE-RESOURCE-EXCEPTIONAL-LEAKS: - Fu...
Patch file for W4 version 45.8 Function ( CLOS : METHOD HTTP::CHUNKED - INPUT - CAPTURE ( T T T ) ): use resources . Function ( CLOS : METHOD HTTP::CHUNKED - INPUT - CAPTURE ( T T T ) ): - Function ( CLOS : METHOD ( W4::ACTIVITY URL : HTTP - URL T T ) ): - Variable HTTP::*DEFAULT - WEB - WALKER - C...
a927dbb30f9098cf52b77a1f619303af2bc6ee2444a2b6c1d4c6502922ddedc4
couchbase/chronicle
chronicle_log_tests.erl
@author Couchbase < > 2021 Couchbase , Inc. %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, sof...
null
https://raw.githubusercontent.com/couchbase/chronicle/3084f42e9824911e1de98c685acc6301400b00d8/test/chronicle_log_tests.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
@author Couchbase < > 2021 Couchbase , Inc. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(chronicle_log_tests). -include_lib("eunit/include/eunit.hrl"). get_dir() -> {ok, CurDir} = file:get_cwd(), fi...
7d38e54d3a88e1203efdbf71c935cb9610c461afe0cf51e6bee3365b6b167a63
soegaard/sketching
vector-of-objects.rkt
#lang sketching ; -docs/tree/master/content/examples/Basics/Arrays/ArrayObjects ; Vector of objects. ; Demonstrates how to create a vector of objects. (class Blob Object " Constructor " (init-field [x-offset 0] [y-offset 0] [x 0] [y 0] [unit...
null
https://raw.githubusercontent.com/soegaard/sketching/94e114ac6e92ede3b85481df755b673be24b226e/sketching-doc/sketching-doc/manual-examples/basics/vectors/vector-of-objects.rkt
racket
-docs/tree/master/content/examples/Basics/Arrays/ArrayObjects Vector of objects. Demonstrates how to create a vector of objects. super class initialization Methods --------------- for* is a nested loop
#lang sketching (class Blob Object " Constructor " (init-field [x-offset 0] [y-offset 0] [x 0] [y 0] [unit 1] [x-dir 1] [y-dir 1] [speed 1]) (define/public (update) (:= x (+ x (...
fd91b20a82d951850fb92f38d984bfc67e2905ad81efdf737b9427bc0276b4f2
jgm/hscommonmark
Lexer.hs
module CommonMark.Lexer ( tokenize ) where import CommonMark.Types import Data.Char (isAlphaNum, isAlpha, isDigit, isHexDigit, isAscii, isSymbol, isPunctuation) import Data.Text (Text) import qualified Data.Text as Text import Data.Monoid tokenize :: Text -> [Token] tokenize inp = go 1 0 inp wh...
null
https://raw.githubusercontent.com/jgm/hscommonmark/6820c48f0179a5c9c1b7ef973330ca0ff90b3dc0/src/CommonMark/Lexer.hs
haskell
scan for an entity after the &; return full entity, including &, and the remaining text.
module CommonMark.Lexer ( tokenize ) where import CommonMark.Types import Data.Char (isAlphaNum, isAlpha, isDigit, isHexDigit, isAscii, isSymbol, isPunctuation) import Data.Text (Text) import qualified Data.Text as Text import Data.Monoid tokenize :: Text -> [Token] tokenize inp = go 1 0 inp wh...
9b5e8eba58dbf0ab2cd7c0e86a1a90513a3b734faf6567ddc07b3839c26ae719
TrustInSoft/tis-interpreter
state_topological.ml
(**************************************************************************) (* *) : a generic graph library for ocaml Copyright ( C ) 2004 - 2012 , and (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/libraries/project/state_topological.ml
ocaml
************************************************************************ This library is free software; you can redistribute it and/or ...
: a generic graph library for ocaml Copyright ( C ) 2004 - 2012 , and modify it under the terms of the GNU Library General Public License version 2.1 , as published by the Free Software Foundation . See th...
62f3cb723637a3a0e789fff51454fa162f0366153cccdb7a16ef9ef3c626930c
cedlemo/OCaml-GI-ctypes-bindings-generator
Notebook_private.ml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Notebook_private"
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Notebook_private.ml
ocaml
open Ctypes open Foreign type t let t_typ : t structure typ = structure "Notebook_private"
bd5e8174f4ac193b792a8955f89908bca4f1e865f84d5d55e1d70e662a190ed3
wilkerlucio/pathom-viz
hooks.cljs
(ns com.wsscode.pathom.viz.lib.hooks (:require [helix.hooks :as hooks] [goog.dom :as gdom] [com.wsscode.pathom.viz.lib.local-storage :as ls] [garden.core :as garden] [com.fulcrologic.fulcro.dom :as dom])) (deftype ReactFnState [value set-value!] IDeref (-deref [_o]...
null
https://raw.githubusercontent.com/wilkerlucio/pathom-viz/6bed1d2adf556655892213de2d50fbe2db3c5423/src/core/com/wsscode/pathom/viz/lib/hooks.cljs
clojure
(ns com.wsscode.pathom.viz.lib.hooks (:require [helix.hooks :as hooks] [goog.dom :as gdom] [com.wsscode.pathom.viz.lib.local-storage :as ls] [garden.core :as garden] [com.fulcrologic.fulcro.dom :as dom])) (deftype ReactFnState [value set-value!] IDeref (-deref [_o]...
51ed721697d53c91858f2d42c8fbcb348541ffaad07b1c30e0aefca2ddae6a40
wdebeaum/DeepSemLex
subdue.lisp
;;;; ;;;; W::subdue ;;;; (define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::subdue (SENSES ((meta-data :origin cardiac :entry-date 20090130 :change-date nil :comments nil) (LF-PARENT ONT::tame) (EXAMPLE "the weather subdued them") (TEMPL AGENT-AFFECTED-XP-NP-TEMPL) ) )...
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/subdue.lisp
lisp
W::subdue
(define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::subdue (SENSES ((meta-data :origin cardiac :entry-date 20090130 :change-date nil :comments nil) (LF-PARENT ONT::tame) (EXAMPLE "the weather subdued them") (TEMPL AGENT-AFFECTED-XP-NP-TEMPL) ) ) ) ))
b59afd929161f6b377429998daac7e96936da04ecc18f23ae3e9d146c1ddd971
BinaryAnalysisPlatform/bap
bap_cache_types.ml
open Core_kernel[@@warning "-D"] open Regular.Std type config = { Mb overhead : int; (* % *) gc_enabled : bool; } [@@deriving bin_io, compare, sexp] module Compatibility = struct module V2 = struct type entry = { atime : float; ctime : float; hits : int; path : string;...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/plugins/cache/bap_cache_types.ml
ocaml
%
open Core_kernel[@@warning "-D"] open Regular.Std type config = { Mb gc_enabled : bool; } [@@deriving bin_io, compare, sexp] module Compatibility = struct module V2 = struct type entry = { atime : float; ctime : float; hits : int; path : string; size : int64; ...
388eeb73018508972d7725c92a86db368d3ac6e90fccc38fb696890ff1c3e24a
sansarip/owlbear
parse.cljs
#_{:clj-kondo/ignore [:unused-namespace]} (ns owlbear.parse "Tree-sitter parsing" (:require [cljs-bean.core :refer [->js]] [oops.core :refer [ocall]] [web-tree-sitter :as Parser])) (defonce languages (atom {})) (def html-lang-id :html) (def md-lang-id :markdown) (def ts-lang-id :typescript...
null
https://raw.githubusercontent.com/sansarip/owlbear/d2184703dde53d2c6aa60adb5a7c3745323267c1/src/cljs/owlbear/parse.cljs
clojure
Examples Map of registed languages Editing a tree
#_{:clj-kondo/ignore [:unused-namespace]} (ns owlbear.parse "Tree-sitter parsing" (:require [cljs-bean.core :refer [->js]] [oops.core :refer [ocall]] [web-tree-sitter :as Parser])) (defonce languages (atom {})) (def html-lang-id :html) (def md-lang-id :markdown) (def ts-lang-id :typescript...
3b0efa6fcc22b4f28cb6f870e77568d4656c1f506a8c6f7799b6cbf102a3b02c
gafiatulin/codewars
Operarray.hs
-- Reducing by steps -- module Codewars.G964.Operarray where gcdi :: Integer -> Integer -> Integer gcdi = gcd lcmu :: Integer -> Integer -> Integer lcmu = lcm som :: Integer -> Integer -> Integer som = (+) maxi :: Integer -> Integer -> Integer maxi = max mini :: Integer -> Integer -> Integer mini = min operArray ::...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/Operarray.hs
haskell
Reducing by steps
module Codewars.G964.Operarray where gcdi :: Integer -> Integer -> Integer gcdi = gcd lcmu :: Integer -> Integer -> Integer lcmu = lcm som :: Integer -> Integer -> Integer som = (+) maxi :: Integer -> Integer -> Integer maxi = max mini :: Integer -> Integer -> Integer mini = min operArray :: (Integer -> Integer -> I...
252c47daf2c7fa0ddfed0ca0e45450656aa1e1dccd5908ce67a65f490ea893bb
Datomic/day-of-datomic
graph.clj
Copyright ( c ) Cognitect , Inc. All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be...
null
https://raw.githubusercontent.com/Datomic/day-of-datomic/20c02d26fd2a12481903dd5347589456c74f8eeb/tutorial/graph.clj
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 ) Cognitect , Inc. All rights reserved . (require '[clojure.pprint :as pp] '[datomic.api :as d] '[datomic.samples.repl :as repl]) (def conn (repl/scratch-conn)) (repl/transact-all conn (repl/resource "day-of-datomic/graph.edn")) (def db (d/db conn)) (d/q '[:find (pull ?role [:role/name]) ...
0f1c6cb3403d3de9683af36572201e8544e7cf766b5b9fd2207d020e8675e7e9
oriansj/mes-m2
stringlength.scm
GNU --- Maxwell Equations of Software Copyright ( C ) 2008 Kragen ;;; This file is part of GNU . ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( ...
null
https://raw.githubusercontent.com/oriansj/mes-m2/b44fbc976ae334252de4eb82a57c361a195f2194/test/test029/stringlength.scm
scheme
you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Setup output file
GNU --- Maxwell Equations of Software Copyright ( C ) 2008 Kragen This file is part of GNU . under the terms of the GNU General Public License as published by GNU is distributed in the hope that it will be useful , but You should have received a copy of the GNU General Public License along with GNU...
06d1ae411eb90795afed581cfa57a2c7d5ed613dae2b3d42b4a9bfd8b5b2c4a0
master/ejabberd
pubsub_db_odbc.erl
%%% ==================================================================== ` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %%% compliance with the License. You should have received a copy of the %%% Erlang Public License ...
null
https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/mod_pubsub/pubsub_db_odbc.erl
erlang
==================================================================== compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved via the world wide web at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the...
` ` The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " The Initial Developer of the Original Code is ProcessOne . Portions created by ProcessOne are C...
332717c0c708266fe5bb2861d6abdb4ff67f2a311a9f736620aa6df20bacdd9e
rabbitmq/rabbitmq-auth-backend-amqp
test_SUITE.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2012 VMware , Inc. All rights reserved . %% -module(test_SUITE). -include_lib("eunit/include/eunit.hrl"). -inclu...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-auth-backend-amqp/d83e3047f18c466499f3f48dbe157d27ec2f575a/test/test_SUITE.erl
erlang
------------------------------------------------------------------- Testsuite setup/teardown. ------------------------------------------------------------------- Once there is a queue bound to the `authentication` exchange, we assume it's the test backend. ------------------------------------------------------...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2012 VMware , Inc. All rights reserved . -module(test_SUITE). -include_lib("eunit/include/eunit.hrl"). -include_lib...
6bd864097743bd45b3f49bf35be40c3cbb53c58168f6424edb1159b5b8664d5f
LaurentMazare/tensorflow-ocaml
ops.ml
include Ops_generated include Ops_manual
null
https://raw.githubusercontent.com/LaurentMazare/tensorflow-ocaml/52c5f1dec1a8b7dc9bc6ef06abbc07da6cd90d39/src/graph/ops.ml
ocaml
include Ops_generated include Ops_manual
d9e8249129e5fa67be972e5c6a3a22c501fe48dc3ecfe85083149f44d4ddc6cd
portkey-cloud/edn-to-cfn
emr.clj
(ns portkey.cloudformation.emr "AUTOGENERATED clojure.spec definitions" (:require [clojure.spec.alpha] [portkey.cloudformation])) (do (clojure.core/defmethod portkey.cloudformation/resource-type-spec :portkey.cloudformation.emr/instance-fleet-config [___19567__auto__] (clojure.spec.alpha/keys ...
null
https://raw.githubusercontent.com/portkey-cloud/edn-to-cfn/7a3d247d35b7c4988c9b55634d03a008b87a2449/src/portkey/cloudformation/emr.clj
clojure
(ns portkey.cloudformation.emr "AUTOGENERATED clojure.spec definitions" (:require [clojure.spec.alpha] [portkey.cloudformation])) (do (clojure.core/defmethod portkey.cloudformation/resource-type-spec :portkey.cloudformation.emr/instance-fleet-config [___19567__auto__] (clojure.spec.alpha/keys ...
94b23561e55780ac434db600870323f7ae33e1e89eeb5807c1c37d624d076f85
esl/tracerl
tracerl_gen_common.erl
%%%------------------------------------------------------------------- @author ( C ) 2013 , Erlang Solutions Ltd. @doc Common callbacks for dtrace and %%% %%% @end Created : 8 Aug 2013 by %%%------------------------------------------------------------------- -module(tracerl_gen_common). -include("tracerl_...
null
https://raw.githubusercontent.com/esl/tracerl/8ebc649ccd7a3013aa310e4f71d35ef65fb3286b/src/tracerl_gen_common.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- helpers s\""; ------...
@author ( C ) 2013 , Erlang Solutions Ltd. @doc Common callbacks for dtrace and Created : 8 Aug 2013 by -module(tracerl_gen_common). -include("tracerl_util.hrl"). -import(tracerl_gen_util, [sep/2, sep_t/3, tag/2, tag/3, sep_f/3]). pass 1 -export([preprocess/2, pre_probe/2, pre_after_probe/3, pre_st/2,...
7c5b108bcb8afe5309c58e095bb91ac252d4c18303f5446de9d79fa3b90f170c
techascent/tech.datatype
jna_test.clj
(ns tech.v2.datatype.jna-test (:require [clojure.test :refer :all] [tech.v2.datatype :as dtype] [tech.v2.datatype.protocols :as dtype-proto] [tech.v2.datatype.base :as base] [tech.v2.datatype.jna :as dtype-jna] [tech.jna :as jna] [tech.v2.datatyp...
null
https://raw.githubusercontent.com/techascent/tech.datatype/8cc83d771d9621d580fd5d4d0625005bd7ab0e0c/test/tech/v2/datatype/jna_test.clj
clojure
(ns tech.v2.datatype.jna-test (:require [clojure.test :refer :all] [tech.v2.datatype :as dtype] [tech.v2.datatype.protocols :as dtype-proto] [tech.v2.datatype.base :as base] [tech.v2.datatype.jna :as dtype-jna] [tech.jna :as jna] [tech.v2.datatyp...
d79c8266c573f82a8a0ff4670b4edb5d8d65b16f20553e0f262df5aac40be527
darrenldl/ProVerif-ATP
tptp_ast.ml
exception ErrorWithMsg of string type number = | Int of int | Rational of int * int | Real of float type decl = | Annotated_formula of annotated_formula | Include of string * string list and annotated_formula = Fof_annotated of fof_annotated and fof_annotated = { name : string ; role : formula_role ...
null
https://raw.githubusercontent.com/darrenldl/ProVerif-ATP/7af6cfb9e0550ecdb072c471e15b8f22b07408bd/narrator/src/tptp_ast.ml
ocaml
exception ErrorWithMsg of string type number = | Int of int | Rational of int * int | Real of float type decl = | Annotated_formula of annotated_formula | Include of string * string list and annotated_formula = Fof_annotated of fof_annotated and fof_annotated = { name : string ; role : formula_role ...
c8e018be77c123fb324131fb80fbdf5546df6ef4351ace25d564f311b8bb74ab
kuribas/haskell-opentype
PostNames.hs
module Opentype.Fileformat.Unicode.PostNames (CodePoint, codepointName, hasDescriptiveName, nameToCodepoint, postscriptIndex, postscriptName, postscriptNames) where import qualified Data.Map.Strict as M import qualified Data.HashMap.Strict as HM import Text.Printf import Data.Tuple (swap) import qualified Data.Vec...
null
https://raw.githubusercontent.com/kuribas/haskell-opentype/06d24f726370d68dc71509157a87e3a929475a4f/Opentype/Fileformat/Unicode/PostNames.hs
haskell
| Standard name for this codepoint. Will be a descriptive name if one is available, otherwise uni<hex-codepoint>. | index of the string in the list of standard postscript names, if any. | standard postscript name at index, if any. | vector of standard postscript names.
module Opentype.Fileformat.Unicode.PostNames (CodePoint, codepointName, hasDescriptiveName, nameToCodepoint, postscriptIndex, postscriptName, postscriptNames) where import qualified Data.Map.Strict as M import qualified Data.HashMap.Strict as HM import Text.Printf import Data.Tuple (swap) import qualified Data.Vec...
7bac065c6c82beaf6bf80ca9c58799b1e6617b9a2bd0530662a09366958d72f7
nasa/Common-Metadata-Repository
s3_util.clj
(ns cmr.ingest.services.granule-bulk-update.s3.s3-util "Contains functions to facilitate S3 url granule bulk update." (:require [clojure.string :as string] [cmr.common.services.errors :as errors] [cmr.common.util :as util])) (def S3_RELATEDURL_DESCRIPTION "RelatedUrl description of s3 url in UMM-G granu...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/7a217ca3758f9f7b2d894f31d0e23c42819cc3e0/ingest-app/src/cmr/ingest/services/granule_bulk_update/s3/s3_util.clj
clojure
(ns cmr.ingest.services.granule-bulk-update.s3.s3-util "Contains functions to facilitate S3 url granule bulk update." (:require [clojure.string :as string] [cmr.common.services.errors :as errors] [cmr.common.util :as util])) (def S3_RELATEDURL_DESCRIPTION "RelatedUrl description of s3 url in UMM-G granu...
db034ff79c207a52c2cec2f1b4b700bfcfbb6ad34d704a96cfc418e30edadf58
dsheets/codoc
codocUnitHtml.ml
* Copyright ( c ) 2015 < > * * 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 SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/dsheets/codoc/382077cf3e7e20e478bd97cc0b348e0b2ec926db/lib/codocUnitHtml.ml
ocaml
TODO: ? TODO: ? TODO: ? TODO: ?
* Copyright ( c ) 2015 < > * * 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 SOFTWARE IS PROVIDED " AS IS " AND THE AU...
af43a6db62472645bd722b75bb45d642f7e35912798cebafbd207ad461b34c43
originrose/lazy-map
core.clj
(ns lazy-map.core "Main namespace, contains utility functions, type definitions, and lazy map functions. Public API is `->LazyMap`, `->?LazyMap`, `lazy-map`, `force-map`, `freeze-map`, `lazy-map-dispatch`." (:require [clojure [pprint :as pp] [string :as str]]) (:import java.io.Wri...
null
https://raw.githubusercontent.com/originrose/lazy-map/119dda207fef90c1e26e6c01aa63e6cfb45c1fa8/src/lazy_map/core.clj
clojure
Utility functions for serialization for reader-friendly printing LazyMapEntry type We need to use this function in .toString so it needs to be defined before the deftype. But the definition of this function needs a ^LazyMap type hint, so the definition can't come until after the deftype. This will not behave p...
(ns lazy-map.core "Main namespace, contains utility functions, type definitions, and lazy map functions. Public API is `->LazyMap`, `->?LazyMap`, `lazy-map`, `force-map`, `freeze-map`, `lazy-map-dispatch`." (:require [clojure [pprint :as pp] [string :as str]]) (:import java.io.Wri...
793e63bf86df8fecbbbafae4d6af65efa39bd2e21b60171d6c177c67bdd3b3d4
acieroid/scala-am
mcarlo.scm
Monte - carlo simulation using thrds (define MAXSIZE 100) (define (inside-circle? radius x y) (< (+ (* x x) (* y y)) (* radius radius))) (define (monte-carlo-seq size n) ;; Int -> Int places n points randomly on a size * size square , check how many are inside a size - radius quarter circle and return that nu...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/changes/cscheme/threads/mcarlo.scm
scheme
Int -> Int <================================================================================= <========================================================================= <====================================================================== To make things parse:
Monte - carlo simulation using thrds (define MAXSIZE 100) (define (inside-circle? radius x y) (< (+ (* x x) (* y y)) (* radius radius))) (define (monte-carlo-seq size n) places n points randomly on a size * size square , check how many are inside a size - radius quarter circle and return that number (define (...
875986ccfd840d14d99bda79931ee2bf0f98c67c9ffb9683c34ad78c612f054d
nyu-acsys/drift
mc91_98.ml
Res : OCaml - > 91 imprecision : Oct : 91 < = v < = 101 Liquid Haskell : false by property { -@ m : : x : Int - > { b : Int | ( b = = 91 ) } @- } Res: OCaml -> 91 imprecision: Oct: 91 <= v <= 101 Liquid Haskell: false by property {-@ m :: x:Int -> {b:Int | (b == 91)} @-} *) let rec m x = if x > 100 then x...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks_call/r_type/first/mc91_98.ml
ocaml
Res : OCaml - > 91 imprecision : Oct : 91 < = v < = 101 Liquid Haskell : false by property { -@ m : : x : Int - > { b : Int | ( b = = 91 ) } @- } Res: OCaml -> 91 imprecision: Oct: 91 <= v <= 101 Liquid Haskell: false by property {-@ m :: x:Int -> {b:Int | (b == 91)} @-} *) let rec m x = if x > 100 then x...
52626047e5cbd38e3c6cbd85382d21381c183c9f8f1faa5b1d011ffcdf02350e
docker-in-aws/docker-in-aws
ajax.cljs
(ns swarmpit.ajax (:refer-clojure :exclude [get]) (:require [ajax.core :as ajax] [swarmpit.router :as router] [swarmpit.xhrio :as xhrio] [swarmpit.storage :as storage] [swarmpit.component.state :as state] [swarmpit.component.message :as message] ...
null
https://raw.githubusercontent.com/docker-in-aws/docker-in-aws/bfc7e82ac82ea158bfb03445da6aec167b1a14a3/ch16/swarmpit/src/cljs/swarmpit/ajax.cljs
clojure
(ns swarmpit.ajax (:refer-clojure :exclude [get]) (:require [ajax.core :as ajax] [swarmpit.router :as router] [swarmpit.xhrio :as xhrio] [swarmpit.storage :as storage] [swarmpit.component.state :as state] [swarmpit.component.message :as message] ...
1579ca91348ceb47ea0b6347dfaf02fd83ece1b109da04f8297736d668dce792
ghcjs/ghcjs-boot
Exception.hs
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude , ExistentialQuantification # ----------------------------------------------------------------------------- -- | -- Module : Control.Exception Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LIC...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/base/Control/Exception.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Exception License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : non-portable (extended exceptions) This module provides support for raising an...
# LANGUAGE Trustworthy # # LANGUAGE NoImplicitPrelude , ExistentialQuantification # Copyright : ( c ) The University of Glasgow 2001 * /A semantics for imprecise exceptions/ , by , , , , , * /Asynchronous exceptions in Haskell/ , by , , and , in /PLDI'01/. by , in /Has...
fe8c65aeb9d1a3f3acdcab63f18bdb0d6dfa8dd2683f0c3823d666251b017e03
jsa-aerial/saite
cdxform.cljs
(ns aerial.saite.cdxform (:require [cljs.core.async :as async :refer (<! >! put! chan) :refer-macros [go go-loop]] [clojure.string :as cljstr] [cljs.tools.reader :refer [read-string]] [com.rpl.specter :as sp] [aerial.hanami.core :as hmi :refer [printchan]] [aerial.hanami.common :...
null
https://raw.githubusercontent.com/jsa-aerial/saite/335bb4844a77acf7d0bc051ec04e38b66aa4deaa/src/cljs/aerial/saite/cdxform.cljs
clojure
ClJS bug (printchan :BODY body) _ (js/console.log "BODY" body) Things like `(rest (clj ...))` mixed must be done individually as eval'd Get tab order to get maps in order
(ns aerial.saite.cdxform (:require [cljs.core.async :as async :refer (<! >! put! chan) :refer-macros [go go-loop]] [clojure.string :as cljstr] [cljs.tools.reader :refer [read-string]] [com.rpl.specter :as sp] [aerial.hanami.core :as hmi :refer [printchan]] [aerial.hanami.common :...
3375f375092b83b5e7ec423c406fd73538d941a8c280eb7a74d88a3f20664284
kronkltd/jiksnu
views.clj
(ns jiksnu.modules.as.views (:require [ciste.views :refer [defview]] [ciste.sections.default :refer [index-section show-section]] [jiksnu.modules.core.actions.activity-actions :as actions.activity] [jiksnu.modules.core.actions.favorite-actions :as actions.favorite] [jik...
null
https://raw.githubusercontent.com/kronkltd/jiksnu/8c91e9b1fddcc0224b028e573f7c3ca2f227e516/src/jiksnu/modules/as/views.clj
clojure
(defview #'actions.stream/inbox :as [request [user page]] (let [inbox-major-url (format "" (:domain user) (:username user))] {:body {:displayName (format "Activities for %s" (or (:name user) ...
(ns jiksnu.modules.as.views (:require [ciste.views :refer [defview]] [ciste.sections.default :refer [index-section show-section]] [jiksnu.modules.core.actions.activity-actions :as actions.activity] [jiksnu.modules.core.actions.favorite-actions :as actions.favorite] [jik...
bd706c48a27948d7d0e9b5f8ac07b14994206647ff480e14c8c975c8542fa41d
eronalves/foodship-restaurant
memory_db.clj
(ns foodship-restaurant.ports.db.memory_db (:require [com.stuartsierra.mapgraph :as mg] [com.stuartsierra.component :as component] [clojure.string :as s] [foodship-restaurant.ports.db.data.initial-data :as initial-data])) (defn retrieve-restaurant [component id] (mg/pull @(:db component) [:re...
null
https://raw.githubusercontent.com/eronalves/foodship-restaurant/6a30c48013a618c2cef34e7e29b200e5d45e8623/src/foodship_restaurant/ports/db/memory_db.clj
clojure
(ns foodship-restaurant.ports.db.memory_db (:require [com.stuartsierra.mapgraph :as mg] [com.stuartsierra.component :as component] [clojure.string :as s] [foodship-restaurant.ports.db.data.initial-data :as initial-data])) (defn retrieve-restaurant [component id] (mg/pull @(:db component) [:re...
f67c6998fbcd4d9776b63969425844230cb2c934f261c6503b68bed2ee22154c
jordanthayer/ocaml-search
aest_percentage.ml
* @author jtd7 @since 2012 - 04 - 04 @author jtd7 @since 2012-04-04 *) open Astar_est let make_pest opt_cost root_f = let denom = opt_cost -. root_f in let update_and_return i node openlist children = let value = (node.fpv.f -. root_f) /. denom in let rem_p = 1. -. value in r...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/search/progress_estimate/aest_percentage.ml
ocaml
* @author jtd7 @since 2012 - 04 - 04 @author jtd7 @since 2012-04-04 *) open Astar_est let make_pest opt_cost root_f = let denom = opt_cost -. root_f in let update_and_return i node openlist children = let value = (node.fpv.f -. root_f) /. denom in let rem_p = 1. -. value in r...
f6120c385f9c18b4ecf4921ad22472a0ab0a7df4e28d6dbd79d69618acd3abbb
pixlsus/registry.gimp.org_static
JMB-BorderGuides.scm
; Border Guides ; This script creates guides along the border of the canvas, offset by the ; user specified amount. (define (script-fu-border-guides image x y) (let* ( (height (car (gimp-image-height image))) (width (car (gimp-image-width image))) ) (gimp-context-push) ;...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/JMB-BorderGuides.scm
scheme
Border Guides This script creates guides along the border of the canvas, offset by the user specified amount. Initiates the temporary state. TRUE TRUE FALSE Close If Close If Deactivates the temporary state and resets the previous user defaults. add-guides Adds the guides to the image Finally ...
(define (script-fu-border-guides image x y) (let* ( (height (car (gimp-image-height image))) (width (car (gimp-image-width image))) ) (if (or (< x 0) (< y 0)) (if (and (< x (/ width 2)) (< y (/ height 2))) (gimp-context-pop) (gimp-displays-flush)...
6aa4051f2ceea609d63c9359f1d09ed8af15b03fa9d76974098cb886ee975a71
paypal/seazme-sources
main.clj
(ns seazme.sources.main (:require [boot.cli :as cli] [clojure.core.match :refer [match]] [seazme.common.config :as config] [seazme.common.es :as es] [seazme.sources.direct2es :as d2e] [seazme.sources.datahub :as dh] [seazme.sources.hbase2es :as h...
null
https://raw.githubusercontent.com/paypal/seazme-sources/57e5b7579f5e475a908b2318a00549dd131f7745/src/main/clojure/seazme/sources/main.clj
clojure
main dispatch, it is not perfect and there might be some corner cases when config is bad DataHub HBASE (reusing context, need args) includes "patch" includes "patch"
(ns seazme.sources.main (:require [boot.cli :as cli] [clojure.core.match :refer [match]] [seazme.common.config :as config] [seazme.common.es :as es] [seazme.sources.direct2es :as d2e] [seazme.sources.datahub :as dh] [seazme.sources.hbase2es :as h...
1fb4b0dd966e1f1d9560d80983e164d64d7aa1022ca38465c19373889d584fa9
haskell/hackage-security
Common.hs
-- | Simple type wrappers module Hackage.Security.TUF.Common ( -- * Types FileLength(..) , Hash(..) , KeyThreshold(..) ) where import MyPrelude import Hackage.Security.JSON {------------------------------------------------------------------------------- Simple types -----------------------------------...
null
https://raw.githubusercontent.com/haskell/hackage-security/745b294e8cda2b46a21a6d1766a87f699a0277a8/hackage-security/src/Hackage/Security/TUF/Common.hs
haskell
| Simple type wrappers * Types ------------------------------------------------------------------------------ Simple types ------------------------------------------------------------------------------ | File length Having verified file length information means we can protect against endless data attacks and si...
module Hackage.Security.TUF.Common ( FileLength(..) , Hash(..) , KeyThreshold(..) ) where import MyPrelude import Hackage.Security.JSON newtype FileLength = FileLength { fileLength :: Int54 } deriving (Eq, Ord, Show) with . Key thresholds are specified in ' ' or ' DelegationsSpec ' . newtype KeyThres...
7f845c32690c25096007ed372266040e873ceecf4df573d224f01b2437bab708
mgmillani/pictikz
XML.hs
Copyright 2017 This file is part of pictikz . pictikz is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your option) any later version. pictikz i...
null
https://raw.githubusercontent.com/mgmillani/pictikz/3bae9db14a8563f5b2c97bb5d9d30ba54f75b62f/src/Pictikz/XML.hs
haskell
(at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. along with pictikz. If not, see </>. | Checks if the value of `atName` satisfies the predicate `p`
Copyright 2017 This file is part of pictikz . pictikz 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 pictikz is distributed in the hope that it will b...
65a4b0bff5d04b38584552a104336eed4d4a3b12e6fa2bad7c1558fa9ed16507
manetu/temporal-clojure-sdk
conflict.clj
Copyright © 2022 , Inc. All rights reserved (ns temporal.test.conflict (:require [clojure.test :refer :all] [temporal.internal.utils :as u] [temporal.test.utils :as t])) (use-fixtures :once t/wrap-service) (deftest conflict-detect-test (testing "Verify that we detect symbol conflicts...
null
https://raw.githubusercontent.com/manetu/temporal-clojure-sdk/abe8f807032def079aec94c236bfbc61ac86713b/test/temporal/test/conflict.clj
clojure
Copyright © 2022 , Inc. All rights reserved (ns temporal.test.conflict (:require [clojure.test :refer :all] [temporal.internal.utils :as u] [temporal.test.utils :as t])) (use-fixtures :once t/wrap-service) (deftest conflict-detect-test (testing "Verify that we detect symbol conflicts...
8f514ec63c2e8ef933ecb178640963f6ddb5172a7c79d1ad96fe68fdd04f20a1
erlang/corba
m_i_impl.erl
%%-------------------------------------------------------------------- %% %% %CopyrightBegin% %% Copyright Ericsson AB 2003 - 2016 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain ...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/ic/test/java_client_erl_server_SUITE_data/m_i_impl.erl
erlang
-------------------------------------------------------------------- %CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY...
Copyright Ericsson AB 2003 - 2016 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(m_i_impl). -export([marshal_ll/3,marshal_ull/3, marshal_l/3,marshal_ul/3, marshal_s/3,marshal_us/3, ma...
7fc9e97f826a700c7f26480e0588faadbe31c62097a5ffe45b251d00290b10c0
hipsleek/hipsleek
globals.ml
#include "xdebug.cppo" open VarGen (* global types and utility functions *) module = Label_only circular with Lb let sleek_num_to_verify = ref (-1) let sleek_print_residue = ref true let ramification_entailments = ref 0 let noninter_entailments = ref 0 let total_entailments = ref 0 let epure_disj_limit = ref 10...
null
https://raw.githubusercontent.com/hipsleek/hipsleek/596f7fa7f67444c8309da2ca86ba4c47d376618c/src/globals.ml
ocaml
global types and utility functions 0 means unlimited false user-given lemma automatically generated/inferred lemma and branch_label = spec_label (*formula branches identifier for if, catch, call and loc = { start_pos : Lexing.position (\* might be expanded to contain more information *\); mid_po...
#include "xdebug.cppo" open VarGen module = Label_only circular with Lb let sleek_num_to_verify = ref (-1) let sleek_print_residue = ref true let ramification_entailments = ref 0 let noninter_entailments = ref 0 let total_entailments = ref 0 let trailer_num_list = ref [] let change_flow = ref false let abs_i...
3196710c7abde58da5c8f9027342ec764f394d34fc6138c793d4f8767efc896e
middlesphere/clj-terminal
project.clj
(defproject com.middlesphere/clj-terminal "0.1.0-beta" :description "Wrapper for Java Lanterna 3 library for building text user interfaces (TUI) in console/terminal mode." :url "-terminal.git" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha...
null
https://raw.githubusercontent.com/middlesphere/clj-terminal/aef8d0eca869a958bbe129ec2e878640c5134278/project.clj
clojure
:main ^:skip-aot clj-terminal.core
(defproject com.middlesphere/clj-terminal "0.1.0-beta" :description "Wrapper for Java Lanterna 3 library for building text user interfaces (TUI) in console/terminal mode." :url "-terminal.git" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha...
9a786a9628670566647f0020d6bf8659335c745a04311aab40ade74c32dd896f
nekketsuuu/tapis
env.ml
module Env = Map.Make (struct type t = PiSyntax.name let compare = compare end) include Env open Error let rec add_list ys tyys env = match ys, tyys with | [], [] -> env | y :: ys, tyy :: tyyos -> add_list ys tyyos (add y tyy env) | _, _ -> raise @@ ConvErr("add_list: Different length"...
null
https://raw.githubusercontent.com/nekketsuuu/tapis/a61ecff95eaf2af27a85290d2a5f99341d28b43c/src/env.ml
ocaml
module Env = Map.Make (struct type t = PiSyntax.name let compare = compare end) include Env open Error let rec add_list ys tyys env = match ys, tyys with | [], [] -> env | y :: ys, tyy :: tyyos -> add_list ys tyyos (add y tyy env) | _, _ -> raise @@ ConvErr("add_list: Different length"...
8536d071a55eeeecc501f1a5e98364b8bbdfc75356954c85d83c3ad2f63046e8
jarvinet/scheme
section224.scm
Structure and Interpretation of Computer Programs , 1st edition ;------------------------------------------------------------- section 2.2.4 ; The differentiation program with abstract data ; (define (deriv exp var) ; (cond ((constant? exp) 0) ; ((variable? exp) ( if ( same - variable ? exp var ) 1 0 ) ...
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/Book/Edition1/section224.scm
scheme
------------------------------------------------------------- The differentiation program with abstract data (define (deriv exp var) (cond ((constant? exp) 0) ((variable? exp) ((sum? exp) (make-sum (deriv (addend exp) var) (deriv (augend exp) var))) ((product? exp) (make-sum (make-product (mu...
Structure and Interpretation of Computer Programs , 1st edition section 2.2.4 ( if ( same - variable ? exp var ) 1 0 ) ) (define (constant? x) (number? x)) (define (variable? x) (symbol? x)) Two variables are the same if the symbols representing them are eq ? (define (same-variable? v1 v2) (and (va...
d6b4879b4b4e690f37d7102fa56d164263aca985cdb0eccdbb07dcc40b9edb87
bcc32/projecteuler-ocaml
sol_348.ml
open! Core open! Import let palindromes_n_digits n = if n mod 2 = 0 then ( let lb = Int.pow 10 ((n / 2) - 1) in let ub = Int.pow 10 (n / 2) in Sequence.range lb ub |> Sequence.map ~f:(fun n -> let d = Number_theory.Int.As_base10.(to_list n) in d @ List.rev d |> Number_theory.Int.As_base...
null
https://raw.githubusercontent.com/bcc32/projecteuler-ocaml/712f85902c70adc1ec13dcbbee456c8bfa8450b2/sol/sol_348.ml
ocaml
greater than 1 ditto 1004195061 1.5s
open! Core open! Import let palindromes_n_digits n = if n mod 2 = 0 then ( let lb = Int.pow 10 ((n / 2) - 1) in let ub = Int.pow 10 (n / 2) in Sequence.range lb ub |> Sequence.map ~f:(fun n -> let d = Number_theory.Int.As_base10.(to_list n) in d @ List.rev d |> Number_theory.Int.As_base...
9d4169fc96b9157e9febeec7b798b8076f4127f176cbc7c548449dbf142b51ea
amutake/actario
actor_modutil.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * INRIA , CNRS and contributors - Copyright 1999 - 2018 (* <O___,, * (see CREDITS file for the list of authors) *) \VV/ * * * *...
null
https://raw.githubusercontent.com/amutake/actario/35c1d5499149e12842dec6d230d5fad00f18ac6d/plugin/actor_modutil.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team <O___,, * (see CREDITS file for the list of authors) // * This file is distributed under the terms of the * (see LICENSE file for...
v * INRIA , CNRS and contributors - Copyright 1999 - 2018 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser General Public License Version 2.1 open Names open ModPath open Globnam...
2fe01ca6c356e6a11a144434824b33f67df363e9cbbe9e39839dc40cf2fc6e8c
TakaiKinoko/Cornell_CS3110_OCaml
mutable_counter.ml
(** note that counter is in global scope *) let counter = ref 0 let next_val = fun () -> counter := !counter + 1; (** increment and assign *) !counter (* test *) let () = print_endline(string_of_int !counter); print_endline(string_of_int (next_val())); print_endline(string_of_int (next_val()))...
null
https://raw.githubusercontent.com/TakaiKinoko/Cornell_CS3110_OCaml/0a830bc50a5e39f010074dc289161426294cad1d/Chap8_Advanced_data_structures/07refs/mutable_counter.ml
ocaml
* note that counter is in global scope * increment and assign test
let counter = ref 0 let next_val = !counter let () = print_endline(string_of_int !counter); print_endline(string_of_int (next_val())); print_endline(string_of_int (next_val())); deterministic v.s. nondeterministic function * deterministic : for a given input , they always produced the same out...
a273d4dfb0d190734d1b8d2303b895cb51d86be349b15292c75e33986c4ba4b6
phadej/vec
Internal.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Data.RAVec.NonEmpty.Optics.Internal where import Control.Applicative ((<$>)) import Data.BinP.PosP (PosP (..), PosP' (..)) import Data.RAVec.Tree (Tree (..)) import Data.Wrd (Wrd (..)) ...
null
https://raw.githubusercontent.com/phadej/vec/a895ab79e054987938295d5a149758eb79d85683/ral-optics/src/Data/RAVec/NonEmpty/Optics/Internal.hs
haskell
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Data.RAVec.NonEmpty.Optics.Internal where import Control.Applicative ((<$>)) import Data.BinP.PosP (PosP (..), PosP' (..)) import Data.RAVec.Tree (Tree (..)) import Data.Wrd (Wrd (..)) ...
cf42898fa1ad1c144704223ddc016293b88d448067e14bcb8fcac3874fc244e6
GrammaTech/sel
compilable.lisp
;;; compilable --- Mixin class for compiled software ;;; ;;; A compilable software object is one which may be compiled ;;; to an executable binary or object file. It contains slots ;;; for both the compiler and compiler flags used in compilation. ;;; Additionally, it overrides the @ref{phenome} method to ;;; create a ...
null
https://raw.githubusercontent.com/GrammaTech/sel/a59174c02a454e8d588614e221cf281260cf12f8/software/compilable.lisp
lisp
compilable --- Mixin class for compiled software A compilable software object is one which may be compiled to an executable binary or object file. It contains slots for both the compiler and compiler flags used in compilation. Additionally, it overrides the @ref{phenome} method to create a compiled executable b...
@text{compilable } (defpackage :software-evolution-library/software/compilable (:nicknames :sel/software/compilable :sel/sw/compilable) (:use :gt/full :software-evolution-library :software-evolution-library/components/file) (:export :compilable :compiler :flags)) (in-package :software-evolution-...
87eb219f3fe3a12c58384099c1eb200b56996a978726a9b1939c7e65dbe41bc3
zshipko/resp
resp_server_intf.ml
module type AUTH = sig type t val check : t -> string array -> bool end module type DATA = sig type data end module type SERVER = sig type ic type oc type server include DATA val run : server -> (ic * oc -> unit Lwt.t) -> unit Lwt.t end module type S = sig include SERVER module Value : Resp...
null
https://raw.githubusercontent.com/zshipko/resp/4a31461621238d86775b3485adc4a1f0f7202ace/src/resp-server/resp_server_intf.ml
ocaml
module type AUTH = sig type t val check : t -> string array -> bool end module type DATA = sig type data end module type SERVER = sig type ic type oc type server include DATA val run : server -> (ic * oc -> unit Lwt.t) -> unit Lwt.t end module type S = sig include SERVER module Value : Resp...
472b7173b0b7cc12c31d2ee7d04c0b30923b49ff51afcaa6f32720ec5b4dee8d
ds-wizard/engine-backend
DocumentServiceSpec.hs
module Wizard.Specs.Service.Document.DocumentServiceSpec where import Test.Hspec hiding (shouldBe) import Wizard.Database.Migration.Development.Document.Data.Documents import qualified Wizard.Database.Migration.Development.DocumentTemplate.DocumentTemplateMigration as TML import qualified Wizard.Database.Migration.De...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/test/Wizard/Specs/Service/Document/DocumentServiceSpec.hs
haskell
GIVEN: Prepare expectation AND: Run migrations WHEN: THEN:
module Wizard.Specs.Service.Document.DocumentServiceSpec where import Test.Hspec hiding (shouldBe) import Wizard.Database.Migration.Development.Document.Data.Documents import qualified Wizard.Database.Migration.Development.DocumentTemplate.DocumentTemplateMigration as TML import qualified Wizard.Database.Migration.De...
df5db1bbfe9dca2b903647ed669ffac08c6f8ccf3e4745928393a1122d7d4e98
xsc/claro
impls_test.cljc
(ns claro.runtime.impls-test (:require [clojure.test :refer :all] [claro.runtime.impl :as impl] [claro.runtime.impl [core-async :as core-async] #?(:clj [manifold :as manifold])])) # # Test Harness (defn test-impl [impl] (let [impl (is (impl/->deferred-impl imp...
null
https://raw.githubusercontent.com/xsc/claro/16db75b7a775a14f3b656362e8ee4f65dd8b0d49/test/claro/runtime/impls_test.cljc
clojure
(ns claro.runtime.impls-test (:require [clojure.test :refer :all] [claro.runtime.impl :as impl] [claro.runtime.impl [core-async :as core-async] #?(:clj [manifold :as manifold])])) # # Test Harness (defn test-impl [impl] (let [impl (is (impl/->deferred-impl imp...
5ad8afc295e4e6054a3c5cb6f4c946f12e6a401c68171ffd0b8a08c51631eb09
sadiqj/ocaml-esp32
targetint.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/utils/targetint.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt , LexiFi Copyright 2016 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Target processor - native integers . ...
a67f3713f2ad327fe86269310ab56cbc2ce26d76f40391dfdf2134f2ca170367
shayne-fletcher/zen
ml_parsetree.mli
(**Abstract syntax*) open Ml_asttypes * { 2 Core language } (**The type of constants*) type constant = | Pconst_int of string (**Integer constants*) (**The type of patterns*) type pattern = { ppat_desc : pattern_desc; (**Pattern description*) ppat_loc : Ml_location.t (**Location in the source*) } (**The type o...
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/cos/src/parsing/ml_parsetree.mli
ocaml
*Abstract syntax *The type of constants *Integer constants *The type of patterns *Pattern description *Location in the source *The type of pattern descriptions '_' *Wildcard *Variable *A constant *Constructor *The type of expressions *Expression description *Location in the source *The type of expression descriptions *...
open Ml_asttypes * { 2 Core language } type constant = type pattern = { } and pattern_desc = * A tuple pattern ( invariant n > = 2 ) ' ( ) ' , ' true ' , ' false ' C None C P Some P C ( P1 , ... , Pn ) Some ( Ppat_tuple [ P1 ; ... ; Pn ] ) C ...
e4bf71157cfc4cdc40731f83810b02914f73b9436c101376a78a09caf8a0ff9b
nachivpn/mt
b3.erl
-module (b3). f1(X,Y) -> X + Y + 4.5. f2(X,Y) -> Y = f1(X,Y), X div Y.
null
https://raw.githubusercontent.com/nachivpn/mt/fcffbcb770cfe0b19c189e6c8ce2ccab61062195/test/bad/b3.erl
erlang
-module (b3). f1(X,Y) -> X + Y + 4.5. f2(X,Y) -> Y = f1(X,Y), X div Y.
06c4d5dd45c65717f3ebd98ce090a0dfeaa07eec59e691e607e81f2dd295e821
metasoarous/datsys
datomic.clj
(ns dat.sys.datomic (:require [taoensso.timbre :as log :include-macros true] [datomic.api :as d] [dat.view] [clojure.java.io :as io] [io.rkn.conformity :as conformity] [com.stuartsierra.component :as component])) ;; Will need to come up with a migration sys...
null
https://raw.githubusercontent.com/metasoarous/datsys/67f506525d66887737ef058c866adb0c847be925/src/clj/dat/sys/datomic.clj
clojure
Will need to come up with a migration system XXX Look at and Not hard to bake our own as well if those don't work Note that we make requirements in that schema about having Datview schema loaded This is where ideally we would be looking at a dependency graph of norms and executing in that order. (-> "config/loca...
(ns dat.sys.datomic (:require [taoensso.timbre :as log :include-macros true] [datomic.api :as d] [dat.view] [clojure.java.io :as io] [io.rkn.conformity :as conformity] [com.stuartsierra.component :as component])) (defn ensure-schema! [conn] (let [schema...
fe49269b688f9a7a851fbfca2a645a8942c995b578dfd70609c7994ebf63898d
slyrus/clem
test-add.lisp
(in-package :clem-test) (defun test-add/3d () (let ((m (clem::m+ (make-instance 'double-float-matrix :dimensions '(3 3 3) :initial-element 2d0) (make-instance 'double-float-matrix :dimensions '(3 3 3) :initial-element 3d0) (make-instance 'double-float-matrix :dimension...
null
https://raw.githubusercontent.com/slyrus/clem/5eb055bb3f45840b24fd44825b975aa36bd6d97c/test/test-add.lisp
lisp
(in-package :clem-test) (defun test-add/3d () (let ((m (clem::m+ (make-instance 'double-float-matrix :dimensions '(3 3 3) :initial-element 2d0) (make-instance 'double-float-matrix :dimensions '(3 3 3) :initial-element 3d0) (make-instance 'double-float-matrix :dimension...
f8dd9845ceccd5626f25f35ff12871dc259cf0d86ba2cddd1ad0e1b8fd12f42b
janestreet/hardcaml
test_mangler.ml
open! Import open! Mangler let%expect_test "case-sensitive mangler" = let t = create ~case_sensitive:true in add_identifiers_exn t [ "fudge"; "bramble" ]; (* must not clash with reserved works *) print_s [%message "adding existing identifier" ~_:(add_identifier t "fudge" : [ `Ok | `Duplicate ])]; [...
null
https://raw.githubusercontent.com/janestreet/hardcaml/4126f65f39048fef5853ba9b8d766143f678a9e4/test/lib/test_mangler.ml
ocaml
must not clash with reserved works try to subvert mangler by adding the next mangled name
open! Import open! Mangler let%expect_test "case-sensitive mangler" = let t = create ~case_sensitive:true in add_identifiers_exn t [ "fudge"; "bramble" ]; print_s [%message "adding existing identifier" ~_:(add_identifier t "fudge" : [ `Ok | `Duplicate ])]; [%expect {| ("adding existing identifier...
7a5cc4e36a9743b29d6507f8ea6bf14097f0c801569cf0383bc46e273a36cef2
shirok/Gauche
debug.scm
;; Test to access debug information. ;; NB : The format of information these test acquires from the runing VM ;; is not fixed yet; they may change at any time as VM evolves. (use gauche.test) (use scheme.list) (use util.match) (test-start "debug features") (test-section "stack trace") ;; Test that stack trace isn...
null
https://raw.githubusercontent.com/shirok/Gauche/653effc9f4bdcfc29c520b935d7d262f572057ca/test/debug.scm
scheme
Test to access debug information. is not fixed yet; they may change at any time as VM evolves. Test that stack trace isn't corrupted by the change of stack These functions shouldn't be in let, since doing so makes them optimized away. cross C stack boundary source info of quoted literals
NB : The format of information these test acquires from the runing VM (use gauche.test) (use scheme.list) (use util.match) (test-start "debug features") (test-section "stack trace") boundary handling in 0.9.1 (define (ra x) (ra (rb x)) #f) (define (rb x) (if (rc x) (rb x) (rb x))) (define (rd x) (list 3 (re x...
783f76f6748a084ed46fb365d182883c87ad5a51534e9e2d0a14a4094751dcb1
helium/router
router_decoder_browan_object_locator.erl
%%%------------------------------------------------------------------- %%% @doc %%% == Browan Object Locator Decoder == %%% %%% Browan Docs PDF [] %%% %%% @end %%%------------------------------------------------------------------- -module(router_decoder_browan_object_locator). -export([decode/3]). -spec decode(router...
null
https://raw.githubusercontent.com/helium/router/8a103868831e99f72600ba34ef2f8ea2c3351e51/src/decoders/router_decoder_browan_object_locator.erl
erlang
------------------------------------------------------------------- @doc == Browan Object Locator Decoder == Browan Docs PDF [] @end -------------------------------------------------------------------
-module(router_decoder_browan_object_locator). -export([decode/3]). -spec decode(router_decoder:decoder(), binary(), integer()) -> {ok, binary()} | {error, any()}. decode( _Decoder, <<0:1/integer, 0:1/integer, 0:1/integer, GNSError:1/integer, GNSFix:1/integer, _:1/integer, Moving:1/integer, Button:1/i...
60f1eea6806deeff82abda1ccff24a7feca3503e6c51e3e307a1cf18705cf9da
fjvallarino/monomer
DateFieldSpec.hs
| Module : . Widgets . Singles . DateFieldSpec Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Unit tests for DateField widget . Module : Monomer.Widgets.Singles.DateFieldSpec Copyrig...
null
https://raw.githubusercontent.com/fjvallarino/monomer/d4270caafea4ff4fdd80bb1c9b78443ae480cfc5/test/unit/Monomer/Widgets/Singles/DateFieldSpec.hs
haskell
Used only to have focus
| Module : . Widgets . Singles . DateFieldSpec Copyright : ( c ) 2018 License : BSD-3 - Clause ( see the LICENSE file ) Maintainer : Stability : experimental Portability : non - portable Unit tests for DateField widget . Module : Monomer.Widgets.Singles.DateFieldSpec Copyrig...
a138d756900307bb5677fd5242d547ea1df935cc9d6674dafc4e15e0bf36f96e
rcook/aws-via-haskell
Main.hs
| Module : Main Description : RDS demo Copyright : ( C ) , 2018 License : MIT Maintainer : Stability : experimental Portability : portable Module : Main Description : RDS demo Copyright : (C) Richard Cook, 2018 License : MIT Maintainer : Stability : experimental Port...
null
https://raw.githubusercontent.com/rcook/aws-via-haskell/3ca6167307abb0628cfe4c9ca4545657b0f41494/rds/Main.hs
haskell
# LANGUAGE OverloadedStrings #
| Module : Main Description : RDS demo Copyright : ( C ) , 2018 License : MIT Maintainer : Stability : experimental Portability : portable Module : Main Description : RDS demo Copyright : (C) Richard Cook, 2018 License : MIT Maintainer : Stability : experimental Port...
9bea691114745b5dc3ebaf1ef931ec6e9c11be5a7deace598d356c6ecbaedcac
V-Wong/COMP3141
BinaryTree.hs
Tree is either Empty or a Node that has two subtrees -- each of which could be null themselves. data BinaryTree a = Empty | Node a (BinaryTree a) (BinaryTree a) deriving (Show, Eq) instance Functor BinaryTree where -- This type definition is not necessary as the type definition -- is alr...
null
https://raw.githubusercontent.com/V-Wong/COMP3141/f5a92e5833d2bb0a08e68cb2d025e38c8c875563/Random%20Code/BinaryTree.hs
haskell
each of which could be null themselves. This type definition is not necessary as the type definition is already defined in the Functor class. fmap :: (a -> b) -> BinaryTree a -> BinaryTree b Tree may be empty so use Maybe. Not a BST insert, inserts at most right position.
Tree is either Empty or a Node that has two subtrees data BinaryTree a = Empty | Node a (BinaryTree a) (BinaryTree a) deriving (Show, Eq) instance Functor BinaryTree where fmap _ Empty = Empty fmap f (Node a leftTree rightTree) = Node (f a) (fmap f leftTree) (fmap f rightTree) sampleTre...
bd6de71a96a3df038df8ad4bbb60de7ec8d145fd9403e1c746a9a26a758ad45e
juspay/fencer
Settings.hs
# LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # -- | Fencer start-time config. module Fencer.Settings ( Settings(..) , getSettingsFromEnvironment , defaultGRPCPort , getLogLevel , newLogger ) where import BasePrelude import Data.Char (toLower) import qualified System.Lo...
null
https://raw.githubusercontent.com/juspay/fencer/db7c64ff848446d247dc8d59a1df5b50cdc104f6/lib/Fencer/Settings.hs
haskell
| Fencer start-time config. | The default port for a gRPC server | Fencer settings. | @RUNTIME_ROOT@: symlink to a directory containing 'settingsSubdirectory'. The default value is @\/srv\/runtime_data\/current@. | @RUNTIME_SUBDIRECTORY@: directory with settings. | @RUNTIME_IGNOREDOTFILES@: whether to ignore fi...
# LANGUAGE RecordWildCards # # LANGUAGE TypeApplications # module Fencer.Settings ( Settings(..) , getSettingsFromEnvironment , defaultGRPCPort , getLogLevel , newLogger ) where import BasePrelude import Data.Char (toLower) import qualified System.Logger as Logger import ...
f862a3fade7b349ed4f580f4f585cc7d8cce180a3a44ff61f4f663f810eca795
nikita-volkov/rebase
Natural.hs
module Rebase.Numeric.Natural ( module Numeric.Natural, ) where import Numeric.Natural
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Numeric/Natural.hs
haskell
module Rebase.Numeric.Natural ( module Numeric.Natural, ) where import Numeric.Natural
a3047c26496a91f0836cd4aec1cf2a149f35b3f94db5137fc020c682e29b3a01
dsheets/ocaml-unix-errno
errno_host.ml
* Copyright ( c ) 2014 - 2015 < > * * 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 SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/dsheets/ocaml-unix-errno/0878418c45e25b5a1fb0a461ce8e55d67c5c42ab/lib/errno_host.ml
ocaml
* Copyright ( c ) 2014 - 2015 < > * * 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 SOFTWARE IS PROVIDED " AS IS " AND...
d350e41dec77af6e0c8fdc8f5c1357b4c6e5d1f25f7b6e2f5a6082bf3e12c4f5
jyh/metaprl
ma_subtype_1.ml
extends Nuprl_subtype_1
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/mesa/ma_subtype_1.ml
ocaml
extends Nuprl_subtype_1