_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
cfe471efc6d4f2b4a00c916f03d21792d2693c50a99dd2802469d9fee6cc2325
RDTK/generator
package.lisp
;;;; package.lisp --- Package definition for the deployment module. ;;;; Copyright ( C ) 2018 - 2022 Jan Moringen ;;;; Author : < > (cl:defpackage #:build-generator.deployment (:use #:cl #:alexandria #:let-plus #:more-conditions) (:local-nicknames (#:util #:build-generator.util) (#:mo...
null
https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/src/deployment/package.lisp
lisp
package.lisp --- Package definition for the deployment module. Conditions Deployment protocol service name String utilities `command-mixin'
Copyright ( C ) 2018 - 2022 Jan Moringen Author : < > (cl:defpackage #:build-generator.deployment (:use #:cl #:alexandria #:let-plus #:more-conditions) (:local-nicknames (#:util #:build-generator.util) (#:model #:build-generator.model) (#:var #:build-generator.model.variables...
8dcb67b4e9a47161507df8e2fb5dcbf5a3e56d695d0b7951d44fa04050b42353
binghe/cl-net-snmp
syntax.lisp
;;;; -*- Mode: Lisp -*- $ Id$ ASN.1 Syntax ( BNF - > Lisp ) (in-package :asn.1) (defparameter *reserved-words* '(ABSENT ENCODED INTEGER RELATIVE-OID ABSTRACT-SYNTAX END INTERSECTION SEQUENCE ALL ENUMERATED |ISO646String| SET APPLICATION EXCEPT MAX SIZE AUTOMATIC EXPLICIT MIN STRING BEGIN EX...
null
https://raw.githubusercontent.com/binghe/cl-net-snmp/3cf053bce75734097f0d7e2245a53fa0c45f5e05/compiler/syntax.lisp
lisp
-*- Mode: Lisp -*- Additional keywords | |..| |\|| < > |) `(:export :all)) |) `(:export ,@$2)) |) `(:import ,@$2)) general string type general integer type ((%alternative-type-lists %root-alternative-type-list |,| %extension-and-exception %extension-addition-alterna...
$ Id$ ASN.1 Syntax ( BNF - > Lisp ) (in-package :asn.1) (defparameter *reserved-words* '(ABSENT ENCODED INTEGER RELATIVE-OID ABSTRACT-SYNTAX END INTERSECTION SEQUENCE ALL ENUMERATED |ISO646String| SET APPLICATION EXCEPT MAX SIZE AUTOMATIC EXPLICIT MIN STRING BEGIN EXPORTS MINUS-INFINITY SYN...
fac641a0b6ea742fd96880957ddde74bc89895ddeb1bd592eb637abc773d94dc
facebook/flow
dependency_info.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/741104e69c43057ebd32804dd6bcc1b5e97548ea/src/server/env/dependency_info.ml
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
f80b00318f0b31ebcf16bc8b24bbb76ffa0bf547b04c12cbc860494e201ba7cf
erlang-ls/erlang_ls
call_hierarchy_b.erl
-module(call_hierarchy_b). -export([ function_a/1 , function_c/0 ]). function_a(0) -> ok; function_a(N) -> function_b(), call_hierarchy_a:function_a(31), function_b(), function_a(N-1). function_b() -> call_hierarchy_a:function_b(). function_c() -> {}.
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/3902e3e842cfd4103c08618e83ea18928c49cdc0/apps/els_lsp/priv/code_navigation/src/call_hierarchy_b.erl
erlang
-module(call_hierarchy_b). -export([ function_a/1 , function_c/0 ]). function_a(0) -> ok; function_a(N) -> function_b(), call_hierarchy_a:function_a(31), function_b(), function_a(N-1). function_b() -> call_hierarchy_a:function_b(). function_c() -> {}.
8fd559d592d235406b06733ef2d6d2dd2533f43a550395a79c8398214e12b3ef
awslabs/s2n-bignum
bignum_montsqr.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_montsqr.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "x86/generic/bignum_montsqr.o";; *** PUSH (% rbx) PUSH (% rbp) PUSH (% r12) PUSH (% r13) PUSH (% r14) PUSH (% r15) TEST (% rdi)...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Montgomery squaring of arbitrary bignum . ...
d9dae72119927515b0b6ccacf48b469862da75e1cffd6ea10646aafb46bd907a
ermine/sulci
plugin_admin_muc.ml
* ( c ) 2004 - 2012 * (c) 2004-2012 Anastasia Gornostaeva *) open JID open Hooks open Muc open XMPPClient let msg muc_context xmpp env kind jid_from text = try let s = String.index text ' ' in let jid_to = JID.of_string (String.sub text 0 s) in let body = Common.string_after text (s+1) in ...
null
https://raw.githubusercontent.com/ermine/sulci/3ee4bd609b01e2093a6d37bf74579728d0a93b70/src/plugin_admin_muc.ml
ocaml
* ( c ) 2004 - 2012 * (c) 2004-2012 Anastasia Gornostaeva *) open JID open Hooks open Muc open XMPPClient let msg muc_context xmpp env kind jid_from text = try let s = String.index text ' ' in let jid_to = JID.of_string (String.sub text 0 s) in let body = Common.string_after text (s+1) in ...
a571a1c7b3ef58a6765c3fea3cd7f039044021f58d59924c72facf230533795c
typelead/etlas
BinaryDist.hs
# LANGUAGE CPP # # LANGUAGE NondecreasingIndentation # # LANGUAGE FlexibleContexts # -- Implements the \"@.\/etlas bdist@\" command, which creates a binary -- distribution for this package. That is, packs up the compiled binaries into a tarball , making use of the corresponding Cabal module . module Distribution.Cli...
null
https://raw.githubusercontent.com/typelead/etlas/bbd7c558169e1fda086e759e1a6f8c8ca2807583/etlas/Distribution/Client/BinaryDist.hs
haskell
Implements the \"@.\/etlas bdist@\" command, which creates a binary distribution for this package. That is, packs up the compiled binaries |Create a binary distribution. TODO: Transfer all the copied files to dist/bin if the user requests it
# LANGUAGE CPP # # LANGUAGE NondecreasingIndentation # # LANGUAGE FlexibleContexts # into a tarball , making use of the corresponding Cabal module . module Distribution.Client.BinaryDist ( bdist , tarBallName ) where import Distribution.Client.SetupWrapper ( SetupScriptOptions(..), defaul...
5ffc0b2030a3a1eacc89d4ef5a43aa5aa0b3d6bf5afbb1923c24a9222896c745
Kappa-Dev/KappaTools
buffers.mli
module type Buffers = sig type 'a t val create: int -> 'a -> 'a t val add: 'a -> 'a t -> 'a t val iter: ('a -> unit) -> 'a t -> unit val clean: 'a t -> 'a t end
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/dataStructures/buffers.mli
ocaml
module type Buffers = sig type 'a t val create: int -> 'a -> 'a t val add: 'a -> 'a t -> 'a t val iter: ('a -> unit) -> 'a t -> unit val clean: 'a t -> 'a t end
a809f128bf1f688842d27f00e531e7878a897c3d15fd44c4da58bf519507c5f2
sdiehl/elliptic-curve
BrainpoolP192R1.hs
module Data.Curve.Weierstrass.BrainpoolP192R1 ( module Data.Curve.Weierstrass , Point(..) -- * BrainpoolP192R1 curve , module Data.Curve.Weierstrass.BrainpoolP192R1 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass --------------------------------...
null
https://raw.githubusercontent.com/sdiehl/elliptic-curve/445e196a550e36e0f25bd4d9d6a38676b4cf2be8/src/Data/Curve/Weierstrass/BrainpoolP192R1.hs
haskell
* BrainpoolP192R1 curve ----------------------------------------------------------------------------- Types ----------------------------------------------------------------------------- | BrainpoolP192R1 curve. # INLINABLE a_ # # INLINABLE h_ # | Affine BrainpoolP192R1 curve point. | Jacobian BrainpoolP192R1 point...
module Data.Curve.Weierstrass.BrainpoolP192R1 ( module Data.Curve.Weierstrass , Point(..) , module Data.Curve.Weierstrass.BrainpoolP192R1 ) where import Protolude import Data.Field.Galois import GHC.Natural (Natural) import Data.Curve.Weierstrass data BrainpoolP192R1 | Field of points of BrainpoolP192R1...
7eba10a9b4a12b26e82f534f22dd200b6845ed5f5ac076d4813c2ac665aa43c6
Liam-Eagen/BulletproofsPP
Binary.hs
module RangeProof.Binary where import GHC.Generics import Data.Bifunctor import Control.Monad (replicateM) import Data.VectorSpace import Data.List (mapAccumR, mapAccumL) import qualified Data.ByteString.Lazy as BS import Utils import Commitment import ZKP import Bulletproof import RangeProof import RangeProof.Inte...
null
https://raw.githubusercontent.com/Liam-Eagen/BulletproofsPP/0494201e2048f5c679f4ce3ee0cc6ac0ff9d3ef7/src/RangeProof/Binary.hs
haskell
---------- README -- This works exactly the same as the old binary range proof with the error linear terms, plus the scalar. | bl + t d |_r = e0 + e1 t + |d|_r t^2 ---------- uncurry3 f (x,y,z) = f x y z For each sublist use a different power of x and for each element use a mapAccumR f' z $ zip3 q2s q2Invs $ ...
module RangeProof.Binary where import GHC.Generics import Data.Bifunctor import Control.Monad (replicateM) import Data.VectorSpace import Data.List (mapAccumR, mapAccumL) import qualified Data.ByteString.Lazy as BS import Utils import Commitment import ZKP import Bulletproof import RangeProof import RangeProof.Inte...
1fa6516685a6b85285907671634514a8bad6e5b2d5a49f7cfaeb701173e4acc3
ocaml-omake/omake
lm_set.ml
* Build a set using a red - black tree . * Every node in the tree is colored either black or red . * A red - black tree has the following invariants : * 1 . Every leaf is colored black * 2 . All children of every red node are black . * 3 . Every path from the root to a leaf has the * ...
null
https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/libmojave/lm_set.ml
ocaml
*********************************************************************** * TYPES * *********************************************************************** * Table is a binary tree. * Color is kept in the label to save space. * The tr...
* Build a set using a red - black tree . * Every node in the tree is colored either black or red . * A red - black tree has the following invariants : * 1 . Every leaf is colored black * 2 . All children of every red node are black . * 3 . Every path from the root to a leaf has the * ...
7930aee952eb7061079019b860d2d089ece08d50190985deb3a40ad53c18d971
alanz/ghc-exactprint
deriving-via-compile.hs
# LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # {-# LANGUAGE RankNTypes #-} # LANGUAGE StandaloneDeriving # # LANGUAGE InstanceSigs # {-# LANGUAGE TypeInType #-} {-# LANGUAGE GADTs #-} # LANGUAGE TypeApplications # {-# LANGUAGE ConstraintKinds...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc86/deriving-via-compile.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE TypeInType # # LANGUAGE GADTs # # LANGUAGE ConstraintKinds # # LANGUAGE MultiWayIf # --- Simple example --- --- --- --- --- From `constraints' With `-XQuantifiedConstraints' this just becomes --- Using tuples in a `via` type --- --- Abstract data types --- -- Testing parser -...
# LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE StandaloneDeriving # # LANGUAGE InstanceSigs # # LANGUAGE TypeApplications # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE ScopedTypeVariables # # LANGUAGE F...
37785d11f1ad5139f60d2b14414e285f56088ba316a83ba184ba6c5899894cc8
bjorng/wings
wings_job.erl
%% %% wings_job.erl %% %% OS job handling support for plugin writers. %% Copyright ( c ) 2005 - 2011 %% %% See the file "license.terms" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %% %% $Id$ %% -module(wings_job). -export([browse_props/0,render_...
null
https://raw.githubusercontent.com/bjorng/wings/dec64a500220359dbc552600af486be47c45d301/src/wings_job.erl
erlang
wings_job.erl OS job handling support for plugin writers. See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. $Id$ {button,{text,...}} props flag Render formats that may be handled Formats that internal image loader ca...
Copyright ( c ) 2005 - 2011 -module(wings_job). -export([browse_props/0,render_formats/0,init/0,command/2, find_executable/1,export_done/1,render/5, run/3,altname/1,quote/1, timestr/1,timestr/2,uniqstr/0]). -include_lib("kernel/include/file.hrl"). -include_lib("wings/e3d/e3d.hrl"). -include_lib("wings/e3d...
a1b5646f7b99c9a9f1d2ee2866c4503017b14b3fb56dffb2d89dc5bed3656d28
pirapira/coq2rust
numbers_syntax.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/plugins/syntax/numbers_syntax.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** int31 stuff bigN stuff number of...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * digit - based syntax for in...
49b9e339a74e9c8981a1d50888ef52822371e2353604271e21211c89c5467e44
xapi-project/message-switch
memory_interface_test.ml
open Idl_test_common module GenPath = struct let test_data_path = "mem_gen" end module OldPath = struct let test_data_path = "test_data/memory" end module C = Memory_interface.API (GenTestData (GenPath) (TJsonrpc)) module T = Memory_interface.API (TestOldRpcs (OldPath) (TJsonrpc)) let tests = !C.implementation @ !T...
null
https://raw.githubusercontent.com/xapi-project/message-switch/1d0d1aa45c01eba144ac2826d0d88bb663e33101/xapi-idl/lib_test/memory_interface_test.ml
ocaml
open Idl_test_common module GenPath = struct let test_data_path = "mem_gen" end module OldPath = struct let test_data_path = "test_data/memory" end module C = Memory_interface.API (GenTestData (GenPath) (TJsonrpc)) module T = Memory_interface.API (TestOldRpcs (OldPath) (TJsonrpc)) let tests = !C.implementation @ !T...
6304d6b84ededbb99dd23e032757a076ad476763f68481ea2512b246d5a9dab7
dawn-lang/dawn-phase1
enumerate-exprs.hs
Copyright ( c ) 2021 -- 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 /. module Main where import Language.Dawn.Phase1.Core import Language.Dawn.Phase1.Display import Language.Dawn.Phase...
null
https://raw.githubusercontent.com/dawn-lang/dawn-phase1/fb2a3c8d93b73b8f771c03c537fc0ab2ead7210c/app/enumerate-exprs.hs
haskell
Copyright ( c ) 2021 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 /. module Main where import Language.Dawn.Phase1.Core import Language.Dawn.Phase1.Display import Language.Dawn.Phase1.E...
861229bafb116d00063ead3f9c6d177d8bf59a193785d9323c65a2bec916c6e5
wargrey/w3s
selector.rkt
#lang typed/racket/base ;;; (provide (all-defined-out)) (require racket/set) (require racket/string) (require racket/symbol) (require racket/list) (require racket/math) (require "digicore.rkt") (require "misc.rkt") (require (for-syntax racket/base)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/wargrey/w3s/6c38c217c8fffcbb06b5d5cecba34c5ab630a7ac/css/digitama/syntax/selector.rkt
racket
/#grammar /#structure /#data-model TODO: multiple exclusives /#evaluating-selectors -drafts/issues/720 TODO: define a better object model /#subject-of-a-selector /#case-sensitive /#specificity-rules * application does not care namespaces /#specificity-rules the children are also descendents the nex...
#lang typed/racket/base (provide (all-defined-out)) (require racket/set) (require racket/string) (require racket/symbol) (require racket/list) (require racket/math) (require "digicore.rkt") (require "misc.rkt") (require (for-syntax racket/base)) (define-syntax (define-selectors stx) (syntax-case stx [] [(_...
44f3feba56afd96471ee0fcde6f8989135eedbcb1426dd3ebd966538157f7b99
quchen/stgi
ExamplePrograms.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Test.ExamplePrograms (tests) where import qualified Data.List as L import Stg.ExamplePrograms import Stg.Machine.Types import qualified Test.Machine.Evaluate.TestTemplates.MachineState as MST impor...
null
https://raw.githubusercontent.com/quchen/stgi/dacd45cb0247f73889713dc92a911aaa835afd19/test/Testsuite/Test/ExamplePrograms.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # module Test.ExamplePrograms (tests) where import qualified Data.List as L import Stg.ExamplePrograms import Stg.Machine.Types import qualified Test.Machine.Evaluate.TestTemplates.MachineState as MST import Test.Machine.Evaluate.TestTemplates.MarshalledValue import ...
12f650511928c62716521741d16604bdadf0d34f9dc5782b05f4de3185810faa
cbaggers/rtg-math
base-maths.lisp
(in-package :rtg-math.base-maths) (defconstant +pi+ 3.141592653589793f0) (defconstant +inv-pi+ 0.3183098862f0) (defconstant +one-degree-in-radians+ 0.017453292519943295f0) (defconstant +one-radian-in-degrees+ 57.29577951308232f0) (defconstant +k-epsilon+ 1.e-6) ;; I found the 'earmuffs' on the 'pi' related constants ...
null
https://raw.githubusercontent.com/cbaggers/rtg-math/29fc5b3d0028a4a11a82355ecc8cca62662c69e0/base-maths.lisp
lisp
I found the 'earmuffs' on the 'pi' related constants above very frustrating constant ---------------------------------------------------------------- ---------------------------------------------------------------- ---------------------------------------------------------------- --------------------------------------...
(in-package :rtg-math.base-maths) (defconstant +pi+ 3.141592653589793f0) (defconstant +inv-pi+ 0.3183098862f0) (defconstant +one-degree-in-radians+ 0.017453292519943295f0) (defconstant +one-radian-in-degrees+ 57.29577951308232f0) (defconstant +k-epsilon+ 1.e-6) to type when live coding . These are easier and also f...
cb6bf5d513bfc9810647cf81774254f9a2681d1e13ca099adce0b039a5d0eb12
mclumd/Meta-AQUA
rep_undefined-roles.lisp
(DEFINE-RELATION ANTE (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) (DEFINE-RELATION CONSEQ (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) (DEFINE-RELATION ACTION (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) ...
null
https://raw.githubusercontent.com/mclumd/Meta-AQUA/e4d4f83330fd07d1354aec245a49bde9e246c618/Representations/rep_undefined-roles.lisp
lisp
(DEFINE-RELATION ANTE (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) (DEFINE-RELATION CONSEQ (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) (DEFINE-RELATION ACTION (ISA (VALUE (RELATION))) (DOMAIN (VALUE (ENTITY))) (CO-DOMAIN (VALUE (ENTITY)))) ...
b411227b75ac2ed63e2e6b70025de96c8ba900a9a7fd1c4b28bc9ab60235bc1c
simingwang/emqx-plugin-kafkav5
rebar3_hex_httpc_adapter.erl
@private Derived from rebar3_httpc_adapter , which was derived from hex_core v0.7.1 for extra flexibility . -module(rebar3_hex_httpc_adapter). -behaviour(hex_http). -export([request/5]). %%==================================================================== %% API functions %%=====================================...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/plugins/rebar3_hex/src/rebar3_hex_httpc_adapter.erl
erlang
==================================================================== API functions ==================================================================== ==================================================================== ====================================================================
@private Derived from rebar3_httpc_adapter , which was derived from hex_core v0.7.1 for extra flexibility . -module(rebar3_hex_httpc_adapter). -behaviour(hex_http). -export([request/5]). request(Method, URI, ReqHeaders, Body, AdapterConfig) -> Profile = maps:get(profile, AdapterConfig, default), Request ...
443c8db8fa0101f2d9e81f680f1186bb55a5aab9b49b1cf6cefb1eca9f6f26f6
snapframework/snap-auth
Password.hs
{-# LANGUAGE DeriveDataTypeable #-} | Defines functions for generating and checking salted hashes . Salted hashes are used to store passwords in a way that prevents passwords from being deduced even if the user / password database is disclosed . Defines functions for generating and checking salted...
null
https://raw.githubusercontent.com/snapframework/snap-auth/45294e8587ac21d864614df188898348704a4986/src/Snap/Auth/Password.hs
haskell
# LANGUAGE DeriveDataTypeable # ---------------------------------------------------------------------------- | Type alias for hash functions. ---------------------------------------------------------------------------- | Salt newtype gives us type safety and allows us to control how salts are accessed. -------------...
| Defines functions for generating and checking salted hashes . Salted hashes are used to store passwords in a way that prevents passwords from being deduced even if the user / password database is disclosed . Defines functions for generating and checking salted hashes. Salted hashes are used t...
ef1ae22c8bb6cda334b528188f67b69bcdd956fd5474b01887db0a73b985c578
redbadger/test-report-junit-xml
core.clj
(ns test-report-junit-xml.core (:require [test-report.options :refer [with-options]] [test-report.summary :refer [summarize]] [clojure.data.xml :as xml] [clojure.java.io :as io] [clojure.stacktrace :as stacktrace] [clojure.string :as string])) (defmulti ^:p...
null
https://raw.githubusercontent.com/redbadger/test-report-junit-xml/357d43bed70384c4d1fd02f29ca6dd68fdd5faf1/test-report-junit-xml/src/test_report_junit_xml/core.clj
clojure
(ns test-report-junit-xml.core (:require [test-report.options :refer [with-options]] [test-report.summary :refer [summarize]] [clojure.data.xml :as xml] [clojure.java.io :as io] [clojure.stacktrace :as stacktrace] [clojure.string :as string])) (defmulti ^:p...
2c50a7182e6eef2baf075f606fa2120df66d9198fd151e001834f72e6608e139
GrammaticalFramework/gf-core
Operations.hs
---------------------------------------------------------------------- -- | -- Module : Operations -- Maintainer : AR -- Stability : (stable) -- Portability : (portable) -- > CVS $ Date : 2005/11/11 16:12:41 $ -- > CVS $Author: bringert $ > CVS $ Revision : 1.22 $ -- some auxiliary GF operations . AR 19\/...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/f2e52d6f2c2bc90febceebdea0268b40ea37476c/src/compiler/GF/Data/Operations.hs
haskell
-------------------------------------------------------------------- | Module : Operations Maintainer : AR Stability : (stable) Portability : (portable) > CVS $Author: bringert $ 6\/2\/2001 --------------------------------------------------------------------------- ** The Error monad ** Error monad ...
> CVS $ Date : 2005/11/11 16:12:41 $ > CVS $ Revision : 1.22 $ Copyright ( c ) 1998 - 2000 , under GNU General Public License ( see GPL ) module GF.Data.Operations ( Err(..), err, maybeErr, testErr, fromErr, errIn, lookupErr, doUntil , , checkAgain , liftErr, checkUnique, uni...
bf7a88df1f0745bb02d5758244d88b3ee3d95f07d90944864c4ccfa898d68811
mfoemmel/erlang-otp
xmerl_regexp.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2006 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/xmerl/src/xmerl_regexp.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2006 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(xmerl_regexp). for strings . Th...
e14fbedb100ec64f94ab37e72761de5dece4bcd8010a99c544f87f98ac822d16
joelburget/lvca
Provenance.mli
open Base open Lvca_provenance module Parse_input : sig type t = | Input_unknown | Buffer_name of string | String of string val ( = ) : t -> t -> bool val pp : t Fmt.t end module Parse_located : sig (** A location that was parsed: the string it was parsed from and the range in that string *...
null
https://raw.githubusercontent.com/joelburget/lvca/dc1a9b2fbaed013c5d57d7fe63dd4a05062c93d5/syntax/Provenance.mli
ocaml
* A location that was parsed: the string it was parsed from and the range in that string parser : Provenance.t * A location is either an (implementation) source code position or was parsed. * A term is: - written directly - computed from others - or, indexed (a reference to some external data) *...
open Base open Lvca_provenance module Parse_input : sig type t = | Input_unknown | Buffer_name of string | String of string val ( = ) : t -> t -> bool val pp : t Fmt.t end module Parse_located : sig type t = input : Parse_input.t ; range : Opt_range.t } val ( = ) : t -> t -> bool...
1cc0948f116f092a2ccbc169ace4a18e129e44988062e3d70cfeeae18f9244ae
ninenines/cowboy
rest_handler_SUITE.erl
Copyright ( c ) 2017 , < > %% %% Permission to use, copy, modify, and/or 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 AUTHOR DISCLAIMS A...
null
https://raw.githubusercontent.com/ninenines/cowboy/8795233c57f1f472781a22ffbf186ce38cc5b049/test/rest_handler_SUITE.erl
erlang
Permission to use, copy, modify, and/or 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. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2017 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(rest_handler_SUITE). -compile(export_all). -compile(...
12e40e081c1c44035f4eb1a625e6c2d29fa1a31cb28ac941b58fc72872a1e52f
abyala/advent-2021-clojure
day15_test.clj
(ns advent-2021-clojure.day15-test (:require [clojure.test :refer :all] [advent-2021-clojure.day15 :refer :all])) (def test-input (slurp "resources/day15_sample_data.txt")) (def puzzle-input (slurp "resources/day15_data.txt")) (deftest part1-test (are [expected input] (= expected (part1 input)) ...
null
https://raw.githubusercontent.com/abyala/advent-2021-clojure/0dc54eb2ade067693062c96580a3284f387ddd03/test/advent_2021_clojure/day15_test.clj
clojure
(ns advent-2021-clojure.day15-test (:require [clojure.test :refer :all] [advent-2021-clojure.day15 :refer :all])) (def test-input (slurp "resources/day15_sample_data.txt")) (def puzzle-input (slurp "resources/day15_data.txt")) (deftest part1-test (are [expected input] (= expected (part1 input)) ...
0666d8bf2d50f2e5b0c295fb0898f37b656c659693e1004b7e33231a2b658284
simingwang/emqx-plugin-kafkav5
rpc.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2021 . 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 applicab...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/rpc.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 Ericsson AB 1996 - 2021 . 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(rpc). ' erpc ' was introduced in OTP 23 , so it should be possible to enable this as of OTP 25 : Gene...
127eb36e92b9ef9a79d564a2778084e47ffed2b2859ad0461add309223dbcb13
broadinstitute/firecloud-ui
text_filter.cljs
(ns broadfcui.components.text-filter (:require [dmohs.react :as react] [broadfcui.common :as common] [broadfcui.common.style :as style] [broadfcui.components.buttons :as buttons] [broadfcui.utils :as utils] )) (react/defc TextFilter {:set-text (fn [{:keys [refs]} text] (set! (.-value (@re...
null
https://raw.githubusercontent.com/broadinstitute/firecloud-ui/8eb077bc137ead105db5665a8fa47a7523145633/src/cljs/main/broadfcui/components/text_filter.cljs
clojure
prevent closing a modal
(ns broadfcui.components.text-filter (:require [dmohs.react :as react] [broadfcui.common :as common] [broadfcui.common.style :as style] [broadfcui.components.buttons :as buttons] [broadfcui.utils :as utils] )) (react/defc TextFilter {:set-text (fn [{:keys [refs]} text] (set! (.-value (@re...
0832da746678d3d0a3af89e1ad72456eb3ad32dbbcf5a3bc1f7092712e22d0c1
haskell/containers
IntSet.hs
# LANGUAGE CPP # # LANGUAGE BangPatterns , GeneralizedNewtypeDeriving # module Main where import Control.DeepSeq (rnf) import Control.Exception (evaluate) import Test.Tasty.Bench (bench, defaultMain, whnf) import Data.List (foldl') import Data.Monoid (Sum(..)) import qualified Data.IntSet as IS benchmarks for " ins...
null
https://raw.githubusercontent.com/haskell/containers/fbafcf704f0febd9ddac84dbe00ae3787af43550/containers-tests/benchmarks/IntSet.hs
haskell
when built into a map, each Tip is a singleton | Automata contain just the transitions since it needs to remember the last n characters. Extra parameter delta: the automaton will use states [0, delta .. ]
# LANGUAGE CPP # # LANGUAGE BangPatterns , GeneralizedNewtypeDeriving # module Main where import Control.DeepSeq (rnf) import Control.Exception (evaluate) import Test.Tasty.Bench (bench, defaultMain, whnf) import Data.List (foldl') import Data.Monoid (Sum(..)) import qualified Data.IntSet as IS benchmarks for " ins...
b66393934276aa84779b2ae330f6c4b8921db8081b0619ff316bd03c8655cd12
fakedata-haskell/fakedata
WorldCup.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} module Faker.WorldCup where import Data.Text import Faker import Faker.Internal import Faker.Provider.WorldCup import Faker.TH $(generateFakeField "worldCup" "teams") $(generateFakeField "worldCup" "stadiums") $(generateFakeField "worldCup" "cities") ...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/e6fbc16cfa27b2d17aa449ea8140788196ca135b/src/Faker/WorldCup.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.WorldCup where import Data.Text import Faker import Faker.Internal import Faker.Provider.WorldCup import Faker.TH $(generateFakeField "worldCup" "teams") $(generateFakeField "worldCup" "stadiums") $(generateFakeField "worldCup" "cities") $(generateFakeFields "worldCup" ["...
3d0a1a31ee7a720a524cc8d0353c13b769e3cc08c8ea194f15f50c46fa337550
siftrics/sight-clojure
core.clj
;; Copyright © 2020 Siftrics ;; ;; Permission is hereby granted, free of charge, to any person obtaining a copy ;; of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights ;; to use, copy, modify, merge, publish, distri...
null
https://raw.githubusercontent.com/siftrics/sight-clojure/df23938ad566fb5d25f2bb4d4ab7bb791bb1096b/src/sight/core.clj
clojure
Copyright © 2020 Siftrics Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: ...
in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN ACT...
cf3c6ed69f746018e6fc5719682380876f0a86c3141183f14e62269877080413
Enecuum/Node
Interpreter.hs
{-# LANGUAGE PackageImports #-} module Enecuum.Framework.NodeDefinition.Interpreter where import Data.Aeson as A import Data.Aeson.Lens import qualified Data.Map as M import qualified Data.Text ...
null
https://raw.githubusercontent.com/Enecuum/Node/3dfbc6a39c84bd45dd5f4b881e067044dde0153a/src/Enecuum/Framework/NodeDefinition/Interpreter.hs
haskell
# LANGUAGE PackageImports # | Stop the server run rpc-worker add serwer handler to server map TODO: make a separate language and use its interpreter in test runtime too. TODO: move it somewhere. TODO: FIXME: stop network workers TODO: move it somewhere.
module Enecuum.Framework.NodeDefinition.Interpreter where import Data.Aeson as A import Data.Aeson.Lens import qualified Data.Map as M import qualified Data.Text as T import qualifi...
b5d5e674aae36cc240d8d02fdacbddfbc60cbb486b9673cc5280344a8e76b172
gfngfn/otfed
testCaseLoca1.ml
open! Otfed__Basic module Intermediate = Otfed__Intermediate let marshaled = TestUtil.make_string_even [ ` ipaexm.ttf ` ( offset : 0x74ac94 ) with the bytes for GID > = 50 truncated 0x0000; 0x0000; 0x0000; 0x00a0; 0x0000; 0x00a0; 0x0000; 0x00a0; 0x0000; 0x00a0; 0x0000; 0x011c; 0x0000; 0x0190; 0x0000; 0x0...
null
https://raw.githubusercontent.com/gfngfn/otfed/3c6d8ea0b05fc18a48cb423451da7858bf73d1d0/test/testCaseLoca1.ml
ocaml
open! Otfed__Basic module Intermediate = Otfed__Intermediate let marshaled = TestUtil.make_string_even [ ` ipaexm.ttf ` ( offset : 0x74ac94 ) with the bytes for GID > = 50 truncated 0x0000; 0x0000; 0x0000; 0x00a0; 0x0000; 0x00a0; 0x0000; 0x00a0; 0x0000; 0x00a0; 0x0000; 0x011c; 0x0000; 0x0190; 0x0000; 0x0...
9fe2e0c025476e83888e42c59050c70d617c10cd4c843ea0b6a8d4f69df5a727
karamellpelle/grid
ContourWidget.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid 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 optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/Game/GUI/Widget/ContourWidget.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 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 module Game.GUI.Widget.ContourWidget ( ContourWid...
89aa62fd86274bfe537ab56d10fa01cc04660c2a2d71e77ce232774bdf480237
racket/web-server
iteration-7.rkt
#lang web-server/insta ;; A blog is a (blog posts) where posts is a ( listof post ) (struct blog (posts) #:mutable) ;; and post is a (post title body comments) ;; where title is a string, body is a string, ;; and comments is a (listof string) (struct post (title body comments) #:mutable) ;; BLOG: blog ;; The initi...
null
https://raw.githubusercontent.com/racket/web-server/f718800b5b3f407f7935adf85dfa663c4bba1651/web-server-doc/web-server/scribblings/tutorial/examples/iteration-7.rkt
racket
A blog is a (blog posts) and post is a (post title body comments) where title is a string, body is a string, and comments is a (listof string) BLOG: blog The initial BLOG. blog-insert-post!: blog post -> void Consumes a blog and a post, adds the post at the top of the blog. post-insert-comment!: post string ->...
#lang web-server/insta where posts is a ( listof post ) (struct blog (posts) #:mutable) (struct post (title body comments) #:mutable) (define BLOG (blog (list (post "Second Post" "This is another post" (list)) (post "First Post" "This is my first post" ...
e35ff93f8dd788eb26ee6d47be72253ff4bf23c0b8d89695c9b996b1abaf6f5a
jesperes/aoc_erlang
aoc2021_day05.erl
-module(aoc2021_day05). -behavior(aoc_puzzle). -export([parse/1, solve1/1, solve2/1, info/0]). -include("aoc_puzzle.hrl"). -include_lib("eunit/include/eunit.hrl"). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module = ?MODULE, year = 2021, day = 5, name = ...
null
https://raw.githubusercontent.com/jesperes/aoc_erlang/9ecc18b8639ad37ba73d3f1a535e8e1ebad831ab/src/2021/aoc2021_day05.erl
erlang
Helpers
-module(aoc2021_day05). -behavior(aoc_puzzle). -export([parse/1, solve1/1, solve2/1, info/0]). -include("aoc_puzzle.hrl"). -include_lib("eunit/include/eunit.hrl"). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module = ?MODULE, year = 2021, day = 5, name = ...
d2d134b3e816ec707d39405c6d82fc9d4c9b5ac2ed7017698dac460ffc192b3e
aprolog-lang/aprolog
internal.ml
Alpha Prolog Internal representation of untyped terms open Types;; open Printer;; type perm = Perm.perm;; type bconstr = Toplevel | Constrained of var list ;; let bconstr_leq c1 c2 = match c1,c2 with _,Toplevel -> true | Constrained l, Constrained l' -> List.length l <= List.length l' ...
null
https://raw.githubusercontent.com/aprolog-lang/aprolog/410327a615919eb6827d71661e69de14279b8c50/src/internal.ml
ocaml
propositions bool for toplevel exists term predicates control "new" quantifier "new" quantifier "new" quantifier applies a permutation to names but not to suspensions add foralls to the right part of the implication
Alpha Prolog Internal representation of untyped terms open Types;; open Printer;; type perm = Perm.perm;; type bconstr = Toplevel | Constrained of var list ;; let bconstr_leq c1 c2 = match c1,c2 with _,Toplevel -> true | Constrained l, Constrained l' -> List.length l <= List.length l' ...
b00f672a743f58b9b71ccfac557a88654070d4c609e30775e3c96937de6eddc6
racket/eopl
sllgenTests.rkt
#lang eopl sllgen:make-rep-loop
null
https://raw.githubusercontent.com/racket/eopl/43575d6e95dc34ca6e49b305180f696565e16e0f/tests/sllgen/sllgenTests.rkt
racket
#lang eopl sllgen:make-rep-loop
27f6fb8e3ffacf60cba9ca3f1df99199442456f66917445bf82c2cb6ad1c1065
coq/coq
latexCompiler.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/3dfa597540c0e4aa720c9af966f92b359a0c29f3/tools/coqdoc/latexCompiler.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
8e1afbb518d6e66d06e8e5df4c0a5b174f2c2da12f0019f7affb35c6c7c99468
scymtym/clim.flamegraph
run-builder.lisp
;;;; run-builder.lisp --- . ;;;; Copyright ( C ) 2019 , 2020 Jan Moringen ;;;; Author : < > (cl:in-package #:clim.flamegraph.recording) (defclass standard-run-builder () ((%data :accessor data :initform '()) #+maybe-later (%run :accessor run :initform (make-instance 'm...
null
https://raw.githubusercontent.com/scymtym/clim.flamegraph/03b5e4f08b53af86a98afa975a8e7a29d0ddd3a7/src/recording/run-builder.lisp
lisp
run-builder.lisp --- . TODO vector-push-extend
Copyright ( C ) 2019 , 2020 Jan Moringen Author : < > (cl:in-package #:clim.flamegraph.recording) (defclass standard-run-builder () ((%data :accessor data :initform '()) #+maybe-later (%run :accessor run :initform (make-instance 'model::standard-run)))) (defmethod han...
6331e52b20077c352fbdcc67e11a60bd4661911905911ee002d44b2a128a27db
ghc/nofib
Jcb_method.hs
module Jcb_method ( jcb_method, get_rh1, get_rh3 ) where import S_Array import Defs import L_matrix import C_matrix import S_matrix ----------------------------------------------------------- -- Jacobi iteration method: -- -- solves: scalor*MX = B -- -- wit...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/parallel/cfd/Jcb_method.hs
haskell
--------------------------------------------------------- Jacobi iteration method: -- solves: scalor*MX = B -- with iteration counter (r) as -- X(r+1) = X(r) + relax*(B-(scalor*M)X(r))/(scalor*D) -- The system matrix M is never ...
module Jcb_method ( jcb_method, get_rh1, get_rh3 ) where import S_Array import Defs import L_matrix import C_matrix import S_matrix jcb_method :: Int -> Frac_type -> Frac_type -> (Int,Int) -> My_Array Int V_Node -> Bool -> Int -> Frac_type -> My_Array Int (Frac_type,Frac_type) -> My_Array Int (Frac_type,Frac_...
4dea3f7c94187afadf813518832e1e531938e585d8b821e7612c53e538d62e57
cyverse-archive/DiscoveryEnvironmentBackend
directory.clj
(ns data-info.services.directory (:require [dire.core :refer [with-pre-hook! with-post-hook!]] [clj-icat-direct.icat :as icat] [clj-jargon.init :refer [with-jargon]] [clj-jargon.permissions :as perm] [data-info.services.stat :as stat] [data-info.util.config ...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/data-info/src/data_info/services/directory.clj
clojure
(ns data-info.services.directory (:require [dire.core :refer [with-pre-hook! with-post-hook!]] [clj-icat-direct.icat :as icat] [clj-jargon.init :refer [with-jargon]] [clj-jargon.permissions :as perm] [data-info.services.stat :as stat] [data-info.util.config ...
e0270d5533d91206e06697347f1abb7ebae48c653596adc63c34515a1afb85c5
gmarceau/racket-utils
cut.rkt
#lang racket (require (rename-in srfi/26 [cut //])) (provide (all-from-out srfi/26) pipe lambda-pipe) (define-syntax (pipe stx) (syntax-case stx () [(_ init (callee args ...) ...) (syntax/loc stx (for/fold ([result init]) ([fn (list (// callee args ...) ...)]) (fn result...
null
https://raw.githubusercontent.com/gmarceau/racket-utils/d7fdf833f0d7602d1a9c17be516c477a1614cef6/cut.rkt
racket
#lang racket (require (rename-in srfi/26 [cut //])) (provide (all-from-out srfi/26) pipe lambda-pipe) (define-syntax (pipe stx) (syntax-case stx () [(_ init (callee args ...) ...) (syntax/loc stx (for/fold ([result init]) ([fn (list (// callee args ...) ...)]) (fn result...
4db4696ec13dcf26ee8b584061861ed1831c84dba419ac8c474dd41fea6235d9
fyquah/hardcaml_zprize
modulus.ml
open Core let () = printf "let m = Z.of_string \"%s\"" (Z.to_string (Ark_bls12_377_g1.modulus ()))
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/7eb1bd214908fa801781db33287eaf12691715f8/libs/field_ops/bin/modulus/modulus.ml
ocaml
open Core let () = printf "let m = Z.of_string \"%s\"" (Z.to_string (Ark_bls12_377_g1.modulus ()))
c778cdd289461590ba01dfbe1ebbc42e0a014aa0a8647872105b4542494f0fd0
Decentralized-Pictures/T4L3NT
test_failing_noop.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2020 Metastate AG < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_011_PtHangz2/lib_protocol/test/test_failing_noop.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2020 Metastate AG < > 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 ...
2ba94b7c22a39882c1dc51814ce674c8e9697cea1cee74820efc5f61cadd1d5e
ocaml-flambda/flambda-backend
cfg_irc_state.ml
[@@@ocaml.warning "+a-4-30-40-41-42"] open! Cfg_regalloc_utils open! Cfg_irc_utils module Doubly_linked_list = Flambda_backend_utils.Doubly_linked_list module RegWorkList = ArraySet.Make (struct type t = Reg.t let compare left right = Int.compare left.Reg.stamp right.Reg.stamp let dummy = { Reg.dummy with sta...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/4e1ffbfca1a5c5add5b8b29f436a6ecf256b0a33/backend/cfg/cfg_irc_state.ml
ocaml
CR xclerc for xclerc: avoid multiple conversions to sets. register sets are disjoint move sets are disjoint degree is consistent with adjacency lists/sets
[@@@ocaml.warning "+a-4-30-40-41-42"] open! Cfg_regalloc_utils open! Cfg_irc_utils module Doubly_linked_list = Flambda_backend_utils.Doubly_linked_list module RegWorkList = ArraySet.Make (struct type t = Reg.t let compare left right = Int.compare left.Reg.stamp right.Reg.stamp let dummy = { Reg.dummy with sta...
1db82bad0d9d7938b52d0570b54c12e9da2cbf7bbd6596d79d75c1e9edac9423
ekarayel/sync-mht
Sync.hs
module Sync.MerkleTree.Sync ( child, local, parent, openStreams, StreamPair (..), Direction (..), ) where import Control.Concurrent.MVar import Control.Monad import Control.Monad.State import Data.ByteString (ByteString) import Data.Bytes.Serial (Serial) import qualified Data.Text as T import S...
null
https://raw.githubusercontent.com/ekarayel/sync-mht/57d724781fad9eed4e57b4e4f8416633605bdb4b/src/Sync/MerkleTree/Sync.hs
haskell
module Sync.MerkleTree.Sync ( child, local, parent, openStreams, StreamPair (..), Direction (..), ) where import Control.Concurrent.MVar import Control.Monad import Control.Monad.State import Data.ByteString (ByteString) import Data.Bytes.Serial (Serial) import qualified Data.Text as T import S...
2fecabe025999c7eeb28ae7c37f87bb6530fd7f554a207a2d7a94b444848482a
tommaisey/aeon
d-free.help.scm
;; /d_free delete synth definition ;; [ ;; string - synth def name ;; ] * N ;; Removes a synth definition once all synths using it have ended.
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/server-command/d-free.help.scm
scheme
/d_free delete synth definition [ string - synth def name ] * N Removes a synth definition once all synths using it have ended.
5939e144ea5793ce2bbfdcaa83b0ed87fee9969f2964054935fde4ed98f7e9d0
well-typed-lightbulbs/ocaml-esp32
testset.ml
(* TEST *) module S = Set.Make(struct type t = int let compare (x:t) y = compare x y end) let testvals = [0;1;2;3;4;5;6;7;8;9] let check msg cond = if not (List.for_all cond testvals) then Printf.printf "Test %s FAILED\n%!" msg let checkbool msg b = if not b then Printf.printf "Test %s FAILED\n%!" msg ...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/lib-set/testset.ml
ocaml
TEST check that the traversal is made in increasing element order check that filtering a set where all elements are satisfied by the given predicate return the original set PR#7403: map buggily orders elements according to the input set order, not the output set order. Mapping functions that chang...
module S = Set.Make(struct type t = int let compare (x:t) y = compare x y end) let testvals = [0;1;2;3;4;5;6;7;8;9] let check msg cond = if not (List.for_all cond testvals) then Printf.printf "Test %s FAILED\n%!" msg let checkbool msg b = if not b then Printf.printf "Test %s FAILED\n%!" msg let normali...
27646cbb2b3940871d862465d1f1841261805c6ad11a79d54b8e161988b50f4e
dgiot/dgiot
emqx_pool_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2018 - 2021 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 o...
null
https://raw.githubusercontent.com/dgiot/dgiot/c9f2f78af71692ba532e4806621b611db2afe0c9/test/emqx_pool_SUITE.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 ) 2018 - 2021 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(emqx_pool_SUITE). -compile(export_all). -compile(nowarn_export_all). -include_lib("eun...
20e7f581faef8fde7bc955472753135706f6233778600451ae96c50e077c84dd
TheLortex/mirage-monorepo
async_get.ml
open! Core open Async open Httpaf open Httpaf_async let main port host () = let where_to_connect = Tcp.Where_to_connect.of_host_and_port { host; port } in Tcp.connect_sock where_to_connect >>= fun socket -> let finished = Ivar.create () in let response_handler = Httpaf_examples.Client.print ~on_eof:(Iva...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/754836818dc5c861bf3b0a78029315a065a543cc/duniverse/httpaf/examples/async/async_get.ml
ocaml
open! Core open Async open Httpaf open Httpaf_async let main port host () = let where_to_connect = Tcp.Where_to_connect.of_host_and_port { host; port } in Tcp.connect_sock where_to_connect >>= fun socket -> let finished = Ivar.create () in let response_handler = Httpaf_examples.Client.print ~on_eof:(Iva...
dfd427a737fed3ed158b004da69120fb823ec7952a033599af61667ba45d852d
sebashack/servantRestfulAPI
Interpreter.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOper...
null
https://raw.githubusercontent.com/sebashack/servantRestfulAPI/e625535d196acefaff4f5bf03108816be668fe4d/libs/Domains/SideServices/Interpreter.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # HTML Rendering SMPT and SSL
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE ScopedTypeVariables # module Domains.SideServices.Interpreter ( sideServer ) where import Data.ByteString.Char8 (pack) import Co...
36dd6a2ba8ebfa3cb237dc8b454d52868d34afcbfff2a06a7291ef1eba7ba0cf
mihaimaruseac/HsMaze
Maze.hs
module Maze (module Maze.GUI ) where import Maze.GUI (mazeGUI)
null
https://raw.githubusercontent.com/mihaimaruseac/HsMaze/470edbf89c3b5ae7c65e5cf16f0da9744bd393f0/Maze.hs
haskell
module Maze (module Maze.GUI ) where import Maze.GUI (mazeGUI)
9215ca4d202fdccde80316f4cb80a6647e41ecd5a555d10b783229c5c32d0375
bsl/GLFW-b
Types.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # -- | The types of the package. This module is considered "internal", and the -- types are re-exported from Graphics.UI.GLFW as necessary. module Graphics.UI.GLFW.Types where -----------...
null
https://raw.githubusercontent.com/bsl/GLFW-b/fe1a7ccad0cbcf6bca5ea31d8cb24794d78fa521/Graphics/UI/GLFW/Types.hs
haskell
# LANGUAGE DeriveDataTypeable # | The types of the package. This module is considered "internal", and the types are re-exported from Graphics.UI.GLFW as necessary. ------------------------------------------------------------------------------ ---------------------------------------------------------------------------...
# LANGUAGE DeriveGeneric # # LANGUAGE StandaloneDeriving # # OPTIONS_GHC -fno - warn - orphans # module Graphics.UI.GLFW.Types where import Control.DeepSeq (NFData) import Data.Data (Data) import Data.IORef (IORef) import Data.Typeable (Typeable) import Data.Word (Word8) import Foreign.Ptr ...
48a806592442711e1c96f1a2808425eb3f632ccb245974322c05f2f70dd5e6d4
pascal-knodel/haskell-craft
E'13'16.hs
-- -- -- ------------------ Exercise 13.16 . ------------------ -- -- -- module E'13'16 where
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%C2%A013/E'13'16.hs
haskell
---------------- ----------------
Exercise 13.16 . module E'13'16 where
d0187308133781f01e0bb6656c2b6bb13b58cb986b2bcb947e6ec6ababb1230a
donaldsonjw/bigloo
bgl123.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / api / flac / examples / bgl123.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/api/flac/examples/bgl123.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * A simple music player. Requires both FLAC *and* ALSA libs. */ *===========================...
* serrano / prgm / project / bigloo / api / flac / examples / bgl123.scm * / * Author : * / * Creation : Fri Jun 24 16:20:46 2011 * / * Last change : Sat Mar 14 16:33:43 2015 ( serrano ) * / * Co...
023333ef93f9335ab4d9ff18517538618422033f72dc25c03e4cbc87eeff33ec
music-suite/music-preludes
dynamics.hs
{-# LANGUAGE OverloadedStrings #-} import Music.Prelude -- A simple subject subj = times 20 $ scat [c,d,e,f]|/8 |> scat [g,fs]|/2 -- The music = id $ title "Dynamics" $ composer "Anonymous" $ fmap (over dynamics (! 0)) $  rcat $ map (\phase -> level (stretch phase sine*fff) $ subj) [5.0,5.2..6.0] ma...
null
https://raw.githubusercontent.com/music-suite/music-preludes/2512b7dba62b4adadd04c01772046a3c09be72d7/examples/dynamics.hs
haskell
# LANGUAGE OverloadedStrings # A simple subject The
import Music.Prelude subj = times 20 $ scat [c,d,e,f]|/8 |> scat [g,fs]|/2 music = id $ title "Dynamics" $ composer "Anonymous" $ fmap (over dynamics (! 0)) $  rcat $ map (\phase -> level (stretch phase sine*fff) $ subj) [5.0,5.2..6.0] main = open music
0dbf7b7e6f06c55e1245dd0780053b5e8a849afd82655ed06fed16e51aa7608a
freetonik/degas
mutation.cljs
(ns degas.mutation (:require [degas.helpers :as h])) Generic helper (defn mut-apply [ind function] "Applies function to random unit of individual." (let [point (rand-int (count ind))] (assoc ind point (function (nth ind point))))) ;; Binary flipping (defn bitflip [n] (if (= n 1) 0 1)) (defn mut-bitflip [...
null
https://raw.githubusercontent.com/freetonik/degas/ca98e9557e35487bee4d012518bdcaac14a327ba/src/degas/mutation.cljs
clojure
Binary flipping Shifting Inc/dec Whole individual mutations Population mutation
(ns degas.mutation (:require [degas.helpers :as h])) Generic helper (defn mut-apply [ind function] "Applies function to random unit of individual." (let [point (rand-int (count ind))] (assoc ind point (function (nth ind point))))) (defn bitflip [n] (if (= n 1) 0 1)) (defn mut-bitflip [ind] "Returns an ...
01e28a3085654abd95843ee66521abf864773edfe5e81aa65c38ea31b8f11418
noinia/hgeometry
Orientation.hs
-------------------------------------------------------------------------------- -- | -- Module : Geometry.Point.Orientation Copyright : ( C ) -- License : see the LICENSE file Maintainer : -- Strict orientation tests using SoS -- -----------------------------------------------------------...
null
https://raw.githubusercontent.com/noinia/hgeometry/ddc7d456cbee3e2cd998857780089e1469ba81ba/hgeometry/src/Geometry/Point/Orientation.hs
haskell
------------------------------------------------------------------------------ | Module : Geometry.Point.Orientation License : see the LICENSE file ------------------------------------------------------------------------------ -----------------------------------------------------------------------------...
Copyright : ( C ) Maintainer : Strict orientation tests using SoS module Geometry.Point.Orientation ( StrictCCW , pattern SCCW, pattern SCW , strictCcw ) where import HGeometry.Indexed import HGeometry.Sign import Geometry.Point.Class import Geometry.SoS.Orientation import Geometry.Vector ...
61e8d6db0c7f45178c65d9486be6e3f81005626c1139c88cc30bb3a1131fcead
JustusAdam/language-haskell
T0136.hs
SYNTAX TEST " source.haskell " " Promotion ticks " f :: proxy ( 'CD a b ) -> proxy ( a '`CD` b ) ^^ storage.type.haskell -- ^^ storage.type.infix.haskell -- ^ ^ keyword.operator.promotion.haskell g :: proxy ( '(:< ) a b ) -> proxy ( a ':...
null
https://raw.githubusercontent.com/JustusAdam/language-haskell/c9ee1b3ee166c44db9ce350920ba502fcc868245/test/tickets/T0136.hs
haskell
^^ storage.type.infix.haskell ^ ^ keyword.operator.promotion.haskell ^^ storage.type.operator.infix.haskell ^ ^ keyword.operator.promotion.haskell
SYNTAX TEST " source.haskell " " Promotion ticks " f :: proxy ( 'CD a b ) -> proxy ( a '`CD` b ) ^^ storage.type.haskell g :: proxy ( '(:< ) a b ) -> proxy ( a ':< b ) ^^ storage.type.operator.haskell
aabb508d472122e134359372e5d48c6991685c696c47f23a73da42b51fd18ff1
bvaugon/ocapic
trigs.ml
(*************************************************************************) (* *) (* OCaPIC *) (* *) ...
null
https://raw.githubusercontent.com/bvaugon/ocapic/a14cd9ec3f5022aeb5fe2264d595d7e8f1ddf58a/src/ocasim/trigs.ml
ocaml
*********************************************************************** OCaPIC ...
This file is distributed under the terms of the CeCILL license . open Tools;; INDF , POSTINC , PREDEC , ... let register (f, regs) = let reg_get_trig reg = Ram.register_get_pre_trigger reg ( fun _ _ -> let addr = get_fsr f in...
4253774ca7fc2163f427747c46f0e88e88a58fcb26bc51849195bf7e6b3ff604
dinosaure/art
ipc.mli
* { 1 : Inter - process communication via named pipe . } This module implement a really simple mechanism where multiple processes can communicate together . The idea is simple . We create an Unix named pipe which can be filled by some programs and some others ( mostly a unique one ) can consume...
null
https://raw.githubusercontent.com/dinosaure/art/4dff34f21f1c730e5502b00f46cab0e2ccd3c6cb/ipc/ipc.mli
ocaml
* { 1 : Inter - process communication via named pipe . } This module implement a really simple mechanism where multiple processes can communicate together . The idea is simple . We create an Unix named pipe which can be filled by some programs and some others ( mostly a unique one ) can consume...
a0ef72aee065e5b43a20cdf1b0b16709958003be836301c906985f6ab118017a
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} module Duckling.Numeral.HE.Rules ( rules ) whe...
null
https://raw.githubusercontent.com/facebook/duckling/c6a48a1d0678a389f86d17db2676e1a289e355ce/Duckling/Numeral/HE/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Numeral.HE.Rules ( rules ) where import Data.Maybe import Data.String import Data.Text (Text) import Prelude import qualified Data.Text as Text import Duckling.Dimensions.Types import Duckling.Numeral.Helpers import Duckling.Numeral.Types (Numer...
3d7e1af8236e9c24c6a3249b06e109f0d47131e6684a2f67667da782266d1fb7
jscl-project/jscl
conditionals.lisp
-*- mode : lisp ; coding : utf-8 -*- (/debug "perform test/conditionals.lisp!") ;;;; Tests for conditional forms Boolean operators (test (eql (and nil 1) nil)) (test (= (and 1 2) 2)) (test (= (or nil 1) 1)) (test (= (or 1 2) 1)) ; COND (test (eql nil (cond))) (test (= 1 (cond (1)))) (test (= 1...
null
https://raw.githubusercontent.com/jscl-project/jscl/d38eec2aeb47d04f1caf3d1cda82dc968d67c305/tests/conditionals.lisp
lisp
coding : utf-8 -*- Tests for conditional forms COND CASE
(/debug "perform test/conditionals.lisp!") Boolean operators (test (eql (and nil 1) nil)) (test (= (and 1 2) 2)) (test (= (or nil 1) 1)) (test (= (or 1 2) 1)) (test (eql nil (cond))) (test (= 1 (cond (1)))) (test (= 1 (let ((x 0)) (cond ((incf x)))))) (test (= 2 (cond (1 ...
d8c318dce0141ccfbba1dae9fedebbc139d65b2415234f6c97b5cdeb85f2bfda
nasa/Common-Metadata-Repository
geographiclib.clj
(ns cmr.exchange.geo.tests.unit.geom.impl.geographiclib (:require [clojure.test :refer :all] [cmr.exchange.geo.geom.impl.geographiclib :as geographiclib])) (deftest polygon Polygon points taken from G1344353303 - NSIDC_ECS (is (= 1972221565152.8076 (geographiclib/area (geographiclib/crea...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/exchange-geo/test/cmr/exchange/geo/tests/unit/geom/impl/geographiclib.clj
clojure
(ns cmr.exchange.geo.tests.unit.geom.impl.geographiclib (:require [clojure.test :refer :all] [cmr.exchange.geo.geom.impl.geographiclib :as geographiclib])) (deftest polygon Polygon points taken from G1344353303 - NSIDC_ECS (is (= 1972221565152.8076 (geographiclib/area (geographiclib/crea...
7f79b1a2ddab84ca24cc119443c5f3f571e30d8bc5118b8d20c40c68adae3929
softlab-ntua/bencherl
probe_rendering_test.erl
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify % it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) a...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/sim-diasca/src/core/src/data-management/monitoring/probe/probe_rendering_test.erl
erlang
it under the terms of the GNU Lesser General Public License as but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the If not, see </>. Unit tests for the rendering of (basic, generic) probes. This is not an integration test like class_Probe_tes...
Copyright ( C ) 2008 - 2014 EDF R&D This file is part of Sim - Diasca . Sim - Diasca is free software : you can redistribute it and/or modify published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Sim - Diasca is distributed in the hope tha...
46a6149e7286dedaf5a09cd7784cde1224d61365a6f84d93d36f6881c906e694
davejacobs/ml
neural.clj
(ns ml.neural (:require [ml.logistic :as logistic]) (:use alex-and-georges.debug-repl ml.helpers clojure.options [incanter core io stats])) ; (def lines (range 0 4501 500)) ( def xs ( read - matrix - from - lines " neural-xs.csv " lines ) ) ( def ys ( let [ y - labels ( read - matrix -...
null
https://raw.githubusercontent.com/davejacobs/ml/4ceda8cee8a79ff52e57484c2988a2ddf10def7f/src/ml/neural.clj
clojure
(def lines (range 0 4501 500)) (def theta-layers [(read-matrix-from-file "neural-thetas-1.csv") (read-matrix-from-file "neural-thetas-2.csv")]) TODO: Clean up categories and make as general as possible (make as few assumptions about incoming data as possible, but create helpers to deal with that data before it re...
(ns ml.neural (:require [ml.logistic :as logistic]) (:use alex-and-georges.debug-repl ml.helpers clojure.options [incanter core io stats])) ( def xs ( read - matrix - from - lines " neural-xs.csv " lines ) ) ( def ys ( let [ y - labels ( read - matrix - from - lines " neural-ys.csv " l...
024a17f350ef0314faffe65bdce65711b2307781f83c057a7fb1727b432a12c3
patricoferris/ocaml-multicore-monorepo
config.ml
open Mirage let main = foreign "Unikernel.Main" (random @-> job) let () = let packages = [ package "mirage-crypto-rng" ; package "mirage-crypto-pk" ; package "mirage-crypto" ; package ~min:"0.8.7" "fmt" ; ] in register ~packages "crypto-test" [main $ default_random]
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/mirage-crypto/mirage/config.ml
ocaml
open Mirage let main = foreign "Unikernel.Main" (random @-> job) let () = let packages = [ package "mirage-crypto-rng" ; package "mirage-crypto-pk" ; package "mirage-crypto" ; package ~min:"0.8.7" "fmt" ; ] in register ~packages "crypto-test" [main $ default_random]
702ef685f96cb6dca545a7f678639dd3abf6952347e190a5a47e27203054cef5
darrenldl/ocaml-SeqBox
encode.ml
open Stdint open Sbx_specs open Sbx_block open Stream_file open Multihash open Int64_ops exception File_metadata_get_failed module Stats = struct type t = { block_size : int ; data_size : int ; blocks_written : int64 ; meta_blocks_written : int64 ;...
null
https://raw.githubusercontent.com/darrenldl/ocaml-SeqBox/658c623db8745ae1d804c75880b29fb53435860f/src/encode.ml
ocaml
always off by +1 report progress update hash write to file a dummy multihash is added to make sure there is actually enough space * in the metadata block before the encoding starts write data blocks there should always be a hash_bytes go back and write metadata block update stat...
open Stdint open Sbx_specs open Sbx_block open Stream_file open Multihash open Int64_ops exception File_metadata_get_failed module Stats = struct type t = { block_size : int ; data_size : int ; blocks_written : int64 ; meta_blocks_written : int64 ;...
8e1512230d108e70b7b28609c3a4a71a9e563784569607f516af8433874e8453
tek/proteome
Dirs.hs
module Proteome.Test.Dirs where import Path (Dir, Path, Rel, reldir) flag :: Path Rel Dir flag = [reldir|flagellum|] hask :: Path Rel Dir hask = [reldir|haskell|] idr :: Path Rel Dir idr = [reldir|idris|] ag :: Path Rel Dir ag = [reldir|agda|] cil :: Path Rel Dir cil = [reldir|cilia|] prot :: Path Rel Dir prot =...
null
https://raw.githubusercontent.com/tek/proteome/019928432bd5f5ba87d35eab19e341a5c98b1bba/packages/proteome/test/Proteome/Test/Dirs.hs
haskell
module Proteome.Test.Dirs where import Path (Dir, Path, Rel, reldir) flag :: Path Rel Dir flag = [reldir|flagellum|] hask :: Path Rel Dir hask = [reldir|haskell|] idr :: Path Rel Dir idr = [reldir|idris|] ag :: Path Rel Dir ag = [reldir|agda|] cil :: Path Rel Dir cil = [reldir|cilia|] prot :: Path Rel Dir prot =...
a6ba3c4c42925cf64d6d4f66d2d175cd558364437d5bfe8e1d17756edc245a22
xmppjingle/snatch
snatch_fun_test.erl
-module(snatch_fun_test). -compile([warnings_as_errors]). -export([ check/1, check/2, check/3, run/1 ]). -export([send/2]). -define(DEFAULT_TIMEOUT, 120). % seconds -define(DEFAULT_VERBOSE, false). -define(DEFAULT_TIMES, 1). -define(DEFAULT_STEP_TIMEOUT, 5). % seconds -define(TEST_PROCESS, test_pro...
null
https://raw.githubusercontent.com/xmppjingle/snatch/da32ed1f17a05685461ec092800c4cb111a05f0b/src/snatch_fun_test.erl
erlang
seconds seconds ms FIXME: the fast_xml system is not possible to be stopped or restarted that's the reason because the start is not controlled and in this part fast_xml is not stopped.
-module(snatch_fun_test). -compile([warnings_as_errors]). -export([ check/1, check/2, check/3, run/1 ]). -export([send/2]). -define(DEFAULT_VERBOSE, false). -define(DEFAULT_TIMES, 1). -define(TEST_PROCESS, test_proc). -include_lib("fast_xml/include/fxml.hrl"). -include_lib("eunit/include/eunit.hrl...
eb1829074196937a376426b41c4039b5096bf884e542c8f4c40b8adde5de0363
sellout/haskerwaul
Pushout.hs
module Haskerwaul.Pushout ( module Haskerwaul.Pushout -- * extended modules , module Haskerwaul.Pullback ) where import Haskerwaul.Category.Opposite import Haskerwaul.Pullback -- | [nLab]() type PushoutSquare c = PullbackSquare (Opposite c) type Coproduct c = Product (Op c) coproduct : : CocartesianMonoid...
null
https://raw.githubusercontent.com/sellout/haskerwaul/b32ecdb141a5f9cca04ed85dc952028242c160a8/src/Haskerwaul/Pushout.hs
haskell
* extended modules | [nLab]() coproduct = product
module Haskerwaul.Pushout ( module Haskerwaul.Pushout , module Haskerwaul.Pullback ) where import Haskerwaul.Category.Opposite import Haskerwaul.Pullback type PushoutSquare c = PullbackSquare (Opposite c) type Coproduct c = Product (Op c) coproduct : : CocartesianMonoidalCategory c = > y
529c772beec008ae206c4aeea6184b35ed9cf237a0bb82a89f40c11d40c7dd17
xapi-project/xen-api
quicktest.ml
* 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/1121e4b3b9b1f8d8f8b92ab84b290d45e19a886b/ocaml/quicktest/quicktest.ml
ocaml
* The main entry point of the quicktest executable
* 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...
4d17e8ccb570d952ae68a79a1d9a4abb81c4dc96d6570e78051fe004347e1b26
valerauko/kitsune-alpha
status.clj
(ns kitsune.fixtures.status) (defn dummy-object [& {:as override}] (merge {:id 1 :uri ":3000/objects/1" :local true :type "Note" :user-id 1 :ap-to ["#Public"] :cc [] :in-reply-to-id nil :in-reply-to-user-id nil :summary nil :content "foo" :tags [] :me...
null
https://raw.githubusercontent.com/valerauko/kitsune-alpha/34ca08e4013541aeaf1a5a5786f3189ff17c1a58/test/kitsune/fixtures/status.clj
clojure
(ns kitsune.fixtures.status) (defn dummy-object [& {:as override}] (merge {:id 1 :uri ":3000/objects/1" :local true :type "Note" :user-id 1 :ap-to ["#Public"] :cc [] :in-reply-to-id nil :in-reply-to-user-id nil :summary nil :content "foo" :tags [] :me...
60e271b16fd2eef7fd6c0f44b6fa0ff426bd2b4e190c09fbceb5dbd9b8d523c8
fredfeng/CS162
eval.ml
open Ast (* Helper function for parsing an expression. Useful for testing. *) let parse (s: string) : Ast.expr = Parser.main Scanner.token (Lexing.from_string s) (*******************************************************************| |********************** Interpreter ****************************| |**************...
null
https://raw.githubusercontent.com/fredfeng/CS162/75c61f06d8ac085d2046cd374262addfa3f02535/homework/hw3/eval.ml
ocaml
Helper function for parsing an expression. Useful for testing. ******************************************************************| |********************** Interpreter ****************************| |*******************************************************************| |**********************************************...
open Ast let parse (s: string) : Ast.expr = Parser.main Scanner.token (Lexing.from_string s) exception Stuck of string let im_stuck msg = raise (Stuck msg) let todo () = failwith "TODO" let hw4 () = failwith "Homework 4" let assert_value e = if is_value e then () else im_stuck (string_of_expr e ^ " is not a v...
86985d6922fb941f023e0a380aff8558fc6c80f4c5b1ef680ae38c4be86ad49d
awolven/cl-vulkan
buffers.lisp
Copyright 2019 , 2020 ;; ;; Permission is hereby granted, free of charge, to any person obtaining ;; a copy of this software and associated documentation files (the " Software " ) , to deal in the Software without restriction , including ;; without limitation the rights to use, copy, modify, merge, publish, d...
null
https://raw.githubusercontent.com/awolven/cl-vulkan/988e0a644a15a45298572d08a13bcc3f55a3de46/src/buffers.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: The above copyright notice and this permission notice shall be EXPRESS OR IMPLIE...
Copyright 2019 , 2020 " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to included in all copies or substantial portions of the Software . THE ...
402717b8e74a40d8ab032a1b6528dda0b158554631a6ddb30a3480e9d342c789
dnadales/sandbox
ScottVsChurchEncoding.hs
{-# LANGUAGE RankNTypes #-} module ScottVsChurchEncoding where import Prelude hiding (map, sum) data List a = Nil | Cons a (List a) See fixity declarations in Haskell . infixr 5 `Cons` -- | Deconstruct a list applying the functions passed as parameters. uncons :: (a -> List a -> r) -- ^ Function to appl...
null
https://raw.githubusercontent.com/dnadales/sandbox/401c4f0fac5f8044fb6e2e443bacddce6f135b4b/rank-n-polymorphism/src/ScottVsChurchEncoding.hs
haskell
# LANGUAGE RankNTypes # | Deconstruct a list applying the functions passed as parameters. ^ Function to apply in the 'Cons' case. ^ Result to yield in the 'Nil' case. | Let's use this function to compute the sum of a list. | What about using `uncons` to decide whether the list is null? | And what about defining t...
module ScottVsChurchEncoding where import Prelude hiding (map, sum) data List a = Nil | Cons a (List a) See fixity declarations in Haskell . infixr 5 `Cons` -> List a -> r uncons _ ni Nil = ni uncons co _ (Cons x xs) = co x xs sum :: List Int -> Int sum xs = uncons (\x ys -> x + sum ys) 0...
544a64667a21cbb7e92b2ee1c0f580fb5331abf7b3acc1abce6c9946a8da5f15
yomimono/stitchcraft
template.eml.ml
let title = "Stitchcraft Cloud Experience for Makers 2022 Platinum Edition (TM)(R)" (* TODO: lol i18n *) let start_and_head = <!DOCTYPE html> <html lang="en-US"> <meta charset="utf-8"> <head> <title> <%s title %> </title> </head> let fin = </html> let nav = <nav> <a href="/">search</a> ...
null
https://raw.githubusercontent.com/yomimono/stitchcraft/6b57efa8a145541e976c9cb1f04ffde984b318bd/webapp/display/template.eml.ml
ocaml
TODO: lol i18n
let title = "Stitchcraft Cloud Experience for Makers 2022 Platinum Edition (TM)(R)" let start_and_head = <!DOCTYPE html> <html lang="en-US"> <meta charset="utf-8"> <head> <title> <%s title %> </title> </head> let fin = </html> let nav = <nav> <a href="/">search</a> <a href="/pattern/new...
7f7064c14175d9a7bef2a09a38354f089d905c6337a7b75ecc0d82c44c98a57d
jaredponn/Fly-Plane-Fly
GuiTransforms.hs
# LANGUAGE InstanceSigs # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # module GuiTransforms where import SDL import Control.Monad.Reader import GameVars class Monad m => GuiTransforms m where xCenterRectangle :: Rectangle Float-> m (Rectangle Float) yCenterRectangle :: Rectangle Floa...
null
https://raw.githubusercontent.com/jaredponn/Fly-Plane-Fly/8e250f29216f2f75dac2dd0235a2b0243d601620/src/GuiTransforms.hs
haskell
# LANGUAGE InstanceSigs # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # module GuiTransforms where import SDL import Control.Monad.Reader import GameVars class Monad m => GuiTransforms m where xCenterRectangle :: Rectangle Float-> m (Rectangle Float) yCenterRectangle :: Rectangle Floa...
b3d228dbc18d18a6838fe5bfb2fcc2b9b16cae811335e00e6035178c0fd93856
futurice/haskell-mega-repo
Request.hs
{-# LANGUAGE GADTs #-} module Power.Request where import Futurice.Prelude import Prelude () import Power.Types data Req a where ReqPeople :: Req [Person] ReqAllocation :: Maybe Day -> Maybe Day -> Req [Allocation] ReqCustomer :: Req [Customer] ReqProject :: Req [Project] ...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/power-client/src/Power/Request.hs
haskell
# LANGUAGE GADTs #
module Power.Request where import Futurice.Prelude import Prelude () import Power.Types data Req a where ReqPeople :: Req [Person] ReqAllocation :: Maybe Day -> Maybe Day -> Req [Allocation] ReqCustomer :: Req [Customer] ReqProject :: Req [Project] ReqProjectMapping :: Re...
ebfb0d30487865e4fc1e18556e6ffc2e2a4c4be518c811fbc35aa29d6de1e612
eeng/shevek
mongodb_test.clj
(ns shevek.lib.mongodb-test (:require [clojure.test :refer [deftest testing is use-fixtures]] [shevek.test-helper :refer [it wrap-unit-tests]] [shevek.asserts :refer [submap?]] [shevek.lib.mongodb :as m :refer [timestamp oid wrap-oids unwrap-oids]] [clj-time.core :refer...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/test/clj/shevek/lib/mongodb_test.clj
clojure
(ns shevek.lib.mongodb-test (:require [clojure.test :refer [deftest testing is use-fixtures]] [shevek.test-helper :refer [it wrap-unit-tests]] [shevek.asserts :refer [submap?]] [shevek.lib.mongodb :as m :refer [timestamp oid wrap-oids unwrap-oids]] [clj-time.core :refer...
bb4fd49a65acde6a8dba071388c01c60321b7c685917665fccec36973d2a61cc
gafiatulin/codewars
Strings.hs
-- Are there doubles? module Codewars.Strings where import Data.Char (toLower) import Data.List (group) doubleCheck :: String -> Bool doubleCheck = any ((>1) . length) . group . map (toLower)
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/7%20kyu/Strings.hs
haskell
Are there doubles?
module Codewars.Strings where import Data.Char (toLower) import Data.List (group) doubleCheck :: String -> Bool doubleCheck = any ((>1) . length) . group . map (toLower)
7628acbe2e018f2017453e9c5ebb68b1465c8fec385bf8ed196c90852dabab16
richmit/mjrcalc
use-util.lisp
;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; @file use-util.lisp @author < > @brief ;; @st...
null
https://raw.githubusercontent.com/richmit/mjrcalc/0c5bf50a8fe3d9bc6e2636d6629138271b99c1ae/use-util.lisp
lisp
-*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*- @file use-util.lisp @std Common Lisp @see tst-util.lisp Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: and/or...
@author < > @brief @parblock Copyright ( c ) 1997,2004,2010,2013,2015 , < > All rights reserved . 1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer . 2 . Redistributions in binary form must reproduce the...
190dac39e8859ebde203f15784e655b6920bee630f707bc50d065decfc881fdd
Phaetec/pogo-cruncher
pokemon.cljs
(ns cruncher.data.pokemon) Thanks freefri ( ) for 2nd generation pokemon ! (def all {1 {:pokemon-id 1 :name "Bulbasaur" :classification "Seed Pokémon" :type-1 ["Grass"] :type-2 ...
null
https://raw.githubusercontent.com/Phaetec/pogo-cruncher/a93bd16cc4d118d2ec57c2a641bd1b11be0d133d/frontend/src/cruncher/data/pokemon.cljs
clojure
(ns cruncher.data.pokemon) Thanks freefri ( ) for 2nd generation pokemon ! (def all {1 {:pokemon-id 1 :name "Bulbasaur" :classification "Seed Pokémon" :type-1 ["Grass"] :type-2 ...
86fff0bd02dcb7d4944cda346633276af2d88c9b319721d9d29566bb21c2709e
circuithub/rel8
Select.hs
{-# language DeriveTraversable #-} # language DerivingStrategies # {-# language FlexibleContexts #-} # language MonoLocalBinds # {-# language ScopedTypeVariables #-} # language StandaloneKindSignatures # # language TypeApplications # module Rel8.Statement.Select ( select , ppSelect , Optimized(..) , ppPrimSel...
null
https://raw.githubusercontent.com/circuithub/rel8/38cbebc7d053561caf63d1b339f28ea016b2a842/src/Rel8/Statement/Select.hs
haskell
# language DeriveTraversable # # language FlexibleContexts # # language ScopedTypeVariables # base hasql opaleye pretty rel8 text | Run a @SELECT@ statement, returning all rows.
# language DerivingStrategies # # language MonoLocalBinds # # language StandaloneKindSignatures # # language TypeApplications # module Rel8.Statement.Select ( select , ppSelect , Optimized(..) , ppPrimSelect , ppRows ) where import Data.Foldable ( toList ) import Data.Kind ( Type ) import Data.Void ( Voi...
05561a0af9357ce48502fb6fd3a945a08d1744c847575ccac23eca34df4b2ab2
s-expressionists/Cleavir
test-utilities.lisp
(in-package #:cleavir-graph-test-utilities) ;;;; This file contains code for generating a random flowchart and for drawing such a chart as a Graphviz file . (defclass node () ((%name :initform (gensym) :reader name) (%inputs :initform '() :accessor inputs) (%outputs :initform '() :accessor outputs) (%suc...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/e0293780d356a9d563af9abf9317019f608b4e1d/Graph/Test-utilities/test-utilities.lisp
lisp
This file contains code for generating a random flowchart and for more layers the graph will have. successors. The probability of a successor being in a lower layer. Not a back edge. Create a new node. Not a back edge. Create a new node. Draw all the variables. Draw all the inputs and outputs. Now draw the ...
(in-package #:cleavir-graph-test-utilities) drawing such a chart as a Graphviz file . (defclass node () ((%name :initform (gensym) :reader name) (%inputs :initform '() :accessor inputs) (%outputs :initform '() :accessor outputs) (%successors :initform '() :accessor successors))) (defun map-inputs (f nod...
5eca7a4193716bc12969ba023cb1ff93cf2055b71630e8a2491a4a8744a0cd5e
haskell/text
Arsec.hs
module Arsec ( Comment , comment , semi , showC , unichar , unichars , module Control.Applicative , module Control.Monad , module Data.Char , module Text.ParserCombinators.Parsec.Char , module Text.ParserCombinators.Parsec.Combinator , module Text.ParserCombinators....
null
https://raw.githubusercontent.com/haskell/text/d791bc21e28b311abc54d20fad0a1b38bb906a1f/scripts/Arsec.hs
haskell
module Arsec ( Comment , comment , semi , showC , unichar , unichars , module Control.Applicative , module Control.Monad , module Data.Char , module Text.ParserCombinators.Parsec.Char , module Text.ParserCombinators.Parsec.Combinator , module Text.ParserCombinators....
287628e806ff4641e39e60df3342e4387fe5241864e534f9b24d04ba0665d2ff
sgbj/MaximaSharp
testsuite.lisp
The Maxima test suite is defined to be the sum of all the tests in the files listed in the Maxima option variable $ testsuite_files . ;;; Each entry can either be a plain file name (minus extension), e.g., " testfile.mac " , or a Maxima list containing a file name followed by ;;; the numbers of the test problems ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/tests/testsuite.lisp
lisp
Each entry can either be a plain file name (minus extension), e.g., the numbers of the test problems that are expected to fail, e.g.
The Maxima test suite is defined to be the sum of all the tests in the files listed in the Maxima option variable $ testsuite_files . " testfile.mac " , or a Maxima list containing a file name followed by ( ( mlist simp ) " testfile.mac " 7 9 13 ) . (setf $testsuite_files '((mlist simp) "rtestnse...
b0a5c0cec840dc183cb9e8967e8fadbc049c92f58d8689f9ebb5db088f4b9ae6
TrustInSoft/tis-interpreter
printer.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/kernel_services/ast_printing/printer.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
5f5c34a321429e2deedfd56592f5d02324deffa03c4692b8f60512e5aee298ec
hendry19901990/erlang-ipfs-http-client
jsone_encode.erl
%%% @doc JSON encoding module @private %%% @end %%% Copyright ( c ) 2017 , %%% %%% The MIT License %%% %%% 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 , includin...
null
https://raw.githubusercontent.com/hendry19901990/erlang-ipfs-http-client/f7e18cabe2901d64733027622677bbaea89f1587/src/jsone_encode.erl
erlang
@doc JSON encoding module @end The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the...
@private Copyright ( c ) 2017 , in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPR...
2d37d35165669534634ee2e0be5b03ee30411a5816cdbed606a90774b4a8920b
NorfairKing/tickler
HashedPassword.hs
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # module Tickler.Data.HashedPassword ( passwordHash, HashedPassword (), validatePassword, ) where import qualified Crypto.BCrypt as BCrypt import qualified Data.Text.Encoding as TE import Database.Persist.Sql import Import newtype HashedPas...
null
https://raw.githubusercontent.com/NorfairKing/tickler/49f10fd0c55d9702dd7bd0116557ddcde9cc3ce0/tickler-data/src/Tickler/Data/HashedPassword.hs
haskell
# LANGUAGE DeriveGeneric # # LANGUAGE GeneralizedNewtypeDeriving # module Tickler.Data.HashedPassword ( passwordHash, HashedPassword (), validatePassword, ) where import qualified Crypto.BCrypt as BCrypt import qualified Data.Text.Encoding as TE import Database.Persist.Sql import Import newtype HashedPas...
0c5315c223572127a4aef2a48f2460b93cd25a001383701b5be7e85cea09b9b2
metaocaml/ber-metaocaml
t070-branchif.ml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; if not false then 0 else raise Not_found;; * 0 CONSTINT 4...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/tool-ocaml/t070-branchif.ml
ocaml
TEST include tool - ocaml - lib flags = " -w a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; if not false then 0 else raise Not_found;; * 0 CONSTINT 4...
655d09da1b7e7a5ae6876ed5fc8fda88f0d635f9899ff1fe577d114c9682c189
Armael/ocaml-xkbcommon
translate_keysyms.ml
let () = let headers = match Sys.argv |> Array.to_list |> List.tl with | h :: _ -> h | _ -> exit 1 in let cin = open_in headers in let b = Buffer.create 37 in let lb = Lexing.from_channel cin in let () = Translate_keysyms_lex.init b in let () = Translate_keysyms_lex.lexer b lb in close_in ci...
null
https://raw.githubusercontent.com/Armael/ocaml-xkbcommon/af0cd8c938938db3e67b65ac13b6444102756ba0/tools/translate_keysyms.ml
ocaml
let () = let headers = match Sys.argv |> Array.to_list |> List.tl with | h :: _ -> h | _ -> exit 1 in let cin = open_in headers in let b = Buffer.create 37 in let lb = Lexing.from_channel cin in let () = Translate_keysyms_lex.init b in let () = Translate_keysyms_lex.lexer b lb in close_in ci...
a724404fd2ad5e9bc2e93bcdc4a8ddc967555c2061c91606b85e770a326c3a93
vnarek/jude
actor_monitor.ml
open Jude module Backend = Backend.Make ((val Backend.create_config ())) module Arbiter = Jude.Arbiter.Make (Backend) module Ping_msg = struct type t = Ping of Pid.t [@@deriving bin_io] end module Pong_msg = struct type t = Pong of Pid.t [@@deriving bin_io] end let rec ping ~onfailure num ctx = let self_pid ...
null
https://raw.githubusercontent.com/vnarek/jude/b1e9387d0242cd83b3b72695bce267c970de1857/example/actor_monitor.ml
ocaml
open Jude module Backend = Backend.Make ((val Backend.create_config ())) module Arbiter = Jude.Arbiter.Make (Backend) module Ping_msg = struct type t = Ping of Pid.t [@@deriving bin_io] end module Pong_msg = struct type t = Pong of Pid.t [@@deriving bin_io] end let rec ping ~onfailure num ctx = let self_pid ...
ea389a4a84e4810658d3e516714f3fc12a76deca1d8abe1e79e928633402988c
Clojure2D/clojure2d-examples
sphere.clj
(ns rt4.the-next-week.ch02.sphere (:require [rt4.the-next-week.ch02.hittable :as hittable] [rt4.the-next-week.ch02.interval :as interval] [rt4.the-next-week.ch02.ray :as ray] [fastmath.core :as m] [fastmath.vector :as v])) (set! *warn-on-reflection* true) (set! *unchec...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/the_next_week/ch02/sphere.clj
clojure
(ns rt4.the-next-week.ch02.sphere (:require [rt4.the-next-week.ch02.hittable :as hittable] [rt4.the-next-week.ch02.interval :as interval] [rt4.the-next-week.ch02.ray :as ray] [fastmath.core :as m] [fastmath.vector :as v])) (set! *warn-on-reflection* true) (set! *unchec...
0a1f6c56248e5614ad2d2c8893687fa3c46d5a761e7ddc9742795caeade525e3
erlang/corba
ic_genobj.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1998 - 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 applic...
null
https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/ic/src/ic_genobj.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 l...
Copyright Ericsson AB 1998 - 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(ic_genobj). -include_lib("ic/src/ic.hrl"). -export([new/1, free_table_space/1, process_space/0]). -export...
727e0878b5f9b8f476272defd97a18109bf12b61b68df55c1f4cce94c6329b0d
aryx/xix
terminal.ml
open Common open Point open Rectangle module I = Display module D = Display (*****************************************************************************) (* Prelude *) (*****************************************************************************) Routines to support a simple terminal emulator . * * A ter...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/windows/terminal.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Types, constants, and globals **************************************************...
open Common open Point open Rectangle module I = Display module D = Display Routines to support a simple terminal emulator . * * A terminal has many features in common with an editor : you can enter * text , move around the cursor , copy , cut , paste , etc . The situation * is simpler than in Efuns t...
db7b0d08cc91e584a7f42a368de45eff465c4495a847482278b037ba3f9084e4
qitab/cl-protobufs
pkgdcl.lisp
Copyright 2012 - 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . (in-package "CL-USER") (defpackage #:cl-protobufs.test (:use #:cl) (:export #:root-suite #:run-all #:run-suite))
null
https://raw.githubusercontent.com/qitab/cl-protobufs/bf5447065714a9f5b1b6ce6d0512fd99b4105e76/tests/pkgdcl.lisp
lisp
license that can be found in the LICENSE file or at .
Copyright 2012 - 2020 Google LLC Use of this source code is governed by an MIT - style (in-package "CL-USER") (defpackage #:cl-protobufs.test (:use #:cl) (:export #:root-suite #:run-all #:run-suite))