_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
68a07a936c0a77a864268ef63bea9784f25162a60afa0ffbd2ff2501b80122d5
marick/fp-oo
ts_message_class_continued.clj
(ns solutions.ts-message-class-continued (:use midje.sweet)) (load-file "sources/consolidation.clj") ;;; You should replace this file with your own. (load-file "solutions/message-class.clj") (load-file "sources/message-class-exercises.clj") ;; These are the tests for code up to the last ;; exercise set. They s...
null
https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/test/solutions/ts_message_class_continued.clj
clojure
You should replace this file with your own. These are the tests for code up to the last exercise set. They should still pass. Additional tests.
(ns solutions.ts-message-class-continued (:use midje.sweet)) (load-file "sources/consolidation.clj") (load-file "solutions/message-class.clj") (load-file "sources/message-class-exercises.clj") (load-file "test/solutions/ruby-complete.clj") (fact (let [snooper (send-to Snooper :new)] (send-to snooper :s...
67fe5b2e6aba567c26684fd1aea6eaf0299c1c81dc0b2d7920b125419e35a012
RuiL1904/Block-Knight-LI1
SaveGame.hs
# LANGUAGE DeriveGeneric , DeriveAnyClass # module SaveGame where import LI12122 import Tarefa3_2021li1g033 import Niveis import GHC.Generics import Control.DeepSeq import System.IO import qualified System.IO.Strict as SIO data JogoGuardado = JogoGuardado Mapa Jogador Int deriving (S...
null
https://raw.githubusercontent.com/RuiL1904/Block-Knight-LI1/84330a7691b407189771e53a4cd543fdb592bc2b/src/SaveGame.hs
haskell
# LANGUAGE DeriveGeneric , DeriveAnyClass # module SaveGame where import LI12122 import Tarefa3_2021li1g033 import Niveis import GHC.Generics import Control.DeepSeq import System.IO import qualified System.IO.Strict as SIO data JogoGuardado = JogoGuardado Mapa Jogador Int deriving (S...
40974fd5229abd835b43c92216ae8e2b6eb1f6b4abdfc09a87e8c94abc9c713a
orbitz/scow
scow_log_memory.ml
open Core.Std open Async.Std module type ELT = sig type t val compare : t -> t -> int end module Make = functor (Elt : ELT) -> struct type elt = Elt.t module Log_map = Map.Make( struct type t = Scow_log_index.t let compare = Scow_log_index.compare let t_of_sexp _ = failwith...
null
https://raw.githubusercontent.com/orbitz/scow/feb633ef94824f44f0ffc679a548f97288c8ae48/lib/scow/scow_log_memory.ml
ocaml
open Core.Std open Async.Std module type ELT = sig type t val compare : t -> t -> int end module Make = functor (Elt : ELT) -> struct type elt = Elt.t module Log_map = Map.Make( struct type t = Scow_log_index.t let compare = Scow_log_index.compare let t_of_sexp _ = failwith...
4e1444cc5671f6bc82353adc1fbf5eb6e8a777567b04c91026f0884857ff8260
erlang-ls/erlang_ls
erlang_ls.erl
-module(erlang_ls). -export([main/1]). -export([ parse_args/1, log_root/0, cache_root/0 ]). %%============================================================================== %% Includes %%============================================================================== -include_lib("kernel/include/logger.hrl...
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/de41fd1f998e6db425fa61ba17e6fe5ae3c17c56/apps/els_lsp/src/erlang_ls.erl
erlang
============================================================================== Includes ============================================================================== ============================================================================== Argument parsing =======================================================...
-module(erlang_ls). -export([main/1]). -export([ parse_args/1, log_root/0, cache_root/0 ]). -include_lib("kernel/include/logger.hrl"). -include_lib("els_lsp/include/els_lsp.hrl"). -define(DEFAULT_LOGGING_LEVEL, "info"). -define(LOG_MAX_NO_BYTES, 10 * 1000 * 1000). -define(LOG_MAX_NO_FILES, 5). -spec ma...
c9b027b783fc1f04147ad3dcd3f6d2a9de8339ebc5727e7554d4c7600e87bc41
tommaisey/aeon
seq-eval.scm
(library (seq-eval) (export eval-seq eval-seq-empty seq-meta-ranged seq-subdivider? seq-meta-field seq-meta-rng-max seq-meta-rng-min) (import (scheme) (utilities) (matchable) (arc) (event) (context)) ;;-------------------------------------------------------------- ;; Get a value fr...
null
https://raw.githubusercontent.com/tommaisey/aeon/12e8ff92bd5efed2923aecf974fa12d39835abc6/libs/seq-eval.scm
scheme
-------------------------------------------------------------- Get a value from a seq. The source seq might be a plain value, a naked contextual function or a 'decorated' seq-meta object. If we eval a seq in order to add a new event, the context will look wrong - the event doesn't yet exist, but some functions relt...
(library (seq-eval) (export eval-seq eval-seq-empty seq-meta-ranged seq-subdivider? seq-meta-field seq-meta-rng-max seq-meta-rng-min) (import (scheme) (utilities) (matchable) (arc) (event) (context)) (define (eval-seq seq context) (cond [(procedure? seq) (eval-seq (seq cont...
5c08b2ebbc258535d1976ccd4da18495b3d4aa2616d4a305b56ef89f894327e1
zyrolasting/polyglot
projects.rkt
#lang racket/base (require racket/contract) (provide (contract-out [polyglot-project% (class/c [asset-path? (->m path? boolean?)] [get-workflow-class (->*m () ((-> any) #:live? boolean?) class?)] (field [directory useable-polyglot-di...
null
https://raw.githubusercontent.com/zyrolasting/polyglot/d27ca7fe90fd4ba2a6c5bcd921fce89e72d2c408/polyglot-lib/polyglot/projects.rkt
racket
Named to protect against typos. ----------------- The rcfile doesn't have to exist, but if it does, it must be readable.
#lang racket/base (require racket/contract) (provide (contract-out [polyglot-project% (class/c [asset-path? (->m path? boolean?)] [get-workflow-class (->*m () ((-> any) #:live? boolean?) class?)] (field [directory useable-polyglot-di...
594af44ae77931aecb77c84aaf48e6bbb4182e2cfcaaf583890966716193afab
ocaml/ocaml-lsp
channel_tests.ml
module Channel = Lev_fiber_util.Channel let%expect_test "send/recv 0, 1 in concurrent threads; then close the channel" = let ch = Channel.create () in let th0 = Thread.create (fun () -> for _ = 0 to 1 do match Channel.get ch with | Ok i -> Printf.printf "%d\n" i | Er...
null
https://raw.githubusercontent.com/ocaml/ocaml-lsp/13ca928754cd8730f44382848e0437b3b6768a73/submodules/lev/lev-fiber/test/util/channel_tests.ml
ocaml
module Channel = Lev_fiber_util.Channel let%expect_test "send/recv 0, 1 in concurrent threads; then close the channel" = let ch = Channel.create () in let th0 = Thread.create (fun () -> for _ = 0 to 1 do match Channel.get ch with | Ok i -> Printf.printf "%d\n" i | Er...
5da3ef3928d6b88020d7608cd29e4804f8fc3d916c9ac562c7eba48c1d7b8d81
kitlangton/eulerplate
Fetcher.hs
{-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE StrictData # module Eulerplate.Fetcher ( getChallenge ) where import Codec.Archive.Zip import Control.Lens ( (^.) ) import Control.Monad.Managed import qualified Data.ByteString...
null
https://raw.githubusercontent.com/kitlangton/eulerplate/ac6c0c14a0190a570cb88b3ad4e711c98782f7b8/src/Eulerplate/Fetcher.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData # module Eulerplate.Fetcher ( getChallenge ) where import Codec.Archive.Zip import Control.Lens ( (^.) ) import Control.Monad.Managed import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as...
32ad633ea13722775446fc4bcf54a29a207918e199b74e24af2bd0a0c160da94
fetburner/Coq2SML
ccproof.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/plugins/cc/ccproof.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 **********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Ccalgo open Names open T...
980d615cf7231c9e236e6c1f4a878e33444ad7561b0a8e9c811b73e4784a5a4f
haskell-hvr/missingh
GZip.hs
{-# LANGUAGE Safe #-} # OPTIONS_GHC -fno - warn - name - shadowing # arch - tag : file support in Haskell Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and copy...
null
https://raw.githubusercontent.com/haskell-hvr/missingh/e1a73bd9547db967b4e8d76a443000d06ce95ac4/src/System/FileArchive/GZip.hs
haskell
# LANGUAGE Safe # $gzipfiles * Types * Whole-File Processing * Section Processing ^ CRC-32 check failed ^ Other problem arose | Flags ^ Modification time of the original file ^ Extra flags ^ Creating operating system | Stored on-disk at the end of each section. ^ The size of the original, decompressed data...
# OPTIONS_GHC -fno - warn - name - shadowing # arch - tag : file support in Haskell Copyright ( c ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (c) 2004-2011 John Goerzen <> All rights reserved. For license and copyright information, see...
66b6ea1ab76abd4dc2571aa39ad08952af3852554001b951f5a1c6af6c14dca1
softwarelanguageslab/maf
R5RS_scp1_fireworks-1.scm
; Changes: * removed : 0 * added : 0 * swaps : 0 * negated predicates : 3 ; * swapped branches: 0 ; * calls to id fun: 0 (letrec ((atom? (lambda (x) (not (pair? x)))) (mijn-vuurwerk (__toplevel_cons 'groen (__toplevel_cons ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_scp1_fireworks-1.scm
scheme
Changes: * swapped branches: 0 * calls to id fun: 0
* removed : 0 * added : 0 * swaps : 0 * negated predicates : 3 (letrec ((atom? (lambda (x) (not (pair? x)))) (mijn-vuurwerk (__toplevel_cons 'groen (__toplevel_cons (__toplevel_cons ...
484135d38f3544b3e70568cb91028b2488c24a986414965283f9a718e2d027b8
godotclj/godotclj
gen_directives.clj
(ns godotclj.gen-directives (:require godotclj.insn) (:import [org.graalvm.nativeimage.c CContext$Directives])) ;; NOTE: Generates class implementing interface which has default methods, because gen-class does not allow the use default methods (godotclj.insn/write-class {:name 'godotclj.context$Directives ...
null
https://raw.githubusercontent.com/godotclj/godotclj/23e9c62e7083f7be9aff8bb205d2a270dd5b5e39/src/clojure/godotclj/gen_directives.clj
clojure
NOTE: Generates class implementing interface which has default methods, because gen-class does not allow the use default methods
(ns godotclj.gen-directives (:require godotclj.insn) (:import [org.graalvm.nativeimage.c CContext$Directives])) (godotclj.insn/write-class {:name 'godotclj.context$Directives :flags #{:public} :interfaces [CContext$Directives]})
22a80dade5929161cf591e45973b003f6148e1d7f46f63608e61d4b718fe3895
jeapostrophe/mongodb
main.rkt
#lang racket/base (require "format.rkt" "driver.rkt") (provide (all-from-out "format.rkt" "driver.rkt"))
null
https://raw.githubusercontent.com/jeapostrophe/mongodb/4fbeb1a577ff9a1b8274045a5741d6670d555ac7/db/mongodb/wire/main.rkt
racket
#lang racket/base (require "format.rkt" "driver.rkt") (provide (all-from-out "format.rkt" "driver.rkt"))
65f4f2696b24ab714594e97acbd587ca527c78a3ab7b5821ebab48fbb6ece3f2
informatimago/commands
cookie-loop.lisp
-*- mode : lisp ; coding : utf-8 -*- (defparameter *escape* (code-char 27)) (defparameter *normal* (format nil "~C[0m" *escape*)) (defparameter *clear* (format nil "~Cc" *escape*)) (defparameter *colors* (loop for i from 31 to 37 collect (format nil "~C[~Am" *escape* i))) (defparameter *key* (for...
null
https://raw.githubusercontent.com/informatimago/commands/65d0d6385269f3e210aed4943aefdbb5372706b9/sources/commands/cookie-loop.lisp
lisp
coding : utf-8 -*- THE END ;;;;
(defparameter *escape* (code-char 27)) (defparameter *normal* (format nil "~C[0m" *escape*)) (defparameter *clear* (format nil "~Cc" *escape*)) (defparameter *colors* (loop for i from 31 to 37 collect (format nil "~C[~Am" *escape* i))) (defparameter *key* (format nil "~C[30;46m" *escape*)) (defpara...
64889b2412d2ec116d354063c9af9c1123cfbd33980ff7c0a0896e601d3860cd
txyyss/Project-Euler
Euler062.hs
The cube , 41063625 ( 345 ^ 3 ) , can be permuted to produce two other cubes : 56623104 ( 384 ^ 3 ) and 66430125 ( 405 ^ 3 ) . In fact , 41063625 is the smallest cube which has exactly three permutations of its -- digits which are also cube. Find the smallest cube for which exactly five permutations of its -- ...
null
https://raw.githubusercontent.com/txyyss/Project-Euler/d2f41dad429013868445c1c9c1c270b951550ee9/Euler062.hs
haskell
digits which are also cube. digits are cube.
The cube , 41063625 ( 345 ^ 3 ) , can be permuted to produce two other cubes : 56623104 ( 384 ^ 3 ) and 66430125 ( 405 ^ 3 ) . In fact , 41063625 is the smallest cube which has exactly three permutations of its Find the smallest cube for which exactly five permutations of its module Euler062 where import qua...
47dd88d26127bbe70601931716c699f9ee1307ed5c50d27b681aa15d75936a0f
sadiqj/ocaml-esp32
Module_whitespace.ml
module M = Set.Make(struct type t = int let compare = compare end)
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/testsuite/tests/tool-ocamldoc-html/Module_whitespace.ml
ocaml
module M = Set.Make(struct type t = int let compare = compare end)
29d4c2776cd0c2a0b66939a1d33f9e6385f3f660089026d53d9baa92c5fb605f
unclebob/ubc-website
articles.clj
(ns ubc-website.presenters.articles (:require [ubc-website.presenters.util :refer [markdown]] [clj-time.format :as t-fmt])) (def article-date-presenter (t-fmt/formatter "d MMM, yyyy")) (defn present-article-date [date] (t-fmt/unparse article-date-presenter (t-fmt/parse date))) (defn present-article [arti...
null
https://raw.githubusercontent.com/unclebob/ubc-website/c1298df6db0759d77cc8bd4a1bad2de62de1cfcd/src/ubc_website/presenters/articles.clj
clojure
(ns ubc-website.presenters.articles (:require [ubc-website.presenters.util :refer [markdown]] [clj-time.format :as t-fmt])) (def article-date-presenter (t-fmt/formatter "d MMM, yyyy")) (defn present-article-date [date] (t-fmt/unparse article-date-presenter (t-fmt/parse date))) (defn present-article [arti...
94775786021bc75c8297811582049d8ce5d473cb523b4523132adaebbd82ffe1
philnguyen/soft-contract
last.rkt
#lang racket (require soft-contract/fake-contract) (define (Y f) (λ (y) (((λ (x) (f (λ (z) ((x x) z)))) (λ (x) (f (λ (z) ((x x) z))))) y))) (define (last l) ((Y (λ (f) (λ (x) (if (empty? (cdr x)) (car x) (f (cdr x)))))) l)) (provide/contract [last ((cons/c any/c (listof any/c...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/softy/last.rkt
racket
#lang racket (require soft-contract/fake-contract) (define (Y f) (λ (y) (((λ (x) (f (λ (z) ((x x) z)))) (λ (x) (f (λ (z) ((x x) z))))) y))) (define (last l) ((Y (λ (f) (λ (x) (if (empty? (cdr x)) (car x) (f (cdr x)))))) l)) (provide/contract [last ((cons/c any/c (listof any/c...
e7db07606c57cc1e69d40b45b8ab81d06b45f10a11ca1e5b43c8d12fb4e83e26
ghc/packages-dph
Solver.hs
-- | Wrappers for the various solvers. module Solver ( Solver , solvers) where import Common.Body import qualified Solver.ListBH.Solver as SolverLB import qualified Data.Vector.Unboxed as V import qualified Solver.VectorBH.Solver as SolverVB import qualified Solver.VectorNaive.Solver as SolverVN import qualifi...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-examples/examples/real/NBody/Solver.hs
haskell
| Wrappers for the various solvers. | Vector + Naive algorithm. bounds finding isn't vectorised yet.
module Solver ( Solver , solvers) where import Common.Body import qualified Solver.ListBH.Solver as SolverLB import qualified Data.Vector.Unboxed as V import qualified Solver.VectorBH.Solver as SolverVB import qualified Solver.VectorNaive.Solver as SolverVN import qualified Data.Array.Parallel as P import qual...
e70fecd74cfb0ce3d9f87e2d266747700de893f3f68df9d6e9aa743c4abf937a
protosens/monorepo.cljc
namespace.clj
(ns protosens.test.namespace (:require [clojure.string :as string] [clojure.test :as T] [protosens.namespace :as $.namespace])) ;;;;;;;;;; Tests (T/deftest from-filename (let [filename "foo/bar.clj" test (fn [sym] (T/is (= 'foo.bar ...
null
https://raw.githubusercontent.com/protosens/monorepo.cljc/1c7cc00cbfb7c7484521146bf998438d2867552f/module/namespace/src/test/clj/protosens/test/namespace.clj
clojure
Tests See [[-in-path]]. Reused for [[in-path]] and [[in-path+]].
(ns protosens.test.namespace (:require [clojure.string :as string] [clojure.test :as T] [protosens.namespace :as $.namespace])) (T/deftest from-filename (let [filename "foo/bar.clj" test (fn [sym] (T/is (= 'foo.bar ...
4327bd6ddb149c0bb6e696894c33486f71ca27c4672495549172b19451232f7c
ghcjs/ghcjs-dom
MediaStreamTrack.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.MediaStreamTrack (js_clone, clone, clone_, js_stop, stop, js_getCapabilities, g...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/MediaStreamTrack.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/MediaStreamTrack.getConstraints Mozilla MediaStreamTrack.getConstraints documentation> | <-US/docs/Web/API/MediaStreamTrack.getConstraints Mozilla MediaStreamTrack.getConstraints documentation> | <-US/d...
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.MediaStreamTrack (js_clone, clone, clone_, js_stop, stop, js_getCapabilities, getCapabilities, getCapabilities_, js_getConstraints, getConstraints, getConstraints_, js_ge...
c3aa67c267c655e399cab791a025c39451ef9c3b3af45c9748913add0e9c5990
UnixJunkie/oranger
gnuplot.ml
open Printf module L = BatList module LO = Line_oriented module Stats = Cpm.RegrStats module Utls = Oranger.Utls prevent gnuplot from interpreting underscores like LaTeX let protect_underscores title = BatString.nreplace ~str:title ~sub:"_" ~by:"\\_" let regr_plot title actual preds stdevs = let x_min, x_max ...
null
https://raw.githubusercontent.com/UnixJunkie/oranger/e1fa3143198a4fbfa4051fb5255637e3dd4a1ca4/src/gnuplot.ml
ocaml
open Printf module L = BatList module LO = Line_oriented module Stats = Cpm.RegrStats module Utls = Oranger.Utls prevent gnuplot from interpreting underscores like LaTeX let protect_underscores title = BatString.nreplace ~str:title ~sub:"_" ~by:"\\_" let regr_plot title actual preds stdevs = let x_min, x_max ...
d8ddfec2e23edf8603b57669dd225a4d110b78c21d5d5d715e2ac7790be78e91
obohrer/octia
wrappers_test.clj
(ns octia.wrappers-test (:require [midje.sweet :refer :all] [octia.wrappers :refer :all] [ring.mock.request :as ring] [octia.core :refer [POST group]] [cheshire.core :as cheshire] [compojure.handler :as handler] [clojure.test :refer [deftest]])) ...
null
https://raw.githubusercontent.com/obohrer/octia/9e0ee78350c5defcf1a2c141e100ea38bf4312e0/test/octia/wrappers_test.clj
clojure
(ns octia.wrappers-test (:require [midje.sweet :refer :all] [octia.wrappers :refer :all] [ring.mock.request :as ring] [octia.core :refer [POST group]] [cheshire.core :as cheshire] [compojure.handler :as handler] [clojure.test :refer [deftest]])) ...
d546cb653266e74260fe01b0e56de63d267b912d8e5ae3042b18dd4b09ee93c4
rtoy/ansi-cl-tests
bit-nor.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Jan 26 19:20:40 2003 ;;;; Contains: Tests for BIT-NOR (in-package :cl-test) (compile-and-load "bit-aux.lsp") (deftest bit-nor.1 (let* ((s1 (make-array nil :initial-element 0 :element-type 'bit)) (s2 (make-array nil :initial-element 0 :element-type ...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/bit-nor.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for BIT-NOR Tests on bit vectors Tests on bit arrays Adjustable arrays Displaced arrays Random tests Error tests
Author : Created : Sun Jan 26 19:20:40 2003 (in-package :cl-test) (compile-and-load "bit-aux.lsp") (deftest bit-nor.1 (let* ((s1 (make-array nil :initial-element 0 :element-type 'bit)) (s2 (make-array nil :initial-element 0 :element-type 'bit))) (values (bit-nor s1 s2) s1 s2)) #0a1 #0a0...
77efead41160f0116280b8ad4e5e6d45be3d49daa80d844787dc04018f6dfd6f
lein-junit/lein-junit
core.clj
(ns lein-junit.core (:refer-clojure :exclude [replace]) (:require [lein-junit.task-args :refer [parse-task-args]] [clojure.java.io :refer [file]] [clojure.string :refer [join replace]] [lancet.core :as lancet] [leiningen.core.classpath :refer [get-classpath]] ...
null
https://raw.githubusercontent.com/lein-junit/lein-junit/464d47d3f66b8a0c0d3147ca0a50a2717077dc37/src/lein_junit/core.clj
clojure
(ns lein-junit.core (:refer-clojure :exclude [replace]) (:require [lein-junit.task-args :refer [parse-task-args]] [clojure.java.io :refer [file]] [clojure.string :refer [join replace]] [lancet.core :as lancet] [leiningen.core.classpath :refer [get-classpath]] ...
9337672e451165141167a72674a0114578ea3c5d2214756cd0511095a6417153
ditto/ditto
Surf.hs
module Ditto.Surf where import Ditto.Syntax import Ditto.Monad import Ditto.Sub import Ditto.Expand import Data.Maybe ---------------------------------------------------------------------- surfs :: Env -> TCM Prog surfs env = map Left <$> (surfs' env) surfs' :: Env -> TCM [Stmt] surfs' [] = return [] surfs' (CData _...
null
https://raw.githubusercontent.com/ditto/ditto/f0d35271950216308f3f9bbcf701b176ece5ccd9/src/Ditto/Surf.hs
haskell
-------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- -------------------------------------------------------------------- --------------------------------------------...
module Ditto.Surf where import Ditto.Syntax import Ditto.Monad import Ditto.Sub import Ditto.Expand import Data.Maybe surfs :: Env -> TCM Prog surfs env = map Left <$> (surfs' env) surfs' :: Env -> TCM [Stmt] surfs' [] = return [] surfs' (CData _X:env) = do _Is <- lookupForm _X cs <- lookupCons _X cs <- mapM (...
e3313c02c8f3f491e14ff202940a6e8f13489a88b0055a940d99701a92985aa8
evdubs/zacks-estimates-financial-statements
cash-flow-statement-transform-load.rkt
#lang racket/base (require db gregor gregor/period html-parsing racket/cmdline racket/list racket/sequence racket/string sxml threading) (define (cash-flow-statement-figure xexp #:section section #:date date #:entry entry) (let*-values...
null
https://raw.githubusercontent.com/evdubs/zacks-estimates-financial-statements/5c2519440a42821a725cd4086b4bb377ad2b5872/cash-flow-statement-transform-load.rkt
racket
(define in-xexp (html->xexp in-file)) we assume that if we have an updated value that is very close to our extract date that the whole set of data is bad.
#lang racket/base (require db gregor gregor/period html-parsing racket/cmdline racket/list racket/sequence racket/string sxml threading) (define (cash-flow-statement-figure xexp #:section section #:date date #:entry entry) (let*-values...
d755c80d22f0a48df7c8cfed65d672f26feeebb04aedc3093e7b7f08e5f009a1
janegca/htdp2e
Exercise-247-UsingFiltersWithLambdas.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-247-UsingFiltersWithLambdas) (read-case-sensitive #t) (teachpacks ((lib "image.rk...
null
https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/03-Abstractions/Exercise-247-UsingFiltersWithLambdas.rkt
racket
about the language level of this file in a form that our tools can easily process. An IR is a (make-ir String String Number Number) an inventory item into a record representing the items name, description (desc), acquisition price (ap) and sales price (sp). Number [List-of IR] -> [List-of IR] returns a list of i...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-247-UsingFiltersWithLambdas) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none...
3ae642b3f561296676fa973db83c963ee14e94f41ec6c4e08b971d7382113d2d
awakesecurity/nix-delegate
Main.hs
module Main where import qualified Nix.Delegate main :: IO () main = Nix.Delegate.main
null
https://raw.githubusercontent.com/awakesecurity/nix-delegate/8b183aed5e178d01b10d2f312a431e881b79e80b/app/Main.hs
haskell
module Main where import qualified Nix.Delegate main :: IO () main = Nix.Delegate.main
e045ff2784fb74bb5ba1a143f8eff0b9d97d448ee23723c0882cb276bdf82397
alavrik/piqi-erlang
normalize_piqi_test.erl
-module(normalize_piqi_test). -compile([export_all, nowarn_export_all]). -include("normalize_piqi.hrl"). -include("nonormalize_piqi.hrl"). get_pb() -> get_pb(normalize_piqi), get_pb(nonormalize_piqi). get_pb(Mod) -> Pib = Mod:piqi(), file:write_file(atom_to_list(Mod) ++ "_from_erl.pb", Pib). test_convert_normaliz...
null
https://raw.githubusercontent.com/alavrik/piqi-erlang/063ecc4f8fd54543acf01953b0a63b2b7ebf17a9/tests/normalize/normalize_piqi_test.erl
erlang
{\"fieldOne\":\"value1\",\"fieldTWO\":\"value2\",\"Field-Three\":\"value3\",\"field-four\":\"value4\"} {"fieldOne":"value1","fieldTWO":"value2","Field-Three":"value3","field-four":"value4"}
-module(normalize_piqi_test). -compile([export_all, nowarn_export_all]). -include("normalize_piqi.hrl"). -include("nonormalize_piqi.hrl"). get_pb() -> get_pb(normalize_piqi), get_pb(nonormalize_piqi). get_pb(Mod) -> Pib = Mod:piqi(), file:write_file(atom_to_list(Mod) ++ "_from_erl.pb", Pib). test_convert_normaliz...
7373a732abc7ddf2f0de37aacdd82ea0aff8ccefbd85fda3b58b54df0f24c44f
ssor/erlangDemos
dc_event_logger.erl
-module(dc_event_logger). -behaviour(gen_event). % API -export([add_handler/0, delete_handler/0]). -export([init/1, handle_event/2, handle_call/2, handle_info/2, terminate/2, code_change/3]). -record(state, {}). % Add this module as callback add_handler() -> data_collector:add_handler(?MODULE, []). delete_han...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/data_collector/src/dc_event_logger.erl
erlang
API Add this module as callback
-module(dc_event_logger). -behaviour(gen_event). -export([add_handler/0, delete_handler/0]). -export([init/1, handle_event/2, handle_call/2, handle_info/2, terminate/2, code_change/3]). -record(state, {}). add_handler() -> data_collector:add_handler(?MODULE, []). delete_handler() -> data_collector:delete_han...
7ca8c8ba43caa246a910bb8d6baaf66771934160ac77ffd6689d73d097c25829
ha-mo-we/Racer
termination.lisp
-*- Mode : Lisp ; Syntax : Ansi - Common - Lisp ; Package : RACER ; Base : 10 -*- Copyright ( c ) 1998 - 2014 , , , . ;;; All rights reserved. Racer is distributed under the following BSD 3 - clause license ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are p...
null
https://raw.githubusercontent.com/ha-mo-we/Racer/d690841d10015c7a75b1ded393fcf0a33092c4de/source/termination.lisp
lisp
Syntax : Ansi - Common - Lisp ; Package : RACER ; Base : 10 -*- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of c...
Copyright ( c ) 1998 - 2014 , , , . Racer is distributed under the following BSD 3 - clause license Neither the name Racer nor the names of its contributors may be used CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , VOLKER HAARSLEV , RALF MOELLER , NOR FOR ANY ...
432f0bd48422b4fcbd8458322d7730d3c7e212982376c608e2c11baadb5c5190
disteph/cdsat
IO.mli
IO tools val write_to_file : string -> string -> unit (* converts a file to a string with its contents *) val read_from_file : string -> string exception InvalidInput of exn val read_from_stdin : ?stream:in_channel -> unit -> string
null
https://raw.githubusercontent.com/disteph/cdsat/1b569f3eae59802148f4274186746a9ed3e667ed/src/top-level/IO.mli
ocaml
converts a file to a string with its contents
IO tools val write_to_file : string -> string -> unit val read_from_file : string -> string exception InvalidInput of exn val read_from_stdin : ?stream:in_channel -> unit -> string
30e4560b909232e86e03521f4d85193e0e7b045d751e6ee3ae7d32ff5b77095a
realworldocaml/examples
test_interval.ml
open Core.Std let intervals = let module I = Int_interval in [ I.create 3 4; I.create 5 4; (* should be empty *) I.create 2 3; I.create 1 6; ] let () = intervals |> List.sexp_of_t Int_interval.sexp_of_t |> Sexp.to_string_hum |> print_endline
null
https://raw.githubusercontent.com/realworldocaml/examples/32ea926861a0b728813a29b0e4cf20dd15eb486e/code/sexpr/test_interval.ml
ocaml
should be empty
open Core.Std let intervals = let module I = Int_interval in [ I.create 3 4; I.create 2 3; I.create 1 6; ] let () = intervals |> List.sexp_of_t Int_interval.sexp_of_t |> Sexp.to_string_hum |> print_endline
b986f0262db88bfec889ac1eedfffe35b8508ef38171bb6f8445416a50d31e4e
threatgrid/ctim
schema.cljc
(ns ctim.lib.schema #?(:clj (:require [ring.swagger.json-schema :as rs]))) ;; passthrough to ring swagger only for clj #?(:cljs (defn describe [s desc] s) :clj (def describe rs/describe))
null
https://raw.githubusercontent.com/threatgrid/ctim/2ecae70682e69495cc3a12fd58a474d4ea57ae9c/src/ctim/lib/schema.cljc
clojure
passthrough to ring swagger only for clj
(ns ctim.lib.schema #?(:clj (:require [ring.swagger.json-schema :as rs]))) #?(:cljs (defn describe [s desc] s) :clj (def describe rs/describe))
37f9f31ced46adb36e4261980a4061ad9bfde0e05b1093583b9bbf9ebe2df419
mbutterick/aoc-racket
star1.rkt
337 kvvfl kvvfl olud wjqsqa olud frc slhm rdfm yxb rsobyt rdfm pib wzfr xyoakcu zoapeze rtdxt rikc jyeps wdyo hawr xyoakcu hawr ismtq qwoi kzt ktgzoc gnxblp dzfayil ftfx asscba ionxi dzfayil qwoi dzuhys kfekxe nvdhdtj hzusdy xzhehgc dhtvdnj oxwlvef gxg qahl aaipx tkmckn hcsuhy jsudcmy kcefhpn kiasaj tkmckn roan kqnzt...
null
https://raw.githubusercontent.com/mbutterick/aoc-racket/2c6cb2f3ad876a91a82f33ce12844f7758b969d6/2017/d04/star1.rkt
racket
337 kvvfl kvvfl olud wjqsqa olud frc slhm rdfm yxb rsobyt rdfm pib wzfr xyoakcu zoapeze rtdxt rikc jyeps wdyo hawr xyoakcu hawr ismtq qwoi kzt ktgzoc gnxblp dzfayil ftfx asscba ionxi dzfayil qwoi dzuhys kfekxe nvdhdtj hzusdy xzhehgc dhtvdnj oxwlvef gxg qahl aaipx tkmckn hcsuhy jsudcmy kcefhpn kiasaj tkmckn roan kqnzt...
98f24e4cf35fe3d91baf2c990c19937d5006d4604a2beb9ebb226ae5a0bb5aca
clojure/tools.namespace
dir_test.clj
(ns clojure.tools.namespace.dir-test (:require [clojure.test :refer [deftest is]] [clojure.tools.namespace.test-helpers :as help] [clojure.tools.namespace.dir :as dir]) (:import (java.io File))) (defn- make-symbolic-link "Reflectively calls java.nio.file.Files/createSymbolicLink on two...
null
https://raw.githubusercontent.com/clojure/tools.namespace/de4bbf1302763d2342d1301245329bd8a3460da7/src/test/clojure/clojure/tools/namespace/dir_test.clj
clojure
(ns clojure.tools.namespace.dir-test (:require [clojure.test :refer [deftest is]] [clojure.tools.namespace.test-helpers :as help] [clojure.tools.namespace.dir :as dir]) (:import (java.io File))) (defn- make-symbolic-link "Reflectively calls java.nio.file.Files/createSymbolicLink on two...
124b7061c8d09869cfb413737e49723f6a04dade45b106be8961b420a0675a83
mlabs-haskell/plutus-pioneer-program
EvenOdd.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE Templ...
null
https://raw.githubusercontent.com/mlabs-haskell/plutus-pioneer-program/b50b196d57dc35559b7526fe17b49dd2ba4790bc/code/week07/src/Week07/EvenOdd.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeOperators #
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NoImplicitPrelude # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # module Week07.EvenOdd ( Game (..) , GameChoice (..) , FirstParams (..) , SecondParams (..) , GameSchema , endpoints ...
a7aee3df12703665e45034868f90c85fa4194ddd038c6071d6a8ddb1bcc3ae6a
reasonml/reason
reason_interface_printer.ml
open Reason_omp open Ast_411 type t = Parsetree.signature let err = Printer_maker.err (* Note: filename should only be used with .mli files. See reason_toolchain. *) let defaultInterfaceParserFor use_stdin filename = let open Reason_toolchain in let (theParser, parsedAsML) = if Filename.check_suffix filename ...
null
https://raw.githubusercontent.com/reasonml/reason/4f6ff7616bfa699059d642a3d16d8905d83555f6/src/refmt/reason_interface_printer.ml
ocaml
Note: filename should only be used with .mli files. See reason_toolchain. Our special format for interchange between reason should keep the * comments separate. This is not compatible for input into the * ocaml compiler - only for input into another version of Reason. We * also store whether or not t...
open Reason_omp open Ast_411 type t = Parsetree.signature let err = Printer_maker.err let defaultInterfaceParserFor use_stdin filename = let open Reason_toolchain in let (theParser, parsedAsML) = if Filename.check_suffix filename ".rei" then (RE.interface_with_comments, false) else if Filename.check_s...
ff0baf71284b2f215391e2ced394c8bfd0b20bdf6af580159ccc7b5b2b517366
5outh/chaosbox
Curve.hs
-- | Open cubic b-splines module ChaosBox.Geometry.Curve ( CurveOf(..) , Curve , pattern Curve , getCurve , curveIterations , curve , curveOf , curveWithDetail , toPath , fromPath , curveCenter ) where import ChaosBox.AABB import ChaosBox.Draw import ChaosBox.Geome...
null
https://raw.githubusercontent.com/5outh/chaosbox/991ca3db48d8828287567302ba3293314b9127bd/src/ChaosBox/Geometry/Curve.hs
haskell
| Open cubic b-splines | Cubic B-Spline | The center of mass of a 'Curve'
module ChaosBox.Geometry.Curve ( CurveOf(..) , Curve , pattern Curve , getCurve , curveIterations , curve , curveOf , curveWithDetail , toPath , fromPath , curveCenter ) where import ChaosBox.AABB import ChaosBox.Draw import ChaosBox.Geometry.Class import ...
382589c64eff3584c82fce8f40521d7e47ace07af8ad14fcca54c6a917f026bd
exoscale/clojure-kubernetes-client
v1_pod_template_spec.clj
(ns clojure-kubernetes-client.specs.v1-pod-template-spec (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-pod-spec :refer :all] ) (:import (java.io File)...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_pod_template_spec.clj
clojure
(ns clojure-kubernetes-client.specs.v1-pod-template-spec (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-pod-spec :refer :all] ) (:import (java.io File)...
eb2b658cd895c7450f0ac06605365e6d5ccb80f486fa6f57813c28cd93a936f3
incjung/cl-swagger-codegen
urlshorter-api-client.lisp
(ql:quickload "drakma") (ql:quickload "cl-json") (defun rest-call (host url-path &key params content basic-authorization (method :get) (accept "application/json") (content-type "application/json")) "call http-request with basic params and ...
null
https://raw.githubusercontent.com/incjung/cl-swagger-codegen/23bd1d2e895cccb5a87b5a2a2798e404798e1527/example/urlshorter-api-client.lisp
lisp
Expands a short URL or gets creation time and analytics. * path-url : /url Creates a new short URL. * path-url : /url Retrieves a list of URLs shortened by a user. * path-url : /url/history (convert-json #'function "/path" content-json)
(ql:quickload "drakma") (ql:quickload "cl-json") (defun rest-call (host url-path &key params content basic-authorization (method :get) (accept "application/json") (content-type "application/json")) "call http-request with basic params and ...
6cea930258a22bb5ca50a89537e58b1cabda47f37b36b0fd201bbde1bf163967
simonjohnthompson/streams
stream.erl
-module(stream). -compile([export_all]). % nil() -> {}. -define(cons(X,Xs), fun() -> {X,Xs} end). cons(X,Xs) -> fun() -> {X,Xs} end. head(L) -> case (L()) of {H,_} -> H end. tail(L) -> case (L()) of {_,T} -> T end. % list1() -> % fun() -> { 23 , fun ( ) - > 1/0 end } % ...
null
https://raw.githubusercontent.com/simonjohnthompson/streams/acdd8199d3c62a20b0a55773237e964d1b8afc60/stream.erl
erlang
nil() -> {}. list1() -> fun() -> end. Infinite stream of ones. cons(1,ones()). Infinite stream of nunbers from N. Infinite stream of nunbers from 0, cicular definition. Infiinite stream of primes. Alternative definition sieve(Ns) -> H = head(Ns), Inspection functions.
-module(stream). -compile([export_all]). -define(cons(X,Xs), fun() -> {X,Xs} end). cons(X,Xs) -> fun() -> {X,Xs} end. head(L) -> case (L()) of {H,_} -> H end. tail(L) -> case (L()) of {_,T} -> T end. { 23 , fun ( ) - > 1/0 end } ones() -> ?cons(1,ones()). ns(N) -> ...
987c3d89efc672aab8055ea56af27b8a99a463d2592b8b1a520ccf482d4cbf72
objecthub/swift-lispkit
SRFI152.scm
;;; SRFI152.scm ;;; Regression test data ;;; This test suite is based on the SRFI 152 test suite from . ;;; Copyright © 2017 . All rights reserved . ;;; ;;; Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , t...
null
https://raw.githubusercontent.com/objecthub/swift-lispkit/a952f80bb85e6fd084770033141ed8edd2f46500/Tests/LispKitTests/Code/SRFI152.scm
scheme
SRFI152.scm Regression test data Permission is hereby granted, free of charge, to any person obtaining a copy of this without restriction, including without limitation the rights to use, copy, modify, merge, The above copyright notice and this permission notice shall be included in all copies or INCLUDING BU...
This test suite is based on the SRFI 152 test suite from . Copyright © 2017 . All rights reserved . software and associated documentation files ( the " Software " ) , to deal in the Software publish , distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software...
9e394b4fc55cd0358105d7fe2e3f543d9bdffa1b47b44042acb542ef3272bbe4
comtihon/mongodb-erlang
mc_connection_man.erl
%%%------------------------------------------------------------------- @author tihon ( C ) 2014 , < COMPANY > %%% @doc mongo client connection manager %%% processes request and response to|from database %%% @end Created : 28 . май 2014 18:37 %%%-------------------------------------------------------------------...
null
https://raw.githubusercontent.com/comtihon/mongodb-erlang/ce0e32fff8ec712d2c1e80ef9f88469a900ef18e/src/connection/mc_connection_man.erl
erlang
------------------------------------------------------------------- @doc mongo client connection manager processes request and response to|from database @end ------------------------------------------------------------------- API request to worker command succeed | failed unknown result
@author tihon ( C ) 2014 , < COMPANY > Created : 28 . май 2014 18:37 -module(mc_connection_man). -author("tihon"). -include("mongo_types.hrl"). -include("mongo_protocol.hrl"). -define(NOT_MASTER_ERROR, 13435). -define(UNAUTHORIZED_ERROR(C), C =:= 10057; C =:= 16550). -export([request_worker/2]). -export([read...
91c95b30b675e6d26964154683964069135f2c494e857c3e12998748d63a41de
ocaml-gospel/ortac
types.ml
open Ltypes__Lib_rtac open Common let get_x () = let t = check_success "v" (fun () -> v 10 false) in check_success "get_x" (fun () -> get_x t |> ignore) let invariant_breat () = check_raises_ortac "invariant_break" (fun () -> v 10 true |> ignore) let suite = ( "Types", [ ("simple field access", `Qu...
null
https://raw.githubusercontent.com/ocaml-gospel/ortac/dacc564ffaf8cfeb6f012bacefa5319d042ba29f/test/suite/types.ml
ocaml
open Ltypes__Lib_rtac open Common let get_x () = let t = check_success "v" (fun () -> v 10 false) in check_success "get_x" (fun () -> get_x t |> ignore) let invariant_breat () = check_raises_ortac "invariant_break" (fun () -> v 10 true |> ignore) let suite = ( "Types", [ ("simple field access", `Qu...
3cb24d9e7254f066de09374da7e98e9a7ffa338d46f62aa396921fcd7ef4a91e
Workiva/eva
protocols.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/datastructures/protocols.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns eva.datastructures.protocols (:refer-clojure :exclude [filter])) (defprotocol BTreeBacked (root-node [this] "Returns the root node of the btree backing this data structure.") (in-mem-nodes [this] "Ret...
255aca616d688c1be83f682067852e3da4046e4cf519cce4d0230e2ce5ae42fd
yesodweb/persistent
RenameTest.hs
# LANGUAGE TypeApplications , UndecidableInstances # module RenameTest where import qualified Data.Map as Map import qualified Data.Text as T import Data.Time (getCurrentTime, Day, UTCTime(..)) import Init -- persistent used to not allow types with an "Id" suffix -- this verifies that the issue is fixed type TextId...
null
https://raw.githubusercontent.com/yesodweb/persistent/eaf9d561a66a7b7a8fcbdf6bd0e9800fa525cc13/persistent-test/src/RenameTest.hs
haskell
persistent used to not allow types with an "Id" suffix this verifies that the issue is fixed Test lower case names This just tests that a field can be named "key" this used to have a default=CURRENT_DATE, but the test that uses it specifies that there is no default on this column. the default is failing MySQL an...
# LANGUAGE TypeApplications , UndecidableInstances # module RenameTest where import qualified Data.Map as Map import qualified Data.Text as T import Data.Time (getCurrentTime, Day, UTCTime(..)) import Init type TextId = Text share [mkPersist sqlSettings { mpsGeneric = True }, mkMigrate "migration"] [persistLowerCa...
7ac4d898068a0436f905389a0c2ba6e71ce2364ee9af2cce0c0fdfd2b5065873
cdaringe/protohacks
cint.ml
module type Int = sig include Cnum.Num val min_int : t val max_int : t end let rec pow a = function | 0 -> 1 | 1 -> a | n -> let b = pow a (n / 2) in b * b * if n mod 2 = 0 then 1 else a
null
https://raw.githubusercontent.com/cdaringe/protohacks/67e0111c46b09d3d65c52d5b9a7ba9b8957790c5/lib/cint/cint.ml
ocaml
module type Int = sig include Cnum.Num val min_int : t val max_int : t end let rec pow a = function | 0 -> 1 | 1 -> a | n -> let b = pow a (n / 2) in b * b * if n mod 2 = 0 then 1 else a
1490853c9f53e92ed56d647e3b898a3734e0e637262116d70797292161018f89
spechub/Hets
Logic_HasCASL.hs
# LANGUAGE MultiParamTypeClasses # | Module : ./HasCASL / Logic_HasCASL.hs Description : instance of class Logic Copyright : ( c ) and Uni Bremen 2003 - 2005 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : non - portabl...
null
https://raw.githubusercontent.com/spechub/Hets/fc26b4947bf52be6baf7819a75d7e7f127e290dd/HasCASL/Logic_HasCASL.hs
haskell
# LANGUAGE MultiParamTypeClasses # | Module : ./HasCASL / Logic_HasCASL.hs Description : instance of class Logic Copyright : ( c ) and Uni Bremen 2003 - 2005 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : non - portabl...
b22bddc32fa6b305ebe5a5b5bf46b59bc9723d916b8c792d03ef3b2dcb539d4f
dlebrero/kafka-consecutive-values
project.clj
(defproject our-service "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.9.0"] [org.apache.kafka/kafka-streams "2.0.0"] [clj-kafka.franzy/core "2.0.7"] [compojure "1.5.1"] [ring/ring-jetty-adapter "1.5.0"] [org.clojure/tools.n...
null
https://raw.githubusercontent.com/dlebrero/kafka-consecutive-values/524c17b9bb01ef82af17f7a594ff6d26fd295ddc/our-service/project.clj
clojure
(defproject our-service "0.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.9.0"] [org.apache.kafka/kafka-streams "2.0.0"] [clj-kafka.franzy/core "2.0.7"] [compojure "1.5.1"] [ring/ring-jetty-adapter "1.5.0"] [org.clojure/tools.n...
10845f9f845294af59a7eb816e6a27236592136c14be1a93446b234591325488
magnars/optimus
load_css.clj
(ns optimus.assets.load-css (:require [clojure.string :as str] [optimus.assets.creation :refer [create-asset existing-resource original-path last-modified]] [optimus.paths :refer [just-the-path to-absolute-url]])) (def css-url-re #"(?:url\( *['\"]?([^\)]+?)['\"]?\)|@import ['\"](.+?)['\"] *)"...
null
https://raw.githubusercontent.com/magnars/optimus/ac5df602726d255312dfd48cf7ae2e00d99069bd/src/optimus/assets/load_css.clj
clojure
(ns optimus.assets.load-css (:require [clojure.string :as str] [optimus.assets.creation :refer [create-asset existing-resource original-path last-modified]] [optimus.paths :refer [just-the-path to-absolute-url]])) (def css-url-re #"(?:url\( *['\"]?([^\)]+?)['\"]?\)|@import ['\"](.+?)['\"] *)"...
0a5ed297eb7ed5121e09770fca77110c39698fd9525cac3f22d481a06c54a825
ocaml/oasis-db
BoxedForms.ml
* Create page that include many small boxes that can be edited on their own . @author own. @author Sylvain Le Gall *) open Lwt type ('a, 'b) t = { display: 'a -> (bool * 'b XHTML.M.elt) Lwt.t; commit: 'a -> 'a Lwt.t; rollback: 'a -> 'a Lwt.t; } let create ...
null
https://raw.githubusercontent.com/ocaml/oasis-db/f8b19d431102b5c5b7dced00a5242a5366ad263f/src/web/BoxedForms.ml
ocaml
* Create page that include many small boxes that can be edited on their own . @author own. @author Sylvain Le Gall *) open Lwt type ('a, 'b) t = { display: 'a -> (bool * 'b XHTML.M.elt) Lwt.t; commit: 'a -> 'a Lwt.t; rollback: 'a -> 'a Lwt.t; } let create ...
72cf8aedfc5ddab5c3b5e3f99e2e50374a46ca6f0e8a41184ba42134be4704a0
ogaml/ogaml
vertexArray.mli
module Vertex : sig exception Sealed_vertex of string exception Unsealed_vertex of string exception Unbound_attribute of string type 'a t module AttributeType : sig type 'a s val int : int s val vector2i : OgamlMath.Vector2i.t s val vector3i : OgamlMath.Vector3i.t s val float :...
null
https://raw.githubusercontent.com/ogaml/ogaml/5e74597521abf7ba2833a9247e55780eabfbab78/src/graphics/vertex/vertexArray.mli
ocaml
module Vertex : sig exception Sealed_vertex of string exception Unsealed_vertex of string exception Unbound_attribute of string type 'a t module AttributeType : sig type 'a s val int : int s val vector2i : OgamlMath.Vector2i.t s val vector3i : OgamlMath.Vector3i.t s val float :...
293a600b59973b82aa371648e0b6a5a2fe8cfa212b9e9e2207280d852c8c4897
hammerlab/ketrew
path.mli
(**************************************************************************) Copyright 2014 , 2015 : < > , < > , Arun < > , < > ...
null
https://raw.githubusercontent.com/hammerlab/ketrew/8940d48fbe174709f076b7130974ecd0ed831d58/src/pure/path.mli
ocaml
************************************************************************ you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
Copyright 2014 , 2015 : < > , < > , Arun < > , < > Licensed under the Apache License , Version 2.0 ( the " Licen...
45819c295ed5fcbf866e5c3b78e4acf163d5244a2de0499e4f23e50c64eb361f
PascalLG/nubo-hs
UUID.hs
----------------------------------------------------------------------------- Nubo Client Application Copyright ( c ) 2017 , -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal in the Software without...
null
https://raw.githubusercontent.com/PascalLG/nubo-hs/390212b73c31746f4ff03a3e341f92d657db0223/Client/src/UUID.hs
haskell
--------------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished ...
Nubo Client Application Copyright ( c ) 2017 , in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ...
6adffeb36cb4f5d0d189cc22fe1c85866dd3c8ae1f149344558ea7a6480bee77
rtoy/cmucl
mac-cyrillic.lisp
;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: STREAM -*- ;;; ;;; ********************************************************************** This code was written by and has been placed in the public ;;; domain. ;;; (ext:file-comment "$Header: src/pcl/simple-streams/external-formats/mac-cyrillic.lisp $") (in-p...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/pcl/simple-streams/external-formats/mac-cyrillic.lisp
lisp
-*- Mode: LISP; Syntax: ANSI-Common-Lisp; Package: STREAM -*- ********************************************************************** domain.
This code was written by and has been placed in the public (ext:file-comment "$Header: src/pcl/simple-streams/external-formats/mac-cyrillic.lisp $") (in-package "STREAM") (intl:textdomain "cmucl") (defconstant +mac-cyrillic+ (make-array 128 :element-type '(unsigned-byte 16) :initial-contents #(1040 1041 10...
74a38bed7a14e3f09f4972f124727c3f777e95777776b34e161d81f37db98352
Clozure/ccl-tests
dpb.lsp
;-*- Mode: Lisp -*- Author : Created : Thu Sep 11 20:43:54 2003 Contains : Tests of (in-package :cl-test) ;;; Error tests (deftest dpb.error.1 (signals-error (dpb) program-error) t) (deftest dpb.error.2 (signals-error (dpb 1) program-error) t) (deftest dpb.error.3 (signals-error (dpb 1 ...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/dpb.lsp
lisp
-*- Mode: Lisp -*- Error tests Non-error tests
Author : Created : Thu Sep 11 20:43:54 2003 Contains : Tests of (in-package :cl-test) (deftest dpb.error.1 (signals-error (dpb) program-error) t) (deftest dpb.error.2 (signals-error (dpb 1) program-error) t) (deftest dpb.error.3 (signals-error (dpb 1 (byte 1 0)) program-error) t) (deftes...
0eb1ca2f24a661ed2e38cbb231aed31584aead5bf791e6562952f84596dbaf55
lambdamikel/DLMAPS
nrql-dev-sysdcl.lisp
;;; -*- Mode: LISP; Syntax: Common-Lisp; Package: CL-USER -*- (in-package :cl-user) ;;; ;;; ;;; ;; (push :sequential-query-scheduling *features*) (push :owl-datatype-support *features*) #-:clisp (push :multiprocess-queries *features*) #-:dlmaps (push :only-runtime-evaluation *features*) #+(and (or :lispworks :a...
null
https://raw.githubusercontent.com/lambdamikel/DLMAPS/7f8dbb9432069d41e6a7d9c13dc5b25602ad35dc/src/query/nrql-dev-sysdcl.lisp
lisp
-*- Mode: LISP; Syntax: Common-Lisp; Package: CL-USER -*- (push :sequential-query-scheduling *features*)
(in-package :cl-user) (push :owl-datatype-support *features*) #-:clisp (push :multiprocess-queries *features*) #-:dlmaps (push :only-runtime-evaluation *features*) #+(and (or :lispworks :allegro) (not :dlmaps) :multiprocess-queries) (push :process-pooling *features*) (eval-when (:compile-topleve...
bb9ec5341c3941c47229f8618dbac43ce6f139c81f1b6e6e160c64bfc6fc7262
technomancy/leiningen
fixed_and_var_args.clj
(ns leiningen.fixed-and-var-args "Dummy task for tests.") (defn fixed-and-var-args [project one two & rest] (println "a dummy task for tests"))
null
https://raw.githubusercontent.com/technomancy/leiningen/24fb93936133bd7fc30c393c127e9e69bb5f2392/leiningen-core/test/leiningen/fixed_and_var_args.clj
clojure
(ns leiningen.fixed-and-var-args "Dummy task for tests.") (defn fixed-and-var-args [project one two & rest] (println "a dummy task for tests"))
546af71e7afa7a8136a90f41d0c66885aa1ffdfa393bce7e41376fe57b68aedf
dbuenzli/tgls
dump.ml
--------------------------------------------------------------------------- Copyright ( c ) 2013 . 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/tgls/58bf47d393da00f24fa8e58521ddb9e3afb08d1d/support/dump.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2013 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
ae8aec499b3e5dfe47eb5ccbc6c98a9df0f1b40ecf95316f74b1ccfa92864a94
2600hz/kazoo
pqc_cb_resource_templates.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc @author %%% 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 /. %%% %%% ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_proper/src/pqc_cb_resource_templates.erl
erlang
----------------------------------------------------------------------------- @doc @end -----------------------------------------------------------------------------
( C ) 2010 - 2020 , 2600Hz @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(pqc_cb_resource_templates). -export([summary/2]). -export([create/3]). -export([fetch/3]). -e...
03310be5049a56f6c381a97a503bc1fdc21f6329b2dc4b25dc6bb159342ccceb
melange-re/melange
in_channel.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/stdlib-412/stdlib_modules/in_channel.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 2021 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the type t = in_channel type open_flag = Stdlib.open_flag = | Open_rdonly | Open_wronly | Open_append ...
85bfa6c7b685d3d22fbe569ca9e6811ae61c70da7f3e9ccba1e78a6b48a4e416
ocaml/oasis
TestOASISValues.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/test/test-main/TestOASISValues.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
35e18bcccfa3715b43796e7ec0159fe2914beb238d0f45cfb872ea15f534b01e
mirage/mirage
package.mli
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * * 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 an...
null
https://raw.githubusercontent.com/mirage/mirage/da1ef020f2f0c47593cf2f02cbf7b44b912be74d/lib/functoria/package.mli
ocaml
* Representation of opam packages. * The scope of package installation: - Switch: installed with opam. - Monorepo: locally fetched along unikernel sources. * The type for opam packages. * [name t] is [t]'s opam name. * [key t] is [t]'s key (concatenation of name and installation scope). * [scope t] is [t]...
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * * 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 an...
6158c70ac12e4cfcdc1c91608239532b67291f483461e89178aef23b08d0f936
RunOrg/RunOrg
time.ml
Ohm is © 2013 open BatPervasives module Tz = struct type t = float let gmt = 0. end type time = { h : int ; i : int ; s : int } type date = { y : int ; m : int ; d : int ; t : time option } let of_compact s = try let y = int_of_string (String.sub s 0 4) in let m = int_of_string (String.sub s 4 2...
null
https://raw.githubusercontent.com/RunOrg/RunOrg/b53ee2357f4bcb919ac48577426d632dffc25062/server/time.ml
ocaml
Small piece of date magic. This will break during the specific hour or so when DST changes, but it's the best we can do without timezone support in OCaml.
Ohm is © 2013 open BatPervasives module Tz = struct type t = float let gmt = 0. end type time = { h : int ; i : int ; s : int } type date = { y : int ; m : int ; d : int ; t : time option } let of_compact s = try let y = int_of_string (String.sub s 0 4) in let m = int_of_string (String.sub s 4 2...
678b6e2511d339f90bfce40d14bfeff01e708c2f08ea6f22978191b3efc2bc99
rems-project/lem
bit.mli
type bit = Zero | One val to_bool : bit -> bool val bn : bit -> bit val bor : bit -> bit -> bit val xor : bit -> bit -> bit val band : bit -> bit -> bit val add : bit -> bit -> bit * bool
null
https://raw.githubusercontent.com/rems-project/lem/a839114e468119d9ac0868d7dc53eae7f3cc3a6c/ocaml-lib/bit.mli
ocaml
type bit = Zero | One val to_bool : bit -> bool val bn : bit -> bit val bor : bit -> bit -> bit val xor : bit -> bit -> bit val band : bit -> bit -> bit val add : bit -> bit -> bit * bool
8714a16c89c73871672df7a850a9d32e8621964614a7f071528335086fba426d
jhgarner/Xest-Window-Manager
FocusList.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE ApplicativeDo # {-# LANGUAGE ImpredicativeTypes #-} # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLists # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module FocusList ( FocusedList (..), Direct...
null
https://raw.githubusercontent.com/jhgarner/Xest-Window-Manager/d1e7640b70fea662508f99778535069e9c639517/src/FocusList.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE ImpredicativeTypes # I am super unattached to all of the code in this module. If someone has a better way to represent this, I would gladly switch. This module could use some more documentation and better names, but I think time would be better spent trying to rearchitect the ...
# LANGUAGE ScopedTypeVariables # # LANGUAGE ApplicativeDo # # LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedLists # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module FocusList ( FocusedList (..), Direction (..), Focus (..), flMapMaybe, push, vOrder, ...
c6fc5a0d2957417285ae2077810ed4a2e170cd26e31ea53306d0b7b3fbe266a1
lmj/lparallel
thread-util-test.lisp
Copyright ( c ) 2011 - 2012 , . All rights reserved . ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this li...
null
https://raw.githubusercontent.com/lmj/lparallel/9c11f40018155a472c540b63684049acc9b36e15/test/thread-util-test.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary...
Copyright ( c ) 2011 - 2012 , . All rights reserved . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY...
f3e6ca4684588ec1375c8895f309575ed495f6089b2f277c2374c481199e282b
learningclojurescript/code-examples
core.cljs
(ns piggieback-project.core (:require [weasel.repl :as repl])) (when-not (repl/alive?) (repl/connect "ws:9001"))
null
https://raw.githubusercontent.com/learningclojurescript/code-examples/fdbd0e35ae5a16d53f1f784a52c25bcd4e5a8097/chapter-1/piggieback_project/src/piggieback_project/core.cljs
clojure
(ns piggieback-project.core (:require [weasel.repl :as repl])) (when-not (repl/alive?) (repl/connect "ws:9001"))
7850fae95aa9c99227d3a586bfad38f4be1a6be0bb4ea7bed626ed8848715e3e
Ptival/chick
Vernacular.hs
module Repair.Vernacular ( repair, ) where -- import Control.Monad import qualified Definition as D import qualified Diff.Atom as ΔA import qualified Diff.Inductive as ΔI import qualified Diff.Term as ΔT import qualified Diff.Vernacular as ΔV import Language (Language (Chick)) import Polysemy (Member, S...
null
https://raw.githubusercontent.com/Ptival/chick/a5ce39a842ff72348f1c9cea303997d5300163e2/backend/lib/Repair/Vernacular.hs
haskell
import Control.Monad | `repair v δv` takes a vernacular command `v` and a command diff `δv`, and it computes a repaired | command diff `δv'`, that propagates changes down the line WARNING: here I assume that the modification did not start refactoring otherwise, we might get in double-repair issues FIXME...
module Repair.Vernacular ( repair, ) where import qualified Definition as D import qualified Diff.Atom as ΔA import qualified Diff.Inductive as ΔI import qualified Diff.Term as ΔT import qualified Diff.Vernacular as ΔV import Language (Language (Chick)) import Polysemy (Member, Sem) import Polysemy.Error (Error, ...
228ea9f53a85a05c44d177069cdd9266a6557d7f536f5009a9ac967ba586a587
goblint/analyzer
intDomain.mli
(** Abstract Domains for integers. These are domains that support the C * operations on integer values. *) open GoblintCil val should_wrap: Cil.ikind -> bool val should_ignore_overflow: Cil.ikind -> bool val reset_lazy: unit -> unit module type Arith = sig type t (** {b Arithmetic operators} *) val neg: t -...
null
https://raw.githubusercontent.com/goblint/analyzer/69d12c316e89e66d10ad655cbc4e235e4d51bc69/src/cdomains/intDomain.mli
ocaml
* Abstract Domains for integers. These are domains that support the C * operations on integer values. * {b Arithmetic operators} * Addition: [x + y] * Subtraction: [x - y] * Multiplication: [x * y] * Division: [x / y] * Integer remainder: [x % y] * {b Comparison operators} * Less than: [x < y] * Greater than...
open GoblintCil val should_wrap: Cil.ikind -> bool val should_ignore_overflow: Cil.ikind -> bool val reset_lazy: unit -> unit module type Arith = sig type t val neg: t -> t * Negating an integer value : [ -x ] val add: t -> t -> t val sub: t -> t -> t val mul: t -> t -> t val div: t -> t -> t val...
25f4ebeec092941147adecc3f0e6ff201863a87f9637158ee96a986ed2fd4f70
vikram/lisplibraries
packages.lisp
;;; -*- lisp -*- ;;;; * The Packages (defpackage :it.bese.ucw (:nicknames :ucw) (:use :common-lisp :it.bese.ucw.system :it.bese.arnesi :it.bese.yaclml :iterate :trivial-sockets) (:export ;; backend classes #:mod-lisp-backend #:multithread-mod-lisp-backend #:as...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/ucw_dev/src/packages.lisp
lisp
-*- lisp -*- * The Packages backend classes random configuration options rerl protocol modular application and modules accessing the request/response objects backtracking components windows error message component login component info-message component option dialog component container component inspect...
(defpackage :it.bese.ucw (:nicknames :ucw) (:use :common-lisp :it.bese.ucw.system :it.bese.arnesi :it.bese.yaclml :iterate :trivial-sockets) (:export #:mod-lisp-backend #:multithread-mod-lisp-backend #:aserve-backend #:araneida-backend #:httpd-backend #:...
6a6b33d16e72501320d46faab0fa8986f00c71d70203b17e93c733f4b9997f11
MarcusPlieninger/HtDP_2e_solutions
HtDP_2e_Exercise_040.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname HtDP_2e_Exercise_40) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeati...
null
https://raw.githubusercontent.com/MarcusPlieninger/HtDP_2e_solutions/1b25b01ee950034c43cc9a907c4eabae2b5e4dbc/HtDP_2e_Exercise_040.rkt
racket
about the language level of this file in a form that our tools can easily process. Given the below: WorldState -> WorldState examples: (define (tock ws) (+ ws 3)) And the following expressions that were evaluated in the interactions area: Formulate the examples as BSL tests, that is, using the check-expect form....
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname HtDP_2e_Exercise_40) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) Exercise 40 . moves the car by 3 pixels for ever...
6b802b61dd9beb680c63fbe7e144c5bc64e6fedbae9c69410277a624e8f3cceb
returntocorp/semgrep
prolog_code.mli
type fact = | At of entity * Common.filename (* readable path *) * int (* line *) | Kind of entity * Entity_code.entity_kind | Type of entity * string | Extends of string * string | Implements of string * string | Mixins of string * string | Privacy of entity * Entity_code.privacy | Call of entity * ent...
null
https://raw.githubusercontent.com/returntocorp/semgrep/855abad9ada6ea5fd72d437fd69ff2e5fa42c1f1/libs/graph_code/prolog_code.mli
ocaml
readable path line read/write field/function package/module/namespace/class qualifier name reused in other modules which generate prolog facts
type fact = | Kind of entity * Entity_code.entity_kind | Type of entity * string | Extends of string * string | Implements of string * string | Mixins of string * string | Privacy of entity * Entity_code.privacy | Call of entity * entity | Misc of string and entity = val string_of_fact : fact -> strin...
8d6f1605e573918394e6bbb0f88813dd066cf251fad73b93eb0c46a583065ad0
expipiplus1/vulkan
Session.hs
{-# language CPP #-} No documentation found for Chapter " Session " module OpenXR.Core10.Session ( beginSession , useSession , endSession , requestExitSession , SessionBeginInfo(..) ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/ebc0dde0bcd9cf251f18538de6524eb4f2ab3e9d/openxr/src/OpenXR/Core10/Session.hs
haskell
# language CPP # # SOURCE # == Parameter Descriptions = Description When the application receives 'OpenXR.Core10.OtherTypes.EventDataSessionStateChanged' event with the application /should/ then call 'beginSession' to start rendering frames for display to the user. After this function successfully returns, t...
No documentation found for Chapter " Session " module OpenXR.Core10.Session ( beginSession , useSession , endSession , requestExitSession , SessionBeginInfo(..) ) wher...
ee488026990858182036f38e4d76e0fa948ac3ea24bc03fd13a8656842230fb0
faylang/fay
RecordImport_Export.hs
{- NOTE: This file is also used in the Compile tests. -} module RecordImport_Export where data R = R Integer data Fields = Fields { fieldFoo :: Integer, fieldBar :: Integer }
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/RecordImport_Export.hs
haskell
NOTE: This file is also used in the Compile tests.
module RecordImport_Export where data R = R Integer data Fields = Fields { fieldFoo :: Integer, fieldBar :: Integer }
96d60531fd445056581c8d97e46b0614e373b5ee04410a223f12e56f74bca05e
hirokai/PaperServer
Rockfeller.hs
# LANGUAGE QuasiQuotes # ----------------------------------------------------------------------------- -- -- Module : Model.PaperReader.Rockfeller -- Copyright : -- License : BSD3 -- Maintainer : -- Stability : Experimental -- Portability : -- -- -- ---------------------------------------------...
null
https://raw.githubusercontent.com/hirokai/PaperServer/b577955af08660253d0cd11282cf141d1c174bc0/Parser/Publisher/Rockfeller.hs
haskell
--------------------------------------------------------------------------- Module : Model.PaperReader.Rockfeller Copyright : License : BSD3 Stability : Experimental Portability : --------------------------------------------------------------------------- stub
# LANGUAGE QuasiQuotes # Maintainer : For Annual Reviews journals module Parser.Publisher.Rockfeller ( rupressReader ) where import Parser.Import import Text.XML.Cursor as C import Parser.Utils import qualified Data.Text as T _rupressReader :: PaperReader rupressReader :: PaperReader _title, _j...
54bb99f3b8be6523aea9e48db41ad3738ce957e7930aead92aca1a21c51ca635
CSCfi/rems
create_resource.cljs
(ns rems.administration.create-resource (:require [clojure.string :as str] [re-frame.core :as rf] [rems.administration.administration :as administration] [rems.administration.components :refer [organization-field text-field]] [rems.administration.duo :refer [duo-field]]...
null
https://raw.githubusercontent.com/CSCfi/rems/6c34d51199289c395b0cd0b9a3176bc5f0e83758/src/cljs/rems/administration/create_resource.cljs
clojure
form state TODO: render the catalogue items that use this resource in the error handler UI
(ns rems.administration.create-resource (:require [clojure.string :as str] [re-frame.core :as rf] [rems.administration.administration :as administration] [rems.administration.components :refer [organization-field text-field]] [rems.administration.duo :refer [duo-field]]...
bbba019dc92826c4ad40aa70c74c394c8f5ba26f2e56cc4831926b8deadb0fae
remimimimimi/glue
info.rkt
#lang info (define collection "glue") (define deps '("base" "turnstile")) (define build-deps '("scribble-lib" "racket-doc" "rackunit-lib")) (define scribblings '(("scribblings/glue.scrbl" ()))) (define pkg-desc "Description Here") (define version "0.1.0") (define pkg-authors '(remi)) (define license '(Apache-2.0 OR MIT...
null
https://raw.githubusercontent.com/remimimimimi/glue/8566d30c3e60238c03a09053ab98c21a3eaa9702/glue/info.rkt
racket
#lang info (define collection "glue") (define deps '("base" "turnstile")) (define build-deps '("scribble-lib" "racket-doc" "rackunit-lib")) (define scribblings '(("scribblings/glue.scrbl" ()))) (define pkg-desc "Description Here") (define version "0.1.0") (define pkg-authors '(remi)) (define license '(Apache-2.0 OR MIT...
4501a408ea6d9400091ff3a82508fedadbf98943138f8c70a865016a95b202de
uncomplicate/neanderthal
random123.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) or later ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be boun...
null
https://raw.githubusercontent.com/uncomplicate/neanderthal/5c76fb83eb43b7aa3307e6e90d5025e41750a00f/src/clojure/uncomplicate/neanderthal/internal/device/random123.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) or later which can be found in the file LICENSE 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 rem...
Copyright ( c ) . All rights reserved . (ns ^{:author "Dragan Djuric"} uncomplicate.neanderthal.internal.device.random123 (:require [uncomplicate.commons [core :refer [release]] [utils :refer [dragan-says-ex delete create-temp-dir]]]) (:import [java.nio.file Files Path CopyOptio...
f82e8aa6524b211035b1043549343cc4e7b13414e3825f0ef30464294a4ba060
erlef/rebar3_hex
rebar3_hex_build_SUITE.erl
-module(rebar3_hex_build_SUITE). -compile(export_all). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). all() -> [ create_package_test, create_package_with_git_deps_test, create_package_with_alias_deps, create_package_with_binary_versions, ...
null
https://raw.githubusercontent.com/erlef/rebar3_hex/b4e0a8f1435240e20586b1d1df2a206ed8158e8f/test/rebar3_hex_build_SUITE.erl
erlang
-module(rebar3_hex_build_SUITE). -compile(export_all). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). all() -> [ create_package_test, create_package_with_git_deps_test, create_package_with_alias_deps, create_package_with_binary_versions, ...
278573f46d9f7121790913190815e67f0c279d48e4cada75913cb3d7388c1dc4
jhgarner/Xest-Window-Manager
Property.hs
# LANGUAGE TemplateHaskell # module Base.Property where import Base.Executor import Base.Helpers import qualified Data.Map as M import Foreign.Marshal.Alloc import Foreign.Marshal.Array import Graphics.X11.Types import Graphics.X11.Xlib.Atom import Graphics.X11.Xlib.Extras import Graphics.X11.Xlib.Types import Standa...
null
https://raw.githubusercontent.com/jhgarner/Xest-Window-Manager/d1e7640b70fea662508f99778535069e9c639517/src/Base/Property.hs
haskell
| X11 defines properties as a dictionary like object from Atoms and windows to bits. This effect allows you to read or write to those dictionaries. It's worth noting that these properties are very untyped so be careful with what you pass in and try to get out. | Gets a property from a window's dictionary | Th...
# LANGUAGE TemplateHaskell # module Base.Property where import Base.Executor import Base.Helpers import qualified Data.Map as M import Foreign.Marshal.Alloc import Foreign.Marshal.Array import Graphics.X11.Types import Graphics.X11.Xlib.Atom import Graphics.X11.Xlib.Extras import Graphics.X11.Xlib.Types import Standa...
3bcf8ecdddd399f28b9a487d979f84972fca5553c0c67c4adbdecc5ed0a5a785
ludat/conferer
ConfererYamlSpecMain.hs
# OPTIONS_GHC -F - discover -optF --module - name = ConfererYamlSpecMain #
null
https://raw.githubusercontent.com/ludat/conferer/3c2d794a0e109626abb314e802971121dac7d7f9/packages/yaml/test/ConfererYamlSpecMain.hs
haskell
module - name = ConfererYamlSpecMain #
351398ffbb5d49b1d167054676db41bba1eb42efb09de5ee879b219c01097489
cubicle-model-checker/cubicle
pre.ml
(**************************************************************************) (* *) Cubicle (* *) ...
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/pre.ml
ocaml
************************************************************************ ...
Cubicle Copyright ( C ) 2011 - 2014 and Universite Paris - Sud 11 This file is distributed under the terms ...
632d493e353329ca06bda4d0fef923c626a9aad19d2a5abe26bfc2952394936b
40ants/ci
linter.lisp
(defpackage #:40ants-ci/jobs/linter (:use #:cl) (:import-from #:40ants-ci/steps/sh #:sh) (:import-from #:40ants-ci/jobs/lisp-job #:asdf-system) (:import-from #:40ants-ci/jobs/job) (:import-from #:40ants-ci/utils #:current-system-name) (:export #:linter)) (in-p...
null
https://raw.githubusercontent.com/40ants/ci/f8de02181e78a610d928187c7fd642dac352560d/src/jobs/linter.lisp
lisp
time will fail. I wasn't able to figure out and reproduce this issue on my own machine, but inside fixes this issue. :(((
(defpackage #:40ants-ci/jobs/linter (:use #:cl) (:import-from #:40ants-ci/steps/sh #:sh) (:import-from #:40ants-ci/jobs/lisp-job #:asdf-system) (:import-from #:40ants-ci/jobs/job) (:import-from #:40ants-ci/utils #:current-system-name) (:export #:linter)) (in-p...
295cca70b9ba0715064c38794ff496cc990f60d16772258158c2a7f0a3800f16
mirage/ocaml-matrix
signatures.ml
open Json_encoding let gen_signature key encoding obj = let encoded = construct encoding obj |> canonize |> Ezjsonm.value_to_string in Result.get_ok @@ Base64.encode ~pad:false @@ Cstruct.to_string @@ Mirage_crypto_ec.Ed25519.sign ~key (Cstruct.of_string encoded) let encoding keys encoding = let to_tuple ...
null
https://raw.githubusercontent.com/mirage/ocaml-matrix/2a58d3d41c43404741f2dfdaf1d2d0f3757b2b69/lib/matrix-stos/signatures.ml
ocaml
open Json_encoding let gen_signature key encoding obj = let encoded = construct encoding obj |> canonize |> Ezjsonm.value_to_string in Result.get_ok @@ Base64.encode ~pad:false @@ Cstruct.to_string @@ Mirage_crypto_ec.Ed25519.sign ~key (Cstruct.of_string encoded) let encoding keys encoding = let to_tuple ...
827fd178f7f4a75c512487fc3bbd5f3e9744ad17d66ac0a744a76cc6abf572fb
alexandergunnarson/quantum
finger_tree.cljc
(ns quantum.test.core.data.finger-tree (:require [quantum.core.data.finger-tree :as ns])) ; No tests because debatable whether we want to keep this anyway
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/test/quantum/test/core/data/finger_tree.cljc
clojure
No tests because debatable whether we want to keep this anyway
(ns quantum.test.core.data.finger-tree (:require [quantum.core.data.finger-tree :as ns]))
80b336dc76659f3df0f1ea873167714fc6410b6fcdd8c6e6726f40e5d7736b49
jumarko/web-development-with-clojure
handler.clj
(ns swagger-service.handler (:require [compojure.core :refer [routes wrap-routes]] [swagger-service.layout :refer [error-page]] [swagger-service.routes.home :refer [home-routes]] [swagger-service.routes.services :refer [service-routes]] [compojure.route :as route] ...
null
https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/examples/swagger-service/src/clj/swagger_service/handler.clj
clojure
(ns swagger-service.handler (:require [compojure.core :refer [routes wrap-routes]] [swagger-service.layout :refer [error-page]] [swagger-service.routes.home :refer [home-routes]] [swagger-service.routes.services :refer [service-routes]] [compojure.route :as route] ...
c14456e41c72d59f306714f4321d2a1d683bc1238896ad00844a381dfa0c5e67
avsm/platform
opamListCommand.ml
(**************************************************************************) (* *) Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA (* ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/opam-client.2.0.5%2Bdune/src/client/opamListCommand.ml
ocaml
************************************************************************ All rights reserved. This file is distributed under the terms of the exception on linking descr...
Copyright 2012 - 2015 OCamlPro Copyright 2012 INRIA GNU Lesser General Public License version 2.1 , with the special open OpamCompat open OpamTypes open OpamStateTypes open OpamStd.Op open OpamPackage.Set.Op le...
11ecc7cfe27caa1db14c64636ca2bc334d26ad2809fb9d6b21d8673af55b4b5d
Twinside/Eq
EvaluationContext.hs
module Language.Eq.EvaluationContext( EqTransformInfo( .. ) , EqContext , performTransformation , performTransformationWithContext , performLastTransformation ...
null
https://raw.githubusercontent.com/Twinside/Eq/60105372d55420735b722245db7021c239c812f4/Language/Eq/EvaluationContext.hs
haskell
# SOURCE # # SOURCE # | The real context info. | Well, here context mean more "symbol table" associate some variable with a definition. | A context "stack" used to handle some scoping which can be used to evaluate some sums. | Depth of the context stack. Used to limit recursion in the monad. | Some constraints ...
module Language.Eq.EvaluationContext( EqTransformInfo( .. ) , EqContext , performTransformation , performTransformationWithContext , performLastTransformation ...
b39fd19a072229f0b126e8482ce82d0a6c8de87bdc134acf765b7afa96ef4823
funcool/buddy-auth
middleware.clj
Copyright 2013 - 2017 < > ;; 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 un...
null
https://raw.githubusercontent.com/funcool/buddy-auth/ec454fecd3a84746c8e7b9e3af942cb1a692fdbd/src/buddy/auth/middleware.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2013 - 2017 < > Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns buddy.auth.middleware (:require [buddy.auth.protocols :as proto] [buddy.auth.accessrules :as accessrules] [buddy.auth...
783ab68853ed2649e35082ee1ada2e1bcf7857f657a218d9968341c103f435bb
bugdone/headshotbox
db.clj
(ns hsbox.db (:require [clojure.data.json :as json] [clojure.java.jdbc :as jdbc] [clojure.java.io :as io :refer [resource]] [clojure.string :as str] [hsbox.util :refer [current-timestamp file-exists? get-canonical-path]] [clojure.java.io :refer [as-file]] ...
null
https://raw.githubusercontent.com/bugdone/headshotbox/3b1b79a23ba578d11fe093e0ee2ec587d98a4d87/src/hsbox/db.clj
clojure
(set! *warn-on-reflection* true) So some systems have subsecond precision... cache config for demo dir Rename demoid column to path Fill in path relative to demo dir
(ns hsbox.db (:require [clojure.data.json :as json] [clojure.java.jdbc :as jdbc] [clojure.java.io :as io :refer [resource]] [clojure.string :as str] [hsbox.util :refer [current-timestamp file-exists? get-canonical-path]] [clojure.java.io :refer [as-file]] ...
f0fbd67a716ea1ebc284798b5c51a1f9cfef4843c9bca1b8935e4f5b905d6a0f
stuart/Erlang-Credit-Card-Validation
credit_card_test.erl
-module(credit_card_test). -include_lib("eunit/include/eunit.hrl"). -author({author, "Stuart Coyle",""}). credit_card_valid_number_test() -> lists:map(fun(N) -> ?assert(credit_card:is_valid(N)) end, valid_numbers()). credit_card_invalid_number_test() -> lists:map(fun(N) -> ?assertNot(credit_card:is_valid(N)) end,...
null
https://raw.githubusercontent.com/stuart/Erlang-Credit-Card-Validation/0676c8fd7c14f8a24e4078726d88896dabd2e94e/src/credit_card_test.erl
erlang
-module(credit_card_test). -include_lib("eunit/include/eunit.hrl"). -author({author, "Stuart Coyle",""}). credit_card_valid_number_test() -> lists:map(fun(N) -> ?assert(credit_card:is_valid(N)) end, valid_numbers()). credit_card_invalid_number_test() -> lists:map(fun(N) -> ?assertNot(credit_card:is_valid(N)) end,...
31c4b57d35a40bad520495706cec421008c2de65f801ff6a9b5315f985159de8
calyau/maxima
readfile.lsp
;;;These subroutines do some low level input and utility stuff Copyright ( C ) 1999 ;;; ;;;This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at...
null
https://raw.githubusercontent.com/calyau/maxima/9352a3f5c22b9b5d0b367fddeb0185c53d7f4d02/share/contrib/state/readfile.lsp
lisp
These subroutines do some low level input and utility stuff This library is free software; you can redistribute it and/or modify it either version 2 of the License , or ( at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even ...
Copyright ( C ) 1999 under the terms of the GNU Library General Public License as published Library General Public License for more details . You should have received a copy of the GNU Library General Public Foundation , Inc. , 675 Mass Ave , Cambridge , , USA . (defconstant *circuit-elements* ...
be374929c53ca123928d9f80b5a40f091a851107e11f0c6bafe43690ae6dc113
comtihon/social_network_example
sn_friends_mngr.erl
%%%------------------------------------------------------------------- @author tihon ( C ) 2017 , < COMPANY > %%% @doc %%% Friend's package manager. Is responsible for making friends via %%% invitations and scanning address books, deleting and restoring friends, %%% a lot of checks which prevents deleted users fro...
null
https://raw.githubusercontent.com/comtihon/social_network_example/eed32f43947fc8d88c41e38fc2d31d2371be0c2b/src/business/friends/sn_friends_mngr.erl
erlang
------------------------------------------------------------------- @doc Friend's package manager. Is responsible for making friends via invitations and scanning address books, deleting and restoring friends, a lot of checks which prevents deleted users from self-restore and others. @end --------------------------...
@author tihon ( C ) 2017 , < COMPANY > -module(sn_friends_mngr). -author("tihon"). -export([ instant_add_friends/3, instant_add_friends_notify/2, should_notify_new_user/2, invite_friend/2, cancel_invite_friend/2, accept_friend/2, delete_friend/2, undelete_friend/2, notify_friends_save_no_self/3,...
ff58ae276156807ae6d015d711c46c2f222bd28f4f0f1cc6a25aff0d8c90b311
Deducteam/zenon_modulo
smtlib.mli
Copyright 2014 INRIA val translate : Smtlib_syntax.commands option -> Phrase.phrase list
null
https://raw.githubusercontent.com/Deducteam/zenon_modulo/9534fbdca0d009a513cb40d9a5a2a98329835c63/smtlib.mli
ocaml
Copyright 2014 INRIA val translate : Smtlib_syntax.commands option -> Phrase.phrase list
edd769e81bb45d70266bcd61e3beb9f188b7735d8cb26b2a7473161de396839e
cedlemo/OCaml-GI-ctypes-bindings-generator
Range.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let get_adjustment = foreign "gtk_range_get_adjustment" (t_typ @-> returning (ptr Adjustment.t_typ)) let get_fill_level = foreign "gtk_range_get_fill_level" (t_typ @-> returning (double)) let get_flippable = foreign "gtk_range_get_flippable...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Range.ml
ocaml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let get_adjustment = foreign "gtk_range_get_adjustment" (t_typ @-> returning (ptr Adjustment.t_typ)) let get_fill_level = foreign "gtk_range_get_fill_level" (t_typ @-> returning (double)) let get_flippable = foreign "gtk_range_get_flippable...
2aad730b6a64ea7cd2a1527fbaf0c591432beb2c6955d05a282c2161fed81339
bigmlcom/sketchy
murmur.clj
Copyright 2014 , 2015 BigML Licensed under the Apache License , Version 2.0 ;; -2.0 (ns bigml.sketchy.test.murmur (:require [clojure.test :refer :all] (bigml.sketchy [murmur :as murmur]))) (deftest hash-values (let [pairs [[0 799242588501267692] [1E16 4977900633541538766] ...
null
https://raw.githubusercontent.com/bigmlcom/sketchy/f06c6f29035f19bbbdaf86c582fed2722032d283/test/bigml/sketchy/test/murmur.clj
clojure
-2.0
Copyright 2014 , 2015 BigML Licensed under the Apache License , Version 2.0 (ns bigml.sketchy.test.murmur (:require [clojure.test :refer :all] (bigml.sketchy [murmur :as murmur]))) (deftest hash-values (let [pairs [[0 799242588501267692] [1E16 4977900633541538766] [(l...
5fc356c58bc18fc8fe372acf4fcea62e0aa4bb0dfa83c7b5ba4b41b36cdb84c1
achirkin/vulkan
Feature.hs
# LANGUAGE DuplicateRecordFields # {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # {-# LANGUAGE Strict #-} module VkXml.Sections.Feature ( parseFeature, parseVkRequi...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/genvulkan/src/VkXml/Sections/Feature.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE Strict # "require" tags #tag-required | Try to parse current tag as being "feature", * If tag name does not match, return events upstream as leftovers * If failed to parse tag "feature", throw an exception ^ Exte...
# LANGUAGE DuplicateRecordFields # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # module VkXml.Sections.Feature ( parseFeature, parseVkRequire , VkFeature (..), VkRequire (..) ) where import Control.Monad.Trans.Class import Data.Co...