_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
7735e79c65a2f53baada667d7d6c2529b5dfbd47c46ccd6c75054a203136a2b8
tezos/tezos-mirror
skip_list_costs.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2022 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/c50423992947f9d3bf33f91ec8000f3a0a70bc2d/src/proto_016_PtMumbai/lib_protocol/skip_list_costs.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2022 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
7222690e2e2445cc8ed9b133f5465260d8436831a0ab53e2d0acd3c725274a0d
Mathnerd314/stroscot
Wait.hs
# LANGUAGE DeriveFunctor # -- | A bit like 'Fence', but not thread safe and optimised for avoiding taking the fence module General.Wait( Wait(Now,Later), runWait, quickly, fromLater, firstJustWaitUnordered, firstLeftWaitUnordered ) where import Control.Monad.Extra import Control.Monad.IO.Class import Data...
null
https://raw.githubusercontent.com/Mathnerd314/stroscot/08b4cb638369a71e1e52fce5710a11e235e9e120/src/shake/Wait.hs
haskell
| A bit like 'Fence', but not thread safe and optimised for avoiding taking the fence Note: We pull the Lift from the right BEFORE the Later, to enable parallelism keep a list of those things we might visit later, and ask for each we see in turn keep a list of those things we might visit later, and ask for each we ...
# LANGUAGE DeriveFunctor # module General.Wait( Wait(Now,Later), runWait, quickly, fromLater, firstJustWaitUnordered, firstLeftWaitUnordered ) where import Control.Monad.Extra import Control.Monad.IO.Class import Data.IORef.Extra import Data.List.Extra import Data.Primitive.Array import GHC.Exts(RealWorld...
b7078f047bd1430582691ea07a0bc59a8ea42e93853d52f966ddb4c4af96a49e
symbiont-io/detsys-testkit
Description.hs
module Description where import Data.Char (isSpace) import Text.Printf data Item f = Item { comment :: String, formula :: f } deriving (Show) instance Functor Item where fmap f i = i {formula = f (formula i)} data Description f = Description { items :: [Item f], name :: String } deriving (Show...
null
https://raw.githubusercontent.com/symbiont-io/detsys-testkit/29a3a0140730420e4c5cc8db23df6fdb03f9302c/src/stats/src/Description.hs
haskell
module Description where import Data.Char (isSpace) import Text.Printf data Item f = Item { comment :: String, formula :: f } deriving (Show) instance Functor Item where fmap f i = i {formula = f (formula i)} data Description f = Description { items :: [Item f], name :: String } deriving (Show...
cdd77393bb4725ee877d3fef74e032c33baa11552e3cd3cdde92757f3c3e809f
bet365/soap
europepmc_client.erl
%% %% %CopyrightBegin% %% Copyright Hillside Technology Ltd. 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 a copy of the License at %% %% -2.0 %% %% Unless required by ap...
null
https://raw.githubusercontent.com/bet365/soap/856b5c418d8d40a6b5bcbbe3fd390c6a0b8d4f18/test/europepmc_client.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 KIND, either express or implied. See the License for the specific lan...
Copyright Hillside Technology Ltd. 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(europepmc_client). -include("europepmc.hrl"). -export([interface/0]). -export([searchPublications...
4eb274c740c77d0be3473f6e4429c7d2778e05f3302eec130064812a648a00f2
Clozure/ccl
ffi-solarisx8632.lisp
;;; ;;; Copyright 2009 Clozure Associates ;;; 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, softw...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/lib/ffi-solarisx8632.lisp
lisp
Copyright 2009 Clozure Associates 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...
distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") (defun x86-solaris32::record-type-returns-structure-as-first-arg (rtype) (x8632::record-type-returns-structure-as-first-arg rtype)) (defun x86-solaris32::expand-ff-call (callform args &key (arg-coerce #'null-coerce-foreign-ar...
0c7d462964a6e94f6c7ff9dabc507e9ad39b30d404bf6a85d05ee1a78bd0dc45
ThoughtWorksInc/stonecutter
handler.clj
(ns stonecutter.test.handler (:require [midje.sweet :refer :all] [ring.mock.request :as mock] [stonecutter.handler :as h])) (fact "can be split requests between html site and api" (let [site-handler (fn [r] :site) api-handler (fn [r] :api) handler (h/splitter sit...
null
https://raw.githubusercontent.com/ThoughtWorksInc/stonecutter/37ed22dd276ac652176c4d880e0f1b0c1e27abfe/test/stonecutter/test/handler.clj
clojure
(ns stonecutter.test.handler (:require [midje.sweet :refer :all] [ring.mock.request :as mock] [stonecutter.handler :as h])) (fact "can be split requests between html site and api" (let [site-handler (fn [r] :site) api-handler (fn [r] :api) handler (h/splitter sit...
9aa451238175a0327516cba398e433ea431a745e0844c5ce67a1fe923e01ea87
polymeris/cljs-aws
route_53.cljs
(ns cljs-aws.route-53 (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "Route53" "route53-2013-04-01.min.json")
null
https://raw.githubusercontent.com/polymeris/cljs-aws/3326e7c4db4dfc36dcb80770610c14c8a7fd0d66/src/cljs_aws/route_53.cljs
clojure
(ns cljs-aws.route-53 (:require [cljs-aws.base.requests]) (:require-macros [cljs-aws.base.service :refer [defservice]])) (defservice "Route53" "route53-2013-04-01.min.json")
cbb2ca705c9447c03e84aebdf1fff25baf154942d942c041d36b29c7a5549a3e
ftovagliari/ocamleditor
error.ml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
null
https://raw.githubusercontent.com/ftovagliari/ocamleditor/79669e14163420170e3e2ebb8da54ebe4e5a3dce/src/error.ml
ocaml
OCamlEditor Copyright ( C ) 2010 - 2014 This file is part of OCamlEditor . OCamlEditor is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at y...
00c8f082abe441836c3ce731703927670a793eb9035484871e7ab56387ddbe72
tov/dssl2
lt.rkt
#lang dssl2 assert 3 < 4 assert not 3 < 3 assert not 4 < 3
null
https://raw.githubusercontent.com/tov/dssl2/105d18069465781bd9b87466f8336d5ce9e9a0f3/test/dssl2/lt.rkt
racket
#lang dssl2 assert 3 < 4 assert not 3 < 3 assert not 4 < 3
eb3d679ecc1b5c1523de548ed760eaadb4b74b3ae1b0769aa8ea167370c68b62
babashka/nbb
example.cljs
(ns example {:clj-kondo/config '{:lint-as {promesa.core/let clojure.core/let}}} (:require ["fs" :as fs] ["ssh2" :refer [Client]] ["ssh2-promise$default" :as SSH2Promise] [promesa.core :as p])) (def ssh-config #js {:host "yourhost" :port 22 :username "username" :privateKey (fs/rea...
null
https://raw.githubusercontent.com/babashka/nbb/9c7ee2bfe0b4b2bf85d0204746b7e92668c826d9/examples/ssh2/example.cljs
clojure
callback based: example call: promise based: example call:
(ns example {:clj-kondo/config '{:lint-as {promesa.core/let clojure.core/let}}} (:require ["fs" :as fs] ["ssh2" :refer [Client]] ["ssh2-promise$default" :as SSH2Promise] [promesa.core :as p])) (def ssh-config #js {:host "yourhost" :port 22 :username "username" :privateKey (fs/rea...
16ddee16d81e80b2ffeaf9e9505e39ee2c5f9738c0f9d54ed1d5bb7d46f1f017
namin/biohacker
dds.lisp
;;; -*- Mode: Lisp; Syntax: Common-lisp; -*- Modified : forbus on Thurs Apr 18 8:58:35 1996 Based on the LTMS version ;;;; Dependency-directed search facility Last Edited 4/27/94 , by KDF Copyright ( c ) 1993 , , Northwestern University , and , the Xerox Corporation . ;;; All rights reserved. ;;; Se...
null
https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/BPS/jtms/dds.lisp
lisp
-*- Mode: Lisp; Syntax: Common-lisp; -*- Dependency-directed search facility All rights reserved. See the file legal.txt for a paragraph stating scope of permission and disclaimer of warranty. The above copyright notice and that paragraph must be included in any separate copy of this file. (sort (mapcar #'(lambd...
Modified : forbus on Thurs Apr 18 8:58:35 1996 Based on the LTMS version Last Edited 4/27/94 , by KDF Copyright ( c ) 1993 , , Northwestern University , and , the Xerox Corporation . (in-package :COMMON-LISP-USER) (defmacro assuming (asn &body body) `(unwind-protect (let ((already? (in? ,asn))) ...
7ad66a9be2bf09d58089e5f522772a62b6c6b32883aa6c09557a669b258309ac
imandra-ai/ocaml-opentelemetry
logs_service_types.ml
[@@@ocaml.warning "-27-30-39"] type export_logs_service_request = { resource_logs : Logs_types.resource_logs list; } type export_logs_partial_success = { rejected_log_records : int64; error_message : string; } type export_logs_service_response = { partial_success : export_logs_partial_success option; } let...
null
https://raw.githubusercontent.com/imandra-ai/ocaml-opentelemetry/3dc7d63c7d2c345ba13e50b67b56aff878b6d0bb/src/logs_service_types.ml
ocaml
[@@@ocaml.warning "-27-30-39"] type export_logs_service_request = { resource_logs : Logs_types.resource_logs list; } type export_logs_partial_success = { rejected_log_records : int64; error_message : string; } type export_logs_service_response = { partial_success : export_logs_partial_success option; } let...
ae80981cefa48e456a11db71a8f4f72ac601b762ad8558fca5c54c06a0e1fd21
RunOrg/RunOrg
serverAdmin.mli
(* © 2013 RunOrg *) (** Attempt to log in with persona. Returns a token and the e-mail used for login, or [None] if authentication failed (assertion is incorrect, or user is not a server administrator) *) val auth_persona : string -> (# O.ctx, ([`ServerAdmin] Token.I.id * string) option) Run.t * Attempt to l...
null
https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/serverAdmin.mli
ocaml
© 2013 RunOrg * Attempt to log in with persona. Returns a token and the e-mail used for login, or [None] if authentication failed (assertion is incorrect, or user is not a server administrator) * The list of all adminstrators. [fromConfig] determines whether an administrator is present in the list beca...
val auth_persona : string -> (# O.ctx, ([`ServerAdmin] Token.I.id * string) option) Run.t * Attempt to log in using test mode . Returns a token and the e - mail of one of the server administrators , or [ None ] if test mode is disabled . server administrators, or [None] if test mode is disabled. *) val auth...
8370f42f59400646b8e34c56ebc6ff93f5e86acce33609c716986e1836b97b8c
cbaggers/cepl
ffi.lisp
(in-package :cepl) #+darwin (eval-when (:compile-toplevel :load-toplevel :execute) (labels ((to-path (ns) (uiop:ensure-directory-pathname (uiop:parse-unix-namestring ns))) (brew-prefix () "Returns brew's prefix path or nil" (multiple-value-bind (res _ e...
null
https://raw.githubusercontent.com/cbaggers/cepl/d1a10b6c8f4cedc07493bf06aef3a56c7b6f8d5b/core/ffi.lisp
lisp
(in-package :cepl) #+darwin (eval-when (:compile-toplevel :load-toplevel :execute) (labels ((to-path (ns) (uiop:ensure-directory-pathname (uiop:parse-unix-namestring ns))) (brew-prefix () "Returns brew's prefix path or nil" (multiple-value-bind (res _ e...
c4f458e87702cdb43fb6f498f0b9412f8663a3d8fba0bbebf3ef8d24bfc5ab97
padsproj/oforest
universal.ml
Use Makefile in examples directory : ./desugar.sh universal / universal.ml Compile : make universal Use Makefile in examples directory Desugar: ./desugar.sh universal/universal.ml Compile: make universal *) module CostMon = Forest.CostNameMon [%%skin {| uniSkin = dir([<>]) |}] [%...
null
https://raw.githubusercontent.com/padsproj/oforest/e10abf1c35f6d49d4bdf13d51cab44487629b3a3/examples/universal/universal.ml
ocaml
Use Makefile in examples directory : ./desugar.sh universal / universal.ml Compile : make universal Use Makefile in examples directory Desugar: ./desugar.sh universal/universal.ml Compile: make universal *) module CostMon = Forest.CostNameMon [%%skin {| uniSkin = dir([<>]) |}] [%...
73513597ddf00ec24ddaf51a4afd15bf62c31d2b5821fbd54997ce76bb463c98
jashmenn/smoker
urls.clj
(ns smoker.test.urls (:import [smoker.udf RobotsURL] [smoker.udf NormalizeURL] [org.apache.hadoop.io Text]) (:require [clojure.contrib.str-utils2 :as su] [smoker.udf.RobotsURL :as robo] [smoker.udf.NormalizeURL :as norm]) (:use [clojure.test])) (def robots-tests ...
null
https://raw.githubusercontent.com/jashmenn/smoker/79048c99a69d8fb8d1a57796a6881bf2e732fe0e/test/smoker/test/urls.clj
clojure
(ns smoker.test.urls (:import [smoker.udf RobotsURL] [smoker.udf NormalizeURL] [org.apache.hadoop.io Text]) (:require [clojure.contrib.str-utils2 :as su] [smoker.udf.RobotsURL :as robo] [smoker.udf.NormalizeURL :as norm]) (:use [clojure.test])) (def robots-tests ...
a37b43ae3e6ebf9967b0b880c97a8b315671077e9f5636b8ecf0675f69923189
onyx-platform/onyx
db.cljc
(ns onyx.state.protocol.db) (defprotocol State (put-extent! [this window-id group extent v]) (put-state-entry! [this window-id group time entry]) (get-state-entries [this window-id group start end]) (get-state-entries-times [this window-id group]) (delete-state-entries! [this window-id group start end]) (g...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/src/onyx/state/protocol/db.cljc
clojure
(ns onyx.state.protocol.db) (defprotocol State (put-extent! [this window-id group extent v]) (put-state-entry! [this window-id group time entry]) (get-state-entries [this window-id group start end]) (get-state-entries-times [this window-id group]) (delete-state-entries! [this window-id group start end]) (g...
7cf8a50a83b21fbe54365d81ec203b565852dbd98f03395bc04d35c6c6588099
kind2-mc/kind2
hset.ml
(**************************************************************************) (* *) Copyright ( C ) (* *) (* This software is free software;...
null
https://raw.githubusercontent.com/kind2-mc/kind2/37bde34036c5f7548a1b9ae6320f016ef3dc62d6/src/dead_code/hset.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
Copyright ( C ) modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking open Hashcons s Sets of integers implemented as , following and paper { \em Fast Mergeable Integer Maps } ...
6bf750e6c4edc1e2cb1a267cfe64cb3d0d513e9108f4f23514cd4ef29a777e32
OCamlPro/ocp-build
ocpReuse.ml
(**************************************************************************) (* *) (* Typerex Libraries *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/libs/ocplib-lang/ocpReuse.ml
ocaml
************************************************************************ Typerex Libraries ...
Copyright 2011 - 2017 OCamlPro SAS the GNU Lesser General Public License version 2.1 , with the Reentrant buffers : If you call a function that needs a buffer , you might want to use this module to reuse such buffers , instead of reallocating them ever...
7fc03aa6d0127250afbfae02b23840bf726a9e4f7668745023cdddad6c4cd0c7
polyfy/polylith
engine.clj
(ns polylith.clj.core.shell.candidate.engine (:require [clojure.string :as str] [polylith.clj.core.shell.candidate.shared :as shared] [polylith.clj.core.shell.candidate.specification :as specification]) (:refer-clojure :exclude [next])) (def ws (atom nil)) (def groups (atom nil)) (comment ...
null
https://raw.githubusercontent.com/polyfy/polylith/0ffbd88effe0b665ca3b50ce211db7f875daa502/components/shell/src/polylith/clj/core/shell/candidate/engine.clj
clojure
(ns polylith.clj.core.shell.candidate.engine (:require [clojure.string :as str] [polylith.clj.core.shell.candidate.shared :as shared] [polylith.clj.core.shell.candidate.specification :as specification]) (:refer-clojure :exclude [next])) (def ws (atom nil)) (def groups (atom nil)) (comment ...
7e57dee3c1f2e78efbf46aab491128185df8660405b7135b58c9b143b5cbc1cd
INRIA/zelus
defaultsolver.sundials.ml
include Solvers.Sundials_cvode
null
https://raw.githubusercontent.com/INRIA/zelus/685428574b0f9100ad5a41bbaa416cd7a2506d5e/lib/std/solvers/defaultsolver.sundials.ml
ocaml
include Solvers.Sundials_cvode
cf37f20129221fc532de0670fe2c2a44424fbf4fc4a0de5de6e1d0306e37047f
silky/quipper
Simplification.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== {-# LANGUAGE BangPatterns #-} # LANGUAGE MonadCom...
null
https://raw.githubusercontent.com/silky/quipper/1ef6d031984923d8b7ded1c14f05db0995791633/QuipperLib/ClassicalOptim/Simplification.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ====================================================================== # LANGUAGE BangPatterns # | This module contains the core of the classical circuit optimization algorithm. set-monad-0.1.0.0 contai...
This file is part of Quipper . Copyright ( C ) 2011 - 2016 . Please see the # LANGUAGE MonadComprehensions # module QuipperLib.ClassicalOptim.Simplification where import qualified Data.Map as M import qualified Data.List as L import qualified Data.IntSet as IS import qualified Control.DeepSeq as Seq import Contr...
2961164b8a0d0e066dce3381b7717335155e1c9e9fa25965c714a71cd8d9f320
dmitryvk/sbcl-win32-threads
vm.lisp
;;;; miscellaneous VM definition noise for the Alpha This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the pu...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/compiler/alpha/vm.lisp
lisp
miscellaneous VM definition noise for the Alpha more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. defining the registers Ra Arg 0-5 Ra Global pointer (gp) a handy macro so we don't have t...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") (eval-when (:compile-toplevel :load-toplevel :execute) (defvar *register-names* (make-array 32 :ini...
4e128e1b8bd140a96336cad046d471419f3de743f71eb596247f15d93dbf0885
Minoru/hakyll-convert
Blogger.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE StandaloneDeriving # module Spec.Blogger (tests) where import qualified Data.Text as T import Hakyll.Convert.Blogger import Hakyll.Convert.Common (DistilledPost (..)) import Spec.SpecHelpers import Test.Tasty (TestTree, testGroup) import Test.Tasty.ExpectedFailure (expect...
null
https://raw.githubusercontent.com/Minoru/hakyll-convert/aafe20ecbc4a0aec66092a890346ebb3850c74c0/test/spec/Spec/Blogger.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE StandaloneDeriving # module Spec.Blogger (tests) where import qualified Data.Text as T import Hakyll.Convert.Blogger import Hakyll.Convert.Common (DistilledPost (..)) import Spec.SpecHelpers import Test.Tasty (TestTree, testGroup) import Test.Tasty.ExpectedFailure (expectFail) import Test.Tasty.HUnit impor...
e838d16d4ca1a866d5f11d632a77ac5a6d0515dd13758ac2149eaced831fbc1c
jobjo/popper
image.ml
module Image = struct type color = | White | Black | Transparent type t = { width : int ; height : int ; get_pixel : x:int -> y:int -> color } let make ~width ~height get_pixel = { width; height; get_pixel } let render { width; height; get_pixel } = List.init height (fun y -> ...
null
https://raw.githubusercontent.com/jobjo/popper/33da372946d1d842f75994e086fa81c8cf62986e/examples/image.ml
ocaml
module Image = struct type color = | White | Black | Transparent type t = { width : int ; height : int ; get_pixel : x:int -> y:int -> color } let make ~width ~height get_pixel = { width; height; get_pixel } let render { width; height; get_pixel } = List.init height (fun y -> ...
a24ad46057494dca2be60f2cef525a6c65ab4f818b14f054fa34a2adfe2fcb9f
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
GetAccountsAccount.hs
{-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the different functions to run the operation getAccountsAccount module StripeAP...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Operations/GetAccountsAccount.hs
haskell
# LANGUAGE ExplicitForAll # # LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the different functions to run the operation getAccountsAccount | > GET /v1/accounts/{account} | Contains all available parameters of this operation (query and path parameters) | Monadic computation which returns the resu...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Operations.GetAccountsAccount where import qualified Control.Monad.Fail import qualified Control.Monad.Trans.Reader import qualified Data.Aeson import qualified Data.Aeso...
1c2c903facd57cc4dc3bf588c1406055c4f212a0d9b625c98e16458d38f22628
raspasov/neversleep
b_plus_tree_sorted_map.clj
(ns neversleep-db.b-plus-tree-sorted-map (:require [clojure.core.async :refer [chan go >! <! <!! >!! go-loop put! thread alts! alts!! timeout pipeline close!]] [neversleep-db.println-m :refer [println-m]] [neversleep-db.state :as state])) (defn get-b-plus-tree [entity-id] (get @state/all-b...
null
https://raw.githubusercontent.com/raspasov/neversleep/7fd968f4ab20fa6ef71e1049e3eec289ea6691e4/src/neversleep_db/b_plus_tree_sorted_map.clj
clojure
end constructors end (dosync (let [tree (if-let [tree (get-b-plus-tree entity-id)] tree (new-b-tree))] (save-b-plus-tree entity-id (assoc tree k v)))) (>!! confirm-ch true)) empty
(ns neversleep-db.b-plus-tree-sorted-map (:require [clojure.core.async :refer [chan go >! <! <!! >!! go-loop put! thread alts! alts!! timeout pipeline close!]] [neversleep-db.println-m :refer [println-m]] [neversleep-db.state :as state])) (defn get-b-plus-tree [entity-id] (get @state/all-b...
c88851bd3f5e8c38f75a4c5e2c697aa12ac1e325271ec5201fd7af06febe7657
mmottl/gsl-ocaml
vector_flat.ml
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 let () = Error.init () type double_vector_flat = { data : float array ; off : int ; len : int ; strid...
null
https://raw.githubusercontent.com/mmottl/gsl-ocaml/76f8d93cccc1f23084f4a33d3e0a8f1289450580/src/vector_flat.ml
ocaml
gsl - ocaml - OCaml interface to GSL Copyright ( © ) 2002 - 2012 - Olivier Andrieu Distributed under the terms of the GPL version 3 let () = Error.init () type double_vector_flat = { data : float array ; off : int ; len : int ; strid...
4a969b5837b5fe51cccdb8f1e343a3a58142d093208abe53705f5b1af684ab6d
klarna/snabbkaffe
snabbkaffe_nemesis.erl
Copyright 2019 - 2020 Klarna Bank AB %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/klarna/snabbkaffe/2bdf6e842c825ca935b34884528f51158dd31e6e/src/snabbkaffe_nemesis.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2019 - 2020 Klarna Bank AB Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , ? maybe_crash(kind1 , # { data1 = > Foo , field2 = > Bar } ) ? inject_crash ( # { ? snk_kind : = kind1 , : = 42 } , s...
1c01086cb9e5d4d257fd37e62667ad358ac94e5d59d6d53232be45ea1da19ee5
brendanhay/amazonka
ImportCertificate.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-transfer/gen/Amazonka/Transfer/ImportCertificate.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.Transfer.ImportCertificate Stability : auto-generated Imports the signing and encryption certificates that you need to create local (AS2) profiles and partner profiles. * Creating a Request * Request Lenses * Destructuring the Re...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
c8911fe49842a70189c1b99a40542c455b343cb99926bd4d7bde661f025fd14e
slyrus/cl-bio
taxon.lisp
;;; Taxon ;;; Classes, generic functions, methods and functions for working ;;; with taxonomy data ;;; Copyright ( c ) 2006 - 2008 ( ) ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are m...
null
https://raw.githubusercontent.com/slyrus/cl-bio/e6de2bc7f4accaa11466902407e43fae3184973f/taxonomy/taxon.lisp
lisp
Taxon Classes, generic functions, methods and functions for working with taxonomy data 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 c...
Copyright ( c ) 2006 - 2008 ( ) DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :bio-taxonomy) (defparameter *taxonomy-data-directory* (merge-pathnames #p"projects/cl-bio-data/taxonomy/" ...
887a75e538840835f0b61b7bd30a771f1d3e6f8ae930c61be3ff6535e21b203f
icicle-lang/zebra-ambiata
Index.hs
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # {-# OPTIONS_GHC -funbox-strict-fields #-} module Zebra.Factset.Block.Index ( BlockIndex(..) , Tombstone(..) , indicesOfFacts ) where impo...
null
https://raw.githubusercontent.com/icicle-lang/zebra-ambiata/394ee5f98b4805df2c76abb52cdaad9fd7825f81/zebra-core/src/Zebra/Factset/Block/Index.hs
haskell
# OPTIONS_GHC -funbox-strict-fields # FIXME Might be good if this were using 3x Storable.Vector instead of a
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Zebra.Factset.Block.Index ( BlockIndex(..) , Tombstone(..) , indicesOfFacts ) where import Data.Vector.Unboxed.Deriving ...
f66f50437f607b8b783095535f05d945fc16903c528c742adfdd747060bab026
RJMetrics/sweet-liberty
t_request_interpretation.clj
(ns com.rjmetrics.sweet-liberty.unit.t-request-interpretation (:require [midje.sweet :refer :all] [com.rjmetrics.sweet-liberty.request-interpretation :refer :all])) (facts "about extract-merged-body-params" (fact "just form-params" (extract-merged-body-params {:form-params {:a 1}} ...
null
https://raw.githubusercontent.com/RJMetrics/sweet-liberty/812a1caee1a6ef2053d0545a9e05d83e03011212/test/com/rjmetrics/sweet_liberty/unit/t_request_interpretation.clj
clojure
(ns com.rjmetrics.sweet-liberty.unit.t-request-interpretation (:require [midje.sweet :refer :all] [com.rjmetrics.sweet-liberty.request-interpretation :refer :all])) (facts "about extract-merged-body-params" (fact "just form-params" (extract-merged-body-params {:form-params {:a 1}} ...
e481b17bccd462379abca3a987b650466a99565ab1e0f2a7d5baa8d1f6365560
ocaml-flambda/ocaml-jst
quickcheck_lists_arrays_haskell_python.ml
-*- compile - command : " ocamlopt -w + A-4 - 40 - 42 - 44 str.cmxa unix.cmxa quickcheck_lists_arrays_haskell_python.ml -o quickcheck - lists - arrays - haskell - python & & ./quickcheck - lists - arrays - haskell - python " ; -*- CR aspectorzabusky : This file was great for validating comprehensions , but we ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/b0a649516b33b83b7290c6fa5d7cb4c8c343df8c/testsuite/tests/comprehensions/quickcheck_lists_arrays_haskell_python.ml
ocaml
I think this is right For repeatability This only works with some words but that's ok [-3,3] We assume the body is a tuple of all the variables in the environment Generates bindings that don't share variables [-3,3], in increasing order of "complexity" I think preventing name collisions genuinely require...
-*- compile - command : " ocamlopt -w + A-4 - 40 - 42 - 44 str.cmxa unix.cmxa quickcheck_lists_arrays_haskell_python.ml -o quickcheck - lists - arrays - haskell - python & & ./quickcheck - lists - arrays - haskell - python " ; -*- CR aspectorzabusky : This file was great for validating comprehensions , but we ...
4a97d8b2c8d64c687b3475cb91c1845f317c7c52c216d2c2d6b8a9abc44b3f9e
mejgun/haskell-tdlib
AddedReactions.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.AddedReactions where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.AddedReaction as AddedReaction import qualified Utils as U -- | | Represents a list of reactions added to a message @total_count The total num...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/ddcb47043c7a339b4e5995355e5d5a228e21ccb0/src/TD/Data/AddedReactions.hs
haskell
# LANGUAGE OverloadedStrings # | | | | |
module TD.Data.AddedReactions where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.AddedReaction as AddedReaction import qualified Utils as U | Represents a list of reactions added to a message @total_count The total number of found reactions @reactions The list of...
8c26405034ce7c4a7fde65a753c2552e0e347516212d1015cf5e2e006e18d550
owlbarn/owl_opt
gd_d.ml
(** Vanilla gradient descent *) module Make = Gd.Make (Owl.Algodiff.D)
null
https://raw.githubusercontent.com/owlbarn/owl_opt/c3b34072dddbce2d70e1698c5f1fd84d783f9cef/src/opt/gd/gd_d.ml
ocaml
* Vanilla gradient descent
module Make = Gd.Make (Owl.Algodiff.D)
09e937a63fd07f82a62d0492ca5488c2b387d91d3b7a3604b6c0db92b016789e
melange-re/ppx_jsx_embed
test.expected.ml
let x ~children = ((div ~id:(("omg")[@reason.raw_literal "omg"]) ~children:[] ())[@JSX ]) [@@react.component ] let x ~some_prop ~children = ((div ~some_prop ~other_prop:some_prop ~children:[] ())[@JSX ])[@@react.component ]
null
https://raw.githubusercontent.com/melange-re/ppx_jsx_embed/6952024fdc5b82efa909fd6fe65f09b6ec92214f/test/test.expected.ml
ocaml
let x ~children = ((div ~id:(("omg")[@reason.raw_literal "omg"]) ~children:[] ())[@JSX ]) [@@react.component ] let x ~some_prop ~children = ((div ~some_prop ~other_prop:some_prop ~children:[] ())[@JSX ])[@@react.component ]
f2799d58da1f55043e9e47b56e87eac1821f7ef59e6d57349799a7d18a5d3091
mgmillani/pictikz
Graph.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/Graph.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 </>.
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...
c44e4cb8ee2a939a0b285e482c892206dff44c965ae15bc21c7a92c04822ffd9
EMSL-NMR-EPR/Haskell-MFAPipe-Executable
FluxCovarianceMatrix.hs
module MFAPipe.Csv.Types.FluxCovarianceMatrix ( FluxCovarianceMatrixRecords(..) , FluxCovarianceMatrixRecord(..) , encode , encodeWith ) where import Control.Applicative (liftA2) import Data.ByteString.Lazy (ByteString) import qualified Data.Csv import Data.Csv (ToField(), ToNamedRecord(t...
null
https://raw.githubusercontent.com/EMSL-NMR-EPR/Haskell-MFAPipe-Executable/8a7fd13202d3b6b7380af52d86e851e995a9b53e/MFAPipe/app/MFAPipe/Csv/Types/FluxCovarianceMatrix.hs
haskell
module MFAPipe.Csv.Types.FluxCovarianceMatrix ( FluxCovarianceMatrixRecords(..) , FluxCovarianceMatrixRecord(..) , encode , encodeWith ) where import Control.Applicative (liftA2) import Data.ByteString.Lazy (ByteString) import qualified Data.Csv import Data.Csv (ToField(), ToNamedRecord(t...
e2376ae508383bde8a03482711ad34e5a2452f5774e0e9db49997795f8f50cfe
raaz-crypto/raaz
Instances.hs
{-# LANGUAGE CPP #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # -- | Some common instances that are required by the test cases. module Tests.Core.Instances () where import Tests.Core.Imports import Raaz.Primitive.Poly1305.Internal a...
null
https://raw.githubusercontent.com/raaz-crypto/raaz/1d17ead6d33c5441a59dbc4ff33197e2bd6eb6ec/tests/core/Tests/Core/Instances.hs
haskell
# LANGUAGE CPP # # LANGUAGE DataKinds # | Some common instances that are required by the test cases. ------------- Arbitrary instances for Hashes ---------------- ------------ Parameter block for ------------- -------------- Arbitrary instaces of encoded data -------------- ---...
# LANGUAGE FlexibleInstances # # OPTIONS_GHC -fno - warn - orphans # module Tests.Core.Instances () where import Tests.Core.Imports import Raaz.Primitive.Poly1305.Internal as Poly1305 import Raaz.Core.Types.Internal import Raaz.Primitive.Keyed.Internal as Keyed instance Arbitrary w => Arbitrary (LE w) where ...
b332885f1dc7d8f5778d1ee71678ea13b9345aeeb7dc938d71e5cd65f355de1a
Decentralized-Pictures/T4L3NT
test_endorsement.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_protocol/test/test_endorsement.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETH...
4a26aa5b3fed51770d1eb7fafb047331eef62c22f3450aaff3b5c017b07f79e0
ANSSI-FR/xsvgen
meta_val_re.ml
(***********************************************************************) (* *) (* XML Schema Validator Generator *) (* *) ( SafeRive...
null
https://raw.githubusercontent.com/ANSSI-FR/xsvgen/3c2b5e43e7adcb856a3a2aa01bfc039bf3c6459b/meta/meta_val_re.ml
ocaml
********************************************************************* XML Schema Validator Generator ...
( SafeRiver ) Copyright 2012 , ANSSI and SafeRiver . $ I d : meta_val_re.ml 1365 2012 - 04 - 03 15:23:30Z maarek $ let (_ : unit) = Meta_lib.print_header "val_re" let (_ : unit) = Meta_lib.print_test_charset "st_string" (M...
59483cd67daa5e560b144780ae360069f9221ce9a8b5b5aa577a6c389be1cdf6
vouch-opensource/vouch-load-tests
reporter.clj
(ns com.example.io.reporter (:require [clojure.core.async :refer [<! chan go]] [clojure.data.csv :as csv] [clojure.java.io :as io] [clojure.tools.logging :as log])) (defn create-csv-reporter ([log-file-name] (create-csv-reporter log-file-name nil false)) ([log-file-name buf-or-n errors-to-console...
null
https://raw.githubusercontent.com/vouch-opensource/vouch-load-tests/502a6f8eb880cb76a4fbaea279e826a5362d6351/dev/com/example/io/reporter.clj
clojure
(ns com.example.io.reporter (:require [clojure.core.async :refer [<! chan go]] [clojure.data.csv :as csv] [clojure.java.io :as io] [clojure.tools.logging :as log])) (defn create-csv-reporter ([log-file-name] (create-csv-reporter log-file-name nil false)) ([log-file-name buf-or-n errors-to-console...
fdb1d4c0bc12f1f1f046d236bb14d7f3e19202fd264bd809bd2a4e210c18a9c1
deadpendency/deadpendency
Dependency.hs
# OPTIONS_GHC -fno - warn - missing - export - lists # module CommonTest.Gen.Model.Dependency where import Common.Model.Dependency.Basic.BasicDependency import Common.Model.Dependency.Basic.BasicRepoDependencies import Common.Model.Dependency.DependencyIdentifier import Common.Model.Dependency.DependencyName import C...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common-test/src/CommonTest/Gen/Model/Dependency.hs
haskell
genDependencyIdentifierOnlyNamed :: Gen DependencyIdentifier genDependencyIdentifierOnlyNamed = Gen.choice [ genDependencyIdentifierNamed, DependencyIdentifierRepo <$> genQualifiedRepo <*> (Just <$> genDependencyName) ]
# OPTIONS_GHC -fno - warn - missing - export - lists # module CommonTest.Gen.Model.Dependency where import Common.Model.Dependency.Basic.BasicDependency import Common.Model.Dependency.Basic.BasicRepoDependencies import Common.Model.Dependency.DependencyIdentifier import Common.Model.Dependency.DependencyName import C...
1c95a3fb91ed4a7822bbcc575ac4390c1fd0e74f2c25e7c96f3aa783487df573
codereport/SICP-2020
conor_hoekstra_solutions_i.rkt
Exercise 2.17 ;; Solution 1 (require threading) (define (last-pair lst) (~> lst reverse car)) ;; Solution 2 (define (last-pair lst) (list-ref lst (- (length lst) 1))) ;; Solution 3 (define (last-pair lst) (if (null? (cdr lst)) (car lst) (last-pair (cdr lst)))) Exercise...
null
https://raw.githubusercontent.com/codereport/SICP-2020/2d1e60048db89678830d93fcc558a846b7f57b76/Chapter%202.2%20Solutions/conor_hoekstra_solutions_i.rkt
racket
Solution 1 Solution 2 Solution 3 '(1 3 5) this fails :( this prints a #t at the end :( this works Solution 1 :p Solution 2 Example from book Exercise 2.30 (direct) Example from book Exercise 2.30 (map) '(() (1 2 3) (0) (0 2 3) (0 1) (0 1 3) (0 1 2) (0 1 2 3))
Exercise 2.17 (require threading) (define (last-pair lst) (~> lst reverse car)) (define (last-pair lst) (list-ref lst (- (length lst) 1))) (define (last-pair lst) (if (null? (cdr lst)) (car lst) (last-pair (cdr lst)))) Exercise 2.18 (define (reverse lst) (define (ite...
2856d7151dc8f50be426d6f5a8475f70982d53844e857f69813b399144d16d26
2600hz-archive/whistle
crossbar_util.erl
%%%------------------------------------------------------------------- @author < > ( C ) 2010 - 2011 VoIP INC %%% @doc %%% %%% @end Created : 14 Dec 2010 by < > %%%------------------------------------------------------------------- -module(crossbar_util). -export([response/2, response/3, response/4, respo...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/whistle_apps/apps/crossbar/src/crossbar_util.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- -------------------------------------------------------------------- @doc This function set the response status to success, and load the provided data. @end ----------...
@author < > ( C ) 2010 - 2011 VoIP INC Created : 14 Dec 2010 by < > -module(crossbar_util). -export([response/2, response/3, response/4, response/5]). -export([response_deprecated/1, response_deprecated_redirect/2, response_deprecated_redirect/3]). -export([response_faulty_request/1]). -export([response_b...
665ff42c34b29432c08f8437854a880ca1d05202e1f70e055b734d92b370c1ee
jaspervdj/hakyll
Tests.hs
-------------------------------------------------------------------------------- {-# LANGUAGE OverloadedStrings #-} module Hakyll.Core.Provider.Tests ( tests ) where -------------------------------------------------------------------------------- import Hakyll.Core.Metadata import Hakyll.C...
null
https://raw.githubusercontent.com/jaspervdj/hakyll/af9e29b5456c105dc948bc46c93e989a650b5ed1/tests/Hakyll/Core/Provider/Tests.hs
haskell
------------------------------------------------------------------------------ # LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------------------------...
module Hakyll.Core.Provider.Tests ( tests ) where import Hakyll.Core.Metadata import Hakyll.Core.Provider import Test.Tasty (TestTree, testGroup) import Test.Tasty.HUnit (Assertion, testCase, (@=?)) import TestSuite.Util tests :: TestTree tests...
d230ca9672f3efdc558871280c579f1f2e0bd1d7ebd29fa26273cf845ff0b5b0
John-Nagle/nqthm
monotonicity-macros.lisp
Copyright ( C ) 1990 - 1994 Computational Logic , Inc. All Rights ;;; Reserved. See the file LICENSE in this directory for the ;;; complete license agreement. ;;;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ;;; ;;; MONOTONICITY-MACROS.LISP ;;; ;;;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
null
https://raw.githubusercontent.com/John-Nagle/nqthm/aeafa016e424e9fba968a48bf7dab45ab96a3020/nqthm-1992/examples/fm9001-piton/fm9001/monotonicity-macros.lisp
lisp
Reserved. See the file LICENSE in this directory for the complete license agreement. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MONOTONICITY-MACROS.LISP ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MONOTONICITY LEMMAS FOR BOOLEAN FUNCTION...
Copyright ( C ) 1990 - 1994 Computational Logic , Inc. All Rights (in-package "USER") ( PROVE - LEMMA F - AND3 - MONOTONE ( REWRITE ) ( B - APPROX ( F - AND3 A1 B1 C1 ) ( F - AND3 A2 B2 C2 ) ) ) ) (defun monotonicity-lemma-fn (name &optional hints) (let* ((ev (get name 'event)) ...
f54448f9572b1a112c96f1a42b7e225678bf4b36e9fad6e944f396b256767214
Frama-C/Frama-C-snapshot
hcexprs.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/value/domains/hcexprs.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
21a4f8131d7d397e395e3422a214c2ca557e83b366deb09d8ed3ac8140357757
ygmpkk/house
MarshalArray.hs
module MarshalArray (module Foreign.Marshal.Array) where import Foreign.Marshal.Array
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/haskell98/MarshalArray.hs
haskell
module MarshalArray (module Foreign.Marshal.Array) where import Foreign.Marshal.Array
5dd7b2121a83d9cdc72ab7bbfeb65909cb362176637fdba959d6e2d93bb28a67
exercism/babashka
example.clj
(ns triangle) (defn is-valid? [s1 s2 s3] (and (> s1 0) (> s2 0) (> s3 0) (>= (+ s1 s2) s3) (>= (+ s1 s3) s2) (>= (+ s2 s3) s1))) (defn equilateral? [s1 s2 s3] (and (is-valid? s1 s2 s3) (= s1 s2 s3))) (defn isosceles? [s1 s2 s3] (and (is-valid? s1 s2 s3) (or (= s1 s2) (= s1 s3) (= s2 s3)))) (defn s...
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/triangle/.meta/src/example.clj
clojure
(ns triangle) (defn is-valid? [s1 s2 s3] (and (> s1 0) (> s2 0) (> s3 0) (>= (+ s1 s2) s3) (>= (+ s1 s3) s2) (>= (+ s2 s3) s1))) (defn equilateral? [s1 s2 s3] (and (is-valid? s1 s2 s3) (= s1 s2 s3))) (defn isosceles? [s1 s2 s3] (and (is-valid? s1 s2 s3) (or (= s1 s2) (= s1 s3) (= s2 s3)))) (defn s...
e506352c21634d63af1daa2e125f53826da92cbcc6a13af28f024f4f145e0c85
chrovis/cljam
reader.clj
(ns cljam.io.sam.reader (:require [clojure.java.io :as cio] [clojure.tools.logging :as logging] [cljam.io.sam.util :as sam-util] [cljam.io.sam.util.refs :as refs] [cljam.io.sam.util.header :as header] [cljam.io.protocols :as protocols] [cljam.uti...
null
https://raw.githubusercontent.com/chrovis/cljam/2b8e7386765be8efdbbbb4f18dbc52447f4a08af/src/cljam/io/sam/reader.clj
clojure
reader
(ns cljam.io.sam.reader (:require [clojure.java.io :as cio] [clojure.tools.logging :as logging] [cljam.io.sam.util :as sam-util] [cljam.io.sam.util.refs :as refs] [cljam.io.sam.util.header :as header] [cljam.io.protocols :as protocols] [cljam.uti...
d4f26c205dc6c733ce06da59ccb9463a562374e7e2779e8bc74e239f0ad17cba
BinaryAnalysisPlatform/FrontC
cprint.ml
(* cprint -- pretty printer of C program from abstract syntax *) open Cabs let version = "Cprint 4.0 Hugues Cassé et al." (* ** FrontC Pretty printer *) let out = ref stdout let width = ref 80 let tab = ref 8 let max_indent = ref 60 let line = ref "" let line_len = ref 0 let current = ref "" let current_len = ref 0 ...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/FrontC/c167bb8bb82c7f90afa069bd0c49afe57374d5df/frontc/cprint.ml
ocaml
cprint -- pretty printer of C program from abstract syntax ** FrontC Pretty printer ** Useful primitives ** Base Type Printing ** Declaration Printing print_base_type typ * Print a type. @param fct Function called to display the name of the. @param typ Type to display. print_expression exp2 (if op = SU...
open Cabs let version = "Cprint 4.0 Hugues Cassé et al." let out = ref stdout let width = ref 80 let tab = ref 8 let max_indent = ref 60 let line = ref "" let line_len = ref 0 let current = ref "" let current_len = ref 0 let spaces = ref 0 let follow = ref 0 let roll = ref 0 let print_tab size = output_string !ou...
6e585e551d73306809c9eff3424995fd091fb16f234978bb17702600465d26c4
emqx/ekka
ekka_locker.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2019 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/ekka/5ecfa2d66ca978cc0d4a4632223c60befc20dbe7/src/ekka_locker.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2019 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(ekka_locker). -include_lib("stdlib/include/ms_transform.hrl"). -ifdef(TEST). -include_lib("eu...
1d072415392d9e071e2cc1a9fe1cae5e422fdd6a2dc7b601ebeca17963dfa851
coccinelle/herodotos
avglifespan.ml
open Helper let avg vlist bugs grinfo vminopt = let (_,_, _, _, _, _, factor) = grinfo in let (_, avgday, _) = sl_ratio_day vlist bugs in wrap_single_some (Array.make 1 ((float_of_int avgday) /. factor)) let xmax _ cumuls = float_of_int (List.length cumuls) let ymax cumuls = (0.0, ceil (get_ymax1 cumuls)) le...
null
https://raw.githubusercontent.com/coccinelle/herodotos/5da230a18962ca445ed2368bc21abe0a8402e00f/herodotos/graph/avglifespan.ml
ocaml
open Helper let avg vlist bugs grinfo vminopt = let (_,_, _, _, _, _, factor) = grinfo in let (_, avgday, _) = sl_ratio_day vlist bugs in wrap_single_some (Array.make 1 ((float_of_int avgday) /. factor)) let xmax _ cumuls = float_of_int (List.length cumuls) let ymax cumuls = (0.0, ceil (get_ymax1 cumuls)) le...
c2ced48f4955059d5a73d0596878d27fb5b7aeddd2b1d25c4595c6db32bf17cb
well-typed-lightbulbs/ocaml-esp32
typecore.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/typing/typecore.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Asttypes open Types type type_forcing_context = | If_conditional | If_no_else_branch | While...
eb21499d2d287e244370609d8d3880a26bc68eaab99117e5e3459ff2c51c4c1e
UCSD-PL/refscript
CmdLine.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE TupleSections # module Language.Rsc.CmdLine (Config(..), config, withPragmas) where import Control.Monad (foldM) import Language.Rsc.Locations import System.Console.CmdArgs import System.Console.CmdArgs.Expl...
null
https://raw.githubusercontent.com/UCSD-PL/refscript/884306fef72248ac41ecdbb928bbd7b06ca71bd4/src/Language/Rsc/CmdLine.hs
haskell
# LANGUAGE DeriveDataTypeable # ------------------------------------------------------------------- | Command Line Configuration Options ------------------------------------------------------------------- ^ source files to check ^ path to directory for include specs ^ source files to check ^ path to directory for ...
# LANGUAGE TupleSections # module Language.Rsc.CmdLine (Config(..), config, withPragmas) where import Control.Monad (foldM) import Language.Rsc.Locations import System.Console.CmdArgs import System.Console.CmdArgs.Explicit (modeValue) import Sy...
414450f4f602a6e61b26dc600b57f5005f15ca13c59d6645d7817ec5c639417e
mejgun/haskell-tdlib
ReportChatPhoto.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.ReportChatPhoto where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.ChatReportReason as ChatReportReason import qualified Utils as U -- | Reports a chat photo to the Telegram moderators . A chat photo can be ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/ReportChatPhoto.hs
haskell
# LANGUAGE OverloadedStrings # | | | The reason for reporting the chat photo | Identifier of the photo to report. Only full photos from chatPhoto can be reported | Chat identifier
module TD.Query.ReportChatPhoto where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.ChatReportReason as ChatReportReason import qualified Utils as U Reports a chat photo to the Telegram moderators . A chat photo can be reported only if chat.can_be_reported data Re...
d512c30475dd563f554c0c214b31a5a2f8e98c31d8b1a3812cea0f5ccbef5797
kardan/taxa
test_fns.cljc
(ns com.kardans.taxa.flow.test-fns (:require [com.kardans.taxa :as taxa])) (defn f ([t k v] (f t k v (taxa/tag t))) ([t k v tag] (-> t taxa/thing (taxa/taxon tag) (assoc-in [::taxa/thing k] v)))) (defn f1 ([t] (f1 t "f1")) ([t arg] (f t :f1 arg))) (defn f2 ([t] (f2 t "...
null
https://raw.githubusercontent.com/kardan/taxa/e76d1ded4ad2fe140284a0be7261580d65293578/src/test/com/kardans/taxa/flow/test_fns.cljc
clojure
(ns com.kardans.taxa.flow.test-fns (:require [com.kardans.taxa :as taxa])) (defn f ([t k v] (f t k v (taxa/tag t))) ([t k v tag] (-> t taxa/thing (taxa/taxon tag) (assoc-in [::taxa/thing k] v)))) (defn f1 ([t] (f1 t "f1")) ([t arg] (f t :f1 arg))) (defn f2 ([t] (f2 t "...
1190c6a5b9d5a8a69342886fe682a8c7e573bf4ce4402e3914d5b273144df5dd
frex-project/haskell-frex
LinAlg.hs
# LANGUAGE FlexibleContexts # module LinAlg where import Data.List (transpose) import Prelude hiding ((<*>)) import Data.Ring import Data.Coproduct import Data.PartiallyStatic import qualified Data.Map as Map import qualified Data.MultiSet as MultiSet import Language.Haskell.TH.Syntax (Lift) type PsIntRing = FreeExt ...
null
https://raw.githubusercontent.com/frex-project/haskell-frex/23d66eb2f8b1eb21021100fbf3576e6bac2dd075/test/LinAlg.hs
haskell
TODO: we could simplify further here, reducing the number of multiplications as for 'power' matrix-matrix multiplication
# LANGUAGE FlexibleContexts # module LinAlg where import Data.List (transpose) import Prelude hiding ((<*>)) import Data.Ring import Data.Coproduct import Data.PartiallyStatic import qualified Data.Map as Map import qualified Data.MultiSet as MultiSet import Language.Haskell.TH.Syntax (Lift) type PsIntRing = FreeExt ...
43ef18de5acd31be39ade90028ef875ad3971ba847611501eafd4ca7eee70eb5
threatgrid/ctia
migrations.clj
(ns ctia.task.migration.migrations (:require [clj-momo.lib.clj-time [coerce :as time-coerce] [core :as time-core]] [clojure.set :as set] [ctia.task.migration.migrations.describe :refer [migrate-describe]] [ctia.task.migration.migrations.investigation-actio...
null
https://raw.githubusercontent.com/threatgrid/ctia/3d41c6012e701017a63535444a410f59da65c53c/src/ctia/task/migration/migrations.clj
clojure
-- Rename observable type --- Simplify incident model
(ns ctia.task.migration.migrations (:require [clj-momo.lib.clj-time [coerce :as time-coerce] [core :as time-core]] [clojure.set :as set] [ctia.task.migration.migrations.describe :refer [migrate-describe]] [ctia.task.migration.migrations.investigation-actio...
39894e09fd610b09d490a634590ad4ee38a16d6564596afad046aee4cac2410b
rkaippully/webgear
Main.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad (replicateM_, when) import Criterion.Main (bench, defaultMain, nfIO) import Data.ByteString (ByteString) import Data.IORef (newIORef, readIORef, writeIORef) import Network.HTTP.Types (methodDelete, methodGet, met...
null
https://raw.githubusercontent.com/rkaippully/webgear/60359389271292b1c81ae4c9292d2a69a52d5a38/webgear-benchmarks/src/users/Main.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # module Main where import Control.Monad (replicateM_, when) import Criterion.Main (bench, defaultMain, nfIO) import Data.ByteString (ByteString) import Data.IORef (newIORef, readIORef, writeIORef) import Network.HTTP.Types (methodDelete, methodGet, methodPut, statusCode) import Network....
753e709ff4a6c35f4f1dc3520b836b251169e6511513b4200ed17f49a0d1803d
atlas-engineer/nyxt
package.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (uiop:define-package :text-buffer (:use :cl) (:export #:text-buffer #:cursor))
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/aa27fc47314046062d6f4e7ef5d8c95a62c2858f/libraries/text-buffer/package.lisp
lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (uiop:define-package :text-buffer (:use :cl) (:export #:text-buffer #:cursor))
5ff1aaa456ea9d1c3a49ae6711d0c99b2d06f2bb41c57b047ad809e7872d8747
GaloisInc/saw-script
ClearState.hs
# LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} module SAWServer.ClearState ( clearState , clearStateDescr , clearAllStates , clearAllStatesDescr ) where import qualified Argo import qualified Argo.Doc as Doc import qualified Data.Aeson as JSON import Data.Aeson ((.:)) newtype ClearSta...
null
https://raw.githubusercontent.com/GaloisInc/saw-script/490f05a8e2f8f0bfcc15ddce71a8e3668108efe3/saw-remote-api/src/SAWServer/ClearState.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE MultiParamTypeClasses # module SAWServer.ClearState ( clearState , clearStateDescr , clearAllStates , clearAllStatesDescr ) where import qualified Argo import qualified Argo.Doc as Doc import qualified Data.Aeson as JSON import Data.Aeson ((.:)) newtype ClearStateParams = ClearStateParams Argo.St...
17f7a015df4f3b5a0bed492398cf52fc851bf4cb96c24c5473a5ed10802e374e
takikawa/racket-ppa
info.rkt
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("base" "compiler-lib" "dynext-lib" "scheme-lib"))) (define implies (quote ("dynext-lib"))) (define pkg-desc "Tools for managing C extensions, such as `raco ctool`") (define pkg-authors (quote (mflatt))) (define license (qu...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/cext-lib/info.rkt
racket
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define deps (quote ("base" "compiler-lib" "dynext-lib" "scheme-lib"))) (define implies (quote ("dynext-lib"))) (define pkg-desc "Tools for managing C extensions, such as `raco ctool`") (define pkg-authors (quote (mflatt))) (define license (qu...
49bd5af276d6e2a204f8d471f6776b0a2946c44c3068adbb3e36365a7552d7ba
dm3/clojure.java-time
units.clj
(ns java-time.units (:import (java.time.temporal IsoFields ChronoUnit))) (defonce iso {:week-based-years IsoFields/WEEK_BASED_YEARS :quarter-years IsoFields/QUARTER_YEARS}) (defonce chrono {:millis ChronoUnit/MILLIS :weeks ChronoUnit/WEEKS :centuries ChronoUnit/CENTURIES :minutes Chr...
null
https://raw.githubusercontent.com/dm3/clojure.java-time/3a0fe6f350ce1b032af773cd759d9966bedf149a/src/java_time/units.clj
clojure
(ns java-time.units (:import (java.time.temporal IsoFields ChronoUnit))) (defonce iso {:week-based-years IsoFields/WEEK_BASED_YEARS :quarter-years IsoFields/QUARTER_YEARS}) (defonce chrono {:millis ChronoUnit/MILLIS :weeks ChronoUnit/WEEKS :centuries ChronoUnit/CENTURIES :minutes Chr...
55bad1d81c2bcd0755d026d2954c8a62c03356e0c7280ad6a14dfa6770744dcc
Et7f3/ocalc
grandEntier_on.mli
type grandentier = bool * int list val zero : grandentier val unit : grandentier val est_negatif : grandentier -> bool val neg : grandentier -> grandentier val comparer : grandentier -> grandentier -> int val additioner : grandentier -> grandentier -> grandentier val soustraire : grandentier -> grandentier -> grandenti...
null
https://raw.githubusercontent.com/Et7f3/ocalc/667da625676829307fc59542906ed2075fe818bd/src/modules/grandEntier_on.mli
ocaml
type grandentier = bool * int list val zero : grandentier val unit : grandentier val est_negatif : grandentier -> bool val neg : grandentier -> grandentier val comparer : grandentier -> grandentier -> int val additioner : grandentier -> grandentier -> grandentier val soustraire : grandentier -> grandentier -> grandenti...
b1b5445c0b07362dba14e6ecbbefa51170941aabf2e64dccfb6bc2233e76d03c
cartazio/tlaps
isabelle_keywords.mli
* Copyright ( C ) 2012 INRIA and Microsoft Corporation * Copyright (C) 2012 INRIA and Microsoft Corporation *) val v : string list;;
null
https://raw.githubusercontent.com/cartazio/tlaps/562a34c066b636da7b921ae30fc5eacf83608280/src/isabelle_keywords.mli
ocaml
* Copyright ( C ) 2012 INRIA and Microsoft Corporation * Copyright (C) 2012 INRIA and Microsoft Corporation *) val v : string list;;
1c6c34047fe003c85d06250626c6bc1eedbade65a152a80f56f591ee925287c8
flavioc/cl-hurd
flags.lisp
(in-package :hurd) ;; ;; Exec flags for file-exec callback. ;; (defbitfield exec-flags (:newtask #x00000001) (:secure #x00000002) (:defaults #x00000004) (:sigtrap #x00000008) (:stack-args #x00000010))
null
https://raw.githubusercontent.com/flavioc/cl-hurd/982232f47d1a0ff4df5fde2edad03b9df871470a/hurd/exec/flags.lisp
lisp
Exec flags for file-exec callback.
(in-package :hurd) (defbitfield exec-flags (:newtask #x00000001) (:secure #x00000002) (:defaults #x00000004) (:sigtrap #x00000008) (:stack-args #x00000010))
386c33096ba44299d8a72d58d3d96c263d8c849b03b7c05719b101f206caa409
ont-app/igraph-jena
build.clj
(ns build "Adpated from -new/blob/develop/resources/org/corfield/new/lib/root/build.clj" (:refer-clojure :exclude [test]) (:require [clojure.tools.build.api :as b] ; for b/git-count-revs [org.corfield.build :as bb] [clojure.spec.alpha :as spec] [clojure.tools.deps.specs :as dep...
null
https://raw.githubusercontent.com/ont-app/igraph-jena/b6ce294bd4b9c9d2db96df227b54b9e961cf43df/build.clj
clojure
for b/git-count-revs TODO: check opts
(ns build "Adpated from -new/blob/develop/resources/org/corfield/new/lib/root/build.clj" (:refer-clojure :exclude [test]) [org.corfield.build :as bb] [clojure.spec.alpha :as spec] [clojure.tools.deps.specs :as deps-specs] )) (def lib 'ont-app/igraph-jena) (def versi...
76c356c4fea066a9c25aff84a98d7c80dcec67071db8a116da16c603be1d4f82
kowainik/tomland
Array.hs
module Test.Toml.Parser.Array ( arraySpecs ) where import Data.Time (TimeOfDay (..)) import Test.Hspec (Spec, describe, it) import Test.Toml.Parser.Common (arrayFailOn, day1, day2, int1, int2, int3, int4, parseArray) import Toml.Type (UValue (..)) arraySpecs :: Spec arraySpecs = describe "arrayP" $ do i...
null
https://raw.githubusercontent.com/kowainik/tomland/2b4bcc465b79873a61bccfc7131d423a9a0aec1d/test/Test/Toml/Parser/Array.hs
haskell
module Test.Toml.Parser.Array ( arraySpecs ) where import Data.Time (TimeOfDay (..)) import Test.Hspec (Spec, describe, it) import Test.Toml.Parser.Common (arrayFailOn, day1, day2, int1, int2, int3, int4, parseArray) import Toml.Type (UValue (..)) arraySpecs :: Spec arraySpecs = describe "arrayP" $ do i...
d0422d3f25e18894756c27f02138c9246434ed46adabf08bd1a939e5aaaa0f63
babashka/babashka
impl2.clj
(ns my.impl2 (:require [my.impl :as impl])) (def impl-fn impl/impl-fn)
null
https://raw.githubusercontent.com/babashka/babashka/3dfc15f5a40efaec07cba991892c1207a352fab4/test-resources/babashka/uberjar/src/my/impl2.clj
clojure
(ns my.impl2 (:require [my.impl :as impl])) (def impl-fn impl/impl-fn)
d9902415ed4eba5c46fe5396649fe0694e58f1978f6c8b50fc816235056fae8b
lispbuilder/lispbuilder
stdinc.lisp
(in-package #:lispbuilder-sdl-cffi) ;;; Probably do not need this. (defcenum SDL-bool (:SDL-FALSE 0) (:SDL-TRUE 1)) ;;; Probably do not need this. (defcstruct Uint64 (hi :unsigned-int) (lo :unsigned-int)) ;;; Probably do not need this. (defcenum SDL-DUMMY-ENUM :DUMMY-ENUM-VALUE) extern DECLSPEC char * SDLC...
null
https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/cffi/stdinc.lisp
lisp
Probably do not need this. Probably do not need this. Probably do not need this.
(in-package #:lispbuilder-sdl-cffi) (defcenum SDL-bool (:SDL-FALSE 0) (:SDL-TRUE 1)) (defcstruct Uint64 (hi :unsigned-int) (lo :unsigned-int)) (defcenum SDL-DUMMY-ENUM :DUMMY-ENUM-VALUE) (defun sdl-get-env (string) (cond ((cffi:foreign-symbol-pointer "SDL_getenv" :library 'sdl) (cffi:foreign-funca...
1d3d12149f9389267d324fd4e16a9da86adf04e668db8d08d6b8a4f368097889
qnikst/irc-simple
client.hs
{-# LANGUAGE ViewPatterns #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} module Main where import Client import Data.ByteString.Char8 (ByteString) import Data.Conduit.Network import Data.Monoid ((<>)) import Options.Applicative -- | Server configuration data Config = Config { cfgPort...
null
https://raw.githubusercontent.com/qnikst/irc-simple/6deaec9c240b0e9023257b96e0328e883e0760a8/app/client.hs
haskell
# LANGUAGE ViewPatterns # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # | Server configuration | Command line parser
module Main where import Client import Data.ByteString.Char8 (ByteString) import Data.Conduit.Network import Data.Monoid ((<>)) import Options.Applicative data Config = Config { cfgPort :: !Int , cfgHost :: !ByteString } irc :: Parser Config irc = Config <$> option auto ( long "port" ...
30e09ed88e6f88567e82e7c5d18beb3adf8309fdfb1d6c51503d9dfdbb1ef54b
MyDataFlow/ttalk-server
ejabberd_auth_internal.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_auth_internal.erl Author : < > %%% Purpose : Authentification via mnesia Created : 12 Dec 2004 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% This program is free software; you can...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/ejabberd_auth_internal.erl
erlang
---------------------------------------------------------------------- File : ejabberd_auth_internal.erl Purpose : Authentification via mnesia This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be...
Author : < > Created : 12 Dec 2004 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
9beff701ee2a282d34455a042753390a603c2cf948d3b82cd915656e1e5f3bae
wz1000/hie-lsp
RequesterT.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # module Main where import Control.Lens import Control.Monad import Control.Monad.Fix import qualified Data.Dependent.Map as DMap import Data.Dependent....
null
https://raw.githubusercontent.com/wz1000/hie-lsp/dbb3caa97c0acbff0e4fd86fc46eeea748f65e89/reflex-0.6.1/test/RequesterT.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE GADTs # # LANGUAGE RankNTypes # The order is reversed here: see the documentation for 'runRequesterT' TODO re - enable this test after issue # 233 has been resolved | Test that a widget requesting and event which fires at the same time it has been replaced doesn't count along wi...
# LANGUAGE FlexibleContexts # # LANGUAGE RecursiveDo # # LANGUAGE ScopedTypeVariables # module Main where import Control.Lens import Control.Monad import Control.Monad.Fix import qualified Data.Dependent.Map as DMap import Data.Dependent.Sum import Data.Functor.Misc import qualified Data.Map as M import Data.These im...
156e74796fd59f753271d76a0aa8f2f5a9560fc769ecf35d3bf6dcea8aaecbd1
kmicinski/program-analysis-examples
church.rkt
#lang racket ;; A church-compiler (provide (all-defined-out)) ;; for an input language: ; e : : = ( ( [ x ( lambda ( x ... ) e ) ] ) e ) ; | (let ([x e] ...) e) ; | (lambda (x ...) e) ; | (e e ...) ; | x ; | (and e e) | (or e e) ; | (if e e e) ; | (prim e) | (prim e e) ; ...
null
https://raw.githubusercontent.com/kmicinski/program-analysis-examples/140e5a3039ba9ddba70dc53fd3c09f3d590997a9/church.rkt
racket
A church-compiler for an input language: | (let ([x e] ...) e) | (lambda (x ...) e) | (e e ...) | x | (and e e) | (or e e) | (if e e e) | (prim e) | (prim e e) | datum datum ::= nat | (quote ()) | #t | #f x is a symbol prim is a primitive operation in: To an outpu...
#lang racket (provide (all-defined-out)) e : : = ( ( [ x ( lambda ( x ... ) e ) ] ) e ) nat : : = 0 | 1 | 2 | ... (define prims '(+ * - add1 sub1 cons car cdr null? not zero?)) (define id `(lambda (x) x)) (define (prim? prim) (if (member prim prims) #t #f)) (define (churchify-prim prim) (string->symb...
a3cd12f1f2d81285f932457df467aaf0e59d748a9b71ee62649dd962cf6c5c0f
marcoheisig/Typo
function-name.lisp
(in-package #:typo.fndb) (declaim (ftype (function (function) (values (or null function-name) &optional)) function-name)) (defun function-name (function) #-sbcl nil #+sbcl (let ((fun-name (sb-kernel:%fun-name function))) (if (typep fun-name 'function-name) fun-name nil)))
null
https://raw.githubusercontent.com/marcoheisig/Typo/c4451ce5e16a8c8f85128d1d59ecc2ccd311537e/code/fndb/function-name.lisp
lisp
(in-package #:typo.fndb) (declaim (ftype (function (function) (values (or null function-name) &optional)) function-name)) (defun function-name (function) #-sbcl nil #+sbcl (let ((fun-name (sb-kernel:%fun-name function))) (if (typep fun-name 'function-name) fun-name nil)))
31820f13ecb415a6fe207eaad45aabcf4ade03e79b8e8576c0466719a7e04cea
FranklinChen/hugs98-plus-Sep2006
Texture3D.hs
Texture3D.hs ( adapted from texture3d.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2005 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates using a three - dimensional texture . ...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/GLUT/examples/RedBook/Texture3D.hs
haskell
Create checkerboard image resolve overloading, not needed in "real" programs we have to do this *after* createWindow, otherwise we have no OpenGL context
Texture3D.hs ( adapted from texture3d.c which is ( c ) Silicon Graphics , Inc ) Copyright ( c ) 2002 - 2005 < > This file is part of HOpenGL and distributed under a BSD - style license See the file libraries / GLUT / LICENSE This program demonstrates using a three - dimensional texture . ...
95a0f991098c7b24f37dc95c489a306212455664c54e4def36b032efa15a3d73
onedata/op-worker
readdir_plus.erl
%%%-------------------------------------------------------------------- @author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%-------------------------------------------------------------------- %%% @doc %%% Module providing utility functio...
null
https://raw.githubusercontent.com/onedata/op-worker/71d2ac527f4d20ca40b8f5ae28b8107b68ca90e9/src/modules/fslogic/operations/listing/readdir_plus.erl
erlang
-------------------------------------------------------------------- @end -------------------------------------------------------------------- @doc Module providing utility function for readdir plus related file listing operations. @end -------------------------------------------------------------------- ==========...
@author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(readdir_plus). -author("Michal Stanisz"). -include("global_definitions.hrl"). -include("modules/fslogic/data_access_control.hrl"). -include("modules/fslogic/fslogic_common.hrl"). -include("...
91b9ce6552d505cf1d6ec2e220093bd76bb86169e18f8a19d94680de2393f12e
superbobry/pareto
tests.mli
(** Statistical testing. *) type test_alternative = Less | Greater | TwoSided type test_result = { test_statistic : float; test_pvalue : float } * Assess significance of the statistical test at a given [ significance_level ] , which defaults to [ 0.05 ] . [significance_level], which defaults to [0.0...
null
https://raw.githubusercontent.com/superbobry/pareto/8b3b27bce7b7df5d9713d16ed40a844861aa368e/lib/tests.mli
ocaml
* Statistical testing. * Sign test, which evaluates the null hypothesis that sample median is equal to the specified [shift]. Test assumptions: + Sample under test was randomly selected from the population it represents. * Adjustments for multiple comparisons. * Adjusts obtained P-values ...
type test_alternative = Less | Greater | TwoSided type test_result = { test_statistic : float; test_pvalue : float } * Assess significance of the statistical test at a given [ significance_level ] , which defaults to [ 0.05 ] . [significance_level], which defaults to [0.05]. *) val run_test : ?si...
4bcc7c13912afc2c523e57daa8c0644c098780f324768ebb36dc88e3c9fc59bd
wireapp/wire-server
Main.hs
-- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License...
null
https://raw.githubusercontent.com/wireapp/wire-server/be524fac7eb46d5419c319d5f8161f0c518a7f69/services/galley/exec/Main.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along module Main ( main, ) where ...
76259e5569ae88ad9f0baeecf73cb83881670dcd0a3006a90066b285c1c2e755
ntestoc3/burp-clj
context_menu.clj
(ns burp-clj.context-menu (:require [seesaw.core :as gui] [burp-clj.helper :as helper] [burp-clj.utils :as utils]) (:import [burp IContextMenuInvocation IContextMenuFactory] java.util.Arrays )) (defn get-invocation-context [invocation] (-> (...
null
https://raw.githubusercontent.com/ntestoc3/burp-clj/436802d34fb77e183cf513ba767e3310d96f6946/src/burp_clj/context_menu.clj
clojure
(ns burp-clj.context-menu (:require [seesaw.core :as gui] [burp-clj.helper :as helper] [burp-clj.utils :as utils]) (:import [burp IContextMenuInvocation IContextMenuFactory] java.util.Arrays )) (defn get-invocation-context [invocation] (-> (...
5ed77e2b4a1c1f787610ca5d38493e0d92b8bda14e124ff74a68188e991af547
ates/netspire-core
gen_module.erl
-module(gen_module). -export([start/0, start_module/2, stop_module/1, restart_module/2, loaded_modules/0, loaded_modules_with_options/0, get_option/2, get_option/3, is_loaded/1]). -export([behaviour_info/1]). -include("netspire.hrl"). -record(n...
null
https://raw.githubusercontent.com/ates/netspire-core/746c0f254aa6f2669040d954096b4a95ae58b3ce/src/gen_module.erl
erlang
-module(gen_module). -export([start/0, start_module/2, stop_module/1, restart_module/2, loaded_modules/0, loaded_modules_with_options/0, get_option/2, get_option/3, is_loaded/1]). -export([behaviour_info/1]). -include("netspire.hrl"). -record(n...
f2259eaf94313d684f5d0553f0307a3f8fff4bafab66e44d86409ac2d6c70d29
brendanhay/amazonka
DescribeResourcePermissions.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workdocs/gen/Amazonka/WorkDocs/DescribeResourcePermissions.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Describes the permissions of a specified resource. This operation returns paginated results. * Creating a Request * Request Lenses * Destructuring the Response * Response Lenses | /See:/ 'newDescribeResourcePermissions' sma...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
39653bf5e866cd99ef722a734a23f848054fc89a6b2582e347b7cd89fcc87822
edsko/ChinesePodAPI
API.hs
{-# LANGUAGE OverloadedStrings #-} module Servant.ChinesePod.API ( api -- * API specification , ChinesePod -- ** Account , Login , Logout , GetUserInfo -- *** Request types , ReqLogin(..) , ReqLogout(..) , ReqGetUserInfo(..) , ReqSignature(..) -- *** Response types , RespLogin(..) ...
null
https://raw.githubusercontent.com/edsko/ChinesePodAPI/f77ebfd55286316c4a54c42c195d5a51b4a0e4cd/src/Servant/ChinesePod/API.hs
haskell
# LANGUAGE OverloadedStrings # * API specification ** Account *** Request types *** Response types ** Lesson *** Request types ** Library *** Request types * ChinesePod specific datatypes * Auxiliary ** Types ** Parsing combinators ----------------------------------------------------------------------------...
module Servant.ChinesePod.API ( api , ChinesePod , Login , Logout , GetUserInfo , ReqLogin(..) , ReqLogout(..) , ReqGetUserInfo(..) , ReqSignature(..) , RespLogin(..) , RespGetUserInfo(..) , GetLesson , ReqGetLesson(..) , GetLatestLessons , SearchLessons , ReqGetLatestLessons(..) , R...
dfd1641c004a7e11d2fab8bb797fbd12f71b56b10e37ade3f46d6010a1631fd9
avsm/platform
reason.mli
* Copyright ( c ) 2016 < > * * 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/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/odoc.1.4.2/src/html/reason.mli
ocaml
* Convert compilation unit or page models into HTML trees. Optionally [theme_uri] can be provided to locate custom theme files. The HTML output directory will be used by default.
* Copyright ( c ) 2016 < > * * 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...
b3c68851cee69747381722f4fcfcf39d99998522bb675b0f35ed15a488132ed7
haslab/HAAP
Login.hs
HAAP : Haskell Automated Assessment Platform This module provides functions for injecting basic PHP authentication into HTML files . TODO : generalize login database format . HAAP: Haskell Automated Assessment Platform This module provides functions for injecting basic PHP authentication into HTML files. TO...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/src/HAAP/Web/PHP/Login.hs
haskell
# LANGUAGE OverloadedStrings #
HAAP : Haskell Automated Assessment Platform This module provides functions for injecting basic PHP authentication into HTML files . TODO : generalize login database format . HAAP: Haskell Automated Assessment Platform This module provides functions for injecting basic PHP authentication into HTML files. TO...
d72cdd550a76de5d6f9804207afa4e59698980cfdf2cb81596ee81f8705a0d5c
portkey-cloud/aws-clj-sdk
cloudformation.clj
(ns portkey.aws.cloudformation (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "cloudformation", :region "ap-northeast-1"}, :ssl-common-name "cloudformation.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "...
null
https://raw.githubusercontent.com/portkey-cloud/aws-clj-sdk/10623a5c86bd56c8b312f56b76ae5ff52c26a945/src/portkey/aws/cloudformation.clj
clojure
(ns portkey.aws.cloudformation (:require [portkey.aws])) (def endpoints '{"ap-northeast-1" {:credential-scope {:service "cloudformation", :region "ap-northeast-1"}, :ssl-common-name "cloudformation.ap-northeast-1.amazonaws.com", :endpoint "-northeast-1.amazonaws.com", :signature-version :v4}, "...
6ade4c5cf7423355c828e275b4a518668ff4841851db3142983d7a1e20cfc56e
tweag/asterius
Main.hs
import qualified Asterius.FrontendPlugin as A import qualified GHC.Frontend.Ghc as GHC main :: IO () main = GHC.main A.frontendPlugin
null
https://raw.githubusercontent.com/tweag/asterius/9c75ad777d1dc23cc33cc35ed38a63cca2eddb28/asterius/ghc-bin-asterius/Main.hs
haskell
import qualified Asterius.FrontendPlugin as A import qualified GHC.Frontend.Ghc as GHC main :: IO () main = GHC.main A.frontendPlugin
ab958f2033c5076fda78aad89075d07889025bfe68882b847f974c6511bd190e
ekmett/hask
Profunctor.hs
# LANGUAGE CPP , KindSignatures , PolyKinds , MultiParamTypeClasses , FunctionalDependencies , ConstraintKinds , NoImplicitPrelude , TypeFamilies , TypeOperators , FlexibleContexts , FlexibleInstances , UndecidableInstances , RankNTypes , GADTs , ScopedTypeVariables , DataKinds , DefaultSignatures # module Hask.Profunc...
null
https://raw.githubusercontent.com/ekmett/hask/54ea964af8e0c1673ac2699492f4c07d977cb3c8/src/Hask/Profunctor.hs
haskell
| In this vocabulary every category is also right strong over its internal hom
# LANGUAGE CPP , KindSignatures , PolyKinds , MultiParamTypeClasses , FunctionalDependencies , ConstraintKinds , NoImplicitPrelude , TypeFamilies , TypeOperators , FlexibleContexts , FlexibleInstances , UndecidableInstances , RankNTypes , GADTs , ScopedTypeVariables , DataKinds , DefaultSignatures # module Hask.Profunc...
b78ccddbd5732ac009a2dbbbf043eedfdb1bfa0f8fba558be90fb63aeca8a333
logseq/logseq
file.cljs
(ns frontend.handler.common.file "Common file related fns for handlers" (:require [frontend.util :as util] [frontend.config :as config] [frontend.state :as state] [frontend.db :as db] ["/frontend/utils" :as utils] [frontend.mobile.util :as mobile-util] ...
null
https://raw.githubusercontent.com/logseq/logseq/a4a5758afcb59436301f704b88638153ff1352aa/src/main/frontend/handler/common/file.cljs
clojure
case renamed
(ns frontend.handler.common.file "Common file related fns for handlers" (:require [frontend.util :as util] [frontend.config :as config] [frontend.state :as state] [frontend.db :as db] ["/frontend/utils" :as utils] [frontend.mobile.util :as mobile-util] ...
a8ba3128c68ffa4c795877ee7b09e3c58add483fecf41b3ff05b1524d6c9cacc
byulparan/cl-nextstep
package.lisp
(defpackage :cl-nextstep (:nicknames :ns) (:use :cl :alexandria) #+ccl (:import-from #:ccl #:make-id-map #:assign-id-map-id #:id-map-free-object) (:export ;; core-foundation.lisp #:cls #:sel #:objc #+x86-64 #:objc-stret #:alloc #:retain #:release #:autorelease #:cf-retain #:cf-r...
null
https://raw.githubusercontent.com/byulparan/cl-nextstep/383c961bf5bc50bbdb3512693a726c8f1a6a8fb0/package.lisp
lisp
core-foundation.lisp application.lisp window.lisp view.lisp opengl-view.lisp widget.lisp wk-webview.lisp
(defpackage :cl-nextstep (:nicknames :ns) (:use :cl :alexandria) #+ccl (:import-from #:ccl #:make-id-map #:assign-id-map-id #:id-map-free-object) (:export #:cls #:sel #:objc #+x86-64 #:objc-stret #:alloc #:retain #:release #:autorelease #:cf-retain #:cf-release #:cf-autorelease ...
52b797ba6b93f87b3d73ee2a261363f4e0e83dcecb38f1796df92a10b30ad7a5
juji-io/datalevin
storage_test.cljc
(ns datalevin.storage-test (:require [datalevin.storage :as sut] [datalevin.util :as u] [datalevin.constants :as c] [datalevin.datom :as d] [clojure.test.check.generators :as gen] [clojure.test.check.clojure-test :as test] [clojure.test.check.pro...
null
https://raw.githubusercontent.com/juji-io/datalevin/3a1fccc3cb40531901d51719216fdce3b1aa3483/test/datalevin/storage_test.cljc
clojure
(ns datalevin.storage-test (:require [datalevin.storage :as sut] [datalevin.util :as u] [datalevin.constants :as c] [datalevin.datom :as d] [clojure.test.check.generators :as gen] [clojure.test.check.clojure-test :as test] [clojure.test.check.pro...
c91d9ec6c6f9afc41d49707b6406dcab2646e6b5986eadf1ccfa328ff3861ff9
zotonic/zotonic
zotonic_filewatcher_inotify.erl
@author < > 2011 - 2015 < > Date : 2011 - 10 - 12 %% @doc Watch for changed files using inotifywait. %% -tools/wiki Copyright 2011 - 2015 %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obta...
null
https://raw.githubusercontent.com/zotonic/zotonic/1bb4aa8a0688d007dd8ec8ba271546f658312da8/apps/zotonic_filewatcher/src/zotonic_filewatcher_inotify.erl
erlang
@doc Watch for changed files using inotifywait. -tools/wiki 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...
@author < > 2011 - 2015 < > Date : 2011 - 10 - 12 Copyright 2011 - 2015 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(zotonic_filewatcher_inotify). -author("Arjan Scherpenisse <>"). -behaviour(g...
880904938c13fb49658244a57e2961961a127e9de1c27e3a7dc202f8129e4da8
eta-lang/eta-prelude
Foldable.hs
module Eta.Classes.Foldable ( Data.Foldable.Foldable(foldMap, foldr) , foldRight , foldLeft , strictFoldRight , strictFoldLeft , monadicFoldRight , monadicFoldLeft , Eta.Classes.Foldable.toList , isEmpty , Eta.Classes.Foldable.length , isElementOf , Eta.Classes.Foldable.maximum , maximumBy ,...
null
https://raw.githubusercontent.com/eta-lang/eta-prelude/e25e9aa42093e090a86d2728b0cac288a25bc52e/src/Eta/Classes/Foldable.hs
haskell
$ setup ** Foldable | Left-biased version of 'monadicFoldRight' | Converts a type that implements 'Foldable' into a list | Checks if a 'Foldable' structure is empty. | Returns the size of a structure. | Checks if the element is contained in the structure. | Largest element in a structure. Returns 'Nothing' if th...
module Eta.Classes.Foldable ( Data.Foldable.Foldable(foldMap, foldr) , foldRight , foldLeft , strictFoldRight , strictFoldLeft , monadicFoldRight , monadicFoldLeft , Eta.Classes.Foldable.toList , isEmpty , Eta.Classes.Foldable.length , isElementOf , Eta.Classes.Foldable.maximum , maximumBy ,...
bf18274d613210dfa1ebf78ac6c22396fcfa98cca99285a4065dc2d59079bb23
Ralith/cllvm
analysis.lisp
(in-package #:llvm-bindings) (defcenum verifier-failure-action :abort-process :print-message :return-status) (defcfun (verify-module "LLVMVerifyModule") :boolean (module module-ref) (action verifier-failure-action) (out-message (:pointer (:pointer :char)))) (defcfun (verify-function "LLVMVerifyFunction")...
null
https://raw.githubusercontent.com/Ralith/cllvm/342860f0f0b1747ddeeffa1941a930fb9adf1c4c/bindings/analysis.lisp
lisp
(in-package #:llvm-bindings) (defcenum verifier-failure-action :abort-process :print-message :return-status) (defcfun (verify-module "LLVMVerifyModule") :boolean (module module-ref) (action verifier-failure-action) (out-message (:pointer (:pointer :char)))) (defcfun (verify-function "LLVMVerifyFunction")...
ebecd7e64ded9392c846848bb1a90e147d2f274d71796cf0ab2e562fba47a2c6
mxthevs/Caml_bot
twitch_irc.ml
open Logger type connection = { host : string; port : int; } let conn = { host = "irc.chat.twitch.tv"; port = 6667 } module Irc_protocol = struct type message_typ = | JOIN | NICK | PASS | PRIVMSG | PONG let typ_to_string = function | JOIN -> "JOIN #" | NICK -> "NICK " | PASS ...
null
https://raw.githubusercontent.com/mxthevs/Caml_bot/891b240ac8047b17cd0ccc420d790a47e29a9725/src/twitch_irc.ml
ocaml
open Logger type connection = { host : string; port : int; } let conn = { host = "irc.chat.twitch.tv"; port = 6667 } module Irc_protocol = struct type message_typ = | JOIN | NICK | PASS | PRIVMSG | PONG let typ_to_string = function | JOIN -> "JOIN #" | NICK -> "NICK " | PASS ...
30ee437874812cdfc317cc58dbf2a668c85542527c713713908c15552de0a114
fpco/ide-backend
TestPkgG.hs
module Testing.TestPkgG where testPkgG :: String testPkgG = "This is test package G-0.1"
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/test-packages/testpkg-G-0.1/Testing/TestPkgG.hs
haskell
module Testing.TestPkgG where testPkgG :: String testPkgG = "This is test package G-0.1"
73b738ce0b785f00bfb09601c80860c8fc7b69fdf6265012bcd8e0cfdd9f1703
andreasabel/miniagda
Warshall.hs
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} module Warshall where {- construct a graph from constraints x + n <= y becomes x ---(-n)---> y x <= n + y becomes x ---(+n)---> y the default edge (= no edge is) labelled with infinity building the graph involves keeping track of the node names...
null
https://raw.githubusercontent.com/andreasabel/miniagda/55374597238071c2c2c74acf166cf95b34281e1f/src/Warshall.hs
haskell
# LANGUAGE TypeSynonymInstances, FlexibleInstances # construct a graph from constraints x + n <= y becomes x ---(-n)---> y x <= n + y becomes x ---(+n)---> y the default edge (= no edge is) labelled with infinity building the graph involves keeping track of the node names. We do this in a finite map, ...
module Warshall where import Control.Monad.State import Data.Array import Data.Map (Map) import qualified Data.Map as Map import qualified Data.List as List traceSolve :: String -> a -> a traceSolve _msg = id traceSolveM :: Monad m => String -> m () traceSolveM _msg = return () class SemiRing a where oplus ...