_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
33b33db2156154524999f64fdf22dc8febb9a4993867816dafe9efd61920b8e1
ygrek/ocaml-extlib
bitSet.ml
* Bitset - Efficient bit sets * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option )...
null
https://raw.githubusercontent.com/ygrek/ocaml-extlib/69b77f0f0500c98371aea9a6f2abb56c946cdab0/src/bitSet.ml
ocaml
value used to round up index number of shifts Find highest set element or raise Not_found 0-y -> -1 x-y MSBs differ, we need to scan arrays until we find a difference Note: rest of the array is handled automatically correct, since we took a copy of the bigger set.
* Bitset - Efficient bit sets * Copyright ( C ) 2003 * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option )...
152b909717f81033a78a922a252c354569c32505714c4c532211ea15e86d41ba
TheLortex/mirage-monorepo
pp.ml
let () = Ppxlib.Location.raise_errorf "Raising inside the preprocessor"
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/b557005dfe5a51fc50f0597d82c450291cfe8a2a/duniverse/ppxlib/test/driver/error_embedding/pp.ml
ocaml
let () = Ppxlib.Location.raise_errorf "Raising inside the preprocessor"
b1975d75908b2fd6efb52f140013b0d4bc7b59fe89920ce7daf820a81a7b55c3
clojure-interop/google-cloud-clients
ProductSearchClient.clj
(ns com.google.cloud.vision.v1.ProductSearchClient "Service Description: Manages Products and ProductSets of reference images for use in product search. It uses the following resource model: - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named `projects/*/locations/*/p...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.vision/src/com/google/cloud/vision/v1/ProductSearchClient.clj
clojure
"
(ns com.google.cloud.vision.v1.ProductSearchClient "Service Description: Manages Products and ProductSets of reference images for use in product search. It uses the following resource model: - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named `projects/*/locations/*/p...
7217b633fb415057c31c1982d2cc4e5be50dda31e7aa0ebc1869bb1caefbd30f
TyOverby/mono
ppx_css.mli
open! Core open! Ppxlib module For_testing : sig val generate_struct : expression -> module_expr val generate_sig : core_type -> module_type end
null
https://raw.githubusercontent.com/TyOverby/mono/8d6b3484d5db63f2f5472c7367986ea30290764d/vendor/janestreet-ppx_css/src/ppx_css.mli
ocaml
open! Core open! Ppxlib module For_testing : sig val generate_struct : expression -> module_expr val generate_sig : core_type -> module_type end
ac92d62cea157c4e24e1fd41c8d903127f459c3d6ec12f32640e2c9165be73a6
zkat/squirl
pin-joint.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (in-package :squirl) (defstruct (pin-joint (:include constraint) (:constructor make-pin-joint (body-a body-b anchor1 anchor2 &aux (point-1 (vec+ (body-position body-b) ...
null
https://raw.githubusercontent.com/zkat/squirl/d5ab125b389008696a66f5a0d1bbb7449584db90/src/constraints/pin-joint.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*- compute relative velocity copmute normal impulse
(in-package :squirl) (defstruct (pin-joint (:include constraint) (:constructor make-pin-joint (body-a body-b anchor1 anchor2 &aux (point-1 (vec+ (body-position body-b) (vec-r...
c51001f86811058a6d0126d206e071cf6c212aa61955593ec461b95538119232
janestreet/async_smtp
session.ml
open! Core open! Async open Async_ssl.Std open Async_smtp_types type t = { remote : Socket.Address.Inet.t ; local : Socket.Address.Inet.t ; helo : string option ; tls : Ssl.Connection.t option ; authenticated : string option ; advertised_extensions : Smtp_extension.t list } [@@deriving sexp_of, fields] ...
null
https://raw.githubusercontent.com/janestreet/async_smtp/c2c1f8b7b27f571a99d2f21e8a31ce150fbd6ced/src/session.ml
ocaml
open! Core open! Async open Async_ssl.Std open Async_smtp_types type t = { remote : Socket.Address.Inet.t ; local : Socket.Address.Inet.t ; helo : string option ; tls : Ssl.Connection.t option ; authenticated : string option ; advertised_extensions : Smtp_extension.t list } [@@deriving sexp_of, fields] ...
46b9cb595370135d85de6220ac33400311bd1d09e91b0d969bf1e038881de11c
project-oak/hafnium-verification
printer.mli
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/backend/printer.mli
ocaml
* Printers for the analysis results * Module to read specific lines from files. The data from any file will stay in memory until the handle is collected by the gc * create a line reader * get the line from a location looking for the copy of the file in the results dir * Current html formatter * Execute the del...
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
211a22a60357d082497a77b912468a18f92933a083d21c88154532b77ec236da
yav/type-nat-solver
TypeNatSolver.hs
# LANGUAGE CPP # module TypeNatSolver (plugin) where import Type ( Type, Kind, TyVar, eqType , getTyVar_maybe, isNumLitTy, splitTyConApp_maybe , getEqPredTys, mkTyConApp, mkNumLitTy #if __GLASGOW_HASKELL__ <= 710 , mkEqPred #else , mkPrimEqPred ...
null
https://raw.githubusercontent.com/yav/type-nat-solver/4218b52e1f70df152daa7fc62f7f1c2ef67b60a1/src/TypeNatSolver.hs
haskell
XXX: Use `opts` XXX: We can use derived here too | Is this of the form `x ~ y`. | Compute equvalence classes from equalities between vars. Given a variable, give us back the representative for that class inludes r2 ------------------------------------------------------------------------------ Higher level operat...
# LANGUAGE CPP # module TypeNatSolver (plugin) where import Type ( Type, Kind, TyVar, eqType , getTyVar_maybe, isNumLitTy, splitTyConApp_maybe , getEqPredTys, mkTyConApp, mkNumLitTy #if __GLASGOW_HASKELL__ <= 710 , mkEqPred #else , mkPrimEqPred ...
493bcc47a2851be5ce9708498609ee44aaa2e361a0e683ba1635614649cd4ff9
ghc/testsuite
T2412A.hs
module T2412A where import {-# SOURCE #-} T2412 ( Baz ) type Bar = Baz
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/T2412A.hs
haskell
# SOURCE #
module T2412A where type Bar = Baz
f4170937b47fa7e6f1c27aaad5d2c249b6a4f4c717000933f8bf6ec6298b0c69
edgecase/dieter
hamlcoffee.clj
(ns dieter.asset.hamlcoffee (:require [dieter.pools :as pools] [dieter.asset :as asset] [dieter.asset.javascript]) (:use [dieter.jsengine :only (run-compiler)])) (def pool (pools/make-pool)) (defn compile-coffeescript [file] (run-compiler pool ["coffee-script.js" ...
null
https://raw.githubusercontent.com/edgecase/dieter/f3c7cdd7703c6d1556e68bbe8fc94406b717f6f1/dieter-core/src/dieter/asset/hamlcoffee.clj
clojure
imported direct from -coffee/master/dist/compiler/hamlcoffee.js imported direct from
(ns dieter.asset.hamlcoffee (:require [dieter.pools :as pools] [dieter.asset :as asset] [dieter.asset.javascript]) (:use [dieter.jsengine :only (run-compiler)])) (def pool (pools/make-pool)) (defn compile-coffeescript [file] (run-compiler pool ["coffee-script.js" ...
6189f4ad947f880d9c0e62ded09499665867e25df5fac3304f4a0c494fd72012
andrenth/ocaml-mariadb
nonblocking_select_example.ml
module IO = struct type 'a future = 'a let (>>=) x f = f x let return x = x end open IO module S = Mariadb.Nonblocking.Status module M = Mariadb.Nonblocking.Make(struct module IO = IO let wait mariadb status = let fd = Mariadb.Nonblocking.fd mariadb in let rfd = if S.read status then [fd] else [] i...
null
https://raw.githubusercontent.com/andrenth/ocaml-mariadb/3ae20e7d58b30b75e47ad3f34b94bb32df2666b1/examples/select/nonblocking_select_example.ml
ocaml
module IO = struct type 'a future = 'a let (>>=) x f = f x let return x = x end open IO module S = Mariadb.Nonblocking.Status module M = Mariadb.Nonblocking.Make(struct module IO = IO let wait mariadb status = let fd = Mariadb.Nonblocking.fd mariadb in let rfd = if S.read status then [fd] else [] i...
297ddd31c2e57057796585795d89afd9ebffc91184ea05d08ad3fd649b5f3e32
mejgun/haskell-tdlib
AddRecentSticker.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.AddRecentSticker where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputFile as InputFile import qualified Utils as U -- | Manually adds a new sticker to the list of recently used stickers . The new sticker...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/AddRecentSticker.hs
haskell
# LANGUAGE OverloadedStrings # | | | Sticker file to add | Pass true to add the sticker to the list of stickers recently attached to photo or video files; pass false to add the sticker to the list of recently sent stickers
module TD.Query.AddRecentSticker where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.InputFile as InputFile import qualified Utils as U Manually adds a new sticker to the list of recently used stickers . The new sticker is added to the top of the list . If the sti...
3bcc8c98805073ee2871f9e8adb6d4696687e76d0e951fc3ed5c05f573a502b8
cxphoe/SICP-solutions
5.10.rkt
; Without implementation, just clear the thoughts ; Due to the existence of abstract barriers (use seletors in simulation), ; changing the forms below will not affect the excecution only if what we ; input conform to the syntactic forms. ;; take the follows as instance. We can change it into whatever we want it ;; t...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%205-Computing%20with%20Register%20Machines/1%7E4/5.10.rkt
racket
Without implementation, just clear the thoughts Due to the existence of abstract barriers (use seletors in simulation), changing the forms below will not affect the excecution only if what we input conform to the syntactic forms. take the follows as instance. We can change it into whatever we want it to be. ((op...
(define (operation-exp? exp) (and (pair? exp) (tagged-list? (car exp) 'op))) (define (operation-exp-op operation-exp) (cadr (car operation-exp))) (define (operation-exp-operands operation-exp) (cdr operation-exp))
5c410decd4de93800e0b23aa648aca11bad17c73b3de069e89f0f6a5a0205d37
HealthSamurai/stresty
formats.clj
(ns stresty.server.formats (:require [ring.util.codec] [ring.middleware.multipart-params :as multi] [clojure.edn :as edn] [ring.middleware.multipart-params.byte-array :as ba] [cheshire.core :as json] [cheshire.generate :as json-gen] [clj-yaml.cor...
null
https://raw.githubusercontent.com/HealthSamurai/stresty/36765772e6c40f893b4ef16f16a9f7be61f9f84c/src/stresty/server/formats.clj
clojure
(transit always ugly)
(ns stresty.server.formats (:require [ring.util.codec] [ring.middleware.multipart-params :as multi] [clojure.edn :as edn] [ring.middleware.multipart-params.byte-array :as ba] [cheshire.core :as json] [cheshire.generate :as json-gen] [clj-yaml.cor...
4c24ca9765cbbf9923a0cfee5013bfff189165cdf6b6baeaf3fe19428b784428
Decentralized-Pictures/T4L3NT
non_empty_string.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_012_Psithaca/lib_protocol/non_empty_string.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 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...
4e6a96712d070a94c85d015ca0b6b7d9c52c372b4984a5191d77c62daf0a430d
binaryage/chromex
chromeos_info_private.clj
(ns chromex.ext.chromeos-info-private " * available since Chrome 36" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex.callgen :refer [gen-call-helper gen-tap-all-events-call]])) (declare api-table) (declare gen-call)...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts_private/chromex/ext/chromeos_info_private.clj
clojure
-- convenience ------------------------------------------------------------------------------------------------------------ --------------------------------------------------------------------------------------------------------------------------- -- API TABLE --------------------------------------------------------...
(ns chromex.ext.chromeos-info-private " * available since Chrome 36" (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] [chromex.callgen :refer [gen-call-helper gen-tap-all-events-call]])) (declare api-table) (declare gen-call)...
f1e027a19ec0b84b5fe8c543e533ca58399807311cd46f4e99128eda6e6ace9b
patperry/hs-monte-carlo
Utils.hs
----------------------------------------------------------------------------- -- | -- Module : Data.Summary.Utils Copyright : Copyright ( c ) 2010 , < > -- License : BSD3 Maintainer : < > -- Stability : experimental -- Utilities for data summaries . -- module Data.Summary.Utils ( interval, ...
null
https://raw.githubusercontent.com/patperry/hs-monte-carlo/1ca7becdcf6efd37cc0923765699ba2a0a30bfb8/lib/Data/Summary/Utils.hs
haskell
--------------------------------------------------------------------------- | Module : Data.Summary.Utils License : BSD3 Stability : experimental | Get a Central Limit Theorem based confidence interval for a population parameter with the specified coverage level. The level must be in the range @(0,1)@...
Copyright : Copyright ( c ) 2010 , < > Maintainer : < > Utilities for data summaries . module Data.Summary.Utils ( interval, inInterval, ) where import GSL.Random.Dist( ugaussianPInv ) -> (Double,Double) interval level xbar se | not (level > 0 && level < 1) = ...
52920b52806c76cd13f321362c4cf914ae5cc564f235fdc14306741f67497722
input-output-hk/voting-tools
Sql.hs
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Cardano.Catalyst.Query.Sql where import Cardano.Catalyst.Query.Types (Query) import Cardano.Db (DbLovelace (DbLovelace), TxId) import Control.Monad.Except (runExcept...
null
https://raw.githubusercontent.com/input-output-hk/voting-tools/d14c5a456dc440b1dfe7901b6f19e53e8aadea12/src/Cardano/Catalyst/Query/Sql.hs
haskell
Join the transaction information with the metadata information for that the metadata value under key '61284' (voting metadata) and the metadata under the key '61285' (voting signature metadata). When querying the transaction/metadata/signature information, the given row did not have a metadata entry under the ...
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Cardano.Catalyst.Query.Sql where import Cardano.Catalyst.Query.Types (Query) import Cardano.Db (DbLovelace (DbLovelace), TxId) import Control.Monad.Except (runExcept...
a20ade853426c3231884e1735eb3cc7b5e73bc152694e584d460cd462d4e357c
dizzyd/retest
retest_log.erl
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% %% retest: Testing Framework %% Copyright ( c ) 2010 ( ) %% %% Permission is hereby granted, free of charge, to any person obtaining a copy ...
null
https://raw.githubusercontent.com/dizzyd/retest/6b33038bd4df4aab1dc15bb59076512ba8fbb113/src/retest_log.erl
erlang
ex: ts=4 sw=4 et ------------------------------------------------------------------- retest: Testing Framework Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distrib...
-*- tab - width : 4;erlang - indent - level : 4;indent - tabs - mode : nil -*- Copyright ( c ) 2010 ( ) in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . ...
defeeeadff232fc35dbc927811d22e16a34458f6ab71e11c18942a48a28342a7
slyrus/abcl
objectweb.lisp
(in-package :cl-user) (defpackage :abcl/build/jvm/tools/objectweb (:use :cl) (:export #:disassemble-class-bytes)) (in-package :abcl/build/jvm/tools/objectweb) (defun disassemble-class-bytes (object) (let* ((reader (java:jnew "org.objectweb.asm.ClassReader" object)) (writer (java:jnew "java.io.StringW...
null
https://raw.githubusercontent.com/slyrus/abcl/881f733fdbf4b722865318a7d2abe2ff8fdad96e/contrib/abcl-introspect/objectweb.lisp
lisp
this is to support both the 1.X and subsequent releases
(in-package :cl-user) (defpackage :abcl/build/jvm/tools/objectweb (:use :cl) (:export #:disassemble-class-bytes)) (in-package :abcl/build/jvm/tools/objectweb) (defun disassemble-class-bytes (object) (let* ((reader (java:jnew "org.objectweb.asm.ClassReader" object)) (writer (java:jnew "java.io.StringW...
b2ff035ba4fe197fa4f3ec5d7e73697ae05a8b0673834e8f62095be37a4f7c3a
e-bigmoon/haskell-blog
Connection_Manager.hs
#!/usr/bin/env stack -- stack script --resolver lts-17.3 {-# LANGUAGE OverloadedStrings #-} import qualified Data.ByteString.Lazy.Char8 as L8 import Network.HTTP.Client (defaultManagerSettings, newManager) import Network.HTTP.Simple main :: IO () main = do manager <- newManager defaultMa...
null
https://raw.githubusercontent.com/e-bigmoon/haskell-blog/5c9e7c25f31ea6856c5d333e8e991dbceab21c56/sample-code/yesod/appendix/ap4/Connection_Manager.hs
haskell
stack script --resolver lts-17.3 # LANGUAGE OverloadedStrings #
#!/usr/bin/env stack import qualified Data.ByteString.Lazy.Char8 as L8 import Network.HTTP.Client (defaultManagerSettings, newManager) import Network.HTTP.Simple main :: IO () main = do manager <- newManager defaultManagerSettings let request = setRequestManager manager "" respo...
5a3ce296395186758bd4a15954db5a539df3d0887d81fd23ad207986222c4211
alura-cursos/datomic-introducao
db.clj
(ns ecommerce.db (:use clojure.pprint) (:require [datomic.api :as d])) (def db-uri "datomic:dev:4334/ecommerce") (defn abre-conexao [] (d/create-database db-uri) (d/connect db-uri)) (defn apaga-banco [] (d/delete-database db-uri)) ; Produtos ; id? nome String 1 = = > Computador Novo ; slug String 1 ==> ...
null
https://raw.githubusercontent.com/alura-cursos/datomic-introducao/cfb214135fed0670ee90090b63a38d8287673ac6/aula6.2/ecommerce/src/ecommerce/db.clj
clojure
Produtos id? slug String 1 ==> /computador_novo id_entidade atributo valor pull explicito atributo a atributo :where [?entidade :produto/nome]] db)) String sql = "meu codigo sql"; conexao.query(sql) esse aqui eh similar ao String sql em clojure ) não estou usando notacao hungara e extract eh comum n...
(ns ecommerce.db (:use clojure.pprint) (:require [datomic.api :as d])) (def db-uri "datomic:dev:4334/ecommerce") (defn abre-conexao [] (d/create-database db-uri) (d/connect db-uri)) (defn apaga-banco [] (d/delete-database db-uri)) nome String 1 = = > Computador Novo preco ponto flutuante 1 = = > 3500....
f4c93807ca3482961cc438c8b09b7d571dac3fef0a3a1e7fbd570e1d54df843b
DHSProgram/DHS-Indicators-SPSS
NT_WM_NUT.sps
* Encoding: windows-1252. ***************************************************************************************************** Program: NT_WM_NUT.sps Purpose: Code to compute anthropometry and anemia indicators in women Data inputs: IR dataset Data outputs: coded variables Author: Shireen Assaf and transla...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap11_NT/NT_WM_NUT.sps
scheme
* Encoding: windows-1252. ***************************************************************************************************** Program: NT_WM_NUT.sps Purpose: Code to compute anthropometry and anemia indicators in women Data inputs: IR dataset Data outputs: coded variables Author: Shireen Assaf and transla...
05fdf20cc24675e1d317c1efb9b339f6c60cc14db5d0e144e411a7acda436569
qitab/qmynd
misc.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Free Software published under an MIT - like license . See LICENSE ; ; ; ;;; ;;; Copyright ( c ) 2012 G...
null
https://raw.githubusercontent.com/qitab/qmynd/7e56daf73f0ed5f49a931c01af75fb874bcf3445/src/common/misc.lisp
lisp
;;; ; ; ;;; ; ; ;;; ; ; ;;; Stuff in here should f...
(in-package :qmynd-impl) (defun mysql-cs-coll-to-character-encoding (cs-coll) "Maps a MySQL Character Set / Collation identifier to an encoding." (ecase cs-coll (#. +mysql-cs-coll-latin2-czech-cs+ :iso-8859-2) (#. +mysql-cs-coll-latin1-german1-ci+ :iso-8859-1) ( # . + mysql - cs - coll ...
b8e9909ad5e3b91253e4db27d33bab964fb7f843e3ef7bda0b4aa93bbd53e721
axch/test-manager
load.scm
;;; ---------------------------------------------------------------------- Copyright 2007 - 2008 . ;;; ---------------------------------------------------------------------- ;;; This file is part of Test Manager. ;;; ;;; Test Manager is free software; you can redistribute it and/or modify it under the terms of t...
null
https://raw.githubusercontent.com/axch/test-manager/511922c64e189522bef02686a7b9bf050aec0ce2/load.scm
scheme
---------------------------------------------------------------------- ---------------------------------------------------------------------- This file is part of Test Manager. Test Manager is free software; you can redistribute it and/or modify (at your option) any later version. Test Manager is distributed ...
Copyright 2007 - 2008 . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License load - relative , broken in , depends on MIT Scheme 's pathname (cond-expand (...
8774ae506323972a19c11c25bd4e93ac1db212004421faa1ba2970d3ff24eaba
akabe/ocaml-jupyter
jupyter_log.ml
ocaml - jupyter --- A OCaml kernel for Jupyter Copyright ( c ) 2017 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitati...
null
https://raw.githubusercontent.com/akabe/ocaml-jupyter/7ea00fde81a915ee9d86c979f295f4c5dac28db8/src/log/jupyter_log.ml
ocaml
ocaml - jupyter --- A OCaml kernel for Jupyter Copyright ( c ) 2017 Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitati...
e09336a3d539a42dae7e409693688e25241244ccb25644ce5b0387896213cae0
Liqwid-Labs/agora
Unlock.hs
{- | Module : Sample.Proposal.UnlockStake Maintainer : Description: Generate sample data for testing the functionalities of unlocking stake and retracting votes Sample and utilities for testing the functionalities of unlocking stake and retracting votes -} module Sample.Proposal.Unlock ( ParameterBundle (..), ...
null
https://raw.githubusercontent.com/Liqwid-Labs/agora/00c10198e86800aa59c107043e7961ee32d987a2/agora-specs/Sample/Proposal/Unlock.hs
haskell
| Module : Sample.Proposal.UnlockStake Maintainer : Description: Generate sample data for testing the functionalities of unlocking stake and retracting votes Sample and utilities for testing the functionalities of unlocking stake and retracting votes -------------------------------------------------------------...
module Sample.Proposal.Unlock ( ParameterBundle (..), StakeRole (..), TimeRange (..), SignedBy (..), TransactionParameters (..), ProposalParameters (..), SSTOwner (..), StakeParameters (..), Validity (..), unlock, mkTestTree, mkValidVoterRetractVotes, mkValidDelegateeRetractVotes, mkValidVot...
70f45c177c231a72696887b10776f3c7dcd8c51ee51a9de7561f4bd635e4bd62
onyx-platform/learn-onyx
challenge_4_0_test.clj
(ns workshop.jobs.challenge-4-0-test (:require [clojure.test :refer [deftest is]] [onyx.test-helper :refer [with-test-env feedback-exception!]] [workshop.challenge-4-0 :as c] [workshop.workshop-utils :as u] [onyx.api])) Our next topic to tackle will be lifecycles . L...
null
https://raw.githubusercontent.com/onyx-platform/learn-onyx/6bf1936f35d26e3c8cf171b5971e1bc95e82b3c8/test/workshop/jobs/challenge_4_0_test.clj
clojure
feature that allow you to control code that executes at particular and composable. logging, and talking to metrics servers. They also allow you to inject non-serializable parameters, such as database connections, into functions. -guide/latest/#lifecycles This challenge is an already-working example. Explore th...
(ns workshop.jobs.challenge-4-0-test (:require [clojure.test :refer [deftest is]] [onyx.test-helper :refer [with-test-env feedback-exception!]] [workshop.challenge-4-0 :as c] [workshop.workshop-utils :as u] [onyx.api])) Our next topic to tackle will be lifecycles . L...
6de47981c7cf6702514de7935965dee6c95b33af050d5002932de267467e6e92
bdeket/rktsicm
sparse-gcd.rkt
#lang s-exp "../../generic.rkt" (require rackunit "../../rkt/glue.rkt" "../../general/assert.rkt" "../../simplify.rkt" "../helper.rkt") (define (gcd-test d f g) (let ((pd (fpf:expression-> d (lambda (p v) p))) (pf (fpf:expression-> f (lambda (p v) p))) ...
null
https://raw.githubusercontent.com/bdeket/rktsicm/9a6177d98040f058214add392bd791f5259b83b5/rktsicm/sicm/tests/simplify/sparse-gcd.rkt
racket
#lang s-exp "../../generic.rkt" (require rackunit "../../rkt/glue.rkt" "../../general/assert.rkt" "../../simplify.rkt" "../helper.rkt") (define (gcd-test d f g) (let ((pd (fpf:expression-> d (lambda (p v) p))) (pf (fpf:expression-> f (lambda (p v) p))) ...
c9941e3255faa545a879a2fc39b703ce541a0ec1f09b490c389f8c2034160996
onyx-platform/onyx-starter
sample_flow_conditions.clj
(ns onyx-starter.flow-conditions.sample-flow-conditions) ;; Flow conditions would go here, but we aren't using them for this example. (def flow-conditions [])
null
https://raw.githubusercontent.com/onyx-platform/onyx-starter/d9f0cf5095e7b4089c1e3b708b7691d8184cb36b/src/onyx_starter/flow_conditions/sample_flow_conditions.clj
clojure
Flow conditions would go here, but we aren't using them for this example.
(ns onyx-starter.flow-conditions.sample-flow-conditions) (def flow-conditions [])
f4792d76998f3721f0e9607bf612b2dd598faaac2c9150124b207ddca7093220
bitc/hs-term-emulator
ArbitraryTermAtom.hs
{-# LANGUAGE OverloadedStrings #-} module System.Terminal.Emulator.Term.ArbitraryTermAtom where import Data.Text (Text) import qualified Data.Text as T import qualified Data.Vector as V import System.Console.ANSI.Types (SGR) import qualified System.Console.ANSI.Types as SGR import System.Terminal.Emulator.Parsing.Typ...
null
https://raw.githubusercontent.com/bitc/hs-term-emulator/589b220e0008c43ac20218e790ae0991dd61390a/hs-term-emulator/test/System/Terminal/Emulator/Term/ArbitraryTermAtom.hs
haskell
# LANGUAGE OverloadedStrings # TODO ???
module System.Terminal.Emulator.Term.ArbitraryTermAtom where import Data.Text (Text) import qualified Data.Text as T import qualified Data.Vector as V import System.Console.ANSI.Types (SGR) import qualified System.Console.ANSI.Types as SGR import System.Terminal.Emulator.Parsing.Types (ControlSequenceIntroducer (..),...
2de61a48c98571482c90b5b3894aa01c43ba636c3b43c560819fc72f6f5a0c02
merijn/Belewitte
V1.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE Templa...
null
https://raw.githubusercontent.com/merijn/Belewitte/cab6010a2bc54acfc4f4b169c95799fe455799ef/benchmark-analysis/src/Schema/Properties/V1.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE Undecidab...
ea56f27204035ce1faafb809949ebb8c8971f8bb772e784cb20626c619cde385
ghc/packages-dph
Main.hs
-- | In with lifted backends that don't manage sharing properly, the rank -- example suffers similar work complexity problems as the indices example. import Util import Timing import Randomish import System.Environment import Control.Exception import qualified Vectorised as RD import qualified Da...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-examples/examples/smoke/sharing/Rank/Main.hs
haskell
| In with lifted backends that don't manage sharing properly, the rank example suffers similar work complexity problems as the indices example.
import Util import Timing import Randomish import System.Environment import Control.Exception import qualified Vectorised as RD import qualified Data.Array.Parallel.PArray as PA import qualified Data.Vector.Unboxed as V main = do args <- getArgs case args of ...
a594b3a69e2c88bbd412776c68c1e73d07e5c12573a287e103b8df1e5798c346
jacekschae/learn-datomic-course-files
db.clj
(ns cheffy.recipe.db (:require [datomic.client.api :as d] [cheffy.transaction-fn :as tx-fn]) (:import (java.util UUID))) (def recipe-pattern [:recipe/recipe-id :recipe/prep-time :recipe/display-name :recipe/image-url :recipe/public? :account/_favorite-recipes :recipe/favorite-count ...
null
https://raw.githubusercontent.com/jacekschae/learn-datomic-course-files/c337e9efe3744705fe2aac786cf87a89995517b9/increments/36-favorite-counter-tests/src/main/cheffy/recipe/db.clj
clojure
public drafts
(ns cheffy.recipe.db (:require [datomic.client.api :as d] [cheffy.transaction-fn :as tx-fn]) (:import (java.util UUID))) (def recipe-pattern [:recipe/recipe-id :recipe/prep-time :recipe/display-name :recipe/image-url :recipe/public? :account/_favorite-recipes :recipe/favorite-count ...
9d275048c9601fdf583ec120a3e8699e949cad5133327760edf19e92206042b6
ertugrulcetin/konva-cljs
custom_shape.cljs
(ns examples.custom-shape (:require [konva-cljs.core :as k] [konva-cljs.components :as c])) (defn custom-shape-comp [] [c/stage {:width (.-innerWidth js/window) :height (.-innerHeight js/window)} [c/layer [c/shape {:fill "#00D2FF" :stroke "black" ...
null
https://raw.githubusercontent.com/ertugrulcetin/konva-cljs/338e3e76a10857e12880ddf10ca05b0b4a2a653e/examples/src/cljs/examples/custom_shape.cljs
clojure
(ns examples.custom-shape (:require [konva-cljs.core :as k] [konva-cljs.components :as c])) (defn custom-shape-comp [] [c/stage {:width (.-innerWidth js/window) :height (.-innerHeight js/window)} [c/layer [c/shape {:fill "#00D2FF" :stroke "black" ...
92e2759d78c6b447bd0706f98c070e14318627ddf10ae3d581701a6e7e58b84f
NetComposer/nksip
uas_test_server1.erl
%% ------------------------------------------------------------------- %% %% uas_test: Basic Test Suite %% Copyright ( c ) 2013 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License ....
null
https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/test/callbacks/uas_test_server1.erl
erlang
------------------------------------------------------------------- uas_test: Basic Test Suite Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific...
Copyright ( c ) 2013 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(uas_test_server1). ...
83f2508610fc9a92b309b2877d23f144462b037141da73da7a514812413f511a
SKA-ScienceDataProcessor/RC
ddp-gen-data-file.hs
import Control.Monad import Data.Binary.Put import Data.Binary.IEEE754 import System.Environment import qualified Data.ByteString.Lazy as BS genFile :: Int -> FilePath -> IO () genFile n nm = do BS.writeFile nm $ runPut $ replicateM_ n (putFloat64le 0.1) main :: IO () main = do args <- getArgs case args ...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS2/programs/ddp-gen-data-file.hs
haskell
import Control.Monad import Data.Binary.Put import Data.Binary.IEEE754 import System.Environment import qualified Data.ByteString.Lazy as BS genFile :: Int -> FilePath -> IO () genFile n nm = do BS.writeFile nm $ runPut $ replicateM_ n (putFloat64le 0.1) main :: IO () main = do args <- getArgs case args ...
6fb08edc337ba103fdce28a045474a7c5eb763c8bb42663000f53bca0dacec68
pkamenarsky/concur-replica
DOM.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Concur.Replica.DOM where import Control.Concurrent (newEmptyMVar, putMVar, takeMVar) import Concur.Core (Widget, MonadSafeBlock...
null
https://raw.githubusercontent.com/pkamenarsky/concur-replica/e15785b3b09e97790ae23c8ae8671c191d039a2c/src/Concur/Replica/DOM.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # | -US/docs/Web/HTML/Element/div | -US/docs/Web/HTML/Element/table | -US/docs/Web/HTML/Element/thead | -US/docs/Web/HTML/Element/tbody | -US/docs/Web/HTML/Element/tr | Contains `Key`, inteded to be used for child rep...
# LANGUAGE ScopedTypeVariables # module Concur.Replica.DOM where import Control.Concurrent (newEmptyMVar, putMVar, takeMVar) import Concur.Core (Widget, MonadSafeBlockingIO(liftSafeBlockingIO), MonadUnsafeBlockingIO(liftUnsafeBlockingIO), MultiAlternative, wrapView, orr, displa...
b5d342271deafde95d1e679bd99e3852acab5801d12e1b494ccc373da2954a85
screenshotbot/screenshotbot-oss
plugin.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; 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 /. (defpackage :screenshotbot/pro/bitbucket/plugin (:nicknames :screenshotbot/bitbucke...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/0dc4627a08a251f86f306a47098e8ff8463146cb/src/screenshotbot/bitbucket/plugin.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc.
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 /. (defpackage :screenshotbot/pro/bitbucket/plugin (:nicknames :screenshotbot/bitbucket/plugin) (:use #:cl) (:import-from #:screenshotbot/pl...
faee94497e9e59d21671b317de93426465d048265955e2abd8e37360e343f49c
ocurrent/ocaml-ci
lint.ml
(* Use opam-2.1 to lint the packages *) let opam_version = `V2_1 let install_ocamlformat = let open Obuilder_spec in let cache = [ Obuilder_spec.Cache.v Opam_build.download_cache ~target:"/home/opam/.opam/download-cache"; ] in let network = [ "host" ] in function | Analyse_ocamlformat...
null
https://raw.githubusercontent.com/ocurrent/ocaml-ci/bd53a099ecdf8b4080e6f3a778398de9ab878b1f/lib/lint.ml
ocaml
Use opam-2.1 to lint the packages Pinned to a directory containing only the .opam file Not necessarily the dune version used by the project Warnings-as-errors was introduced in Odoc.1.5.0
let opam_version = `V2_1 let install_ocamlformat = let open Obuilder_spec in let cache = [ Obuilder_spec.Cache.v Opam_build.download_cache ~target:"/home/opam/.opam/download-cache"; ] in let network = [ "host" ] in function | Analyse_ocamlformat.Vendored { path } -> let opam_fil...
26da533fd7a12384000b916292a58e52a7797f795e9d26b280dad2fa6e6d651a
hansroland/reflex-dom-inbits
textinput05.hs
{-# LANGUAGE OverloadedStrings #-} import Reflex.Dom import qualified Data.Text as T main :: IO () main = mainWidget body body :: MonadWidget t m => m () body = do el "h1" $ text "Write into TextInput Widget" t1 <- textInput def evCopy <- button ">>>" let evText = tagPromptlyDyn (value t1)...
null
https://raw.githubusercontent.com/hansroland/reflex-dom-inbits/3bf4ccf43aa45c5df7d3ce42dae38955f657ca33/src/textinput05.hs
haskell
# LANGUAGE OverloadedStrings #
import Reflex.Dom import qualified Data.Text as T main :: IO () main = mainWidget body body :: MonadWidget t m => m () body = do el "h1" $ text "Write into TextInput Widget" t1 <- textInput def evCopy <- button ">>>" let evText = tagPromptlyDyn (value t1) evCopy t2 <- textInput $ def & s...
dce9712c849bf984b87bfd4bec2fb2d9a4603499d2cdb00cc90d8c5e8a199caa
Oblosys/proxima
Reducer.hs
{-# LANGUAGE RankNTypes #-} module Reducer (reductionSheet, reduceDoc) where import Common.CommonTypes hiding (Dirty (..)) import Evaluation.EvalLayerTypes import Evaluation.EvalLayerUtils import DocTypes_Generated import DocUtils_Generated import DocumentEdit_Generated import Data.Generics import Data.Maybe insta...
null
https://raw.githubusercontent.com/Oblosys/proxima/f154dff2ccb8afe00eeb325d9d06f5e2a5ee7589/dazzle-editor/src/Reducer.hs
haskell
# LANGUAGE RankNTypes # replace an occurrence of a in d with an element from [a] adds the edges from the dirty subgraph to the graph if the graph is dirty, any vertices not in the graph are removed from the subgraphs and we also need to delete edges to or from non-existent nodes all are clean supergraph is dirty...
module Reducer (reductionSheet, reduceDoc) where import Common.CommonTypes hiding (Dirty (..)) import Evaluation.EvalLayerTypes import Evaluation.EvalLayerUtils import DocTypes_Generated import DocUtils_Generated import DocumentEdit_Generated import Data.Generics import Data.Maybe instance ReductionSheet Document ...
ff3c1c0019c179598fd57315d22d95ec6a219c226049e79c4efae8b80ff14d90
Virtual-Insurance-Products/cldb
database.lisp
(in-package :cldb) ;; build a new database on top of the persistent heap. ;; This means we don't need to implement any copying in here at all - just mutate things. ;; so, I need something to access the columns in the database ;; the columns will have: name, table and the data ;; the data will be in the form of an...
null
https://raw.githubusercontent.com/Virtual-Insurance-Products/cldb/57707d393e5c1fdb7020bd846cc675d6cd5d9630/database.lisp
lisp
build a new database on top of the persistent heap. This means we don't need to implement any copying in here at all - just mutate things. so, I need something to access the columns in the database the columns will have: name, table and the data the data will be in the form of an id->value index (an array) and, op...
(in-package :cldb) (defconstant +database-header-length+ 20) (defconstant +database-header+ (make-pointer p/array-t-16 (1- +database-header-length+))) (defmacro enumerate (&rest r) `(progn ,@ (loop for i from 0 for c in r collect `(d...
d871a64977dcacf48eb8c66a7431638919cbfdb66065fe219f9309722d7d9caa
cj1128/sicp-review
cont-frac.scm
(define (cont-frac-recursive n d k) (define (recur m) (if (= m k) (/ (n k) (d k)) (/ (n m) (+ (d m) (recur (+ m 1)))))) (recur 1)) (define (cont-frac-iterative n d k) (define (iterate m prev-value) (cond ((= m 0) prev-value) ((= m k) (iterate (- m 1) (/ (n k) (d k)))) (else ...
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-1/1.3/cont-frac.scm
scheme
(define (cont-frac-recursive n d k) (define (recur m) (if (= m k) (/ (n k) (d k)) (/ (n m) (+ (d m) (recur (+ m 1)))))) (recur 1)) (define (cont-frac-iterative n d k) (define (iterate m prev-value) (cond ((= m 0) prev-value) ((= m k) (iterate (- m 1) (/ (n k) (d k)))) (else ...
2b20d2ecc7672c2e07a0072daa46db8731712af5567c774195fef725b1d13cb2
xtdb/core2
apply_test.clj
(ns core2.operator.apply-test (:require [clojure.test :as t] [core2.test-util :as tu])) (t/deftest test-apply-operator (letfn [(q [mode] (tu/query-ra [:apply mode '{c-id ?c-id} [::tu/blocks [[{:c-id "c1", :c-name "Alan"} ...
null
https://raw.githubusercontent.com/xtdb/core2/3adeb391ca4dd73a3f79faba8024289376597d23/src/test/clojure/core2/operator/apply_test.clj
clojure
(ns core2.operator.apply-test (:require [clojure.test :as t] [core2.test-util :as tu])) (t/deftest test-apply-operator (letfn [(q [mode] (tu/query-ra [:apply mode '{c-id ?c-id} [::tu/blocks [[{:c-id "c1", :c-name "Alan"} ...
da593e0a8eb154d59733f8e82812272232b144a0635c6411b4998f14a67e5c6c
AccelerateHS/accelerate
Eq.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # {-# LANGUAGE PatternSynonyms #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # {-# LA...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate/7c769b761d0b2a91f318096b9dd3fced94616961/src/Data/Array/Accelerate/Classes/Eq.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE FlexibleContexts # # LANGUAGE PatternSynonyms # # LANGUAGE TypeOperators # | Module : Data.Array.Accelerate.Classes.Eq License : BSD3 Stability : experimental | Conjunction: True if both arguments are true. This is a short-circuit | Conjunctio...
# LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - orphans # Copyright : [ 2016 .. 2020 ] The Acceler...
d6db13cd5cee946ff9753d81837a17233b86f34cb0b68675cc90ea111edab9ed
Chris00/ocaml-gammu
gammu.mli
File : gammu.mli Copyright ( C ) 2010 < > Noémie Meunier < > < > WWW : / This library 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...
null
https://raw.githubusercontent.com/Chris00/ocaml-gammu/ad38c6aff25bda8aa6da1db5fdfe61a224b00250/src/gammu.mli
ocaml
********************************************************************** * Possible errors. * Error during opening device * Device locked * Device does not exist * Device is busy * No permissions to open device * No driver installed for a device * Device doesn't seem to be working * Error during changing speed in...
File : gammu.mli Copyright ( C ) 2010 < > Noémie Meunier < > < > WWW : / This library 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...
578f113bfc4c9ec227241db10bf52c551391f07af9bc38174c4d4368ec220fd4
xapi-project/xen-api
xha_interface.mli
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/48cc1489fff0e344246ecf19fc1ebed6f09c7471/ocaml/xapi/xha_interface.mli
ocaml
* * @group High Availability (HA) if None we defer to xHA built-in default ...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
680bc0dd69832134b2ff8ae515d597b251f58112cc058b25287da8d84bfd3722
clingen-data-model/genegraph
resource.clj
(ns genegraph.source.graphql.schema.resource "Definitions for model of RDFResource objects" (:require [genegraph.database.query :as q] [io.pedestal.log :as log] [clojure.string :as s])) (defn subject-of [_ args value] (concat (q/ld-> value [[:sepio/has-subject :<]]) (q/ld-> val...
null
https://raw.githubusercontent.com/clingen-data-model/genegraph/7fea5745a96c0d097a40eef733a7b33cdee577e1/src/genegraph/source/graphql/schema/resource.clj
clojure
TODO Document schema format Would also be a good use of spec for validiation :path [:dc/description] optional paths are done (let [[_ curie-prefix rest] (re-find #"^([a-zA-Z]+)[:_](.*)$" curie)] (if curie-prefix (if-let [iri-prefix (-> curie-prefix s/lower-case prefix-ns-map)] r)))
(ns genegraph.source.graphql.schema.resource "Definitions for model of RDFResource objects" (:require [genegraph.database.query :as q] [io.pedestal.log :as log] [clojure.string :as s])) (defn subject-of [_ args value] (concat (q/ld-> value [[:sepio/has-subject :<]]) (q/ld-> val...
23dec67d4c59abfa69694446955b981acde48c7d380298d400009a6fd387b598
pveber/biotk
bed.mli
* BED format BED ( Browser Extensible Data ) format is used to describe a collection of genomic features . It is a tabulated format . See the { { #format1}specification } . Several variants exist , depending on the number of fields , and they are accordingly named BED3 , BED4 , { i etc } ...
null
https://raw.githubusercontent.com/pveber/biotk/422640d9303c90c43ecb4b679a8bf5867998119c/lib/bed.mli
ocaml
* BED format BED ( Browser Extensible Data ) format is used to describe a collection of genomic features . It is a tabulated format . See the { { #format1}specification } . Several variants exist , depending on the number of fields , and they are accordingly named BED3 , BED4 , { i etc } ...
6847679b0a9b5e57a3a1bf28bb61784369aa180e4a1bfddcdf4b93a012303114
bracevac/corrl
Newtypes.hs
------------------------------------------------------------------------------ Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the ro...
null
https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Kind/Newtypes.hs
haskell
---------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- Map type names to type definition schemes. ------------------------------------------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . Newtypes, DataInfo(..) , newtypesEmpty, newtypesExtend, newtypesLookup, newtypesFind ...
3d696440ff72188a670f3c8cfde0487adbdb7fa1f8d29af11f22effa4a761087
jfeser/castor
abslayout_fold.mli
open Core open Ast val src : Logs.Src.t module Data : sig type t val of_ralgebra : ?dir:string -> Db.t -> < Equiv.meta ; .. > annot -> t val annotate : ?dir:string -> Db.t -> (< Equiv.meta ; .. > as 'm) annot -> < Equiv.meta ; fold_stream : t ; set_fold_stream : t -> unit ; meta : 'm > ann...
null
https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/lib/abslayout_fold.mli
ocaml
* metadata * relations * predicates * metadata * relations * predicates * results
open Core open Ast val src : Logs.Src.t module Data : sig type t val of_ralgebra : ?dir:string -> Db.t -> < Equiv.meta ; .. > annot -> t val annotate : ?dir:string -> Db.t -> (< Equiv.meta ; .. > as 'm) annot -> < Equiv.meta ; fold_stream : t ; set_fold_stream : t -> unit ; meta : 'm > ann...
4a49f6ac88e39771880215ea5543f60f6a587b8a8d8e1f41c5c7bd2a7db3df8e
LonoCloud/lein-unison
unison.clj
(ns leiningen.unison (:require [clojure.java.shell :refer [sh]] [clojure.java.io :refer [file]] [leiningen.update-dependency :as d] [leiningen.voom :as v] [rewrite-clj.zip :as z])) (defn full-project-name [] (str (z/sexpr (z/right (z/down (z/of-file "project.clj"))))...
null
https://raw.githubusercontent.com/LonoCloud/lein-unison/644168eddb49eac9bf103219503b39e72d6935ee/src/leiningen/unison.clj
clojure
Clone does not take -C, run without the `git` function.
(ns leiningen.unison (:require [clojure.java.shell :refer [sh]] [clojure.java.io :refer [file]] [leiningen.update-dependency :as d] [leiningen.voom :as v] [rewrite-clj.zip :as z])) (defn full-project-name [] (str (z/sexpr (z/right (z/down (z/of-file "project.clj"))))...
17edb896e78bce6976d6c1045eb8e04115c9cf380cea417b73678975ebd14b6a
nd/sicp
4.74.scm
;;a (define (simple-stream-flatmap proc s) (simple-flatten (stream-map proc s))) (define (simple-flatten stream) (stream-map (lambda (s) (stream-car s)) (stream-filter (lambda (s) (not (null? s))) stream))) ;;b
null
https://raw.githubusercontent.com/nd/sicp/d8587a0403d95af7c7bcf59b812f98c4f8550afd/ch04/4.74.scm
scheme
a b
(define (simple-stream-flatmap proc s) (simple-flatten (stream-map proc s))) (define (simple-flatten stream) (stream-map (lambda (s) (stream-car s)) (stream-filter (lambda (s) (not (null? s))) stream)))
d9272051db35830f22a77c26ffc67083d66261b284e82a56587a3d0b91b28064
jarmitage/jarmlib
NanoBlockMappings.hs
OSC :script osc/targets/LiveCore/NanoBlockMappings/UTLNano_OSC.hs -- Ensembles :script osc/targets/LiveCore/NanoBlockMappings/Effects.hs :script osc/targets/LiveCore/NanoBlockMappings/FMSynth.hs :script osc/targets/LiveCore/NanoBlockMappings/Megakit.hs :script osc/targets/LiveCore/NanoBlockMappings/PositionEffects....
null
https://raw.githubusercontent.com/jarmitage/jarmlib/853f6d18ab32630397be91ea89846d55e59e3d70/tidal/osc/targets/LiveCore/NanoBlockMappings/NanoBlockMappings.hs
haskell
Ensembles
OSC :script osc/targets/LiveCore/NanoBlockMappings/UTLNano_OSC.hs :script osc/targets/LiveCore/NanoBlockMappings/Effects.hs :script osc/targets/LiveCore/NanoBlockMappings/FMSynth.hs :script osc/targets/LiveCore/NanoBlockMappings/Megakit.hs :script osc/targets/LiveCore/NanoBlockMappings/PositionEffects.hs :script os...
cb9b208ddf4e806851d27dcc367e024d608dbc8617850f65842f3e830999ebde
ice1000/learn
lucky-number.hs
module Codewars.LuckyNumberChecker where isLucky :: Integer -> Bool isLucky x = 0 == sum ((\x -> read [x] :: Int) <$> show x) `mod` 9
null
https://raw.githubusercontent.com/ice1000/learn/4ce5ea1897c97f7b5b3aee46ccd994e3613a58dd/Haskell/CW-Kata/lucky-number.hs
haskell
module Codewars.LuckyNumberChecker where isLucky :: Integer -> Bool isLucky x = 0 == sum ((\x -> read [x] :: Int) <$> show x) `mod` 9
fade927b9ca9e69272df0a1ecfd4a8df510a582d4bca19b0bccb528c03b6d41f
r0man/grafeo
util.cljc
(ns grafeo.util (:require [#?(:clj cheshire.core :cljs goog.json) :as json] [clojure.pprint :as pprint] [clojure.spec.alpha :as s] [clojure.string :as str] [clojure.walk :as walk])) (defn encode-json "Encode `obj` as JSON." [obj] #?(:clj (json/encode obj) :c...
null
https://raw.githubusercontent.com/r0man/grafeo/087449efe0dda93eb3aca3ec733d392550cd3562/src/grafeo/util.cljc
clojure
(ns grafeo.util (:require [#?(:clj cheshire.core :cljs goog.json) :as json] [clojure.pprint :as pprint] [clojure.spec.alpha :as s] [clojure.string :as str] [clojure.walk :as walk])) (defn encode-json "Encode `obj` as JSON." [obj] #?(:clj (json/encode obj) :c...
bac6e4bf3c1a2f0f30ff91f28d82dcd7b5aa7e7d8ce0ba88dc3dd4219bfb9da3
technoblogy/ulisp-builder
AutoTester 32-bit.lisp
; uLisp Auto Tester Sharp - double - quote (defun sharp-double-quote-reader (stream sub-char numarg) (declare (ignore sub-char numarg)) (let (chars) (do ((prev (read-char stream) curr) (curr (read-char stream) (read-char stream))) ((and (char= prev #\") (char= curr #\#))) (push prev c...
null
https://raw.githubusercontent.com/technoblogy/ulisp-builder/fbab6e2331f2d43bfb75b1a6d01fc893144b35b1/Test%20Suites/AutoTester%2032-bit.lisp
lisp
uLisp Auto Tester do (run-tests) ================================================================ ================================================================ Class SERIAL-STREAM ================================================================ Input ==========================================================...
Sharp - double - quote (defun sharp-double-quote-reader (stream sub-char numarg) (declare (ignore sub-char numarg)) (let (chars) (do ((prev (read-char stream) curr) (curr (read-char stream) (read-char stream))) ((and (char= prev #\") (char= curr #\#))) (push prev chars)) (coerce (...
cf9e997bf5e4768136063caea8a67989658389a2328d09ecee3d3d23f6c8474b
kframework/semantic-approaches
Imp_Bigstep.hs
-- This module defines imp++ in bigstep semantics along with increment module Imp_Bigstep (execute, Configuration (ConfPgm)) where import Imp_Syntax import Imp_State import Imp_Buffer import qualified Data.Map.Strict as Map import qualified Data.List as List This module combines all the changes f...
null
https://raw.githubusercontent.com/kframework/semantic-approaches/6f64eac09e005fe4eae7141e3c0e0f5711da0647/haskell/imp/6-imp%2B%2B/1-imp-bigstep/Imp_Bigstep.hs
haskell
This module defines imp++ in bigstep semantics along with increment NEW NEW NEW NEW NEW NEW NEW NEW
module Imp_Bigstep (execute, Configuration (ConfPgm)) where import Imp_Syntax import Imp_State import Imp_Buffer import qualified Data.Map.Strict as Map import qualified Data.List as List This module combines all the changes from 1 - 5 . Explanations of the additions can be found in their respect...
f8691eac3c5dc8d9958a3b75fe7f90cf916b4e67fb0050bda97d69e692c4c37a
aryx/lfs
lSet.ml
(** Sets as ordered polymorphic lists. *) include List let compare x y = Pervasives.compare y x type 'a t = 'a list (** The empty set. *) let empty : unit -> 'a list = fun () -> [] (** Test if a set is empty or not. *) let is_empty : 'a list -> bool = function [] -> true | _ -> false (** Return the cardinal of a ...
null
https://raw.githubusercontent.com/aryx/lfs/b931530c7132b77dfaf3c99d452dc044fce37589/logfun/src/lSet.ml
ocaml
* Sets as ordered polymorphic lists. * The empty set. * Test if a set is empty or not. * Return the cardinal of a set. * Return a list of the elements. * Get a set from a list. partition par the belonging to a set * Remove an element if present, add it otherwise. iterative functions on lists can also be ap...
include List let compare x y = Pervasives.compare y x type 'a t = 'a list let empty : unit -> 'a list = fun () -> [] let is_empty : 'a list -> bool = function [] -> true | _ -> false let cardinal : 'a list -> int = List.length let elements : 'a t -> 'a list = fun l -> l * Comparison of 2 sets for any relation a...
92c5b1b277f88505e9c78fd5d65a44363d3ed41bfd3790d50edce7b907a64346
waddlaw/TAPL
Class.hs
module Language.FullSimpleLambda.Class ( VarName, System (..), ) where import Data.Kind import RIO type VarName = Text class System t where data Term t :: Type data Ty t :: Type data Context t :: Type data Pattern t :: Type eval :: Term t -> Term t typeof :: Context t -> Term t -> Ty t desugar...
null
https://raw.githubusercontent.com/waddlaw/TAPL/94576e46821aaf7abce6d1d828fc3ce6d05a40b8/subs/lambda-fullsimple/src/Language/FullSimpleLambda/Class.hs
haskell
module Language.FullSimpleLambda.Class ( VarName, System (..), ) where import Data.Kind import RIO type VarName = Text class System t where data Term t :: Type data Ty t :: Type data Context t :: Type data Pattern t :: Type eval :: Term t -> Term t typeof :: Context t -> Term t -> Ty t desugar...
2fe2f6f38b8160ddae0f40e9ffb738b978b4ebab29210173ee02a1fc59770c29
coord-e/ad-hoc-poly
Type.hs
{-# LANGUAGE OverloadedStrings #-} module Parse.Type (typeName, type_, typeScheme) where import AST.Type hiding (type_) import Parse.Internal import Parse.Name import Control.Monad.Combinators.Expr import Text.Megaparsec term :: Parser Type ter...
null
https://raw.githubusercontent.com/coord-e/ad-hoc-poly/cb436ede2ac4f564cddd96fcab879c1ebc7a379e/src/Parse/Type.hs
haskell
# LANGUAGE OverloadedStrings #
module Parse.Type (typeName, type_, typeScheme) where import AST.Type hiding (type_) import Parse.Internal import Parse.Name import Control.Monad.Combinators.Expr import Text.Megaparsec term :: Parser Type term = try (parens type_) <|> tuple ...
01ada4b5f1dbe121553844a828309a6a3d285b81ccb701e8a8840be280661de3
coccinelle/coccinelle
pretty_print_engine.mli
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/57cbff0c5768e22bb2d8c20e8dae74294515c6b3/engine/pretty_print_engine.mli
ocaml
* This file is part of Coccinelle , licensed under the terms of the GPL v2 . * See copyright.txt in the Coccinelle source code for more information . * The Coccinelle source code can be obtained at * This file is part of Coccinelle, licensed under the terms of the GPL v2. * See copyright.txt in the Cocci...
2652ae6bcea57fdb25aca118c876159ff378c85f08520a708526bf39b60754e7
mmontone/cl-rest-server
oauth2-api.lisp
(in-package :rest-server-tests) (in-suite rest-server-tests) ;; OAuth2 API tests (defpackage :oauth2-test (:use :rest-server :rest-server.schema :rest-server.serialize :rest-server.logging :rest-server.mop :rest-server.error :cl)) (defparameter *resource-server-id* ...
null
https://raw.githubusercontent.com/mmontone/cl-rest-server/cd3a08681a1c3215866fedcd36a6bc98d223d52d/test/oauth2-api.lisp
lisp
OAuth2 API tests else else Unauthentication access doesn't work
(in-package :rest-server-tests) (in-suite rest-server-tests) (defpackage :oauth2-test (:use :rest-server :rest-server.schema :rest-server.serialize :rest-server.logging :rest-server.mop :rest-server.error :cl)) (defparameter *resource-server-id* "a7c87ae0-dabe-4b8a-...
0d5443aed746f9d2121aa635d4ca1fd235e16af42f24a651e08e513d10cdee0e
tarides/ocaml-platform-installer
repo.mli
* Manage an Opam repository and create package descriptions . open Bos type t val name : t -> string val path : t -> Fpath.t val init : name:string -> Fpath.t -> (t, 'e) OS.result * If the repository already exists , simply return a value of { ! t } . If it does n't exist , it is initialized and registered in...
null
https://raw.githubusercontent.com/tarides/ocaml-platform-installer/64bf506519d91cc1b957c4af45ba49998d052c6d/src/lib/binary_repo/repo.mli
ocaml
* Whether a specific version of a package exists in the repository. * [add_package opam_opts repo pkg ~extra_files install_file opam_file] adds a package to the repo. [extra_files] is a list of [ filename * content] to be put under [files/] folder
* Manage an Opam repository and create package descriptions . open Bos type t val name : t -> string val path : t -> Fpath.t val init : name:string -> Fpath.t -> (t, 'e) OS.result * If the repository already exists , simply return a value of { ! t } . If it does n't exist , it is initialized and registered in...
6011f8d374e16219836622eef9069140ca2ecbb69777942cab73d81c5c7f1936
runtimeverification/haskell-backend
InternalBytes.hs
| Copyright : ( c ) Runtime Verification , 2018 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2018-2021 License : BSD-3-Clause -} module Kore.Simplify.InternalBytes ( simplify, ) where import Kore.Internal.InternalBytes import Kore.Internal.OrPattern ( OrPattern, ...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/src/Kore/Simplify/InternalBytes.hs
haskell
| Copyright : ( c ) Runtime Verification , 2018 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2018-2021 License : BSD-3-Clause -} module Kore.Simplify.InternalBytes ( simplify, ) where import Kore.Internal.InternalBytes import Kore.Internal.OrPattern ( OrPattern, ...
9cb9c3e553c2a2d4663e67c0b5299595f4efc42562a074bbc442676dc5d3a18f
haskell/cabal
Structured.hs
# LANGUAGE CPP # {-# LANGUAGE DefaultSignatures #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE FlexibleContexts #-} # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} {-# LANGUAGE PatternSynonyms #-} -- ...
null
https://raw.githubusercontent.com/haskell/cabal/0eb638fb18e4ef215413d1a1c25b5175e54f2158/Cabal-syntax/src/Distribution/Utils/Structured.hs
haskell
# LANGUAGE DefaultSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE PatternSynonyms # | Structurally tag binary serialisation stream. Useful when most 'Binary' instances are 'Generic' derived. Say you have a data type @ } instance 'Binary' Record instance 'St...
# LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # Copyright : ( c ) 2019 data Record = Record { _ : : HM.HashMap Text ( Integer , ByteString ) , _ recordEnabled : : deriving ( Eq ,...
1be571e943630ef1214bc49515b175352a16fcc106059eabc17b763e56214b9a
startalkIM/ejabberd
mod_privacy.erl
%%%---------------------------------------------------------------------- File : Author : < > %%% Purpose : jabber:iq:privacy support Created : 21 Jul 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne %%% %%% This program is free software; you can redistribute it and/or mod...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/mod_privacy.erl
erlang
---------------------------------------------------------------------- Purpose : jabber:iq:privacy support 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 useful, but WITHOUT ANY WARRANTY; with...
File : Author : < > Created : 21 Jul 2003 by < > ejabberd , Copyright ( C ) 2002 - 2016 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 Li...
e986c7798e95f5a5b234ce335d4514f34256fe4ff419493861328d4a134fd705
haskell/time
LongWeekYears.hs
module Test.Calendar.LongWeekYears ( longWeekYears, ) where import Data.Time.Calendar import Data.Time.Calendar.WeekDate import Test.Calendar.LongWeekYearsRef import Test.Tasty import Test.Tasty.HUnit longYear :: Integer -> Bool longYear year = case toWeekDate (fromGregorian year 12 31) of (_, 53, _) ...
null
https://raw.githubusercontent.com/haskell/time/dba6302b244a7b991ee7cac0d16461fddd222965/test/main/Test/Calendar/LongWeekYears.hs
haskell
module Test.Calendar.LongWeekYears ( longWeekYears, ) where import Data.Time.Calendar import Data.Time.Calendar.WeekDate import Test.Calendar.LongWeekYearsRef import Test.Tasty import Test.Tasty.HUnit longYear :: Integer -> Bool longYear year = case toWeekDate (fromGregorian year 12 31) of (_, 53, _) ...
65036c94c587cb5b70c1a9f52b29d13afc1d32aa3b20ea7fd30fba9d1823d7f0
lambdaisland/breakout
project.clj
(defproject breakout "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.229"] [reagent "0.6.0"] [binaryage/devtools "0.8.2"] [re-frame "0.8.0"] [garden "1.3.2"] [ns-tracker ...
null
https://raw.githubusercontent.com/lambdaisland/breakout/72062cf46abe0501284bfd036c2ca65245ce79ae/project.clj
clojure
(defproject breakout "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.8.0"] [org.clojure/clojurescript "1.9.229"] [reagent "0.6.0"] [binaryage/devtools "0.8.2"] [re-frame "0.8.0"] [garden "1.3.2"] [ns-tracker ...
073020d457daaf0b76530547285fec8c1076b6f80c975748bc75c423cc8bb87b
chef/chef-server
chef_index_query.erl
-module(chef_index_query). -export([ from_params/5, add_org_guid_to_query/2, search_db_from_orgid/1, search_type_constraint/1, assert_org_id_filter/1, id_field/0, database_field/0, type_field/0 ]). -include("chef_solr.hrl"). id_field() ->...
null
https://raw.githubusercontent.com/chef/chef-server/0e9bcddee9c5b9090829089ebb7eaa587929af99/src/oc_erchef/apps/chef_index/src/chef_index_query.erl
erlang
Default query string if no 'q' param is present. We might thou shalt not query with the empty string @mp: remove http_uri_decode here, or keep it? @doc Generates a constraint for chef_type @end @doc Generate a constraint for chef_database ,Hex1,Hex2|Rest]) ->
-module(chef_index_query). -export([ from_params/5, add_org_guid_to_query/2, search_db_from_orgid/1, search_type_constraint/1, assert_org_id_filter/1, id_field/0, database_field/0, type_field/0 ]). -include("chef_solr.hrl"). id_field() ->...
d2ae1be681b463d6e7624289344d4a17eca480fdaa5f4b5e58a459831c7f9bf4
SimulaVR/godot-haskell
Skin.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Skin (Godot.Core.Skin.add_bind, Godot.Core.Skin.clea...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/Skin.hs
haskell
# NOINLINE bindSkin_set_bind_pose #
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Skin (Godot.Core.Skin.add_bind, Godot.Core.Skin.clea...
65621cf1111c85d5e99e757ca1930279d9ee7e8a70b339454549d317abac2a65
travelping/ergw
3gpp_qos_prop.erl
Copyright 2017 , Travelping GmbH < > %% This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module('3gpp_qos_prop')...
null
https://raw.githubusercontent.com/travelping/ergw/803d142c918cb657f83600995277a7bb62fdb748/apps/ergw_core/test/property_test/3gpp_qos_prop.erl
erlang
This program is free software; you can redistribute it and/or -define(EQC,true). -define(TRIQ,true). =================================================================== Tests =================================================================== -------------------------------------------------------------------- ======...
Copyright 2017 , Travelping GmbH < > modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later version . -module('3gpp_qos_prop'). -compile([export_all, nowarn_export_all]). -proptest(proper)....
32fb9aeda1db907d15588e3c56370f986f386c7ebb05778be756aec64b47ebf6
mirage/ocaml-git
binary_search.ml
let identity x = x let () = Crowbar.add_test ~name:"binary search" Crowbar.[ list (bytes_fixed 20); list (bytes_fixed 20) ] @@ fun entries exists -> let entries = List.sort_uniq String.compare entries in let entries = Array.of_list entries in let length = 8 + (4 * 256) + (Array.length entries * 20) in ...
null
https://raw.githubusercontent.com/mirage/ocaml-git/37c9ef41944b5b19117c34eee83ca672bb63f482/fuzz/binary_search.ml
ocaml
let identity x = x let () = Crowbar.add_test ~name:"binary search" Crowbar.[ list (bytes_fixed 20); list (bytes_fixed 20) ] @@ fun entries exists -> let entries = List.sort_uniq String.compare entries in let entries = Array.of_list entries in let length = 8 + (4 * 256) + (Array.length entries * 20) in ...
78959df38f0fbae0e2d13acdad6615e670a5930ec2951b1acec41be2ac960b04
haskelling/aoc2020
1a.hs
import AOC main = interact $ f . map read f (x:xs) = if (2020 - x) `elem` xs then x * (2020 - x) else f xs
null
https://raw.githubusercontent.com/haskelling/aoc2020/0f0e44ad16d3eda4add1f05684070dd161010d75/1a.hs
haskell
import AOC main = interact $ f . map read f (x:xs) = if (2020 - x) `elem` xs then x * (2020 - x) else f xs
9d354f84935146535dbc504efa31a63d34ca030c82a56ca021fde484074eb674
matsen/pplacer
nuc_models.ml
(* translating nucleotide sequences into likelihood vectors * *) open Ppatteries Adenine A A Cytosine C C Guanine G G Thymine T T Purine G or A R Pyrimidine ...
null
https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/pplacer_src/nuc_models.ml
ocaml
translating nucleotide sequences into likelihood vectors * A C G T G or A T or C A or C G or T G or C A or T A or C or T G or T or C G or C or A G or A or T G or C or T or A make a symmetric matr...
open Ppatteries Adenine A A Cytosine C C Guanine G G Thymine T T Purine G or A R Pyrimidine T or C Y Amino A or C M...
7931b16e8e8844e4646b51479f9fc267ae225867540e6bfbd0bd012259cc2ec6
1Jajen1/Brokkr
Main.hs
# LANGUAGE RecordWildCards # module Main (main) where import qualified Chronos import Data.Coerce import qualified Dimension import Control.Monad import Control.Concurrent (threadDelay) import qualified Control.Concurrent.Async as Async import qualified IO.Chunkloading as Chunkloading import qualified Network.Sim...
null
https://raw.githubusercontent.com/1Jajen1/Brokkr/1c93519fdc3490091205e8499ed04cd1fee66192/app/Main.hs
haskell
set up chunkloading setup dimensions set this world as the overworld default nether <- Hecs.newEntity theEnd <- Hecs.newEntity Join new clients process all the stuff the clients sent player block placing/breaking weather create entities world time tile events light updates create block entities weather eve...
# LANGUAGE RecordWildCards # module Main (main) where import qualified Chronos import Data.Coerce import qualified Dimension import Control.Monad import Control.Concurrent (threadDelay) import qualified Control.Concurrent.Async as Async import qualified IO.Chunkloading as Chunkloading import qualified Network.Sim...
6f39b9eb355bacf3e9c775f7570bc8345c89c0eb70dce7142ea81693a3d78598
diagrams/diagrams-core
Test.hs
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleContexts , TypeSynonymInstances , FlexibleInstances # , MultiParamTypeClasses , FlexibleContexts , TypeSynonymInstances , FlexibleInstances #-} module Test where imp...
null
https://raw.githubusercontent.com/diagrams/diagrams-core/91b915b0640e1575d0236f323ffcd13221064094/old/Test.hs
haskell
# LANGUAGE TypeFamilies , MultiParamTypeClasses , FlexibleContexts , TypeSynonymInstances , FlexibleInstances # , MultiParamTypeClasses , FlexibleContexts , TypeSynonymInstances , FlexibleInstances #-} module Test where imp...
e86d1af8a2191bd40545503dcc90e7ba429b8dffcae041c9fce1621830d77990
slegrand45/examples_ocsigen
controller.ml
open Types let update a ((r, f) : rp) = let m = React.S.value r in let m = match a with | Action.Click_cell cell -> match m with | Player_x_to_move (board, valid_moves) -> if (Model.cell_in_valid_moves_x valid_moves cell) then let new_game_board = { cells = Model.update_cell b...
null
https://raw.githubusercontent.com/slegrand45/examples_ocsigen/e2f5efe57caf7a644795ac6b14f6d6e04168e4be/jsoo/tic-tac-toe/controller.ml
ocaml
open Types let update a ((r, f) : rp) = let m = React.S.value r in let m = match a with | Action.Click_cell cell -> match m with | Player_x_to_move (board, valid_moves) -> if (Model.cell_in_valid_moves_x valid_moves cell) then let new_game_board = { cells = Model.update_cell b...
72c9065ace45cce3b1a8110d5fab8c4ddae559aea24b9827de484aebfc5f84d8
digitallyinduced/ihp-forum
Show.hs
module Admin.View.UserBadges.Show where import Admin.View.Prelude data ShowView = ShowView { userBadge :: UserBadge } instance View ShowView where html ShowView { .. } = [hsx| <nav> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href={UserBadgesAction}> UserBadges </a><...
null
https://raw.githubusercontent.com/digitallyinduced/ihp-forum/ac36ad4ab5dfe7b3aa85ea92d642aec12e4fa6ad/Admin/View/UserBadges/Show.hs
haskell
module Admin.View.UserBadges.Show where import Admin.View.Prelude data ShowView = ShowView { userBadge :: UserBadge } instance View ShowView where html ShowView { .. } = [hsx| <nav> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href={UserBadgesAction}> UserBadges </a><...
b3c4e48c901e541a8140d186cedd6963fbf12065ed21bd148206c186e306990b
willdonnelly/dyre
Main.hs
import Lib main :: IO () main = threadedTest "main"
null
https://raw.githubusercontent.com/willdonnelly/dyre/f1ebc1592fb188fa173f8c1baa325fc61f527825/Tests/threaded/Main.hs
haskell
import Lib main :: IO () main = threadedTest "main"
52e6cc2c7e74f89f0452bc50d4400369e548e8887ecc4a93c6b83e42695e8519
mzp/coq-ruby
notation.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/interp/notation.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i ********************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : notation.ml 11897...
059796dba8ed9bb832123b1857e51b6afe9683abf9378ece9ad9098c06057e81
folivetti/Category4Programmers
embed.hs
# LANGUAGE GADTs , ExplicitForAll # module Main where import Data.Monoid import System.Environment data CY f a = forall b . CY (b -> a) (f b) --data CY f a where -- CY :: (b -> a) -> f b -> CY f a instance Functor (CY f) where fmap f (CY b2a fb) = CY (f . b2a) fb toCY :: f a -> CY f a toCY = CY id fromCY ...
null
https://raw.githubusercontent.com/folivetti/Category4Programmers/b002b7eeeddf272ca94bd2467db535e0ad268176/Slides/files/embed.hs
haskell
data CY f a where CY :: (b -> a) -> f b -> CY f a
# LANGUAGE GADTs , ExplicitForAll # module Main where import Data.Monoid import System.Environment data CY f a = forall b . CY (b -> a) (f b) instance Functor (CY f) where fmap f (CY b2a fb) = CY (f . b2a) fb toCY :: f a -> CY f a toCY = CY id fromCY :: Functor f => CY f a -> f a fromCY (CY f fa) = fmap f ...
7a9b564dc378b241eed47bb63a4b95d34b0d165f38793241b60f2ce07b527d17
exoscale/clojure-kubernetes-client
v1beta2_stateful_set_condition.clj
(ns clojure-kubernetes-client.specs.v1beta2-stateful-set-condition (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1beta2-stateful-set-condition-data v1beta2-stateful-set-condition) (def v1beta2-stateful-set-condition-data { (ds...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1beta2_stateful_set_condition.clj
clojure
(ns clojure-kubernetes-client.specs.v1beta2-stateful-set-condition (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1beta2-stateful-set-condition-data v1beta2-stateful-set-condition) (def v1beta2-stateful-set-condition-data { (ds...
e965c86d061a7d96d2a29ee89b37282cf9424d80168c0dff37188bfd4e1ad9e9
thiagozg/GitHubJobs-Clojure-Service
job.clj
(ns github-jobs.schemata.job (:require [schema.core :as s])) (s/defschema JobReference ID from GitHub Api :title s/Str :url s/Str :category [s/Str]}) (s/defschema JobUpdate {(s/optional-key :title) s/Str (s/optional-key :url) s/Str (s/optional-key :category) [s/Str]})
null
https://raw.githubusercontent.com/thiagozg/GitHubJobs-Clojure-Service/9b17da56ebe773f6aed96337ac516307d91a1403/src/github_jobs/schemata/job.clj
clojure
(ns github-jobs.schemata.job (:require [schema.core :as s])) (s/defschema JobReference ID from GitHub Api :title s/Str :url s/Str :category [s/Str]}) (s/defschema JobUpdate {(s/optional-key :title) s/Str (s/optional-key :url) s/Str (s/optional-key :category) [s/Str]})
d51da1c020b0c2f30a7ea441cc402cfdfe04983f0c6c9b45747f16696c9235a4
Clojure2D/clojure2d-examples
M_2_3_02.clj
(ns GG.M.M-2-3-02 (:require [clojure2d.core :refer :all] [fastmath.core :as m] [fastmath.vector :as v] [clojure2d.color :as c])) (def ^:const wname "M_2_3_02") (defn draw "" [canvas window _ _] (-> canvas (set-background :white) (translate (/ (width canvas) 2) ...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/GG/M/M_2_3_02.clj
clojure
(ns GG.M.M-2-3-02 (:require [clojure2d.core :refer :all] [fastmath.core :as m] [fastmath.vector :as v] [clojure2d.color :as c])) (def ^:const wname "M_2_3_02") (defn draw "" [canvas window _ _] (-> canvas (set-background :white) (translate (/ (width canvas) 2) ...
dfcf0e40707e61e9d2d089a2aff2fc5eb9f2a604848ca9e6d3ebe58bc4e06676
cxxxr/valtan
destructuring-bind.lisp
#+valtan (in-package :common-lisp) #-valtan (in-package :valtan-core) (defun %db-length (list) (do ((l list (cdr l)) (count 0 (+ count 1))) ((atom l) count))) (eval-when (:compile-toplevel :load-toplevel :execute) (defvar *db-bindings*) (defvar *tmp-db-vars*) (defun parse-db-lambda-list (lambda-l...
null
https://raw.githubusercontent.com/cxxxr/valtan/ec3164d42b86869357dc185b747c5dfba25c0a3c/library/valtan-core/lisp/destructuring-bind.lisp
lisp
#+valtan (in-package :common-lisp) #-valtan (in-package :valtan-core) (defun %db-length (list) (do ((l list (cdr l)) (count 0 (+ count 1))) ((atom l) count))) (eval-when (:compile-toplevel :load-toplevel :execute) (defvar *db-bindings*) (defvar *tmp-db-vars*) (defun parse-db-lambda-list (lambda-l...
cbc0d3d896bb482b973f0b5393dccc16e158015d1ad18f9e7ea1f3112f8b758e
camllight/camllight
source.ml
#open "misc";; #open "lexer";; #open "lexing";; (* Get an image of the file in a string *) let load_file filename = let real_name = find_in_path filename in let ic = open_in_bin real_name in let size = in_channel_length ic in let s = create_string size in really_input ic s 0 size; close_in ic; s ;...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/camltk4/browser/source.ml
ocaml
Get an image of the file in a string Compute decorations
#open "misc";; #open "lexer";; #open "lexing";; let load_file filename = let real_name = find_in_path filename in let ic = open_in_bin real_name in let size = in_channel_length ic in let s = create_string size in really_input ic s 0 size; close_in ic; s ;; let compute_source_tags s = let l ...
219b76eb13281c68b32c133291fd31a10739475cab68188de7e53f5895bbaa58
onyx-platform/onyx
common_job_scheduler.clj
(ns onyx.scheduling.common-job-scheduler (:require [clojure.core.async :refer [chan go >! <! close! >!!]] [clojure.set :refer [union difference subset?]] [clojure.data :refer [diff]] [com.stuartsierra.component :as component] [onyx.log.commands.common :as common] ...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/src/onyx/scheduling/common_job_scheduler.clj
clojure
We need to handle a special case here when figuring out the upper saturation limit. If this is a job with a grouped task that has already been allocated, we can't allocate to the grouped task anymore, even if it's saturation Cannot allocate anymore, you have what you have. been allocated yet. Again, we handle the...
(ns onyx.scheduling.common-job-scheduler (:require [clojure.core.async :refer [chan go >! <! close! >!!]] [clojure.set :refer [union difference subset?]] [clojure.data :refer [diff]] [com.stuartsierra.component :as component] [onyx.log.commands.common :as common] ...
dc552164b6f63abad3aa06ef1713c156cade79235727a00501346eeaed5a3aaf
SanderSpies/ocaml-gist
parmatch2.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/SanderSpies/ocaml-gist/7dc229aebdf51310e8c7dae12df0cb55b5de5a32/ocaml_webworker/merlin_lite/src/ocaml/typer_4.04.2/typing/parmatch2.ml
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 Misc open Asttypes open Types open Typedtree Utilities for building patterns let make_pat de...
3ff32628e9e9927958fc85ff76738b14a1a899859f03c2d589c305e3ada8a2c0
haskell/hoopl
Simplify.hs
{-# OPTIONS_GHC -Wall -fwarn-incomplete-patterns #-} # LANGUAGE ScopedTypeVariables , GADTs , PatternGuards # module Simplify (simplify) where import Control.Monad import Compiler.Hoopl import IR import OptSupport type Node = Insn -- @ start cprop.tex -------------------------------------------------- Simplifica...
null
https://raw.githubusercontent.com/haskell/hoopl/89dde6af5b2fadfad726412c00a1ab01d34fd2a0/testing/Simplify.hs
haskell
# OPTIONS_GHC -Wall -fwarn-incomplete-patterns # @ start cprop.tex ------------------------------------------------ ... more cases for constant folding @ end cprop.tex
# LANGUAGE ScopedTypeVariables , GADTs , PatternGuards # module Simplify (simplify) where import Control.Monad import Compiler.Hoopl import IR import OptSupport type Node = Insn Simplification ( " constant folding " ) simplify :: forall m f. FuelMonad m => FwdRewrite m Node f simplify = deepFwdRw simp where s...
d480dce9c3749acaf9ad265380352a6ce39fdd858fb33aae75a089b136110c01
jepsen-io/scylla
set.clj
(ns scylla.collections.set "A set backed by a CQL set." (:require [clojure [pprint :refer :all]] [clojure.tools.logging :refer [info]] [jepsen [client :as client] [checker :as checker] [generator :as gen] [nemesis :as nemesis]] ...
null
https://raw.githubusercontent.com/jepsen-io/scylla/a9aed0cb2d5e51301d4b354e29bfa5df5fad3752/src/scylla/collections/set.clj
clojure
TODO: is ALL really what we want?
(ns scylla.collections.set "A set backed by a CQL set." (:require [clojure [pprint :refer :all]] [clojure.tools.logging :refer [info]] [jepsen [client :as client] [checker :as checker] [generator :as gen] [nemesis :as nemesis]] ...
1b2ef3c466617625005d4059495e9117a865671d00c96fe47ec4bdd874d743f4
mbillingr/lisp-in-small-pieces
exercise1-08.scm
(import (builtin core) (libs utils)) (define (evaluate e env) (if (atom? e) (cond ((symbol? e) (lookup e env)) ((or (number? e) (string? e) (char? e) (boolean? e)) e) (else (wrong "Cannot evaluate" e))) (case (car e) ((quote) (cadr e)) ((if) (if (not ...
null
https://raw.githubusercontent.com/mbillingr/lisp-in-small-pieces/b2b158dfa91dc95d75af4bd7d93f8df22219047e/01-basics/exercise1-08.scm
scheme
(set! fib (lambda (n) (if (< n 2) 1 (+ (fib (- n 1)) (fib (- n 2))))))
(import (builtin core) (libs utils)) (define (evaluate e env) (if (atom? e) (cond ((symbol? e) (lookup e env)) ((or (number? e) (string? e) (char? e) (boolean? e)) e) (else (wrong "Cannot evaluate" e))) (case (car e) ((quote) (cadr e)) ((if) (if (not ...
6be74c811abd9ab147d7675862d6ad11d3b6efa63855f5ce32c998f8f56d638c
facebookincubator/hsthrift
ConcurrentTest.hs
Copyright ( c ) Facebook , Inc. and its affiliates . {-# OPTIONS_GHC -Wno-name-shadowing #-} module ConcurrentTest where import Control.Exception import Data.IORef import Test.HUnit import TestRunner import Util.Concurrent cacheSuccessTest :: Test cacheSuccessTest = TestLabel "cacheSuccess" $ TestCase $ do c <...
null
https://raw.githubusercontent.com/facebookincubator/hsthrift/d3ff75d487e9d0c2904d18327373b603456e7a01/common/util/tests/ConcurrentTest.hs
haskell
# OPTIONS_GHC -Wno-name-shadowing #
Copyright ( c ) Facebook , Inc. and its affiliates . module ConcurrentTest where import Control.Exception import Data.IORef import Test.HUnit import TestRunner import Util.Concurrent cacheSuccessTest :: Test cacheSuccessTest = TestLabel "cacheSuccess" $ TestCase $ do c <- cacheSuccess (return (3::Int)) r <- ...
34866fee27747f393381972e1f24331dea9f8ae459b1eae8dbbd5d08429455ae
Tclv/HaskellBook
ChapterExercises.hs
module ChapterExercises where import Data.Monoid import Data.Foldable data Constant a b = Constant a deriving (Eq, Show) -- (Monoid m, Foldable (Constant a)) => (a -> m) -> ((Constant a) b) -> m instance Foldable (Constant a) where foldMap f (Constant a) = mempty data Two a b = Two a b deriving (Eq, Show...
null
https://raw.githubusercontent.com/Tclv/HaskellBook/78eaa5c67579526b0f00f85a10be3156bc304c14/ch20/ChapterExercises.hs
haskell
(Monoid m, Foldable (Constant a)) => (a -> m) -> ((Constant a) b) -> m
module ChapterExercises where import Data.Monoid import Data.Foldable data Constant a b = Constant a deriving (Eq, Show) instance Foldable (Constant a) where foldMap f (Constant a) = mempty data Two a b = Two a b deriving (Eq, Show) instance Foldable (Two a) where foldMap f (Two a b) = f b data Three...
6aed8cd72cdc58646ec353620017e53dcf11f928abd849fed3d1e5217349b929
dkataskin/erlazure
erlazure_blob_tests.erl
Copyright ( c ) 2013 - 2015 , %% 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 ...
null
https://raw.githubusercontent.com/dkataskin/erlazure/066510454597b72f283748b2e5be3d5eb8d328b6/test/erlazure_blob_tests.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 in ...
Copyright ( c ) 2013 - 2015 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLA...
60d8773351089293b4d16a765fc4079f3488897ade5c8cc0be5e11f2a61c37c6
DSTOQ/haskell-stellar-sdk
Crypto.hs
module Stellar.Crypto where import Control.Lens import qualified Crypto.Hash as CH import qualified Crypto.PubKey.Ed25519 as ED import Data.Binary.Extended import Data.Binary.Put (runPut) import qualified Data.ByteArray as BA import qualified Data.ByteString.Lazy a...
null
https://raw.githubusercontent.com/DSTOQ/haskell-stellar-sdk/82a76c2f951a2aaabdc38092fdc89044b278c53d/core/src/Stellar/Crypto.hs
haskell
module Stellar.Crypto where import Control.Lens import qualified Crypto.Hash as CH import qualified Crypto.PubKey.Ed25519 as ED import Data.Binary.Extended import Data.Binary.Put (runPut) import qualified Data.ByteArray as BA import qualified Data.ByteString.Lazy a...
0f27f7bb981a182bd19832ecd9d130a38ffb74e195b1e63a0b0b8d9a1afd8d7c
rmloveland/scheme48-0.53
util.scm
; -*- Mode: Scheme; Syntax: Scheme; Package: Scheme; -*- Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; This is file util.scm. Utilities (define (unspecific) (if #f #f)) (define (reduce cons nil list) ;used by length, append, etc. (if (null? list) nil (cons (car list) (reduce cons...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/rts/util.scm
scheme
-*- Mode: Scheme; Syntax: Scheme; Package: Scheme; -*- This is file util.scm. used by length, append, etc. Position of an object within a list Is pred true of any element of l? (reduce or #f l), sort of Is pred true of every element of l? (reduce and #t l), sort of ---------------- Variations on a theme.
Copyright ( c ) 1993 - 1999 by and . See file COPYING . Utilities (define (unspecific) (if #f #f)) (if (null? list) nil (cons (car list) (reduce cons nil (cdr list))))) (define (filter pred lst) (reduce (lambda (x rest) (if (pred x) (cons x rest) rest)) '() lst)) (define (pos ...
f4c9efa7b8639697a62bc12a56333e6794e2f56ebe3437c8f33e04f73c34d3c6
iokasimov/apart
LRU.hs
module Data.Apart.Usage.LRU (LRU, cache) where import "free" Control.Comonad.Cofree (Cofree (..)) import "semigroupoids" Data.Functor.Alt (Alt (..)) import "semigroupoids" Data.Functor.Bind (Bind (..)) import Data.Apart.Transformations (Segmented (..)) import Data.Apart.Structures.Tree.Binary (Binary, Branches (..)) ...
null
https://raw.githubusercontent.com/iokasimov/apart/5a3a8c0cfb516d5a55121dc39f7465f572866c90/Data/Apart/Usage/LRU.hs
haskell
module Data.Apart.Usage.LRU (LRU, cache) where import "free" Control.Comonad.Cofree (Cofree (..)) import "semigroupoids" Data.Functor.Alt (Alt (..)) import "semigroupoids" Data.Functor.Bind (Bind (..)) import Data.Apart.Transformations (Segmented (..)) import Data.Apart.Structures.Tree.Binary (Binary, Branches (..)) ...
a18e7567951b81d68af574d160b748476b50022d22e0ad819d30d3cab3666401
vaclavsvejcar/headroom
Regex.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE QuasiQuotes # {-# LANGUAGE StrictData #-} {-# LANGUAGE TemplateHaskellQuotes #-} # LANGUAGE NoImplicitPrelude # -- | -- Module : Headroom.Data.Regex -- Description : Helper functions for regular expressions Copyr...
null
https://raw.githubusercontent.com/vaclavsvejcar/headroom/3b20a89568248259d59f83f274f60f6e13d16f93/src/Headroom/Data/Regex.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings # # LANGUAGE StrictData # # LANGUAGE TemplateHaskellQuotes # | Module : Headroom.Data.Regex Description : Helper functions for regular expressions License : BSD-3-Clause Maintainer : Stability : experimental Portability : POSIX * Data Types *...
# LANGUAGE LambdaCase # # LANGUAGE QuasiQuotes # # LANGUAGE NoImplicitPrelude # Copyright : ( c ) 2019 - 2022 Extends functionalify provided by " Text . Regex . PCRE.Light " and " Text . Regex . PCRE.Heavy " that more suits the needs of this application . module Headroom.Data.Regex Regex (..) , Re...