_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
ded30cc33cd9b32749b76dee1a24c1b03c7db71faf2fa2b9f95abdcbfaa0599c
reanimate/reanimate
06_Easing Functions.hs
animation :: Animation animation = docEnv $ pauseAtEnd 1 $ scene $ do showEasing 0 "curveS" (curveS 2) showEasing 1 "bellS" (bellS 2) showEasing 2 "constantS" (constantS 0.7) showEasing 3 "oscillateS" oscillateS showEasing 4 "powerS" (powerS 2) showEasing 5 "reverseS" reverseS showEasing 6 "id" id showEa...
null
https://raw.githubusercontent.com/reanimate/reanimate/5ea023980ff7f488934d40593cc5069f5fd038b0/playground/snippets/06_Easing%20Functions.hs
haskell
animation :: Animation animation = docEnv $ pauseAtEnd 1 $ scene $ do showEasing 0 "curveS" (curveS 2) showEasing 1 "bellS" (bellS 2) showEasing 2 "constantS" (constantS 0.7) showEasing 3 "oscillateS" oscillateS showEasing 4 "powerS" (powerS 2) showEasing 5 "reverseS" reverseS showEasing 6 "id" id showEa...
bf11ff7ebe9fb64e75c7d86fad4f1689d456ebbfa3ceaaf10c23468dab63ea5a
Eduap-com/WordMat
commac.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;;;; Copyright ( c ) 1984,1987 by , University of Texas ; ; ; ; ; ;;; A...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/src/commac.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;; ; ; ; ; All rights reserved ;;;;; Should we give this a different name? would probably be better to replace uses of ml-typep ...
(in-package :maxima) (defmacro defun-prop (f arg &body body) (assert (listp f)) #+gcl (eval-when (eval) (compiler::compiler-def-hook (first f) body)) `(setf (get ',(first f) ',(second f)) #'(lambda ,arg ,@body))) (defvar *fortran-print* nil "Tells EXPLODEN we are printing numbers for Fortran so include the e...
ea13f18e6a71ea0a4a28404ac087c5276a6ebcd73926137828eb4763f3d6cbc6
lolepezy/rpki-prover
TAL.hs
# LANGUAGE DerivingStrategies # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE RecordWildCards # {-# LANGUAGE QuasiQuotes #-} # LANGUAGE StrictData # module RPKI.TAL where import Data.Bifunctor (first, bimap) import Contr...
null
https://raw.githubusercontent.com/lolepezy/rpki-prover/6811dc211a21634331c838aeee75e3f5eeca30dc/src/RPKI/TAL.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE OverloadedLabels # # LANGUAGE DeriveAnyClass # # LANGUAGE QuasiQuotes # | Represents Trust Anchor Locator as described here | | Or as so-called RIPE format | | Parse TAL object from raw text map each line to a (property name, property value) pair Lines that a...
# LANGUAGE DerivingStrategies # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # module RPKI.TAL where import Data.Bifunctor (first, bimap) import Control.Lens ((^.)) import Control.Monad import qualified Data.List as List import ...
6d5ed4a96dabec94d5455e541eeba97409687fbb0a9f84d0af6ebe2974f1dcc7
VERIMAG-Polyhedra/VPL
Pol.mli
* This is the main module of the VPL . It defines what a polyhedron is and what operations can be done on it . Not that there is no handling of the empty polyhedron ( i.e. the bottom value ): a value of type [ t ] is assumed to be non - bottom and operators that may yield an empty polyhedron have an [ option ]...
null
https://raw.githubusercontent.com/VERIMAG-Polyhedra/VPL/cd78d6e7d120508fd5a694bdb01300477e5646f8/ocaml/core/Pol.mli
ocaml
* The polyhedron with no constraints. * The return type of the inclusion test {!incl}. If inclusion holds, the certificate can be checked using function [check]. * Returns the length of the given interval, or None if it is unbounded. * The description of an assignment operation. [var] is given the value [lin] + [cst...
* This is the main module of the VPL . It defines what a polyhedron is and what operations can be done on it . Not that there is no handling of the empty polyhedron ( i.e. the bottom value ): a value of type [ t ] is assumed to be non - bottom and operators that may yield an empty polyhedron have an [ option ]...
a2910684e7f771adfa1e4d2d7043b5048442df2954c57ae9f016e248ce5bbf61
infinisil/aoc18
Main.hs
# LANGUAGE LambdaCase # {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # module Main where import Control.Applicative (liftA2) import Control.Monad.RWS.Strict import Data.Char import Data.Functor import ...
null
https://raw.githubusercontent.com/infinisil/aoc18/049fae7c7a6b636fd65d5d5c188a4f7dc7bf5063/aoc6/src/Main.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # Part 1 ====== ====== The algorithm works by controlling a turtle on the field. It has functions to move forward, turn and check whether the current tile is in the area. The turtle starts at a position within the area, then walks to an edge of it. Then...
# LANGUAGE LambdaCase # # LANGUAGE TupleSections # module Main where import Control.Applicative (liftA2) import Control.Monad.RWS.Strict import Data.Char import Data.Functor import Data.IntMap (IntMap) import qualified Data.IntMap ...
42a529a806df3e25be5128e7e79c3f88fc3df23445946b2b97565e0608b97f97
danielsz/system-websockets
handler.clj
(ns demo.handler (:require [demo.html :as html] [demo.helpers.session :as helper] [compojure.core :refer [routes GET POST ANY]] [compojure.route :as route] [ring.util.response :as util] [clojure.core.match :as match :refer (match)] [environ.core :refer [env]])) (defn ring-handler [{db :db}] (r...
null
https://raw.githubusercontent.com/danielsz/system-websockets/70eb6713eaf0d6380894c8fac4d049c3076cb2fd/src/clj/demo/handler.clj
clojure
(ns demo.handler (:require [demo.html :as html] [demo.helpers.session :as helper] [compojure.core :refer [routes GET POST ANY]] [compojure.route :as route] [ring.util.response :as util] [clojure.core.match :as match :refer (match)] [environ.core :refer [env]])) (defn ring-handler [{db :db}] (r...
bf44f1740e1198cbf25705b80ca02cf4d3de27237d68c7453dae1df9e9306f91
nikomatsakis/a-mir-formality
unsafe-check.rkt
#lang racket (require redex/reduction-semantics "grammar.rkt" ) (provide unsafe-check ) (define-judgment-form formality-check #:mode (unsafe-check I) #:contract (unsafe-check Γ) FIXME ---------------------------------------- (unsafe-check Γ) ] )
null
https://raw.githubusercontent.com/nikomatsakis/a-mir-formality/71be4d5c4bd5e91d326277eaedd19a7abe3ac76a/racket-src/check/unsafe-check.rkt
racket
#lang racket (require redex/reduction-semantics "grammar.rkt" ) (provide unsafe-check ) (define-judgment-form formality-check #:mode (unsafe-check I) #:contract (unsafe-check Γ) FIXME ---------------------------------------- (unsafe-check Γ) ] )
b0f2e088df70ab6a9e39b2591c79f7206d5f4109425f02662160bd471bbe7e18
mirage/alcotest
log_trap.ml
open Astring open Model open! Import include Log_trap_intf module Make (Promise : Monad.EXTENDED) (Platform : Platform.S with type 'a promise := 'a Promise.t) = struct open Promise.Syntax type state = { root : string; uuid : string; suite_name : string; has_alias : bool; } type t = In...
null
https://raw.githubusercontent.com/mirage/alcotest/d6ccf180433c8ef9bdfabf4a070164921ea45214/src/alcotest-engine/log_trap.ml
ocaml
* Take a string path and collapse a leading [$HOME] path segment to [~]. Astring doesn't have [cut_prefix]. * Show the last lines of a log file.
open Astring open Model open! Import include Log_trap_intf module Make (Promise : Monad.EXTENDED) (Platform : Platform.S with type 'a promise := 'a Promise.t) = struct open Promise.Syntax type state = { root : string; uuid : string; suite_name : string; has_alias : bool; } type t = In...
cb2c4a5d0c402713bd9f4a9fd5f2d6fd1db2eda5c0e3b97471a2cbd3ec5f6793
rtrusso/scp
fast-dfa.scm
(need algo/bsearch) (define (build-fast-dfa start-state end-array adjacency-matrix emit-vector) (define bs (make-binary-searcher vector-ref vector-length <)) (define (char-small-enough? ch-as-int) (<= 0 ch-as-int 127)) (define (lookup-rule rule ch-as-int) (if (char-small-enough? ch-as-int) ...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/regex/fast-dfa.scm
scheme
:,.<>/?")) reset! - method 0 start state end state map adjacency matrix emit vector end class vtab let build-fast-dfa
(need algo/bsearch) (define (build-fast-dfa start-state end-array adjacency-matrix emit-vector) (define bs (make-binary-searcher vector-ref vector-length <)) (define (char-small-enough? ch-as-int) (<= 0 ch-as-int 127)) (define (lookup-rule rule ch-as-int) (if (char-small-enough? ch-as-int) ...
08ba697dab127dedee0633ea62a9bce767eacf986da4335e07aa78eaa4416784
Jell/euroclojure-2016
localized.cljs
(ns euroclojure.localized (:require-macros [euroclojure.utils :refer [code-snippet]]) (:require [euroclojure.locale :refer [t]] [kioo.reagent :as kioo :refer-macros [deftemplate]])) (def locale (delay :en)) (defn localize [node] (let [msg (->> node :attrs :data-localize keyword (t @locale))] (->...
null
https://raw.githubusercontent.com/Jell/euroclojure-2016/a8ca883e8480a4616ede19995aaacd4a495608af/src/euroclojure/localized.cljs
clojure
(ns euroclojure.localized (:require-macros [euroclojure.utils :refer [code-snippet]]) (:require [euroclojure.locale :refer [t]] [kioo.reagent :as kioo :refer-macros [deftemplate]])) (def locale (delay :en)) (defn localize [node] (let [msg (->> node :attrs :data-localize keyword (t @locale))] (->...
7e0f24f0e7f5a1b6b267c1b829952f5e1802019084ceaa8dbb330d7ced6991eb
txyyss/Project-Euler
Euler032.hs
We shall say that an n - digit number is pandigital if it makes use of all the digits 1 to n exactly once ; for example , the 5 - digit number , 15234 , is 1 through 5 pandigital . The product 7254 is unusual , as the identity , 39 * 186 = 7254 , containing multiplicand , multiplier , and product is 1 throug...
null
https://raw.githubusercontent.com/txyyss/Project-Euler/d2f41dad429013868445c1c9c1c270b951550ee9/Euler032.hs
haskell
Find the sum of all products whose multiplicand/multiplier/product to only include it once in your sum.
We shall say that an n - digit number is pandigital if it makes use of all the digits 1 to n exactly once ; for example , the 5 - digit number , 15234 , is 1 through 5 pandigital . The product 7254 is unusual , as the identity , 39 * 186 = 7254 , containing multiplicand , multiplier , and product is 1 throug...
8d67b31f0f20d31c7698121078caab4db1dfc287ae713e6b4ad8c7b817164cd6
xu-hao/QueryArrow
QueryResultHits.hs
# LANGUAGE DeriveGeneric # module QueryArrow.ElasticSearch.QueryResultHits where import Data.Aeson import GHC.Generics import QueryArrow.ElasticSearch.Record data ESQueryResultHits = ESQueryResultHits { total :: Int, max_score :: Double, hits :: [ESHit] } deriving (Show, Generic) instance FromJSON ESQue...
null
https://raw.githubusercontent.com/xu-hao/QueryArrow/4dd5b8a22c8ed2d24818de5b8bcaa9abc456ef0d/QueryArrow-db-elastic/src/QueryArrow/ElasticSearch/QueryResultHits.hs
haskell
# LANGUAGE DeriveGeneric # module QueryArrow.ElasticSearch.QueryResultHits where import Data.Aeson import GHC.Generics import QueryArrow.ElasticSearch.Record data ESQueryResultHits = ESQueryResultHits { total :: Int, max_score :: Double, hits :: [ESHit] } deriving (Show, Generic) instance FromJSON ESQue...
e64032fdb99f62c0c4002d7025a8910796ef3a0cace00baca2e316af82961a8b
geophf/1HaskellADay
Exercise.hs
module Y2017.M05.D01.Exercise where - From the Mensa Genius Quiz - a - Day book by Dr. , etc . It 's hard to keep within a budget , ... ... [ let that sink in ] ... discovered as she prepared her class 's May Day party . She had been assigned money from the common fund , and she spent half of it plus ...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2017/M05/D01/Exercise.hs
haskell
} was it delicious? Was there a candle, or no?
module Y2017.M05.D01.Exercise where - From the Mensa Genius Quiz - a - Day book by Dr. , etc . It 's hard to keep within a budget , ... ... [ let that sink in ] ... discovered as she prepared her class 's May Day party . She had been assigned money from the common fund , and she spent half of it plus ...
506134002b763f4d54a7f2bb258a31fadc5c98d1720e931b8d706053495e8818
dbuenzli/topkg
topkg_result.mli
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/topkg/ea1e0981a18ce4160ec21e8a73f67cb748059671/src/topkg_result.mli
ocaml
* Results Abbridged [rresult]. See {!section:Topkg.prels} for documention.
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
6d886d02277529482284438d037e760e847fce45336af73aa3759d7892c37e6e
mvdcamme/meta-tracing-JIT
simplified trace-explosion.scm
(begin (define (loop n) (if (= (random 2) 0) (begin (display "f 0") (newline)) (begin (display "f 1") (newline))) (if (= (random 2) 0) (begin (display "g 0") (newline)) (begin (display "g 1") (newline))) (if (= (random 2) 0) (be...
null
https://raw.githubusercontent.com/mvdcamme/meta-tracing-JIT/640af917e473f3793ab12791dcb2c80f617b8a0d/benchmarks/simplified%20trace-explosion.scm
scheme
(begin (define (loop n) (if (= (random 2) 0) (begin (display "f 0") (newline)) (begin (display "f 1") (newline))) (if (= (random 2) 0) (begin (display "g 0") (newline)) (begin (display "g 1") (newline))) (if (= (random 2) 0) (be...
6aeae10d757f232dad5c1fed7bdec38cf3c0822012d255faf06e564662289b7e
microsoft/hash-modulo-alpha
AlphaHashOptimizedHash.hs
-- | The efficient version of the algorithm that does do hashing with -- some additional optimisations applied (not explicitly presented third in the paper ) . This is the version that is benchmarked . -- The optimisations are strictness annotations and fusing two map operations into one in a couple of places ....
null
https://raw.githubusercontent.com/microsoft/hash-modulo-alpha/7ff12dbee25595a141e197a4c0a3666c416abc4e/src/AlphaHashOptimizedHash.hs
haskell
| The efficient version of the algorithm that does do hashing with some additional optimisations applied (not explicitly presented made to optimise the baseline algorithms against which we benchmark). # LANGUAGE BangPatterns #
third in the paper ) . This is the version that is benchmarked . The optimisations are strictness annotations and fusing two map operations into one in a couple of places . ( A similar effort was # LANGUAGE LambdaCase # module AlphaHashOptimizedHash where import AlphaHashEfficientHash (thenHash, Hash, Posi...
81ffbc8cc0da5c42caa9d93fae137ea8727da28503f47616966ca31ead868f8a
dongcarl/guix
genealogy.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2019 < > Copyright © 2020 , 2021 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Found...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/packages/genealogy.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2019 < > Copyright © 2020 , 2021 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages genealogy) #:use-module (guix build-system pyth...
2520284c67085121faed17de56ee16c341def1d3ed6ea6acd03a6a8c6e920285
racket/math
array-comprehension.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse) typed/racket/base "mutable-array.rkt" "utils.rkt") (provide for/array: for*/array: for/array for*/array) (define-syntax (base-for/array: stx) (syntax-parse stx #:literals (:) ...
null
https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/array/array-comprehension.rkt
racket
#lang racket/base (require (for-syntax racket/base syntax/parse) typed/racket/base "mutable-array.rkt" "utils.rkt") (provide for/array: for*/array: for/array for*/array) (define-syntax (base-for/array: stx) (syntax-parse stx #:literals (:) ...
c3bd6c0ac92f9be1d849208e5392dac0dfd452648a9d99c1856a5729f9fc1e5f
mzp/coq-ruby
mod_checking.ml
open Pp open Util open Names open Term open Inductive open Reduction open Typeops open Indtypes open Modops open Subtyping open Declarations open Environ (************************************************************************) (* Checking constants *) let refresh_arity ar = let ctxt, hd = decompose_prod_assum ar...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/checker/mod_checking.ml
ocaml
********************************************************************** Checking constants let env = add_constraints cb.const_constraints env in ********************************************************************** Checking modules If the type of a constant is generated, it may mention non-variable algebr...
open Pp open Util open Names open Term open Inductive open Reduction open Typeops open Indtypes open Modops open Subtyping open Declarations open Environ let refresh_arity ar = let ctxt, hd = decompose_prod_assum ar in match hd with Sort (Type u) when not (Univ.is_univ_variable u) -> let u' = Univ....
e74ec4d2b2fff3addffd63512557f98747a8401df70e565746290e638e966190
ocaml-obuild/obuild
main.ml
(* file: main.ml *) (* Assumes the parser file is "rpncalc.mly" and the lexer file is "lexer.mll". *) let main () = try let lexbuf = Lexing.from_channel stdin in while true do Rpncalc.input Lexer.token lexbuf done with End_of_file -> exit 0 let _ = Printexc.print main ()
null
https://raw.githubusercontent.com/ocaml-obuild/obuild/28252e8cee836448e85bfbc9e09a44e7674dae39/tests/full/parser/main.ml
ocaml
file: main.ml Assumes the parser file is "rpncalc.mly" and the lexer file is "lexer.mll".
let main () = try let lexbuf = Lexing.from_channel stdin in while true do Rpncalc.input Lexer.token lexbuf done with End_of_file -> exit 0 let _ = Printexc.print main ()
c8e911f695e46c0fd987d79ac743d797daf38879cf76743d8e46bdbe29737a07
echatav/distributors
Distributor.hs
# LANGUAGE GADTs , LambdaCase , QuantifiedConstraints , RankNTypes # GADTs , LambdaCase , QuantifiedConstraints , RankNTypes #-} module Control.Distributor where import Control.Applicative hiding (WrappedArrow(..)) import qualified Control.Arrow as Arrow import Data.Bifunctor import Data.Functor.Contravaria...
null
https://raw.githubusercontent.com/echatav/distributors/7c8f39acca74f9586624b2cdf0d474f5d37bd153/src/Control/Distributor.hs
haskell
1*x = x (x*y)*z = x*(y*z) | `Dist` is an encoding of the free `Distributor` generated over a quiver. (x+y)*z = (x*z)+(y*z) 0+x = x (x+y)+z = x+(y+z)
# LANGUAGE GADTs , LambdaCase , QuantifiedConstraints , RankNTypes # GADTs , LambdaCase , QuantifiedConstraints , RankNTypes #-} module Control.Distributor where import Control.Applicative hiding (WrappedArrow(..)) import qualified Control.Arrow as Arrow import Data.Bifunctor import Data.Functor.Contravaria...
bd78efd08f17d161ad48888491a70c5c712a1af289dee591444560b7f1d82d4d
eugeneia/athens
des.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- ;;;; des.lisp -- implementation of DES ;;; converted from the C code appearing in _Applied Cryptography_ by to . Unfortunately , a lot of C - isms ;;; remain, so this is not the prettiest Common Lisp code ever. (in-package :crypto) ;;; the sboxes of DES (decl...
null
https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/ironclad-v0.40/src/ciphers/des.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- des.lisp -- implementation of DES converted from the C code appearing in _Applied Cryptography_ by remain, so this is not the prettiest Common Lisp code ever. the sboxes of DES permutations and rotations for the key schedule actual encryption and decryption guts now the...
to . Unfortunately , a lot of C - isms (in-package :crypto) (declaim (type (simple-array (unsigned-byte 32) (64)) des-sbox0 des-sbox1 des-sbox2 des-sbox3 des-sbox4 des-sbox5 des-sbox6 des-sbox7)) (defconst des-sbox0 #32@( #x01010400 #x00000000 #x00010000 #x01010404 #x...
bd63c2c99b2b55e6f767ac51f423c518f1c36d6b4810f2982db0613a6d68705a
FlowForwarding/LINC-Switch
linc_us5_actions_tests.erl
%%------------------------------------------------------------------------------ Copyright 2012 FlowForwarding.org %% 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 %%...
null
https://raw.githubusercontent.com/FlowForwarding/LINC-Switch/9c28e7c8677c03440a62023292dd700fef0c3420/apps/linc_us5/test/linc_us5_actions_tests.erl
erlang
------------------------------------------------------------------------------ you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eithe...
Copyright 2012 FlowForwarding.org Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author Erlang Solutions Ltd. < > 2012 FlowForwarding.org -module(linc_us5_actions_tests). -import(linc_us5_test_utils, [mock/1, ...
e0c989366c2f98ef5c8752c2821a227980a696117043265859570a29b9954e7f
melange-re/melange
bsb_ninja_targets.mli
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * Copyright ( C ) 2017 - , Authors of ReScript * 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 , either version 3 of the...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/mel/bsb_ninja_targets.mli
ocaml
* output should always be marked explicitly, otherwise the build system can not figure out clearly however, for the command we don't need pass `-o`
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * Copyright ( C ) 2017 - , Authors of ReScript * 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 , either version 3 of the...
140c2a8197d2bad7feb327885810ab16777e3208f7497393d2c92afb2aef7e0a
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
TerminalConfigurationConfigurationResourceCurrencySpecificConfig.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema TerminalConfigurationConfigurationResourceCurrencySpecificConfig module Str...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/TerminalConfigurationConfigurationResourceCurrencySpecificConfig.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema TerminalConfigurationConfigurationResourceCurrencySpecificConfig | fixed_amounts: Fixed amounts displayed when collecting a tip | percentages: Percentages displayed when collecting a tip | smart_tip_threshold: Belo...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.TerminalConfigurationConfigurationResourceCurrencySpecificConfig where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson a...
ca4f3f9f8bc51ff2a45425718081291f4475e6e53aa0d7bb9296a2be4afd328d
valderman/haste-compiler
Scale.hs
# LANGUAGE Trustworthy # {-# OPTIONS -fno-warn-unused-imports #-} #include "HsConfigure.h" -- #hide module Data.Time.Clock.Scale ( -- * Universal Time | Time as measured by the earth . UniversalTime(..), -- * Absolute intervals DiffTime, secondsToDiffTime, picosecondsToDiffTime ) where import Control.De...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/libraries/time/lib/Data/Time/Clock/Scale.hs
haskell
# OPTIONS -fno-warn-unused-imports # #hide * Universal Time * Absolute intervals necessary because H98 doesn't have "cunning newtype" derivation | This is a length of time, as measured by a clock. Conversion functions will treat it as seconds. necessary because H98 doesn't have "cunning newtype" derivation FIXM...
# LANGUAGE Trustworthy # #include "HsConfigure.h" module Data.Time.Clock.Scale ( | Time as measured by the earth . UniversalTime(..), DiffTime, secondsToDiffTime, picosecondsToDiffTime ) where import Control.DeepSeq import Data.Ratio ((%)) import Data.Fixed import Data.Typeable #if LANGUAGE_Rank2Types imp...
c16442cfc517f9b1b578e7a22e2eb100665a35e8c3c090f121c83971f224d854
2600hz-archive/whistle
amqp_direct_connection.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/rabbitmq_erlang_client-2.4.1/src/amqp_direct_connection.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. undefined | Rea...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is VMware , Inc. Copyright ( c ) 2007 - 2011 VMware , Inc. All rights reserved . @private -m...
4fa91072d69c79c3fdbeb83658258490e56a783e9f701939640bb32075238176
VisionsGlobalEmpowerment/webchange
routes.cljs
(ns webchange.login.routes (:require [re-frame.core :as re-frame] [webchange.login.state :as state] [webchange.utils.module-router :as module-router])) (def module-location {:admin "/admin" :parent "/parents"}) (def routes {"" :sign-in "reset-password" :...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/2c6ed76f2e2f48e972ad5e20229f253457ca8a20/src/cljs/webchange/login/routes.cljs
clojure
(ns webchange.login.routes (:require [re-frame.core :as re-frame] [webchange.login.state :as state] [webchange.utils.module-router :as module-router])) (def module-location {:admin "/admin" :parent "/parents"}) (def routes {"" :sign-in "reset-password" :...
8d2cf7c8d1ea5d066dbe1c3eb432048e342d7f1621bd7d62481567effc993317
helins/binf.cljc
endian.cljc
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 /. (ns helins.binf.test.endian "Testing endianess utilities." {:author "Adam Helinski"} (:require [clojure.test :as T] ...
null
https://raw.githubusercontent.com/helins/binf.cljc/202abed33c3ebc3a323253f4f4c731595e21366e/src/test/helins/binf/test/endian.cljc
clojure
Generative
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 /. (ns helins.binf.test.endian "Testing endianess utilities." {:author "Adam Helinski"} (:require [clojure.test :as T] ...
2537f36bec6030ab89ece7e1295b0798898fb21987e6a3b1dbf2dc540d184884
sebastiaanvisser/ghc-goals
GADTs.hs
{-# LANGUAGE GADTs, KindSignatures #-} module GADTs where data Expr :: * -> * where EInt :: Expr Int EChar :: Expr Char f :: Expr a -> a f EInt = 1 f EChar = undefined
null
https://raw.githubusercontent.com/sebastiaanvisser/ghc-goals/cf256c99c4b7e3b569bab3e6c10f0903a7c1eac4/examples/GADTs.hs
haskell
# LANGUAGE GADTs, KindSignatures #
module GADTs where data Expr :: * -> * where EInt :: Expr Int EChar :: Expr Char f :: Expr a -> a f EInt = 1 f EChar = undefined
e55a5fb714a90956c5748fd42951eee5c24470b1a6a02fe65490381aea2dddcd
elastic/eui-cljs
icon_star_minus_empty.cljs
(ns eui.icon-star-minus-empty (:require ["@elastic/eui/lib/components/icon/assets/star_minus_empty.js" :as eui])) (def starMinusEmpty eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_star_minus_empty.cljs
clojure
(ns eui.icon-star-minus-empty (:require ["@elastic/eui/lib/components/icon/assets/star_minus_empty.js" :as eui])) (def starMinusEmpty eui/icon)
c468bd0ec00e27b915e2d9278830ee2493d9a9fedebdcd8c82669418d8ef32ce
mitchellwrosen/planet-mitchell
Unsafe.hs
module Optic.Fold.Unsafe ( (^?!) ) where import Control.Lens.Fold ((^?!))
null
https://raw.githubusercontent.com/mitchellwrosen/planet-mitchell/18dd83204e70fffcd23fe12dd3a80f70b7fa409b/planet-mitchell/src/Optic/Fold/Unsafe.hs
haskell
module Optic.Fold.Unsafe ( (^?!) ) where import Control.Lens.Fold ((^?!))
ba4987b536801ba4af9348e62ad76898e500bc114c996fac834b14256bc974e1
SNePS/SNePS2
rule-requests.lisp
-*- Mode : Lisp ; Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : rule - requests.lisp , v 1.2 2013/08/28 19:07:28 shapiro Exp $ ;; This file is part of SNePS. $ BEGIN LICENSE$ The contents of thi...
null
https://raw.githubusercontent.com/SNePS/SNePS2/d3862108609b1879f2c546112072ad4caefc050d/snip/fns/rule-requests.lisp
lisp
Syntax : Common - Lisp ; Package : SNIP ; Base : 10 -*- This file is part of SNePS. you may not use this file except in compliance with the License. You may obtain a copy of the License at . edu/sneps/Downloads/ubpl.pdf. or implied. See the License for the specific language gov erning rights and limitations ...
Copyright ( C ) 1984 - -2013 Research Foundation of State University of New York Version : $ I d : rule - requests.lisp , v 1.2 2013/08/28 19:07:28 shapiro Exp $ $ BEGIN LICENSE$ The contents of this file are subject to the University at Software distributed under the License is distributed on an " A...
4e4586ac566d11a3a0b98466d0f84cb5ce16a92cf4d9c785e69dfb635d169a94
dolotech/erlang_server
pt_pack_client.erl
-module(pt_pack_client). -export([p/3]). p(11000, [Type,Rand,Sid,Account,Password,Signature], Index_) -> AccountL_ = byte_size(Account), PasswordL_ = byte_size(Password), SignatureL_ = byte_size(Signature), Data = << Type:8,Rand:8,Sid:16,AccountL_:16,Account:AccountL_/binary,PasswordL_:16,Password:Pas...
null
https://raw.githubusercontent.com/dolotech/erlang_server/44ea3693317f60e18b19c9ddfa179307cbd646d7/src/pt/pt_pack_client.erl
erlang
-module(pt_pack_client). -export([p/3]). p(11000, [Type,Rand,Sid,Account,Password,Signature], Index_) -> AccountL_ = byte_size(Account), PasswordL_ = byte_size(Password), SignatureL_ = byte_size(Signature), Data = << Type:8,Rand:8,Sid:16,AccountL_:16,Account:AccountL_/binary,PasswordL_:16,Password:Pas...
ee70c15280c2ae6ecbc18afc227ea9a9bdb810b475617b42e43227bb46d1e848
russell/cl-git
libgit2.lisp
-*- Mode : Lisp ; Syntax : COMMON - LISP ; Base : 10 -*- ;; cl-git an Common Lisp interface to git repositories. Copyright ( C ) 2011 - 2022 < > ;; ;; 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 So...
null
https://raw.githubusercontent.com/russell/cl-git/a4ed0aa5f7c3e2d4e3090c67f016a73b7bb4c0d2/tests/libgit2.lisp
lisp
Syntax : COMMON - LISP ; Base : 10 -*- cl-git an Common Lisp interface to git repositories. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; w...
Copyright ( C ) 2011 - 2022 < > as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public (in-package #:cl-git-tests) (in-suite :cl-git) (def-test libgit2-version () "Check ...
81565a2153b7225ab27885755f9b8d9cae5c71c244456671df873d887b52ea8f
awslabs/s2n-bignum
bignum_mod_n521_9.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_mod_n521_9.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "x86/p521/bignum_mod_n521_9.o";; *** OR (% rax) (% rdx) ADC (% rcx) (% rax) ADC (% rcx) (% rax) ADC (% rcx) (% rax) AND (% r9) (% r...
* 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 *) Reduction modulo n_521 , the order of the NIST curve ...
ecc40b7b52303f4897522b95c78ea6f77a5a5d1c2f29476a4a607ab82b18c229
ekmett/ekmett.github.com
Fix.hs
----------------------------------------------------------------------------- -- | -- Module : Control.Functor.Fix Copyright : ( C ) 2008 -- License : BSD-style (see the file LICENSE) -- Maintainer : < > -- Stability : experimental -- Portability : non-portable (rank-2 polymorphism) -- ...
null
https://raw.githubusercontent.com/ekmett/ekmett.github.com/8d3abab5b66db631e148e1d046d18909bece5893/haskell/category-extras-backup/_darcs/pristine/src/Control/Functor/Fix.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Functor.Fix License : BSD-style (see the file LICENSE) Stability : experimental Portability : non-portable (rank-2 polymorphism) --------------------------------------------------------------------------...
Copyright : ( C ) 2008 Maintainer : < > Since in Hask , Mu = Nu , we do n't bother to distinguish them here module Control.Functor.Fix ( FixF(InF,outF) , outM, inW , Fix(InB,outB) , paugment, pcoaugment ) where import Control.Monad import Control.Comonad import Control.Functor.Algebra imp...
3bd1d53ca6e2d022a8d1132889bd020fcf3be591466a6567126b9bfcb101ef4b
elsamuko/gimp-elsamuko
elsamuko-naturalize.scm
; The GIMP -- an image manipulation program Copyright ( C ) 1995 and ; ; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the License , or ; (at your option) any later ve...
null
https://raw.githubusercontent.com/elsamuko/gimp-elsamuko/d64e60321553ee4a621841eda5a3353f68a94fc1/plugins/elsamuko-saturation/elsamuko-naturalize.scm
scheme
The GIMP -- an image manipulation program This program is free software; you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of ...
Copyright ( C ) 1995 and it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 675 Mass Ave , Cambridge , , USA . Copyright ( C ) 2013 elsamuko < > (define (elsamuko-naturalize aimg adraw) (let* ((i...
99b49f1255f7f816157749c9bb92644c30e3a1564d6ad760c6c272f147245781
well-typed-lightbulbs/ocaml-esp32
a.ml
(* TEST * setup-ocamlc.byte-build-env ** script script = "cp -R ${test_source_directory}/dir1 ${test_source_directory}/dir2 ." *** ocamlc.byte commandline = "-depend -slash -I dir1 -I dir2 a.ml" **** check-ocamlc.byte-output compiler_reference = "${test_source_directory}/a.reference" *) include B include C
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/tool-ocamldep-shadowing/a.ml
ocaml
TEST * setup-ocamlc.byte-build-env ** script script = "cp -R ${test_source_directory}/dir1 ${test_source_directory}/dir2 ." *** ocamlc.byte commandline = "-depend -slash -I dir1 -I dir2 a.ml" **** check-ocamlc.byte-output compiler_reference = "${test_source_directory}/a.reference"
include B include C
4c874025183881d6c70259f89fb58571b8221f77b3f4c06b83af12c83a71a378
GaloisInc/ivory-tower-posix
Depends.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE QuasiQuotes # # OPTIONS_GHC -fno - warn - orphans # module Main where import Ivory.Tower import Ivory.Language import Ivory.OS.Posix.Tower [ivory| struct Foo { foo :: Stored Uint8 } |] fooMod :: Module fooMod = package "foo" (defStruct (Proxy :: Proxy...
null
https://raw.githubusercontent.com/GaloisInc/ivory-tower-posix/3764de2681eb4f002b51881476e0f939b967207e/tests/Depends.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE QuasiQuotes # # OPTIONS_GHC -fno - warn - orphans # module Main where import Ivory.Tower import Ivory.Language import Ivory.OS.Posix.Tower [ivory| struct Foo { foo :: Stored Uint8 } |] fooMod :: Module fooMod = package "foo" (defStruct (Proxy :: Proxy...
a1c54125b30d22ed909401579f2eadd6d68de51f1471bbf306dbc47262bf769c
metosin/vega-tools
testing.clj
(ns vega-tools.testing "Utilities for writing unit tests." (:require [cljs.test])) ;; Derived from ;; <#L113> (defmethod cljs.test/assert-expr 'thrown-with-ex-data? [menv msg form] (let [data (second form) body (nthnext form 2)] `(try ~@body (cljs.test/do-report {:type :fail, :message ~...
null
https://raw.githubusercontent.com/metosin/vega-tools/9530b7514fc24ba3b918d69d78c6ab31971e91d7/test/clj/vega_tools/testing.clj
clojure
Derived from <#L113>
(ns vega-tools.testing "Utilities for writing unit tests." (:require [cljs.test])) (defmethod cljs.test/assert-expr 'thrown-with-ex-data? [menv msg form] (let [data (second form) body (nthnext form 2)] `(try ~@body (cljs.test/do-report {:type :fail, :message ~msg, :expected '~form, :act...
8130578207a76bbf684a7c3e0978eb63a71d0062ce00c5f71ccbe1c7eb9ed5aa
tweag/ormolu
op-chain-r-lt-dollar.hs
Right chain , $ case , 2 operators with p($ ) < p(b ) o :: Int o = 1 $ 2 $ 3 $ 4 ++ 5 $ 6 $ 7 $ 8
null
https://raw.githubusercontent.com/tweag/ormolu/1f63136d047205f95b7d3c0f6aa34c34bb29ac7f/data/examples/declaration/value/function/infix/op-chain-r-lt-dollar.hs
haskell
Right chain , $ case , 2 operators with p($ ) < p(b ) o :: Int o = 1 $ 2 $ 3 $ 4 ++ 5 $ 6 $ 7 $ 8
50c6b7fd2287dd3727f70761a2e73e4b6673c2a1d4006a5effa87ff2a59717b4
cedlemo/OCaml-GI-ctypes-bindings-generator
Test_result.ml
open Ctypes open Foreign type t = Success | Skipped | Failure | Incomplete let of_value v = if v = Unsigned.UInt32.of_int 0 then Success else if v = Unsigned.UInt32.of_int 1 then Skipped else if v = Unsigned.UInt32.of_int 2 then Failure else if v = Unsigned.UInt32.of_int 3 then Incomplete else raise (Invali...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/GLib/Test_result.ml
ocaml
open Ctypes open Foreign type t = Success | Skipped | Failure | Incomplete let of_value v = if v = Unsigned.UInt32.of_int 0 then Success else if v = Unsigned.UInt32.of_int 1 then Skipped else if v = Unsigned.UInt32.of_int 2 then Failure else if v = Unsigned.UInt32.of_int 3 then Incomplete else raise (Invali...
7e4434368e4cc3d4f1ac55d3608836e91b17b57faf007b13e2681c9c0e0591b3
toschoo/mom
Factory.hs
module Factory ( mkUniqueId) where import System.IO.Unsafe import Control.Concurrent ------------------------------------------------------------------------ -- Source for unique identifiers ------------------------------------------------------------------------ {-# NOINLINE _addid #-} _addid :...
null
https://raw.githubusercontent.com/toschoo/mom/b58ca23d05c98ab50d9e981bd4ad2cdb76846399/src/patterns/src/Factory.hs
haskell
---------------------------------------------------------------------- Source for unique identifiers ---------------------------------------------------------------------- # NOINLINE _addid #
module Factory ( mkUniqueId) where import System.IO.Unsafe import Control.Concurrent _addid :: MVar Int _addid = unsafePerformIO $ newMVar 1 mkUniqueId :: IO Int mkUniqueId = modifyMVar _addid $ \x -> let x' = incX x in return (x', x') incX :: Int -> Int incX i = if i == 99999999 t...
1e8651b9dda24812edba4f5b00ec294eacf2b324cf93b5541655c6294c93ad63
xh4/web-toolkit
ssl-verify-test.lisp
Copyright ( C ) 2011 ;;; ;;; See LICENSE for details. #+xcvb (module (:depends-on ("package"))) (in-package :cl+ssl) from cl+ssl / example.lisp (defun read-line-crlf-2 (stream &optional eof-error-p) (let ((s (make-string-output-stream))) (loop for empty = t then nil for c = (read-char stream ...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/cl%2Bssl-20191130-git/ssl-verify-test.lisp
lisp
See LICENSE for details. :local-host (resolve-hostname local-host) :local-port local-port test-https-client-2 prints the certificate names
Copyright ( C ) 2011 #+xcvb (module (:depends-on ("package"))) (in-package :cl+ssl) from cl+ssl / example.lisp (defun read-line-crlf-2 (stream &optional eof-error-p) (let ((s (make-string-output-stream))) (loop for empty = t then nil for c = (read-char stream eof-error-p nil) while (and c (...
47c2655c59ec0d7ac9593b66459707a623ffabaeff65ed72e94f827ca8630b20
hemmi/coq2scala
ide_slave.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/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2-old/toplevel/ide_slave.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Redirection of standard output to ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Vernacexpr open Names op...
b5c8e67f39780463469174f7dbacdaa498d829556a18e622a8b3882cad1d2615
silverbullettt/SICP
3.3.rkt
(define (make-account balance password) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! balance (+ balance amount)) balance) (define password-fault (lambda (x) "Inco...
null
https://raw.githubusercontent.com/silverbullettt/SICP/e773a8071ae2fae768846a2b295b5ed96b019f8d/3.3.rkt
racket
(define (make-account balance password) (define (withdraw amount) (if (>= balance amount) (begin (set! balance (- balance amount)) balance) "Insufficient funds")) (define (deposit amount) (set! balance (+ balance amount)) balance) (define password-fault (lambda (x) "Inco...
cea312f33260b49ba7e6d37247d49138146f7193f2e79015df58d5878b0fed17
esl/escalus
escalus_connection.erl
%%%=================================================================== ( C ) 2011 - 2012 , Erlang Solutions Ltd. %%% @doc Module providing basic client functionality %%% @end %%%=================================================================== -module(escalus_connection). -include_lib("exml/include/exml_stream.hr...
null
https://raw.githubusercontent.com/esl/escalus/63652d3e914e40104623539f438f91174992fecc/src/escalus_connection.erl
erlang
=================================================================== @doc Module providing basic client functionality @end =================================================================== High-level API Low-level API Behaviour helpers Public Types Private =======================================================...
( C ) 2011 - 2012 , Erlang Solutions Ltd. -module(escalus_connection). -include_lib("exml/include/exml_stream.hrl"). -include("escalus.hrl"). -export([start/1, start/2, stop/1]). -export([connect/1, maybe_set_jid/1, send_and_receive/3, send/2, send_raw/2, get_...
8c585cb0aebed0104a2f9190d64e4604daa98ec361963aeea19b754aeb1ab577
jobjo/popper
exception.ml
open Popper open Sample.Syntax let test_e1 = test @@ fun () -> assert false let test_e2 = test @@ fun () -> let* () = Sample.return () in assert false let test_e3 = test @@ fun () -> let* _ = Sample.int in assert false let test_e4 = test @@ fun () -> let* n = Sample.int in if n mod 2 = 0 then ...
null
https://raw.githubusercontent.com/jobjo/popper/58631233cdc28b0a51c5e4375ce13b0d8d575b79/test/expect/exception.ml
ocaml
open Popper open Sample.Syntax let test_e1 = test @@ fun () -> assert false let test_e2 = test @@ fun () -> let* () = Sample.return () in assert false let test_e3 = test @@ fun () -> let* _ = Sample.int in assert false let test_e4 = test @@ fun () -> let* n = Sample.int in if n mod 2 = 0 then ...
36ff9c1cc11c1708108f95b6f0bec357c44e7abba9b4f670938c8cd5cec05cd7
jubnzv/iec-checker
use_define.ml
open Core open IECCheckerCore module AU = Ast_util module S = Syntax (** Map that bounds declaration name of variable with S.VarDecl.t objects. *) module VarDeclMap = struct [@@@warning "-34"] [@@@warning "-32"] type t = (string, S.VarDecl.t, String.comparator_witness) Map.t let empty () = Map.empty (module S...
null
https://raw.githubusercontent.com/jubnzv/iec-checker/ea3c217cda56dfb8a84e85773876d58e358fc499/src/analysis/use_define.ml
ocaml
* Map that bounds declaration name of variable with S.VarDecl.t objects. * Map that bounds variable name of variable with S.variable objects ("use" occurrence). * Find errors when array variables addressed to index that exceeds defined array size. opaque index
open Core open IECCheckerCore module AU = Ast_util module S = Syntax module VarDeclMap = struct [@@@warning "-34"] [@@@warning "-32"] type t = (string, S.VarDecl.t, String.comparator_witness) Map.t let empty () = Map.empty (module String) let fold m = Map.fold m let find m name = Map.find m name let set...
d16df359448b49b9bd3868f9c77f73470a86705188b528bf61b52dfbdbf22724
kseo/poly_constraints
Pretty.hs
{-# Language FlexibleInstances #-} {-# Language TypeSynonymInstances #-} module Pretty ( ppconstraint, ppconstraints, ppdecl, ppenv, ppexpr, ppscheme, ppsubst, ppsignature, pptype ) where import Env import Type import Syntax import Infer import Text.PrettyPrint import qualified Data.Map as Map par...
null
https://raw.githubusercontent.com/kseo/poly_constraints/897240cd56b5aefae6f46aa445db055652a18b5b/src/Pretty.hs
haskell
# Language FlexibleInstances # # Language TypeSynonymInstances #
module Pretty ( ppconstraint, ppconstraints, ppdecl, ppenv, ppexpr, ppscheme, ppsubst, ppsignature, pptype ) where import Env import Type import Syntax import Infer import Text.PrettyPrint import qualified Data.Map as Map parensIf :: Bool -> Doc -> Doc parensIf True = parens parensIf False = id ...
cdec63c16408f85e9e53b97dcc23df891e00f3c6be4a824592b88ca69e6bd1f8
facebook/pyre-check
codeNavigationServer.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/9abc0ffc5ae10538a512c25e6930a216b23db33a/source/code_navigation_server/codeNavigationServer.mli
ocaml
* The abstract type of a build system. * {1 External Interfaces} * [update_working_set build_system source_paths] notifies [build_system] that the current working set may be changed. The [source_paths] argument specifies the set of files whose source mapping needs to be included in the build (usually this...
* 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...
23dfc792c69cd18ac5d2f6a3272ff3b0efe0560a1623b84dfb784811c8119d46
PDP-10/panda
setf.lsp
SETF -*-Mode : Lisp;Package : SI;Lowercase : T-*- ;;; ************************************************************************ * * * * * NIL * * * * * * * * SETF , PUSH , and POP Expanders * * * * * * * * * * * * * * * * * * * * * * ;;; ************************************************************...
null
https://raw.githubusercontent.com/PDP-10/panda/522301975c062914ea3d630a1daefde261ddf590/files/maclisp/setf.lsp
lisp
Package : SI;Lowercase : T-*- ************************************************************************ ************************************************************************ ************************************************************************ Current contents: Functions: +INTERNAL-SETF-X, +INTER...
* * * * * NIL * * * * * * * * SETF , PUSH , and POP Expanders * * * * * * * * * * * * * * * * * * * * * * * * ( c ) Copyright 1981 Massachusetts Institute of Technology * * * * * * * * * * * * (herald SETF /292) #-NIL (include ((LISP) SUBLOAD LSP)) #-NIL (eval-when (eval compile) (subload SHA...
641b9641789ae64ea92684725b12c6187476f71b7a9e89a85cbbd8478b31e1ec
ocamllabs/ocaml-effects
pervasives.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-effects/36008b741adc201bf9b547545344507da603ae31/stdlib/pervasives.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with external register_named_value : strin...
47d783e7d1f0ecbc2d4c4c69b925319b60f673f2569f296366e7d34fb697ffd0
CSCfi/rems
test_workflow.clj
(ns ^:integration rems.db.test-workflow (:require [clojure.test :refer :all] [rems.db.testing :refer [rollback-db-fixture test-db-fixture]] [rems.db.workflow :as workflow] [rems.db.test-data-helpers :as test-helpers])) (use-fixtures :once test-db-fixture) (use-fixtures :each rollb...
null
https://raw.githubusercontent.com/CSCfi/rems/a384f86dee110e44e2c09475270ac27f31c6e8b7/test/clj/rems/db/test_workflow.clj
clojure
(ns ^:integration rems.db.test-workflow (:require [clojure.test :refer :all] [rems.db.testing :refer [rollback-db-fixture test-db-fixture]] [rems.db.workflow :as workflow] [rems.db.test-data-helpers :as test-helpers])) (use-fixtures :once test-db-fixture) (use-fixtures :each rollb...
fb537ecb82342e5148a36e1f4168261341bc6fdfeaa0de80d8ac6a8024e6c60c
brendanhay/amazonka
UpdateWorkspaceBundle.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused -...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-workspaces/gen/Amazonka/WorkSpaces/UpdateWorkspaceBundle.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.WorkSpaces.UpdateWorkspaceBundle Stability : auto-generated <-custom-bundle.html Update a Custom WorkSpaces Bundle>. based on a bundle that you\'ve updated, you must either rebuild the WorkSpaces or delete and recreate them. * Cr...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - binds # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # De...
41ec58d0db2713d9aa51fd6509adde2f8b4992d54e181ba47f49b317e0fc2b45
imandra-ai/catapult
clock.mtime.ml
let program_start = try Sys.getenv "TRACE_START" |> Int64.of_string |> Mtime.of_uint64_ns with _ -> let t = Mtime_clock.now () in (* children need to inherit that *) Unix.putenv "TRACE_START" (Int64.to_string @@ Mtime.to_uint64_ns t); t (* main access to the clock *) let[@inline] now_us () : float ...
null
https://raw.githubusercontent.com/imandra-ai/catapult/151fdac31732b303a7951b247ed3945098589e1e/src/core/clock.mtime.ml
ocaml
children need to inherit that main access to the clock
let program_start = try Sys.getenv "TRACE_START" |> Int64.of_string |> Mtime.of_uint64_ns with _ -> let t = Mtime_clock.now () in Unix.putenv "TRACE_START" (Int64.to_string @@ Mtime.to_uint64_ns t); t let[@inline] now_us () : float = let now = Mtime_clock.now () in Mtime.Span.to_float_ns (Mtime.spa...
d24748b37b471170dcbeeaa08388a8ba0cfc926b7a7b47e15f206d9e73e3738d
mauricioszabo/repl-tooling
generic_blob.clj
(try (clojure.core/let [res (do __COMMAND__) res (___repl-tooling.__generic_printer_blob/serialize res)] ['tooling$eval-res '__ID__ {:result (clojure.core/pr-str res) :as-text (clojure.core/pr-str res)}]) (catch __EX_TYPE__ e #?(:clje :stack) #?(:clje st) ...
null
https://raw.githubusercontent.com/mauricioszabo/repl-tooling/1cea9b411cc118d71266cb8e035e146325baf410/resources/generic_blob.clj
clojure
(try (clojure.core/let [res (do __COMMAND__) res (___repl-tooling.__generic_printer_blob/serialize res)] ['tooling$eval-res '__ID__ {:result (clojure.core/pr-str res) :as-text (clojure.core/pr-str res)}]) (catch __EX_TYPE__ e #?(:clje :stack) #?(:clje st) ...
6680b74cd8e4b484481b3e1a1e13db60abc4912208dafec487dcb0a40968e4ae
tweag/ormolu
empty.hs
{-# LANGUAGE EmptyDataDecls #-} data Foo
null
https://raw.githubusercontent.com/tweag/ormolu/34bdf62429768f24b70d0f8ba7730fc4d8ae73ba/data/examples/declaration/data/empty.hs
haskell
# LANGUAGE EmptyDataDecls #
data Foo
2fdddb4475f303afa09cdddabe8667645e5a1531e1a4987672b56366b80e8444
Beyamor/ruin
entities.cljs
(ns demo.entities (:use [ruin.entity :only [defentity]]) (:require [ruin.entity :as e])) (defentity :player :glyph {:char "@"} :mixins [:player-actor :is-player :attacker :destructible-player :message-recipient ...
null
https://raw.githubusercontent.com/Beyamor/ruin/50a6977430dcbbceecccadbf732298462165b049/src/demo/entities.cljs
clojure
(ns demo.entities (:use [ruin.entity :only [defentity]]) (:require [ruin.entity :as e])) (defentity :player :glyph {:char "@"} :mixins [:player-actor :is-player :attacker :destructible-player :message-recipient ...
6652d31bebb5198ebb0b9fa14b5ffe3b880c097c82f64f922a46dc0db7857e35
shayne-fletcher/zen
orientation.ml
type point ={x : float; y : float} type orientation= | Counter_clockwise | Clockwise | Colinear let orientation p0 p1 p2 = let {x=x0; y=y0} = p0 and {x=x1; y=y1} = p1 and {x=x2; y=y2} = p2 in let m1 =(y1 -. y0) /. (x1 -. x0) and m2 =(y2 -. y1) /. (x2 -. x1) in let exp = ( y1 - . y0 ) * . ( x2 - . ...
null
https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/orientation/orientation.ml
ocaml
type point ={x : float; y : float} type orientation= | Counter_clockwise | Clockwise | Colinear let orientation p0 p1 p2 = let {x=x0; y=y0} = p0 and {x=x1; y=y1} = p1 and {x=x2; y=y2} = p2 in let m1 =(y1 -. y0) /. (x1 -. x0) and m2 =(y2 -. y1) /. (x2 -. x1) in let exp = ( y1 - . y0 ) * . ( x2 - . ...
c3381816640fc9bf07543841ce8d182c60da4baf79f902de82ce7c43cfa44c60
rabeckett/Temporal-NetKAT
hashcons.ml
(**************************************************************************) (* *) Copyright ( C ) (* *) (* This software is free software;...
null
https://raw.githubusercontent.com/rabeckett/Temporal-NetKAT/829d1847c18d77f40501fe4d988eec6e7867c94d/src/hashcons.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
Copyright ( C ) modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking s Hash tables for hash - consing . ( Some code is borrowed from the ocaml standard library , which is copyrigh...
58d5f1fef6bc75ea6b983843d10926d9c89aae0d519cf7dccbd42205efdc9e0f
8c6794b6/haskell-sc-scratch
spe.hs
| Copyright : 8c6794b6 , 2014 License : BSD3 Maintainer : Stability : experimental Portability : unknown Example showing the usage of demand ugen builder functions from " Sound . SC3.Supply " module , with rewriting example from streams - patterns - event tutorial in SC3 help file . ...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/hsc3-supply/src/example/spe.hs
haskell
| Copyright : 8c6794b6 , 2014 License : BSD3 Maintainer : Stability : experimental Portability : unknown Example showing the usage of demand ugen builder functions from " Sound . SC3.Supply " module , with rewriting example from streams - patterns - event tutorial in SC3 help file . ...
eab345e0039356d7d9a77d0f32b84f584ba537cd67aeb74a07d981527b08ea69
stevebleazard/ocaml-jsonxt
error_or.ml
module type IO = Io.IO module type Intf = sig module IO : IO val return : 'a -> ('a, 'b) result IO.t val fail : 'b -> ('a, 'b) result IO.t val (>>=?) : ('a, 'b) result IO.t -> ('a -> ('c, 'b) result IO.t) -> ('c, 'b) result IO.t end module Make (IO : IO) : Intf with module IO := IO = struct le...
null
https://raw.githubusercontent.com/stevebleazard/ocaml-jsonxt/fe982b6087dd76ca003d8fbc19ae9a519f54b828/lib/error_or.ml
ocaml
module type IO = Io.IO module type Intf = sig module IO : IO val return : 'a -> ('a, 'b) result IO.t val fail : 'b -> ('a, 'b) result IO.t val (>>=?) : ('a, 'b) result IO.t -> ('a -> ('c, 'b) result IO.t) -> ('c, 'b) result IO.t end module Make (IO : IO) : Intf with module IO := IO = struct le...
31ebecb3136d9811e548c44551924e7afcc9d59c28a4c6983a3315a032e9a320
jebberjeb/fsmviz
core.cljc
(ns fsmviz.core (:require [clojure.set :as set] [clojure.spec.alpha :as s] [specviz.graphviz :as graphviz])) (s/def ::fsm-tuple (s/tuple any? any? any?)) (s/def ::fsm-tuples (s/coll-of ::fsm-tuple)) (s/def ::fsm-transition-map (s/nilable (s/map-of any? any?))) (s/def ::fsm-map (s/map-of any? ::fsm-transi...
null
https://raw.githubusercontent.com/jebberjeb/fsmviz/05c89fbc29f8bfe76eda74212a85cb2e30369d29/src/fsmviz/core.cljc
clojure
Style initial states Style terminal states
(ns fsmviz.core (:require [clojure.set :as set] [clojure.spec.alpha :as s] [specviz.graphviz :as graphviz])) (s/def ::fsm-tuple (s/tuple any? any? any?)) (s/def ::fsm-tuples (s/coll-of ::fsm-tuple)) (s/def ::fsm-transition-map (s/nilable (s/map-of any? any?))) (s/def ::fsm-map (s/map-of any? ::fsm-transi...
989a4621b5b3f4c9b422664087a870d07bbd7564631b7feeabcafa64396bdae4
vivid-inc/ash-ra-template
delimiter_test.clj
; Copyright 2020 Vivid Inc. ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; -2.0 ; ; Unless required by applicable law or agreed to in writing, software distributed under the L...
null
https://raw.githubusercontent.com/vivid-inc/ash-ra-template/f64be7efd6f52ccd451cddb851f02511d1665b11/art/test/vivid/art/render/delimiter_test.clj
clojure
Copyright 2020 Vivid Inc. 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 speci...
distributed under the License is distributed on an " AS IS " BASIS , (ns vivid.art.render.delimiter-test (:require [clojure.test :refer :all] [vivid.art :as art] [vivid.art.delimiters])) (deftest api-contract (testing "Default lispy delimiters" (are [expected template] (= expected (art/ren...
1799af3aa455b4e7b902d237abb95d02a39e312bc00ad6c1c8feae88a7d0519e
antoniogarrote/tokengame
utils.clj
(ns tokengame.utils) (defn localhost ([] (str (java.net.InetAddress/getLocalHost)))) (defn show-java-methods ([obj] (let [ms (.. obj getClass getDeclaredMethods) max (alength ms)] (loop [count 0] (when (< count max) (let [m (aget ms count) params (....
null
https://raw.githubusercontent.com/antoniogarrote/tokengame/a0c04f1609eb3950b5a8e3630036c5005f3baece/src/tokengame/utils.clj
clojure
(ns tokengame.utils) (defn localhost ([] (str (java.net.InetAddress/getLocalHost)))) (defn show-java-methods ([obj] (let [ms (.. obj getClass getDeclaredMethods) max (alength ms)] (loop [count 0] (when (< count max) (let [m (aget ms count) params (....
9180c9a0e0367fab046ee055deb8885aff1171237917eb178484d10bd034e4f7
m4b/bin2json
B2J_Config.ml
type t = { minify: bool; include_coverage: bool; include_base64: bool; install_name: string; only: bool; name: string; }
null
https://raw.githubusercontent.com/m4b/bin2json/9aeeef017a4446cfc134e593aca76e8ac573b7f7/lib/json/B2J_Config.ml
ocaml
type t = { minify: bool; include_coverage: bool; include_base64: bool; install_name: string; only: bool; name: string; }
453cbb1e8e8eb507721f05c83f877ca0ef1006129e6dd8b8327fdd1d9c02af8a
avsm/mirage-duniverse
typerep_obj.ml
(* using the hash_variant of pa_type_conv at compile time *) let repr_of_poly_variant : [> ] -> int = fun variant -> let obj = Obj.repr variant in if Obj.is_int obj then Obj.obj obj else let size = Obj.size obj in assert (size = 2); let repr = Obj.field obj 0 in (assert (Obj.is_int repr)); Obj...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/typerep/lib/typerep_obj.ml
ocaml
using the hash_variant of pa_type_conv at compile time a few unit tests of cases that have triggered diffs in the past of this lib
let repr_of_poly_variant : [> ] -> int = fun variant -> let obj = Obj.repr variant in if Obj.is_int obj then Obj.obj obj else let size = Obj.size obj in assert (size = 2); let repr = Obj.field obj 0 in (assert (Obj.is_int repr)); Obj.obj repr let hash_variant s = let accu = ref 0 in for i...
4c2f78602aa22df2d551406be7c5878497dc5b3d9917df0f394197f931cd24b5
MinaProtocol/mina
child_processes.mli
(** Management of starting, tracking, and killing child processes. *) open Core_kernel open Async open Pipe_lib (** A managed child process *) type t exception Child_died (** A pipe of the standard out of the process. *) val stdout : t -> string Strict_pipe.Reader.t (** A pipe of the standard error of the process....
null
https://raw.githubusercontent.com/MinaProtocol/mina/a1185fc7b207cfec2a652ef7f3fdc3d9b2e202ea/src/lib/child_processes/child_processes.mli
ocaml
* Management of starting, tracking, and killing child processes. * A managed child process * A pipe of the standard out of the process. * A pipe of the standard error of the process. * [None] if the process is still running, [Some] when it's exited * The name of the executable file, without any coda- prefix * Pat...
open Core_kernel open Async open Pipe_lib type t exception Child_died val stdout : t -> string Strict_pipe.Reader.t val stderr : t -> string Strict_pipe.Reader.t * Writer to process 's stdin val stdin : t -> Writer.t val pid : t -> Pid.t val termination_status : t -> Unix.Exit_or_signal.t Or_error.t option typ...
4fa20dc4d4de5400dc7d70d07f7ab79f9e56a78bc8f9c65041489044db374d69
galdor/tungsten
types.lisp
(in-package :ffi) (defun base-type-p (type-name) (member type-name '(:void :char :unsigned-char :short :unsigned-short :int :unsigned-int :long :unsigned-long :long-long :unsigned-long-long ...
null
https://raw.githubusercontent.com/galdor/tungsten/5d6e71fb89af32ab3994c5b2daf8b902a5447447/tungsten-ffi/src/ffi/types.lisp
lisp
Some types such as structures do not set the base type with
(in-package :ffi) (defun base-type-p (type-name) (member type-name '(:void :char :unsigned-char :short :unsigned-short :int :unsigned-int :long :unsigned-long :long-long :unsigned-long-long ...
870c0ba2d17ba93f50155f02c7d35697aaaaae4d8a56ff1119efc000d7475e94
fbellomi/crossclj
index.clj
(ns crossclj.index (:import (org.apache.lucene.store FSDirectory) (java.io File) (org.apache.lucene.search TopDocs IndexSearcher) (org.apache.lucene.index IndexReader) (org.apache.lucene.analysis.standard StandardAnalyzer) (org.apache.lucene.util Version)) (:re...
null
https://raw.githubusercontent.com/fbellomi/crossclj/7630270ebe9ea3df89fe3d877b2571e6eae1062b/src/crossclj/index.clj
clojure
(ns crossclj.index (:import (org.apache.lucene.store FSDirectory) (java.io File) (org.apache.lucene.search TopDocs IndexSearcher) (org.apache.lucene.index IndexReader) (org.apache.lucene.analysis.standard StandardAnalyzer) (org.apache.lucene.util Version)) (:re...
fbc7e07cf62da72ac8ea36a276f1bc3ef7ce4b9804c3e20299daa3d8833028f2
oofp/Beseder
BinaryMonitorProd.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies ...
null
https://raw.githubusercontent.com/oofp/Beseder/a0f5c5e3138938b6fa18811d646535ee6df1a4f4/src/Beseder/Resources/Monitor/Impl/BinaryMonitorProd.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE TypeSynonymInstances # # LANGUAGE RankNTypes # import qualified GHC.Show (Show (..))
# LANGUAGE FlexibleInstances # # LANGUAGE InstanceSigs # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE FunctionalDependencies ...
b1b772ea73f7a85bd234e5a28345cf3a8035c9edb6eb05975f34082c56955ccd
cj1128/sicp-review
2.21.scm
(define (square-list items) (if (null? items) '() (cons (square (car items)) (square-list (cdr items))))) (define (square-list items) (map square items))
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.2/2.21.scm
scheme
(define (square-list items) (if (null? items) '() (cons (square (car items)) (square-list (cdr items))))) (define (square-list items) (map square items))
3abc59c529e3360346db1272494a474015d29599ee6d649f548b058212e8692d
haskell/cabal
Condition.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # module Distribution.Types.Condition ( Condition(..), cNot, cAnd, cOr, simplifyCondition, ) where import Prelude () import Distribution.Compat.Prelude -- | A boolean expression parameterized over the variable type used. data Condition ...
null
https://raw.githubusercontent.com/haskell/cabal/53c5dc9f9b19d01284e2b07d43e010b732ac91a8/Cabal-syntax/src/Distribution/Types/Condition.hs
haskell
# LANGUAGE DeriveDataTypeable # | A boolean expression parameterized over the variable type used. | Boolean negation of a 'Condition' value. Terminating cases Recursing cases | Simplify the condition and return its free variables. ^ (partial) variable assignment gather free vars
# LANGUAGE DeriveGeneric # module Distribution.Types.Condition ( Condition(..), cNot, cAnd, cOr, simplifyCondition, ) where import Prelude () import Distribution.Compat.Prelude data Condition c = Var c | Lit Bool | CNot (Condition c) | COr (Condi...
600938d45d2d041d65c84ec03c1adf4dc430c0230d2ff110bd7bde358c5c47ef
cedlemo/OCaml-libmpdclient
Queue_lwt.ml
* Copyright 2017 - 2018 , * This file is part of . * * OCaml - libmpdclient 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 * any later versio...
null
https://raw.githubusercontent.com/cedlemo/OCaml-libmpdclient/49922f4fa0c1471324c613301675ffc06ff3147c/lib/Queue_lwt.ml
ocaml
* Copyright 2017 - 2018 , * This file is part of . * * OCaml - libmpdclient 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 * any later versio...
8ab349e18cafbe75eba3363bc80e31010b46814743f8b40dceacde5c0b0068af
binsec/binsec
bitset.ml
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/8ed9991d36451a3ae7487b966c4b38acca21a5b3/src/base/bitset.ml
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
59c48e3e8cb0fd9716498d4f63e66f5210dfcb41256350eed481c0a6a2f481af
wireapp/wire-server
Clients.hs
# LANGUAGE GeneralizedNewtypeDeriving # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Fou...
null
https://raw.githubusercontent.com/wireapp/wire-server/e03f7219210019ae5be50739f594dc667e669168/services/galley/src/Galley/Types/Clients.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTI...
# LANGUAGE GeneralizedNewtypeDeriving # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public Licens...
0b824e0728ed6de883937acc2115ced0659d0dc5ae412a54435f1ce07b13407a
janestreet/shell
filename_extended.ml
open Core open Filename open Poly module Unix = Core_unix (** Path *) let explode path = let rec aux = function | "" | "." -> [] | "/" -> ["/"] | path -> let dirname, basename = split path in basename :: aux dirname in List.rev (aux path) let implode = function | [] -> "." | "/"::re...
null
https://raw.githubusercontent.com/janestreet/shell/5f05077606426c900892398e77c5781831faa540/filename_extended/src/filename_extended.ml
ocaml
* Path Takes out all "../" and "./" in a path, except that if it's a relative path it may start with some "../../" stuff at the front. accumulate regular dirs or chains of ... at the beginning of a relative path * Filename comparison Extension comparison: We have a list of lists of extension tha...
open Core open Filename open Poly module Unix = Core_unix let explode path = let rec aux = function | "" | "." -> [] | "/" -> ["/"] | path -> let dirname, basename = split path in basename :: aux dirname in List.rev (aux path) let implode = function | [] -> "." | "/"::rest -> "/" ^ ...
81111a410349fb5f61c34d5f94d5c667cc8468245e2aaa80cf34b2c30082b550
pjotrp/guix
packages.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2012 , 2013 , 2014 , 2015 < > Copyright © 2013 < > Copyright © 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
null
https://raw.githubusercontent.com/pjotrp/guix/96250294012c2f1520b67f12ea80bfd6b98075a2/gnu/packages.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2012 , 2013 , 2014 , 2015 < > Copyright © 2013 < > Copyright © 2014 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu packages) #:use-mo...
d2b1904a3c2b53a899417deea27db693c46a8ffbb88ef4f4366029bdeb90a2f8
rlipscombe/topcat
topcat_make.erl
-module(topcat_make). -export([dir/1]). @todo Get compiler options from somewhere ? dir(Dir) -> Opts = [debug_info, warnings_as_errors, {outdir, Dir}] ++ get_include_opts(), Sources = [filename:join(Dir, F) || F <- filelib:wildcard("*.erl", Dir)], files(Sources, Opts). get_include_opts() -> case ini...
null
https://raw.githubusercontent.com/rlipscombe/topcat/2be8c8fdf7582ad3d83d582990b298751062bd75/src/topcat_make.erl
erlang
@doc This will return a list of {error, Errors, Warnings} tuples, if there are any errors or warnings.
-module(topcat_make). -export([dir/1]). @todo Get compiler options from somewhere ? dir(Dir) -> Opts = [debug_info, warnings_as_errors, {outdir, Dir}] ++ get_include_opts(), Sources = [filename:join(Dir, F) || F <- filelib:wildcard("*.erl", Dir)], files(Sources, Opts). get_include_opts() -> case ini...
c75db41d87a050b8db114002389c3b7102399d3a8d8bc9a2f8968845a918d26b
own-pt/cl-krr
transitive-closure.lisp
Copyright 2016 IBM Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; -2.0 ;; Unless required by applicable law or agreed to in writing, software distributed under the Licens...
null
https://raw.githubusercontent.com/own-pt/cl-krr/d21ce3c385ecb0b5b51bd2b6491a082532f9867c/development/experimental/transitive-closure.lisp
lisp
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permis...
Copyright 2016 IBM distributed under the License is distributed on an " AS IS " BASIS , (in-package #:suo-kif) (defun transitive-closure-classes (classes) "Generates the transitive closure of the subclass relation. So, if (subclass C1 C2) and (subclass C2 C3) then generate (subclass C1 C3)." (let ((f)) ...
4e594a5f30c75c9c3bd254cc04f35abcda4edf6ec7041db15571ccb34030c518
naveensundarg/prover
sparse-array.lisp
;;; -*- Mode: Lisp; Syntax: Common-Lisp; Package: snark-sparse-array -*- ;;; File: sparse-array.lisp The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;...
null
https://raw.githubusercontent.com/naveensundarg/prover/812baf098d8bf77e4d634cef4d12de94dcd1e113/snark-20120808r02/src/sparse-array.lisp
lisp
-*- Mode: Lisp; Syntax: Common-Lisp; Package: snark-sparse-array -*- File: sparse-array.lisp Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SNARK . The Initial Developer of the Original Code is SRI International . Portions created by the Initial Developer are Copyright ( C ) 1981 - 2006 . ...
ac8b023acb9d351526297160aa8a272dc4d88708b8b82162eaa261c20d3b19f6
jeffshrager/biobike
sframes.lisp
;;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: bbi; -*- (in-package :bbi) ;;; +=========================================================================+ | Copyright ( c ) 2005 JP , , , | ;;; | | ;;; | Permission is hereby grante...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/bike/sframes.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: bbi; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :bbi) | Copyright ( c ) 2005 JP , , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to | | in ...
ca50c4cb09ba5b3eddd6869bf1a656c2c4bc026ddc10d8ac38dd2818653061b4
unnohideyuki/bunny
sample329.hs
s = "[1, 2, 3, 4, 5]" xs :: [Int] xs = read s main = print $ map (*2) xs
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample329.hs
haskell
s = "[1, 2, 3, 4, 5]" xs :: [Int] xs = read s main = print $ map (*2) xs
2c3bee569d1466cb25742969883b22591fa442b5eefaa58a36e973ff28dd268a
gregtatcam/imaplet-lwt
maildir_storage.mli
* Copyright ( c ) 2013 - 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/gregtatcam/imaplet-lwt/d7b51253e79cffa97e98ab899ed833cd7cb44bb6/lib/commands/maildir_storage.mli
ocaml
* Copyright ( c ) 2013 - 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
0ef167c0012cb1be07088be602c9682da6cf77aa11c410bfd9b2a5e3e6e3f80b
mindreframer/clojure-stuff
netty.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by...
null
https://raw.githubusercontent.com/mindreframer/clojure-stuff/1e761b2dacbbfbeec6f20530f136767e788e0fe3/github.com/ztellman/aleph/src/aleph/netty.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns aleph.netty (:use [potemkin]) (:require [aleph.netty.udp :as udp] [aleph.netty.core :as core] [aleph.netty.server :as server] [aleph.netty.client :as client])) (import-fn core/channel-remote-host-address) (import-fn core/channel-local-host-name...
7b02fa75b618452d25c5d60c1d23ea9d3092e61d9bfb319ead0735db150437ef
oriansj/mes-m2
info.scm
GNU --- Maxwell Equations of Software Copyright © 2018,2020 Jan ( janneke ) Nieuwenhuizen < > Copyright © 2019 < > ;;; This file is part of GNU . ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software F...
null
https://raw.githubusercontent.com/oriansj/mes-m2/b44fbc976ae334252de4eb82a57c361a195f2194/module/mescc/armv4/info.scm
scheme
you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Commentary: Code:
GNU --- Maxwell Equations of Software Copyright © 2018,2020 Jan ( janneke ) Nieuwenhuizen < > Copyright © 2019 < > This file is part of GNU . under the terms of the GNU General Public License as published by GNU is distributed in the hope that it will be useful , but You should have received a copy...
44ad1d3c14efd6af2ff0a01e4bc72987e28bedcea0d77a0d10af7220edf17594
devonzuegel/smallworld
user_data.cljs
(ns smallworld.user-data (:require [reagent.core :as r] [clojure.pprint :as pp] [clojure.string :as str] [smallworld.util :as util] [smallworld.mapbox :as mapbox] [smallworld.session :as session] [smallworld.decorations :as decorations])) (def...
null
https://raw.githubusercontent.com/devonzuegel/smallworld/458500f31b201d8be939136cb23279107597c7f3/src/smallworld/user_data.cljs
clojure
TODO: on click center map on their face TODO: the logic in this needs some serious cleanup; probably requires refactoring the data model too not all friends will have both LOCATION and DISPLAY NAME LOCATION set, so filter those out TODO: add Scheme to encode this more nicely
(ns smallworld.user-data (:require [reagent.core :as r] [clojure.pprint :as pp] [clojure.string :as str] [smallworld.util :as util] [smallworld.mapbox :as mapbox] [smallworld.session :as session] [smallworld.decorations :as decorations])) (def...
5275a55f3a8af14b1ff9c3da14b3144801c3a2d4401faaf44e3e42536d956aa4
anuragsoni/shuttle
bytebuffer.ml
open! Core = Bytebuffer is split into three regions using two separate indices that are used to support read and write operations . + --------------------+---------------------------+----------------------------+ | Consumed Bytes | Bytes available to read | Empty space for writing | ...
null
https://raw.githubusercontent.com/anuragsoni/shuttle/4b6b477cc9cc811ad717e9ac663b4c4e7346f4b6/http11/src/bytebuffer.ml
ocaml
open! Core = Bytebuffer is split into three regions using two separate indices that are used to support read and write operations . + --------------------+---------------------------+----------------------------+ | Consumed Bytes | Bytes available to read | Empty space for writing | ...
27edd8a3ec5d4a3130731187330ea9cda1f663ec436f7b11ca649c2728e9d663
alvatar/spheres
vmodif.scm
(include "../../sxml-tools/tests/xtest-harness.sch") Validation tests for SXML modification tool : " modif.scm " ; ; Please send bug reports and comments to: ; Dmitry Lizorkin (define vmdf:tree1 '(html (head (title "Slides")) (body (p (@ (align "center")) (table ...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/test/sxml/vmodif.scm
scheme
Please send bug reports and comments to: Dmitry Lizorkin ========================================================================= Basic functionality of a modification tool Expected result: <--- of: Expected result: <--- of: Expected result: <--- of: Expected result: <--- of: Expected result: <--- ...
(include "../../sxml-tools/tests/xtest-harness.sch") Validation tests for SXML modification tool : " modif.scm " (define vmdf:tree1 '(html (head (title "Slides")) (body (p (@ (align "center")) (table (@ (style "font-size: x-large")) (tr (td (@ (align "r...
d5847e7e9bff2a60307f8a22332f1b1824241792a0559f38c72b4a06ea8faf77
Clozure/ccl
htext2.lisp
-*- Log : hemlock.log ; Package : Hemlock - Internals -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; #+CMU (ext:file-comment "$Header$")...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/hemlock/src/htext2.lisp
lisp
Package : Hemlock - Internals -*- ********************************************************************** ********************************************************************** More Hemlock Text-Manipulation functions. The code in this file implements the non-insert/delete functions in the character to or f...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . #+CMU (ext:file-comment "$Header$") Written by . " Doing Stuff and Going Places " chapter of the Hemlock Design document . (in-package :hemlock-internals) (def...
a65c5c573914719bf1f9cac5b1c266ac26b067bb0003e70f5091165cd5e6f606
hiratara/Haskell-Nyumon-Sample
chap05-samples-5-7.hs
module Main(main) where points :: [(Integer, Integer)] points = do x <- [1..3] y <- [1..3] return (x, y) main :: IO () main = print points
null
https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap05-samples/chap05-samples-5-7.hs
haskell
module Main(main) where points :: [(Integer, Integer)] points = do x <- [1..3] y <- [1..3] return (x, y) main :: IO () main = print points
cb09bab79d9a09cb1ca1f8c670b2028943f3b95a449032848ed42e76c3de9faa
pfdietz/ansi-test
restart-bind.lsp
;-*- Mode: Lisp -*- Author : Created : Fri Mar 21 22:28:53 2003 ;;;; Contains: Tests for RESTART-BIND (deftest restart-bind.1 (restart-bind () nil) nil) (deftest restart-bind.2 (restart-bind () (values))) (deftest restart-bind.3 (restart-bind () (values 'a 'b 'c 'd 'e 'f)) a b c d e f) (d...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/conditions/restart-bind.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for RESTART-BIND Using the :test-function to associate a restart with a condition This test is disabled until I figure out how to fix (deftest restart-bind.20 (let ((c (make-condition 'error))) (restart-bind ((foo #'(lambda () 'bad) :test-function #'(lamb...
Author : Created : Fri Mar 21 22:28:53 2003 (deftest restart-bind.1 (restart-bind () nil) nil) (deftest restart-bind.2 (restart-bind () (values))) (deftest restart-bind.3 (restart-bind () (values 'a 'b 'c 'd 'e 'f)) a b c d e f) (deftest restart-bind.4 (block nil (restart-bind () (retur...
7ee16a42a4b3be41bba69dd3ccc1300d5a7b911f9db06aa033301ce92b6a68ee
basvandijk/concurrent-extra
ReadWriteVar.hs
# LANGUAGE CPP , DeriveDataTypeable , NoImplicitPrelude , TupleSections # , DeriveDataTypeable , NoImplicitPrelude , TupleSections #-} #if __GLASGOW_HASKELL__ >= 704 {-# LANGUAGE Safe #-} #endif ---------------------------------------------...
null
https://raw.githubusercontent.com/basvandijk/concurrent-extra/52470da10fa8efe8ae603098b95b28ab901641d0/Control/Concurrent/ReadWriteVar.hs
haskell
# LANGUAGE Safe # ----------------------------------------------------------------------------- | Module : Control.Concurrent.ReadWriteVar License : BSD3 (see the file LICENSE) Concurrent read, sequential write variables. Comparable to an 'IORef' with can be read and used by multiple threads at the same ti...
# LANGUAGE CPP , DeriveDataTypeable , NoImplicitPrelude , TupleSections # , DeriveDataTypeable , NoImplicitPrelude , TupleSections #-} #if __GLASGOW_HASKELL__ >= 704 #endif Copyright : 2010—2011 Maintainer : < > ...
3d8255b2c0282480590980b13b19ed30fb0edaaff8d633bd926d65314e972446
ChillkroeteTTS/fischer
anomaly_detection_test.clj
(ns fischer.anomaly-detection-test (:require [clojure.test :refer :all] [fischer.core :refer :all] [fischer.anomaly-detection :as ad] [clojure.core.matrix :as mat] [fischer.utils :as utils] [incanter.stats :as stats])) (defn close? [tolerance x y] (< (- x...
null
https://raw.githubusercontent.com/ChillkroeteTTS/fischer/2f479ac0d410f536f5bd89659d7f69113422784a/test/clj/fischer/anomaly_detection_test.clj
clojure
(ns fischer.anomaly-detection-test (:require [clojure.test :refer :all] [fischer.core :refer :all] [fischer.anomaly-detection :as ad] [clojure.core.matrix :as mat] [fischer.utils :as utils] [incanter.stats :as stats])) (defn close? [tolerance x y] (< (- x...
13c1c57ddc1bb519086825511646516c60a61dfcbaaea1177b90aeab1ed8d51c
zotonic/zotonic
mod_contact.erl
@author < > 2010 Date : 2010 - 07 - 20 %% @doc Simple contact form. Copyright 2010 %% 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 requir...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_contact/src/mod_contact.erl
erlang
@doc Simple contact form. 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 speci...
@author < > 2010 Date : 2010 - 07 - 20 Copyright 2010 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(mod_contact). -author("Marc Worrell <>"). -mod_title("Contact Form"). -mod_description("Simple c...
5260dcbabb212072579bc607961dfcf1bec2ed9f6d11882c9ea17739407622b6
overtone/overtone
connection.clj
(ns overtone.sc.machinery.server.connection (:import [java.io BufferedInputStream File]) (:require [clojure.java.shell :as shell] [overtone.config.log :as log] [overtone.config.store :as config] [overtone.libs.deps :as deps] [overtone.libs.event :as event] ...
null
https://raw.githubusercontent.com/overtone/overtone/02f8cdd2817bf810ff390b6f91d3e84d61afcc85/src/overtone/sc/machinery/server/connection.clj
clojure
turn on notifications now that we can communicate Send /status in a loop until we get a reply TODO: setup an error-handler in the case that we can't connect to the server => connect to an external server on => connect to an external server on => connect to an external server with uses the default settings defined i...
(ns overtone.sc.machinery.server.connection (:import [java.io BufferedInputStream File]) (:require [clojure.java.shell :as shell] [overtone.config.log :as log] [overtone.config.store :as config] [overtone.libs.deps :as deps] [overtone.libs.event :as event] ...
d4aec22e3ec8289026d3e2d9172922c83b5cb6b91a81226a244799c7da05ab98
robert-stuttaford/bridge
data.clj
(ns bridge.event.data (:require [bridge.data.datomic :as datomic] [bridge.data.slug :as slug] [clojure.spec.alpha :as s]) (:import java.util.UUID)) (require 'bridge.event.spec) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Queries (defn event...
null
https://raw.githubusercontent.com/robert-stuttaford/bridge/867d81354457c600cc5c25917de267a8e267c853/src/bridge/event/data.clj
clojure
Transactions
(ns bridge.event.data (:require [bridge.data.datomic :as datomic] [bridge.data.slug :as slug] [clojure.spec.alpha :as s]) (:import java.util.UUID)) (require 'bridge.event.spec) Queries (defn event-id-by-slug [db slug] (datomic/entid db [:event/slug slug])) (defn person-is-organiser? ...
c2def4648c84fc7c02cafabfab38b2b3e8ad33fabfc9280546237e6804f7da67
esl/MongooseIM
mongoose_log_filter.erl
-module(mongoose_log_filter). -export([fill_metadata_filter/2]). -export([format_c2s_state_filter/2]). -export([format_acc_filter/2]). -export([format_packet_filter/2]). -export([format_stacktrace_filter/2]). -export([format_term_filter/2]). -export([preserve_acc_filter/2]). -export([remove_fields_filter/2]). -export([...
null
https://raw.githubusercontent.com/esl/MongooseIM/eb1762fde065fe073fd45773428fd0d43a2bdd21/src/logger/mongoose_log_filter.erl
erlang
So, we would need a filter, that takes the interesting fields from msg to metadata. Remove the fields to not print them twice C2S fields have lower priority, if the field is already present in msg. Encodes exml_packet module unknown, drop
-module(mongoose_log_filter). -export([fill_metadata_filter/2]). -export([format_c2s_state_filter/2]). -export([format_acc_filter/2]). -export([format_packet_filter/2]). -export([format_stacktrace_filter/2]). -export([format_term_filter/2]). -export([preserve_acc_filter/2]). -export([remove_fields_filter/2]). -export([...