_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
d63ea13b68320074585a3452c9e0691c32694ed672dddaeed260f72fbf6d5f8d
kelamg/HtDP2e-workthrough
ex354.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 ex354) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex354.rkt
racket
about the language level of this file in a form that our tools can easily process. – Number – Symbol – (make-add BSL-var-expr BSL-var-expr) – (make-mul BSL-var-expr BSL-var-expr) - Number (cons Symbol (cons Number '())) produces a value for ex if ex passes numeric? produces an error otherwise produces a v...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex354) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/abstraction) (define-struct add (left ...
082208618780dfc7c815b1110dbbb266aaa228e6a55000509fe7df866fd65046
nvim-treesitter/nvim-treesitter
highlights.scm
(comment) @comment (null) @constant.builtin [ (true) (false) ] @boolean (number) @number (unit) @keyword (string) @string (multiline_string) @string (string (escape_sequence) @string.escape) (unquoted_string) @string [ "url" "file" "classpath" "required" ] @keyword (include "include" @include) (substitution [...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/00ebda5fd85df357f2dc56bc1236c36f5f204e48/queries/hocon/highlights.scm
scheme
(comment) @comment (null) @constant.builtin [ (true) (false) ] @boolean (number) @number (unit) @keyword (string) @string (multiline_string) @string (string (escape_sequence) @string.escape) (unquoted_string) @string [ "url" "file" "classpath" "required" ] @keyword (include "include" @include) (substitution [...
baf161a59e58062ba283ee30d7203a069f086facf777e668ff2905cd529ffc31
rmloveland/scheme48-0.53
session.scm
Copyright ( c ) 1993 - 1999 by and . See file COPYING . ; Session data ; The initializers are saved in images. (define *session-data-initializers* '()) (define (make-session-data-slot! init) (let ((slot (length *session-data-initializers*))) (set! *session-data-initializers* (cons init *session-data-init...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/rts/session.scm
scheme
Session data The initializers are saved in images.
Copyright ( c ) 1993 - 1999 by and . See file COPYING . (define *session-data-initializers* '()) (define (make-session-data-slot! init) (let ((slot (length *session-data-initializers*))) (set! *session-data-initializers* (cons init *session-data-initializers*)) (if (vector? (session-data)) (set-sess...
5cbef854c3607d573c6cfeb3f78d5111409fbc863dbbefe1e22a54f8eacb13c3
godfat/sandbox
combos.hs
import Control.Monad -- concatMap combos0 :: [[a]] -> [[a]] combos0 [] = [[]] combos0 (xs:xss) = concatMap (\rs -> map (:rs) xs) (combos0 xss) -- list comprehension combos1 :: [[a]] -> [[a]] combos1 [] = [[]] combos1 (xs:xss) = [ x : rs | x <- xs, rs <- combos1 xss ] combos2 :: [[a]] -> [[a]] combos2 [] = [[]] comb...
null
https://raw.githubusercontent.com/godfat/sandbox/eb6294238f92543339adfdfb4ba88586ba0e82b8/haskell/combos.hs
haskell
concatMap list comprehension list monad
import Control.Monad combos0 :: [[a]] -> [[a]] combos0 [] = [[]] combos0 (xs:xss) = concatMap (\rs -> map (:rs) xs) (combos0 xss) combos1 :: [[a]] -> [[a]] combos1 [] = [[]] combos1 (xs:xss) = [ x : rs | x <- xs, rs <- combos1 xss ] combos2 :: [[a]] -> [[a]] combos2 [] = [[]] combos2 (xs:xss) = do{ x <- xs; rs <- c...
14409813a2d381052b513e5c8ab3b5fb212c6585cf55d945f3152810628d41f3
reborg/clojure-essential-reference
3.clj
< 1 > ;; #'user/output < 2 > ;; evaluated 1
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/Sequences/OtherGenerators/lazy-seq/3.clj
clojure
#'user/output evaluated
< 1 > < 2 > 1
14480e26ecab7f2893fab8b92d0dff5ad3e37f56a14d95ed39708cb6b146eb44
awakesecurity/spectacle
Prop.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_HADDOCK show-extensions #-} -- | -- Module : Language.Spectacle.Specification.Prop Copyright : ( c ) Arista Networks , 2022 - 2023 License : Apache License 2.0 , see LICENSE -- -- Stability : stable Portability :...
null
https://raw.githubusercontent.com/awakesecurity/spectacle/430680c28b26dabb50f466948180eb59ba72fc8e/src/Language/Spectacle/Specification/Prop.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS_HADDOCK show-extensions # | Module : Language.Spectacle.Specification.Prop Stability : stable TODO: docs @since 1.0.0 * Temporal Formula ** Projection * Temporal Operators ** Pretty Printing ------------------------------------------------------------------...
# LANGUAGE AllowAmbiguousTypes # Copyright : ( c ) Arista Networks , 2022 - 2023 License : Apache License 2.0 , see LICENSE Portability : non - portable ( GHC extensions ) module Language.Spectacle.Specification.Prop TemporalType (PropG, PropF, PropGF, PropFG), toFormula, toModality, ...
58ea9932cb12f0a77febd5f42c060d96405bff6abab074d67cb944a5891ee829
zwizwa/erl_tools
ghci.erl
%% FIXME: Special case ExoBERT . Later bootstrap todo : %% %% - start ghci %% - start loop - use to get pid %% - save pid for later control %% - proper restart even if loop is running: %% exo:restart(ghci_bert). %% %% - start loop: exo : ) ! { cmds,[":reload","start " ] } . %% %% - stop loop: %% bert_r...
null
https://raw.githubusercontent.com/zwizwa/erl_tools/affd4060ab5b963e0cc8fcfd4a1ca5023aa518d3/src/ghci.erl
erlang
FIXME: - start ghci - start loop - save pid for later control - proper restart even if loop is running: exo:restart(ghci_bert). - start loop: - stop loop: bert_rpc:call("localhost",7890,control,stop,[]). - alternatively, get pid via this, then send SIGINT Wrapper for ghci. See also ghcid.erl - NIH:...
Special case ExoBERT . Later bootstrap todo : - use to get pid exo : ) ! { cmds,[":reload","start " ] } . bert_rpc : call("localhost",7890,control , pid , [ ] ) . Notes ' clear ' and { ' } -module(ghci). -export([start_link/1, handle/2, call/5]). start_link(#{ ghci_cmd := Cmd, module := M...
b47a5ac681f2a3488b4e48297a582d4b36cb04ceb7ab616266b9cd22aa9e0af5
borodust/alien-works
utils.lisp
(cl:in-package :alien-works.tools.resources) (declaim (special *scene* *mesh* *material* *images* *materials*)) (a:define-constant +attribute-alignment+ 4) (defvar *dry-run* nil) (defmacro with-ai-struct ((var type &optional value) &body bod...
null
https://raw.githubusercontent.com/borodust/alien-works/a69254723ca02ddef691974f5daa52aaabfbce0b/tools/resources/scene/utils.lisp
lisp
(cl:in-package :alien-works.tools.resources) (declaim (special *scene* *mesh* *material* *images* *materials*)) (a:define-constant +attribute-alignment+ 4) (defvar *dry-run* nil) (defmacro with-ai-struct ((var type &optional value) &body bod...
b355a0ad20c5bd12db8f1ba46aa6b268e0a8cf5d892fcd9a60ad4a15fdbae158
ghcjs/jsaddle
Warp.hs
# LANGUAGE CPP # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} ----------------------------------------------------------------------------- -- -- Module : Language.Javascript.JSaddle.WebSockets Copyright : ( c ) License : MIT -- Maintainer : < > -- -- | -- ----------------...
null
https://raw.githubusercontent.com/ghcjs/jsaddle/97273656e28790ab6e35c827f8086cf47bfbedca/jsaddle-warp/src/Language/Javascript/JSaddle/Warp.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------------- Module : Language.Javascript.JSaddle.WebSockets | --------------------------------------------------------------------------- | Run the given 'JSM' action as the main entry point. Either directly
# LANGUAGE CPP # # LANGUAGE LambdaCase # Copyright : ( c ) License : MIT Maintainer : < > module Language.Javascript.JSaddle.Warp ( * Running JSM over WebSockets run #ifndef ghcjs_HOST_OS , module Language.Javascript.JSaddle.WebSockets #endif ) where #ifndef ghcjs_HOST_OS import Net...
11f2e956dde6cfb666f9e0b3b3a7f09bbbdb46432e98164ea302febff21539b7
CoNarrative/precept
project.clj
(defproject fullstack "0.0.0" :dependencies [[org.clojure/clojure "1.9.0-alpha17"] [ch.qos.logback/logback-classic "1.1.7"] [cljs-ajax "0.5.8"] [compojure "1.5.2"] [cprop "0.1.10"] [hiccup "1.0.5"] [luminus-http-kit ...
null
https://raw.githubusercontent.com/CoNarrative/precept/6078286cae641b924a2bffca4ecba19dcc304dde/examples/fullstack/project.clj
clojure
(defproject fullstack "0.0.0" :dependencies [[org.clojure/clojure "1.9.0-alpha17"] [ch.qos.logback/logback-classic "1.1.7"] [cljs-ajax "0.5.8"] [compojure "1.5.2"] [cprop "0.1.10"] [hiccup "1.0.5"] [luminus-http-kit ...
260b33812b80db2dab40e6ea2121873a93ef441b20ef31a7d1a79d5666dd31cb
openmusic-project/openmusic
test.lisp
;;;; -*- Mode: Lisp -*- $ I d : test.lisp 658 2008 - 11 - 21 18:27:24Z binghe $ (in-package :cl-user) UDP Echo Test : use macros (defun udp-echo-test-3 (&optional (port 10000)) (let* ((fn #'(lambda (data) (map '(simple-array (unsigned-byte 8) (*)) #'char-code (format nil "...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/9560c064512a1598cd57bcc9f0151c0815178e6f/OPENMUSIC/code/api/externals/lispworks-udp/test.lisp
lisp
-*- Mode: Lisp -*- wait the socket until it's available
$ I d : test.lisp 658 2008 - 11 - 21 18:27:24Z binghe $ (in-package :cl-user) UDP Echo Test : use macros (defun udp-echo-test-3 (&optional (port 10000)) (let* ((fn #'(lambda (data) (map '(simple-array (unsigned-byte 8) (*)) #'char-code (format nil "receive from ~A:~A -> ~A...
19c96e47d1871477eb39b0d2f460147f5737f5dcbc8bc21c3faaa01dcf97ba88
MyDataFlow/ttalk-server
meck_args_matcher.erl
%%%============================================================================ 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 ...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/deps/meck/src/meck_args_matcher.erl
erlang
============================================================================ you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @private -module(meck_args_matcher). -export_type([args_spec/0]). -export_type([opt_args_spec/0]). -export_type([args_matcher/0]). -export([new/1]). -export([arity/1]). -ex...
ed13208a2a9740f4ae5d03924582c9caaa436635b2721ac0d3b034b729fd57b2
tkych/lisp-dojo
023.lisp
Last modified : 2013 - 10 - 15 19:00:32 tkych (define-practice :id 023 :name my-member :level 0 :problem " MY-MEMBER item list => generalized-boolean Make function MY-MEMBER. Examples: (my-member 1 '(0 1 2 3)) => (1 2 3) (my-member 4 '(0 1 2 3)) => () (my-member 1 '()) =>...
null
https://raw.githubusercontent.com/tkych/lisp-dojo/ba83d025bc03101eec43ec6be44585d7b076caf6/practices/023.lisp
lisp
Last modified : 2013 - 10 - 15 19:00:32 tkych (define-practice :id 023 :name my-member :level 0 :problem " MY-MEMBER item list => generalized-boolean Make function MY-MEMBER. Examples: (my-member 1 '(0 1 2 3)) => (1 2 3) (my-member 4 '(0 1 2 3)) => () (my-member 1 '()) =>...
ee795155b17390236048b68c7bfc18cfda39ddb188d06757d464b54b16efb364
kthielen/stlcc
Type.hs
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances , TypeSynonymInstances # module STLC.Type where import Util.Annotated import Util.Sequence import Util.Tuples import Util.String import Util.Num import Data.Set as Set hiding (map, filter, (\\)) import Data.List as List hiding (del...
null
https://raw.githubusercontent.com/kthielen/stlcc/369492daad6498a93c00f5924a99ceb65b5f1062/STLC/Type.hs
haskell
Types Type environments and top-level bindings
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances , TypeSynonymInstances # module STLC.Type where import Util.Annotated import Util.Sequence import Util.Tuples import Util.String import Util.Num import Data.Set as Set hiding (map, filter, (\\)) import Data.List as List hiding (del...
91d281949541b2f37c37d9ba7862ef90376f1bf3ca8ad2325536664259910bd1
exercism/haskell
CustomSet.hs
module CustomSet ( delete , difference , empty , fromList , insert , intersection , isDisjointFrom , isSubsetOf , member , null , size , toList , union ) where import Prelude hiding (null) data CustomSet a = Dummy deriving (Eq, Show) delete :: a -> CustomSet a -> CustomSet a delete x set ...
null
https://raw.githubusercontent.com/exercism/haskell/2b98084efc7d5ab098975c462f7977ee19c2fd29/exercises/practice/custom-set/src/CustomSet.hs
haskell
module CustomSet ( delete , difference , empty , fromList , insert , intersection , isDisjointFrom , isSubsetOf , member , null , size , toList , union ) where import Prelude hiding (null) data CustomSet a = Dummy deriving (Eq, Show) delete :: a -> CustomSet a -> CustomSet a delete x set ...
d3cf65ae8775b0cf84826743ae62c5eaa8dcdbd6c3f5f61589033a7ced7558bb
aryx/xix
printexc.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/lib_core/stdlib/printexc.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Printf;; let locfmt = match Sys.os_type with | _ -> ("File \"%s\", line %d, characters %d-%d: %s" : ('...
403864ab98d3a9433f23194623e27369d1e75eb7deff0e5a661b6be5f2a2de56
fortytools/holumbus
PdfToText.hs
# OPTIONS # -- ------------------------------------------------------------ module Holumbus.Crawler.PdfToText where import Control.Concurrent.MVar import qualified Control.Exception as CE import qualified Data.ByteString.Lazy as BS import Data.String.Unicode ( u...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Holumbus-Searchengine/src/Holumbus/Crawler/PdfToText.hs
haskell
------------------------------------------------------------ ------------------------------------------------------------ | Conversion of pdf data into plain text. The conversion is done by calling an external program @pdftotext@ (contained in linux packages @xpdf@). -----------------------------------------------...
# OPTIONS # module Holumbus.Crawler.PdfToText where import Control.Concurrent.MVar import qualified Control.Exception as CE import qualified Data.ByteString.Lazy as BS import Data.String.Unicode ( utf8ToUnicode ) import System.Directory ...
51d344b47b78ba5cb81c4b80eb3edfd600e2ea777f073c508be5dfbe4f68fff0
bhaskara/programmable-reinforcement-learning
test-tree.lisp
(defpackage test-tree (:use cl utils tree)) (in-package test-tree) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; basic tree construction, consistency ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (setf n1 (make-node :node-label 'foo) n2 (add-new-child n1...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/data-struct/tree/test-tree.lisp
lisp
basic tree construction, consistency
(defpackage test-tree (:use cl utils tree)) (in-package test-tree) (setf n1 (make-node :node-label 'foo) n2 (add-new-child n1 nil 'bar) n3 (add-new-child n1 nil 'baz) n4 (add-new-child n2 'qux-edge 'qux) n5 (add-new-child n2 'oof-edge 'oof)) (setf e1 (make-edge n5 n1)) ...
4c6e38fbef6576a46bd9a51ecad450d1c3cc0787014b1d3d7228de68e159d58f
bsaleil/lc
primes.scm.scm
;;------------------------------------------------------------------------------ Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst...
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/tools/benchtimes/resultVMIL-lc-gsc-lc/LCnaive/primes.scm.scm
scheme
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Gabriel benchmarks C benchmarks Other benchmarks
Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst) `(vector ,@lst)) (def-macro (FLOATmake-vector n . init) `(make-vector ,...
9ef0115deaa9c5207ea24ea57dd63819ac356e4c100ef869acc1819078589016
meooow25/haccepted
PruferBench.hs
module PruferBench where import Criterion import Prufer ( graphToSeq, seqToGraph ) import Util ( evalR, randPruferSeq, sizedBench ) benchmark :: Benchmark benchmark = bgroup "Prufer" Convert a Prufer sequence to a tree of n nodes bgroup "seqToGraph" $ map benchSeqToGraph sizes Convert a tree of n no...
null
https://raw.githubusercontent.com/meooow25/haccepted/2bc153ca95038de3b8bac83eee4419b3ecc116c5/bench/PruferBench.hs
haskell
module PruferBench where import Criterion import Prufer ( graphToSeq, seqToGraph ) import Util ( evalR, randPruferSeq, sizedBench ) benchmark :: Benchmark benchmark = bgroup "Prufer" Convert a Prufer sequence to a tree of n nodes bgroup "seqToGraph" $ map benchSeqToGraph sizes Convert a tree of n no...
0d04fd493a02f2bb7e21ea7b6b962176867d855d2fd76afc1ef93016566b8fd4
elastic/eui-cljs
icon_memory.cljs
(ns eui.icon-memory (:require ["@elastic/eui/lib/components/icon/assets/memory.js" :as eui])) (def memory eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_memory.cljs
clojure
(ns eui.icon-memory (:require ["@elastic/eui/lib/components/icon/assets/memory.js" :as eui])) (def memory eui/icon)
c16383d80f713d4dfc0176dbc3a9619883ed5db93302106ec93b32668c890ac1
lierdakil/pandoc-crossref
CustomLabels.hs
pandoc - crossref is a pandoc filter for numbering figures , equations , tables and cross - references to them . Copyright ( C ) 2015 < > 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 Foundat...
null
https://raw.githubusercontent.com/lierdakil/pandoc-crossref/e65a6cde871d0d5ec40628f7f51c2bdbab7784b7/lib-internal/Text/Pandoc/CrossRef/Util/CustomLabels.hs
haskell
# LANGUAGE OverloadedStrings #
pandoc - crossref is a pandoc filter for numbering figures , equations , tables and cross - references to them . Copyright ( C ) 2015 < > 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 Foundat...
fe8ad50cf87280a1937ab94131e9f55109452d5ba73ce1014eab7bdd49959b72
input-output-hk/plutus
NamesSpec.hs
module NamesSpec ( names ) where import PlutusIR.Generators.AST import PlutusIR.Mark import PlutusIR.Transform.Rename import PlutusCore.Rename import PlutusCore.Test import Test.Tasty names :: TestTree names = testGroup "names" [ test_scopingGood genProgram rename , test_scopingBad genP...
null
https://raw.githubusercontent.com/input-output-hk/plutus/75d60c48320068e918f1f260367d080031c970b5/plutus-core/plutus-ir/test/NamesSpec.hs
haskell
module NamesSpec ( names ) where import PlutusIR.Generators.AST import PlutusIR.Mark import PlutusIR.Transform.Rename import PlutusCore.Rename import PlutusCore.Test import Test.Tasty names :: TestTree names = testGroup "names" [ test_scopingGood genProgram rename , test_scopingBad genP...
b14777645ff1c479857ea7e81926766bf718b300a1d56178a2a581f662828f29
marijnh/Postmodern
trivial-utf-8.lisp
-*- Mode : LISP ; Syntax : Ansi - Common - Lisp ; Base : 10 ; Package : CL - POSTGRES - TRIVIAL - UTF-8 ; -*- ;;; Minimal utf-8 decoding and encoding library. ;;; ;;; See -lisp.net/project/trivial-utf-8/ (no longer maintained?) ;;; This file is being kept in case we need to make patches or additions (in-package :cl...
null
https://raw.githubusercontent.com/marijnh/Postmodern/d54e494000e1915a7046e8d825cb635555957e85/cl-postgres/trivial-utf-8.lisp
lisp
Syntax : Ansi - Common - Lisp ; Base : 10 ; Package : CL - POSTGRES - TRIVIAL - UTF-8 ; -*- Minimal utf-8 decoding and encoding library. See -lisp.net/project/trivial-utf-8/ (no longer maintained?) This file is being kept in case we need to make patches or additions
(in-package :cl-postgres-trivial-utf-8) (eval-when (:compile-toplevel :load-toplevel :execute) (defparameter *optimize* '(optimize (speed 3) #-ecl(safety 0) #+ecl(safety 1) (space 0) (debug 1) (compilation-speed 0)))) (defun utf-8-byte-length (string) "Calculate the amount of b...
242488f4b60522a599305e859005eafbe4bec9bada9986963b11f98fbb72d79a
LCBH/UKano
movenew.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
null
https://raw.githubusercontent.com/LCBH/UKano/13c046ddaca48b45d3652c3ea08e21599e051527/proverif2.01/src/movenew.ml
ocaml
Move restrictions under inputs to make the analysis more precise
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Cryptographic protocol verifier * * * ...
f64c83e2456315d4656bb44649f1b7474198ddbb7f42f7aa1071a59d381cef38
Perry961002/SICP
exa2.1.3-what-is-data.scm
(define (cons x y) (define (dispatch m) (cond ((= m 0) x) ((= m 1) y) (else (error "Argument not 0 or 1 -- CONS" m)))) dispatch) (define (car z) (z 0)) (define (cdr z) (z 1))
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap2/example/exa2.1.3-what-is-data.scm
scheme
(define (cons x y) (define (dispatch m) (cond ((= m 0) x) ((= m 1) y) (else (error "Argument not 0 or 1 -- CONS" m)))) dispatch) (define (car z) (z 0)) (define (cdr z) (z 1))
480c07ff013f077d4d9d8679a45edb1261d953b2e9af70a68c04d4d07c7bf36f
input-output-hk/plutus
Internal.hs
-- editorconfig-checker-disable-file -- | The internal module of the type checker that defines the actual algorithms, -- but not the user-facing API. {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DerivingStrategies # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RankNTypes #...
null
https://raw.githubusercontent.com/input-output-hk/plutus/78402fb44148ce97a0a30efe406ba431fc49006c/plutus-core/plutus-ir/src/PlutusIR/TypeCheck/Internal.hs
haskell
editorconfig-checker-disable-file | The internal module of the type checker that defines the actual algorithms, but not the user-facing API. # LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # Using @transformers@ rather than @mtl@, because the former doesn't impose the 'Monad' constraint on 'local'. ...
# LANGUAGE DerivingStrategies # # LANGUAGE LambdaCase # # LANGUAGE RankNTypes # module PlutusIR.TypeCheck.Internal ( BuiltinTypes (..) , TypeCheckConfig (..) , TypeCheckT , MonadKindCheck , MonadTypeCheck , MonadTypeCheckPir , tccBuiltinTypes , PirTCConfig (..) , A...
c572f88a3bcaf05b87d8893d248761e76238cee7f44f135a1d324b3fac789af9
michaelballantyne/ee-lib
flip-intro-scope.rkt
#lang racket/base (provide flip-intro-scope) (require racket/private/check) (define (make-intro-scope-introducer) (define no-scope (datum->syntax #f 'foo)) (define intro-scope (syntax-local-identifier-as-binding (syntax-local-introduce no-scope))) (make-syntax-delta-introducer intro-scope ...
null
https://raw.githubusercontent.com/michaelballantyne/ee-lib/30546646afc6c135f30e187d43b6cf943ece52d6/private/flip-intro-scope.rkt
racket
#lang racket/base (provide flip-intro-scope) (require racket/private/check) (define (make-intro-scope-introducer) (define no-scope (datum->syntax #f 'foo)) (define intro-scope (syntax-local-identifier-as-binding (syntax-local-introduce no-scope))) (make-syntax-delta-introducer intro-scope ...
27c087b13f72062b4f61ad2bf3d0dfc7a2c3728e1d4bfd7fe128e7a0c0ef8dcb
rm-hull/big-bang
level_builder.cljs
(ns big-bang.examples.pacman.level-builder (:require [cljs.core.async :refer [chan <! map<] :as async] [clojure.string :refer [split-lines]] [dataview.ops :refer [create-reader]] [big-bang.examples.pacman.config :as config] [big-bang.examples.pacman.util :refer [posn in...
null
https://raw.githubusercontent.com/rm-hull/big-bang/2825e7f0bb7615e1158a72d58f426bc1e33bd9ef/examples/pacman/src/level_builder.cljs
clojure
┏ ━ ┗ ┛ ┃ TODO below bits to be removed - pills to draw separately
(ns big-bang.examples.pacman.level-builder (:require [cljs.core.async :refer [chan <! map<] :as async] [clojure.string :refer [split-lines]] [dataview.ops :refer [create-reader]] [big-bang.examples.pacman.config :as config] [big-bang.examples.pacman.util :refer [posn in...
795074be2034f225af4adf522bf2717d0eb4453ad9e7a534a8d9727df9ba357f
tiancaiamao/yasfs
interpret.scm
(define (atom? o) (not (pair? o))) (define (evaluate e env cont) (if (atom? e) (if (symbol? e) (evaluate-variable e env cont) (cont e)) (case (car e) ((define) (evaluate-define (cadr e) (caddr e) env cont)) ((quote) (evaluate-quote (cadr e) env cont)) ((if) (evaluate-...
null
https://raw.githubusercontent.com/tiancaiamao/yasfs/c138b7bf9a16ee70b90e5d18bdd45c60cd8e2f44/interpret.scm
scheme
(define (atom? o) (not (pair? o))) (define (evaluate e env cont) (if (atom? e) (if (symbol? e) (evaluate-variable e env cont) (cont e)) (case (car e) ((define) (evaluate-define (cadr e) (caddr e) env cont)) ((quote) (evaluate-quote (cadr e) env cont)) ((if) (evaluate-...
d838e1e837a9b111cc74ce55b4aa48ac57a3be595d4f37ce4ce89f3275b696e4
cardmagic/lucash
waitcodes.scm
Scsh routines for analysing exit codes returned by WAIT . Copyright ( c ) 1994 by . See file COPYING . ;;; ;;; To port these to a new OS, consult /usr/include/sys/wait.h, and check the WIFEXITED , WEXITSTATUS , WIFSTOPPED , WSTOPSIG , ;;; WIFSIGNALED, and WTERMSIG macros for the magic fields they use. These ...
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scsh/solaris/waitcodes.scm
scheme
To port these to a new OS, consult /usr/include/sys/wait.h, WIFSIGNALED, and WTERMSIG macros for the magic fields they use. I could have done a portable version by making C calls for this, but it's such overkill. If process terminated normally, return the exit code, otw #f. If the process was suspended, return...
Scsh routines for analysing exit codes returned by WAIT . Copyright ( c ) 1994 by . See file COPYING . and check the WIFEXITED , WEXITSTATUS , WIFSTOPPED , WSTOPSIG , These definitions are for NeXTSTEP . (define (status:exit-val status) (and (zero? (bitwise-and #xFF status)) (bitwise-and #xFF (ari...
bc2e98a86361e598a5ca4cbeebcdc28e5e2d1eb43c106fd60fd391ffbdd2ffb7
mfoemmel/erlang-otp
percept_analyzer.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/percept/src/percept_analyzer.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2007 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(percept_analyzer). -export([ mi...
c03556e21e4c9a9510ee06854c9a7feb82f04b422d8b533911cf86cfc695ace7
lispm/FRL
domain.lisp
(include declar) (declare (macros t)) ;; ;; Knowledge Domains. ;; ;; see file dhl//rule.l for function domain ;; which allows the user to declare a domain. ;; (defmacro gather (domain args) `(apply (rvalue-only ,domain 'gather) (cons ,domain ,args))) (defun dput macro (arg) `(let ((/:comment-field 'domain/:) ...
null
https://raw.githubusercontent.com/lispm/FRL/1a2aadf71062a89474b1164e4539911011b3b63e/dhl/domain.lisp
lisp
Knowledge Domains. see file dhl//rule.l for function domain which allows the user to declare a domain.
(include declar) (declare (macros t)) (defmacro gather (domain args) `(apply (rvalue-only ,domain 'gather) (cons ,domain ,args))) (defun dput macro (arg) `(let ((/:comment-field 'domain/:) (/:not-comment-field 'not-domain/:) (slot-field 'domain) (inherit-slot-field nil) ($facet-field '$domain) ($not-f...
24a68cc006a882fa86cdbbc14c011d6783d673535be24f600618b0e77843c465
erlangonrails/devdb
kai_tcp_server_SUITE.erl
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 License is distributed on an ...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/kai-0.4.0/test/kai_tcp_server_SUITE.erl
erlang
the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. for echo server check the echo server rebooted. wait f...
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 distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(kai_tcp_server_SUITE). -compile(export_all). -include("ct.hrl")....
7864e69a0ab60bdd1c03e72550a71e087e070fbadabb4a6e131968a172942cc5
cirodrig/triolet
Rules.hs
module BuildSystem.Rules (generateTrioletCRules, generateTrioletPreprocessorRules, moveDataFiles, moveRtsDataFiles, compileRtsCFiles, compileRtsCxxFiles, compileRtsLltFiles, linkRts, compileTestDriver, generateShakeRules, shake, ...
null
https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/BuildSystem/Rules.hs
haskell
| Create a shake rule that exactly matches a string | The autogenerated 'Paths' module | Auto-generated files describing properties of the target architecture | Generate C headers required by ^ Source file ^ Object file ^ Rule generator Run the compiler In addition to the source file, the auto-generated pre...
module BuildSystem.Rules (generateTrioletCRules, generateTrioletPreprocessorRules, moveDataFiles, moveRtsDataFiles, compileRtsCFiles, compileRtsCxxFiles, compileRtsLltFiles, linkRts, compileTestDriver, generateShakeRules, shake, ...
d8a0e989535a2425da048db131508deda0da40d6317cda7f9b3ec780d9d1ad8b
janestreet/bonsai
freeform_multiselect.ml
open! Core open! Bonsai_web open! Bonsai.Let_syntax (** This control is similar to the typeahead control, differing in the fact that it doesn't aim to complete your input. Think of this control as a multi-select that you're free to add random values to. *) let input ~placeholder:placeholder_ ~value:value_ ~ex...
null
https://raw.githubusercontent.com/janestreet/bonsai/33e9a58fc55ec12095959dc5ef4fd681021c1083/web_ui/freeform_multiselect/src/freeform_multiselect.ml
ocaml
* This control is similar to the typeahead control, differing in the fact that it doesn't aim to complete your input. Think of this control as a multi-select that you're free to add random values to. This state is held internally to force the typeahead to clear the text contents of the input field when a...
open! Core open! Bonsai_web open! Bonsai.Let_syntax let input ~placeholder:placeholder_ ~value:value_ ~extra_attr ~id:id_ ~on_input:on_input_ = Vdom.Node.input ~attr: Vdom.Attr.( extra_attr @ type_ "text" @ create "list" id_ @ placeholder placeholder_ Both Attr...
ed144ebf5a1f8e63e95d77aa067229cf54ad0359702a826680e6230ffadf57ba
cram2/cram
designator-utils.lisp
;;; Copyright ( c ) 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 list...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_common/cram_robot_interfaces/src/designator-utils.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redi...
Copyright ( c ) 2012 , < > * Neither the name of Willow Garage , Inc. nor the names of its THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
9aa5f2c13adaf0631f6a59551797d1ffc4687070990e55065cc11b388c709f38
mrijkeboer/euuid
euuid.erl
%% ------------------------------------------------------------------- %% euuid.erl - Erlang UUID API module %% @author < > 2010 %% @version {@vsn}, {@date}, {@time} @doc Erlang UUID API module . %% @end %% The MIT license . %% Copyright ( c ) 2010 %% %% Permission is hereby granted, free of charge, t...
null
https://raw.githubusercontent.com/mrijkeboer/euuid/f9d435128d7840d55a7b504ab82f5033c381833f/src/euuid.erl
erlang
------------------------------------------------------------------- euuid.erl - Erlang UUID API module @version {@vsn}, {@date}, {@time} @end Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to rights to use, co...
@author < > 2010 @doc Erlang UUID API module . The MIT license . Copyright ( c ) 2010 deal in the Software without restriction , including without limitation the sell copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE...
77480115bcfe1cf79ddfbaa4b5f60ee505702687e6ce74208dd64ad6efe331cd
ctford/Idris-Elba-Dev
Transforms.hs
# LANGUAGE PatternGuards # module Idris.Transforms where import Idris.AbsSyntax import Idris.Core.CaseTree import Idris.Core.TT data TTOpt = TermTrans (TT Name -> TT Name) -- term transform | CaseTrans (SC -> SC) -- case expression transform class Transform a where transform :: TTOpt -> a -> a inst...
null
https://raw.githubusercontent.com/ctford/Idris-Elba-Dev/e915e1d6b7a5921ba43d2572a9ad9b980619b8ee/src/Idris/Transforms.hs
haskell
term transform case expression transform
# LANGUAGE PatternGuards # module Idris.Transforms where import Idris.AbsSyntax import Idris.Core.CaseTree import Idris.Core.TT class Transform a where transform :: TTOpt -> a -> a instance Transform (TT Name) where transform o@(TermTrans t) tm = trans t tm where trans t (Bind n b tm) = t $ Bind n (...
70ce0fbe234708813bf832c4d9812f607d0cd3f8f2e5ab3627e5ded3cc42c856
PrecursorApp/precursor
permissions.cljs
(ns frontend.components.permissions (:require [frontend.components.common :as common] [frontend.utils :as utils] [frontend.urls :as urls] [frontend.utils.date :refer (date->bucket)]) (:require-macros [sablono.core :refer (html)])) (defn format-access-date [date] (date->bucket ...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src-cljs/frontend/components/permissions.cljs
clojure
TODO: add types to db
(ns frontend.components.permissions (:require [frontend.components.common :as common] [frontend.utils :as utils] [frontend.urls :as urls] [frontend.utils.date :refer (date->bucket)]) (:require-macros [sablono.core :refer (html)])) (defn format-access-date [date] (date->bucket ...
892406818e538dfa487051956164e5f96e9c1c0f59d82a924770113359c06749
kallisti-dev/hs-webdriver
Extension.hs
# LANGUAGE GeneralizedNewtypeDeriving , FlexibleContexts # |Functions and types for working with Google Chrome extensions . module Test.WebDriver.Chrome.Extension ( ChromeExtension , loadExtension , loadRawExtension ) where import Data.ByteString.Lazy as LBS import Data.ByteString.Base64.L...
null
https://raw.githubusercontent.com/kallisti-dev/hs-webdriver/ea594ce8720c9e11f053b2567f250079f0eac33b/src/Test/WebDriver/Chrome/Extension.hs
haskell
hides some "unused import" warnings are passed to the 'Test.Webdriver.chromeExtensions' field. |Load a .crx file as a 'ChromeExtension'. |Load raw .crx data as a 'ChromeExtension'.
# LANGUAGE GeneralizedNewtypeDeriving , FlexibleContexts # |Functions and types for working with Google Chrome extensions . module Test.WebDriver.Chrome.Extension ( ChromeExtension , loadExtension , loadRawExtension ) where import Data.ByteString.Lazy as LBS import Data.ByteString.Base64.L...
bfdfd2c16cef0c0731da2d5c6ce78c73c11aae29b6b555de4549dce01234b48d
Erlang-Openid/erljwt
erljwt_sig.erl
-module(erljwt_sig). -include_lib("public_key/include/public_key.hrl"). -export([verify/4, create/3, algo_to_atom/1, algo_to_binary/1]). -define(ALGO_MAPPING, [ { none, <<"none">> , none, undefined}, { rs256, <<"RS256">>, sha256, undefined }, ...
null
https://raw.githubusercontent.com/Erlang-Openid/erljwt/d2baeecd49c3dd6e41b8511bbf7a35ec995f06cf/src/erljwt_sig.erl
erlang
-module(erljwt_sig). -include_lib("public_key/include/public_key.hrl"). -export([verify/4, create/3, algo_to_atom/1, algo_to_binary/1]). -define(ALGO_MAPPING, [ { none, <<"none">> , none, undefined}, { rs256, <<"RS256">>, sha256, undefined }, ...
80a84111ae57c354a7b47f59771685b2af737a9f895ed444ac2fc4ad42205989
coq/coq
topfmt.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/37e820c1bd5d321cff65285ab7e162b554126d61/vernac/topfmt.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
481de80b381276ce68557eb14cf472046f52d3afc53d76ec3aba212464f7585e
pol-is/polisMath
conv_man.clj
Copyright ( C ) 2012 - present , The Authors . This program is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . This program is distributed in the hope that it will be useful , but WITHOUT A...
null
https://raw.githubusercontent.com/pol-is/polisMath/dfe233e8c9207c2ce11e1379286ad0cf0f732067/src/polismath/conv_man.clj
clojure
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU Affero General Public License for more details . You should have received a copy of the GNU Affero General Public License along with this program . If not , see < / > . Here, we organize things in terms of a con...
(ns polismath.conv-man "This is the namesascpe for the " (:require [polismath.math.named-matrix :as nm] [polismath.math.conversation :as conv] [polismath.math.clusters :as clust] [polismath.meta.metrics :as met] [polismath.meta.notify :as notify] [polisma...
a5b0c4450606dd997a00a77a1f2201f87f68386d4f32497f9f7566ed0bbf1005
blindglobe/common-lisp-stat
100-ExploratoryDataAnalysis.lisp
;;; -*- mode: lisp -*- Time - stamp : < 2013 - 07 - 31 07:33:54 tony > Creation : < 2009 - 04 - 19 09:41:09 > ;;; File: basic-eda.lisp Author : < > Copyright : ( c)2009 - - , . See LICENSE.mit in top level ;;; directory for conditions. ;;; Purpose: Example of basic explorato...
null
https://raw.githubusercontent.com/blindglobe/common-lisp-stat/0c657e10a4ee7e8d4ef3737f8c2d4e62abace2d8/examples/100-ExploratoryDataAnalysis.lisp
lisp
-*- mode: lisp -*- File: basic-eda.lisp directory for conditions. Purpose: Example of basic exploratory data analysis in CLS. What is this talk of 'release'? Klingons do not make software 'releases'. Our software 'escapes', leaving a bloody trail of designers and quality assurance people in...
Time - stamp : < 2013 - 07 - 31 07:33:54 tony > Creation : < 2009 - 04 - 19 09:41:09 > Author : < > Copyright : ( c)2009 - - , . See LICENSE.mit in top level (in-package :cls-examples) We assume that the " loading-data.lisp " code has been run , and one This will not work unless 00-##.l...
efefeca58d2d2fb58a9049afbde03e1a4f5bd76647cfb162332e8f547c4bd4f8
solarbit/pool
sbt_app.erl
Copyright 2016 solarbit.cc < > See MIT LICENSE -module(sbt_app). -include("solarbit.hrl"). -behaviour(application). -export([start/2, prep_stop/1, stop/1]). start(normal, []) -> sbt_sup:start_link(). prep_stop(State) -> % notify miners...? State. stop(_State) -> ok.
null
https://raw.githubusercontent.com/solarbit/pool/5576f1b71a469dfa2fcb6b5766667402eacc3860/lib/solarbit/src/sbt_app.erl
erlang
notify miners...?
Copyright 2016 solarbit.cc < > See MIT LICENSE -module(sbt_app). -include("solarbit.hrl"). -behaviour(application). -export([start/2, prep_stop/1, stop/1]). start(normal, []) -> sbt_sup:start_link(). prep_stop(State) -> State. stop(_State) -> ok.
1c99558e65caee433971e25caf04ea4b20c5072f04d073d959285d39a390c288
mudge/php-clj
core.clj
Copyright ( c ) 2014 , ( ) Released under the Eclipse Public License : -v10.html (ns php_clj.core (:require [php_clj.reader :as r] [clojure.string :as s] [ordered.map :refer [ordered-map]])) (declare reader->clj) (declare clj->php) (defn- expect-char [reader expected] (let [actua...
null
https://raw.githubusercontent.com/mudge/php-clj/6a3aa409c8b21d07cb2a32b785432187aa90b4fb/src/php_clj/core.clj
clojure
) Integer.)) ) Double.)) ) ))) )
Copyright ( c ) 2014 , ( ) Released under the Eclipse Public License : -v10.html (ns php_clj.core (:require [php_clj.reader :as r] [clojure.string :as s] [ordered.map :refer [ordered-map]])) (declare reader->clj) (declare clj->php) (defn- expect-char [reader expected] (let [actua...
c0ddc39ac3e52c32e31548186d250e4e88edf13562a301f948090459ae0f75f0
coingaming/lnd-client
TH.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE TemplateHaskell # module LndClient.RPC.TH ( mkRpc, RpcKind (..), ) where import Language.Haskell.TH.Syntax as TH import LndClient.Data.AddHodlInvoice (AddHodlInvoiceRequest (..)) import LndClient.Data.AddInvoice (AddInvoiceRequest (..), AddInvoiceResponse (..)) im...
null
https://raw.githubusercontent.com/coingaming/lnd-client/dbe701fd030a3562fbbfdd2096cc0b918261f15a/src/LndClient/RPC/TH.hs
haskell
# LANGUAGE DuplicateRecordFields # # LANGUAGE TemplateHaskell # module LndClient.RPC.TH ( mkRpc, RpcKind (..), ) where import Language.Haskell.TH.Syntax as TH import LndClient.Data.AddHodlInvoice (AddHodlInvoiceRequest (..)) import LndClient.Data.AddInvoice (AddInvoiceRequest (..), AddInvoiceResponse (..)) im...
7c07a0dbb9bc0c27d05803be58615fefc2c1916ee4598b199408d502d32876b9
jgrodziski/keycloak-clojure
google.clj
(ns keycloak.vault.google (:require [clojure.string :as str] [keycloak.vault.protocol :refer [Vault write-secret! read-secret]]) (:import [com.google.cloud.secretmanager.v1 SecretManagerServiceClient ProjectName SecretName SecretPayload SecretVersion Secret Replication Replication$Automatic] ...
null
https://raw.githubusercontent.com/jgrodziski/keycloak-clojure/39ca9845179fad17fefd60f353578de92dcaec0b/src/keycloak/vault/google.clj
clojure
(ns keycloak.vault.google (:require [clojure.string :as str] [keycloak.vault.protocol :refer [Vault write-secret! read-secret]]) (:import [com.google.cloud.secretmanager.v1 SecretManagerServiceClient ProjectName SecretName SecretPayload SecretVersion Secret Replication Replication$Automatic] ...
3e34f13649e03cbcecc07d260a3c859b5ac22f74d220d7ed240cde129cef655d
openbadgefactory/salava
db.clj
(ns salava.oauth.db (:require [clojure.tools.logging :as log] [yesql.core :refer [defqueries]] [clojure.java.jdbc :as jdbc] [clojure.set :refer [rename-keys]] [clj-http.client :as http] [buddy.hashers :as hashers] [slingshot.slingshot :refer :all...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/clj/salava/oauth/db.clj
clojure
TODO: (log "Could not create user via OAuth" _)
(ns salava.oauth.db (:require [clojure.tools.logging :as log] [yesql.core :refer [defqueries]] [clojure.java.jdbc :as jdbc] [clojure.set :refer [rename-keys]] [clj-http.client :as http] [buddy.hashers :as hashers] [slingshot.slingshot :refer :all...
ed87a336dbd02064c3c599b1a49cae8b8b1890b0c626ce526719d630498941f6
BrunoBonacci/where
core_test.clj
(ns where.core-test (:use midje.sweet) (:use where.test-util) (:require [midje.util :refer [testable-privates]]) (:require [where.core :refer :all])) (testable-privates where.core f-and f-or) ;; Bootstrapping testing data (bootstrap) (facts "about `where`: with three paraters extractor, comparator, value" ...
null
https://raw.githubusercontent.com/BrunoBonacci/where/c47dd7760bb8f8d3a52273c262291ae3a48530b3/test/where/core_test.clj
clojure
Bootstrapping testing data simple map filtering simple list filtering simple list filtering outer AND composition outer OR composition
(ns where.core-test (:use midje.sweet) (:use where.test-util) (:require [midje.util :refer [testable-privates]]) (:require [where.core :refer :all])) (testable-privates where.core f-and f-or) (bootstrap) (facts "about `where`: with three paraters extractor, comparator, value" ((where :a = 1) {:a 1}) ...
2496ce661e9b8aa92f70a9bbc64182896879771dd4c310e8f5cedefa87c7da56
wavejumper/boonmee
react_test.clj
(ns boonmee.integration.react-test (:require [clojure.test :refer :all] [clojure.java.io :as io] [clojure.spec.alpha :as s] [boonmee.test-util :refer [with-client request! response!]] [boonmee.protocol])) (def react-resp {:command "completionInfo" :data {:e...
null
https://raw.githubusercontent.com/wavejumper/boonmee/fc0946568bfc53830717d2b68982872972bd532d/test/boonmee/integration/react_test.clj
clojure
(ns boonmee.integration.react-test (:require [clojure.test :refer :all] [clojure.java.io :as io] [clojure.spec.alpha :as s] [boonmee.test-util :refer [with-client request! response!]] [boonmee.protocol])) (def react-resp {:command "completionInfo" :data {:e...
49d1d577ba98c9a01007d2b0023e261da80eaf70db5a9e403a06656dc08e1bfc
mbj/stratosphere
StudioEncryptionConfigurationProperty.hs
module Stratosphere.NimbleStudio.Studio.StudioEncryptionConfigurationProperty ( StudioEncryptionConfigurationProperty(..), mkStudioEncryptionConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosp...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/nimblestudio/gen/Stratosphere/NimbleStudio/Studio/StudioEncryptionConfigurationProperty.hs
haskell
module Stratosphere.NimbleStudio.Studio.StudioEncryptionConfigurationProperty ( StudioEncryptionConfigurationProperty(..), mkStudioEncryptionConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosp...
e37b56419bddaafbcc4a1728c9d71c0847eac2e7f0684941cf85c3496bf76c60
arttuka/reagent-material-ui
man_4_outlined.cljs
(ns reagent-mui.icons.man-4-outlined "Imports @mui/icons-material/Man4Outlined as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def man-4-outlined (create-svg-ic...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/icons/reagent_mui/icons/man_4_outlined.cljs
clojure
(ns reagent-mui.icons.man-4-outlined "Imports @mui/icons-material/Man4Outlined as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def man-4-outlined (create-svg-ic...
ef0a039776061bb8a1a366e47641d5dc62b89024acfac8e799654e5000b94963
juxt/tick
addon_libs_test.cljc
(ns tick.addon-libs-test (:require [tick.core :as t] [tick.timezone] [tick.locale-en-us] [clojure.test :refer [deftest is testing run-tests] :refer-macros [deftest is testing run-tests]])) (deftest tz-test (is (t/zone "Europe/Berlin"))) (deftest locale-test (is (t/formatter "yyyy-MMM-...
null
https://raw.githubusercontent.com/juxt/tick/7ebf41e9ae96f5ae67ceeabaed8aa7e989269e24/test/tick/addon_libs_test.cljc
clojure
(ns tick.addon-libs-test (:require [tick.core :as t] [tick.timezone] [tick.locale-en-us] [clojure.test :refer [deftest is testing run-tests] :refer-macros [deftest is testing run-tests]])) (deftest tz-test (is (t/zone "Europe/Berlin"))) (deftest locale-test (is (t/formatter "yyyy-MMM-...
e30b8cf3856498923384ae2e0cad08dd53c56245f01c984976f97838ceea7afc
ha-mo-we/Racer
role-structures.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/role-structures.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 ...
0aed11e5a1aa4c20f4baf03a4746c98a96a90c3ab22bf1b6b0c56ca74a48760f
dalaing/little-languages
Pretty.hs
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Pretty printers for types of the NB language . Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable Pretty printers for type...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/nb/src/Type/Pretty.hs
haskell
from 'base' from 'ansi-wl-pprint' local $setup | A pretty printer for 'TyBool' Bool This function is built from the contents of 'prettyTypeRules'. It will print "???" if none of the rules apply - which should never happen. Bool
| Copyright : ( c ) , 2016 License : : Stability : experimental Portability : non - portable Pretty printers for types of the NB language . Copyright : (c) Dave Laing, 2016 License : BSD3 Maintainer : Stability : experimental Portability : non-portable Pretty printers for type...
dc57a98afab30016a4d709c7d564261aa048c6c6966206ab880bb6f42a57b3f5
haskell/cabal
Main.hs
import qualified Data.Map as Map import Data.Map (Map) import Foo main = print $ f (+1) (Map.fromList [(0,1),(2,3)] :: Map Int Int)
null
https://raw.githubusercontent.com/haskell/cabal/55b4ed9f6626613cfd965887bd16f3ffdca1aba6/cabal-testsuite/PackageTests/HaddockArgs/repo/exe-0.1.0.0/Main.hs
haskell
import qualified Data.Map as Map import Data.Map (Map) import Foo main = print $ f (+1) (Map.fromList [(0,1),(2,3)] :: Map Int Int)
9526645e4da6138f8afede00b2d1c236ffafac1a87e5cd2b68bf443e94bf45cc
Helium4Haskell/helium
InstanceEmptyWhere.hs
class PrimaClass a instance PrimaClass Int where
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/typeClassesParse/InstanceEmptyWhere.hs
haskell
class PrimaClass a instance PrimaClass Int where
71f08f1a22ea47359e4be40f666f7e095f39362c26f16378e0683174ebbc9b57
emotiq/emotiq
tx-tests.lisp
;;;; tx-tests.lisp (in-package :cosi-bls-test) ;;;; Accounts and Payments: Some Setup for Hand Testing/Demoing (defstruct (account (:constructor make-account-structure)) name key-pair ; optionally nil public-key private-key address) (defun make-account (user-name) (let* ((key-pair (pb...
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/src/Cosi-BLS/test/tx-tests.lisp
lisp
tx-tests.lisp Accounts and Payments: Some Setup for Hand Testing/Demoing optionally nil Currently, the configuration is very simple, as follows: :address-for-coin - bignum representing public key to which to send initial/total coinbase infusion. This is simple the same as the public key of the node, s...
(in-package :cosi-bls-test) (defstruct (account (:constructor make-account-structure)) name public-key private-key address) (defun make-account (user-name) (let* ((key-pair (pbc:make-key-pair user-name)) (public-key (pbc:keying-triple-pkey key-pair)) (private-key (pbc:keyi...
6684bc6325b34affef76c20250ebf258854deee869b92c3390abcfce9ce971cf
inhabitedtype/ocaml-aws
increaseNodeGroupsInGlobalReplicationGroup.ml
open Types open Aws type input = IncreaseNodeGroupsInGlobalReplicationGroupMessage.t type output = IncreaseNodeGroupsInGlobalReplicationGroupResult.t type error = Errors_internal.t let service = "elasticache" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params ...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/elasticache/lib/increaseNodeGroupsInGlobalReplicationGroup.ml
ocaml
open Types open Aws type input = IncreaseNodeGroupsInGlobalReplicationGroupMessage.t type output = IncreaseNodeGroupsInGlobalReplicationGroupResult.t type error = Errors_internal.t let service = "elasticache" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params ...
07f03379130127840f03485e4357352e65506010fbbcfea8706f4b63f54fc12c
ocsigen/ocaml-eliom
pr6980.ml
type 'a t = [< `Foo | `Bar] as 'a;; type 'a s = [< `Foo | `Bar | `Baz > `Bar] as 'a;; type 'a first = First : 'a second -> ('b t as 'a) first and 'a second = Second : ('b s as 'a) second;; type aux = Aux : 'a t second * ('a -> int) -> aux;; let it : 'a. [< `Bar | `Foo > `Bar ] as 'a = `Bar;; let g (Aux(Second, f)) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/testsuite/tests/typing-gadts/pr6980.ml
ocaml
type 'a t = [< `Foo | `Bar] as 'a;; type 'a s = [< `Foo | `Bar | `Baz > `Bar] as 'a;; type 'a first = First : 'a second -> ('b t as 'a) first and 'a second = Second : ('b s as 'a) second;; type aux = Aux : 'a t second * ('a -> int) -> aux;; let it : 'a. [< `Bar | `Foo > `Bar ] as 'a = `Bar;; let g (Aux(Second, f)) ...
893df0a1d6f8f7b6111e5432132fd0ec3fbc8068d0873d10c9d14890d9121826
reborg/clojure-essential-reference
2.clj
(.. Thread currentThread getContextClassLoader) # object["clojure.lang . " ] ; < 1 >
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/9a3eb82024c8e5fbe17412af541c2cd30820c92e/DynamicVariablesintheStandardLibrary/*use-context-classloader*/2.clj
clojure
< 1 >
(.. Thread currentThread getContextClassLoader)
7ad654523cfc5c26a2c34c777d0d468d203ea75ebb47abd88ee93bc54e77d2e6
etrepum/haskell-for-erlangers-2014
common-combinators.hs
-- Function composition (.) :: (b -> c) -> (a -> b) -> a -> c f . g = \x -> f (g x) -- Function application (with a lower precedence) ($) :: (a -> b) -> a -> b f $ x = f x
null
https://raw.githubusercontent.com/etrepum/haskell-for-erlangers-2014/9fb88fd975df4a9eb1975d7ceb8758e6cb52cc36/examples/common-combinators.hs
haskell
Function composition Function application (with a lower precedence)
(.) :: (b -> c) -> (a -> b) -> a -> c f . g = \x -> f (g x) ($) :: (a -> b) -> a -> b f $ x = f x
faeffe78da037497597a547e5fbf190ff4b568bfbfdf1fe51cdbf29f7adb2d9a
RichiH/git-annex
Config.hs
git - annex repository - global config log - - Copyright 2017 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2017 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Logs.Config ( ConfigName, ConfigValue, setGlobalConfig, unsetGlobalConfig, g...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Logs/Config.hs
haskell
set to empty string to unset Reads the global config log every time.
git - annex repository - global config log - - Copyright 2017 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2017 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Logs.Config ( ConfigName, ConfigValue, setGlobalConfig, unsetGlobalConfig, g...
0e3663172dbcc9c253cc3815b3c31da0bbb20723b83d2fc8a0d1f30418799988
argp/bap
template.ml
(* T E S T I N G *) open Ast open Big_int_Z open Int64 open Type module D = Debug.Make(struct let name = "Template" and default=`Debug end) open D module type Types = sig type environ type state type result_exp type result_stmt end module Abstract (Typ : Types) = struct type process_exp = Typ.environ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ocaml/template.ml
ocaml
T E S T I N G
open Ast open Big_int_Z open Int64 open Type module D = Debug.Make(struct let name = "Template" and default=`Debug end) open D module type Types = sig type environ type state type result_exp type result_stmt end module Abstract (Typ : Types) = struct type process_exp = Typ.environ -> Typ.state -> Typ...
cc6c56e41c80d29167c6680ac4fc8b759d8714aefd229a80bbea53e74da787aa
c-cube/ocaml-containers
t_byte_buffer.ml
module T = (val Containers_testlib.make ~__FILE__ ()) include T open CCByte_buffer;; t @@ fun () -> let b = create () in is_empty b ;; t @@ fun () -> let b = create ~cap:32 () in is_empty b ;; t @@ fun () -> let b = create () in length b = 0 ;; t @@ fun () -> let b = create ~cap:32 () in length b = 0 let test_coun...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/tests/core/t_byte_buffer.ml
ocaml
module T = (val Containers_testlib.make ~__FILE__ ()) include T open CCByte_buffer;; t @@ fun () -> let b = create () in is_empty b ;; t @@ fun () -> let b = create ~cap:32 () in is_empty b ;; t @@ fun () -> let b = create () in length b = 0 ;; t @@ fun () -> let b = create ~cap:32 () in length b = 0 let test_coun...
1f68bb0eda957bd8bb0a9716048c608758b333a31c6140255fa2b19c068e281b
nboldi/c-parser-in-haskell
PosOps.hs
{-# LANGUAGE DeriveDataTypeable #-} -- | Operations on source positions module Text.Parsec.PosOps where import Text.Parsec import Text.Parsec.Pos import Data.Function import Data.Data import Debug.Trace -- * Utils on source positions | Shows a source position in a : col@ format , omitting file name...
null
https://raw.githubusercontent.com/nboldi/c-parser-in-haskell/1a92132e7d1b984cf93ec89d6836cc804257b57d/Text/Parsec/PosOps.hs
haskell
# LANGUAGE DeriveDataTypeable # | Operations on source positions * Utils on source positions | Initial position in the same file as * Source Ranges | A range of characters in a source file given by a begin and an end position. | Shows a range in a @line:col-line:col@ format | True, if a source range is c...
module Text.Parsec.PosOps where import Text.Parsec import Text.Parsec.Pos import Data.Function import Data.Data import Debug.Trace | Shows a source position in a : col@ format , omitting file name . shortShow :: SourcePos -> String shortShow sp = show (sourceLine sp) ++ ":" ++ show (sourceColumn sp)...
84b3a7b23033a54a29f51ef535549750c27429ddbfc904cf69cb47b8cb4ee53f
bruz/hotframeworks
utils.clj
(ns hotframeworks.utils) (defn average [values] (let [sum (reduce + values) number (count values)] (if (= 0 number) 0 (int (/ sum number)))))
null
https://raw.githubusercontent.com/bruz/hotframeworks/629aa8f3cd7556479ea5cd7720d8b06ee4926ae4/src/hotframeworks/utils.clj
clojure
(ns hotframeworks.utils) (defn average [values] (let [sum (reduce + values) number (count values)] (if (= 0 number) 0 (int (/ sum number)))))
091edc176a0e0e16182e248cb982e4b7fd22fe80d418125c1a94d09e54a4d112
fakedata-haskell/fakedata
TrTextSpec.hs
# LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} module TrTextSpec where import Data.Text (Text) import qualified Data.Text as T import Faker hiding (defaultFakerSettings) import qualified Faker.Address as FA import Faker.Combinators (listOf) import qualified Faker.Company as CO import qualified Fa...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/e6fbc16cfa27b2d17aa449ea8140788196ca135b/test/TrTextSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # module TrTextSpec where import Data.Text (Text) import qualified Data.Text as T import Faker hiding (defaultFakerSettings) import qualified Faker.Address as FA import Faker.Combinators (listOf) import qualified Faker.Company as CO import qualified Faker.Commerce as CE import qualified...
f0fa51e3705803581e4d4fe4a3726d10e50d604271b05bb4161815e9d0f2710f
mentat-collective/JSXGraph.cljs
sci_extensions.cljs
(ns jsxgraph.sci-extensions (:require [jsxgraph.sci])) # # SCI Customization (jsxgraph.sci/install!)
null
https://raw.githubusercontent.com/mentat-collective/JSXGraph.cljs/83ce94fdd54326dd3a355e283a3a216d08cc2801/dev/jsxgraph/sci_extensions.cljs
clojure
(ns jsxgraph.sci-extensions (:require [jsxgraph.sci])) # # SCI Customization (jsxgraph.sci/install!)
9de246c3d92dc914414b4171f580b2d60dde36b74fa6eb2df0fc1a0dcd14231f
pflanze/chj-schemelib
svg.scm
Copyright 2013 - 2020 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require eas...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/svg.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. part of easy, though? #DataTypeNumber yep optionsS, not optionS, XX naming wrong further down. insert SVG code verbatim simply ignore the arguments? and those 2d-shape methods that are required for operat...
Copyright 2013 - 2020 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require easy 2d-shape color dsssl cj-sxml cj-sxml-serializer (tempfile te...
e858c9c0d21487963d25c4920cb5dafc7dfe016e8dd7dba7bf5474072d2e99f5
aistrate/Okasaki
PairingHeap.hs
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # module PairingHeap (module Heap, PairingHeap(..)) where import Heap data PairingHeap a = E | T a [PairingHeap a] deriving (Eq, Show) mergePairs [] = E mergePairs [h] = h mergePairs (h1 : h2 : hs) = merge (merge h1 h2) (...
null
https://raw.githubusercontent.com/aistrate/Okasaki/cc1473c81d053483bb5e327409346da7fda10fb4/MyCode/Ch05/PairingHeap.hs
haskell
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # module PairingHeap (module Heap, PairingHeap(..)) where import Heap data PairingHeap a = E | T a [PairingHeap a] deriving (Eq, Show) mergePairs [] = E mergePairs [h] = h mergePairs (h1 : h2 : hs) = merge (merge h1 h2) (...
1a2a8a115008005c2cf268c1b0a5b3e715d79a1a2ef54319f1f2a90ba4cb2093
magnusjonsson/tidder-icfpc-2008
evector.scm
(module evector mzscheme (require "extensible-vector.scm") (provide (all-from "extensible-vector.scm")))
null
https://raw.githubusercontent.com/magnusjonsson/tidder-icfpc-2008/84d68fd9ac358c38e7eff99117d9cdfa86c1864a/libraries/scheme/evector/evector.scm
scheme
(module evector mzscheme (require "extensible-vector.scm") (provide (all-from "extensible-vector.scm")))
45aae30c4c8d1710ab85dbd5c8fd723da05ea89c558240fba6e6e748c81cbe06
anurudhp/CPHaskell
d.hs
import Control.Arrow ((>>>)) import Data.Bool (bool) main :: IO () main = interact $ lines >>> drop 1 >>> map (words >>> map read) >>> process >>> map (bool "NO" "YES") >>> unlines process :: [[Int]] -> [Bool] process [] = [] process (_:xs:xss) = solve xs : process xss solve :: [Int] -> Bool solve xs = minim...
null
https://raw.githubusercontent.com/anurudhp/CPHaskell/01ae8dde6aab4f6ddfebd122ded0b42779dd16f1/contests/codeforces/1443/d.hs
haskell
import Control.Arrow ((>>>)) import Data.Bool (bool) main :: IO () main = interact $ lines >>> drop 1 >>> map (words >>> map read) >>> process >>> map (bool "NO" "YES") >>> unlines process :: [[Int]] -> [Bool] process [] = [] process (_:xs:xss) = solve xs : process xss solve :: [Int] -> Bool solve xs = minim...
193859eff392b504ce3b1e28c0f13bf2e55224eeac4dbbbe41e10a03cdc81ebb
bloomberg/blpapi-hs
Service.hs
| Module : Finance . Blpapi . Service Description : Schema Types for request / response and subscriptions Copyright : Bloomberg Finance L.P. License : MIT Maintainer : Stability : experimental Portability : * nix , windows All API data is associated with a ' Service ' . A service ob...
null
https://raw.githubusercontent.com/bloomberg/blpapi-hs/a4bdff86f3febcf8b06cbc70466c8abc177b973a/src/Finance/Blpapi/Service.hs
haskell
| This data type defines a service which provides access to API data. A 'Service' is obtained from a 'Session' and contains the 'Operation's (each of which contains its own 'SchemaDefinition') and the 'SchemaDefinition' for Events which this 'Service' may produce. All API data is associated with a service. Befor...
| Module : Finance . Blpapi . Service Description : Schema Types for request / response and subscriptions Copyright : Bloomberg Finance L.P. License : MIT Maintainer : Stability : experimental Portability : * nix , windows All API data is associated with a ' Service ' . A service ob...
92c4ba6ba9df2785124119ce9cc83409f3858dad2b4893f8672c00365fc490a5
mejgun/haskell-tdlib
BankCardActionOpenUrl.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.BankCardActionOpenUrl where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | | Describes an action associated with a bank card number @text Action text @url The URL to be opened BankCardActionOpenUrl ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/beb6635177d7626b70fd909b1d89f2156a992cd2/src/TD/Data/BankCardActionOpenUrl.hs
haskell
# LANGUAGE OverloadedStrings # | | | |
module TD.Data.BankCardActionOpenUrl where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U | Describes an action associated with a bank card number @text Action text @url The URL to be opened BankCardActionOpenUrl url :: Maybe String, text :: Maybe Stri...
4e720b5eea85e48b13cfeea50946cd5e83dfb99a794156530421f5fb9c515c33
emilaxelsson/syntactic
Tuple.hs
# LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # -- | 'Syntactic' instances for tuples module Language.Syntactic.Sugar.Tuple where import Language.Syntactic import Language.Syntactic.Functional.Tuple import Language.Syntactic.Functional.Tuple.TH instance ( Syntactic a , Syntactic b , T...
null
https://raw.githubusercontent.com/emilaxelsson/syntactic/c51258ed96d4e9704e5842ce15667e7d3e5b77d7/src/Language/Syntactic/Sugar/Tuple.hs
haskell
| 'Syntactic' instances for tuples `desugar` and `sugar` can be seen as applying the eta-rule for pairs. <-cafe/2016-April/123639.html>
# LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # module Language.Syntactic.Sugar.Tuple where import Language.Syntactic import Language.Syntactic.Functional.Tuple import Language.Syntactic.Functional.Tuple.TH instance ( Syntactic a , Syntactic b , Tuple :<: Domain a , Domain a ~ Dom...
aced3b3ce5c057081e060b4feaceac9f0f95ec0136e9bcb862f342f90bb02e42
huangz1990/SICP-answers
28-expmod.scm
28-expmod.scm (load "28-nontrivial-square-root.scm") (define (expmod base exp m) (cond ((= exp 0) 1) ((nontrivial-square-root? base m) ; 新增 0) ; ((even? exp) (remainder (square (expmod base (/ ex...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp1/code/28-expmod.scm
scheme
新增
28-expmod.scm (load "28-nontrivial-square-root.scm") (define (expmod base exp m) (cond ((= exp 0) 1) ((even? exp) (remainder (square (expmod base (/ exp 2) m)) m)) (else (remainder (* base (expmod base (- exp 1) m)) ...
d8469bd003d385015407dc99845f118e4191478567ff535d38a802b08e350de6
kizzx2/haskell-qrcode
QRCode.hs
-- | -- Module : Codec.Binary.QRCode -- License : BSD3 -- -- Maintainer : -- Stability : Experimental -- Portability : Portable -- An evolving QR Code encoder ( and future decoder ) in pure Haskell . -- Currently supports encoding ' Numeric ' , ' Alphanumeric ' , and ' EightBit ' data . -- -- Example -- -- > enco...
null
https://raw.githubusercontent.com/kizzx2/haskell-qrcode/be06628d4cb77381c55a788c11c1695ebe432c28/Codec/Binary/QRCode.hs
haskell
| Module : Codec.Binary.QRCode License : BSD3 Maintainer : Stability : Experimental Portability : Portable Example > encode (fromJust $ version 1) M Alphanumeric "hello world" * Operations * Data Constructors * Data Types | Returns 'Nothing' if the input is invalid for the 'Mode' specified. | The nu...
An evolving QR Code encoder ( and future decoder ) in pure Haskell . Currently supports encoding ' Numeric ' , ' Alphanumeric ' , and ' EightBit ' data . module Codec.Binary.QRCode ( encode , toArray , width , version , Matrix , Module(..) , Mode(Numeric, Alphanumeric, EightBit)...
bcb774f6ce8eafe8caaf948a2c2950d2c9f328a4b07205674ee8ddb413a19110
lilactown/punk
web.cljs
(ns punk.adapter.web (:require [goog.object :as gobj] [punk.core :as punk] [frame.core :as f] [cljs.tools.reader.edn :as edn] [cljs.tagged-literals] [clojure.core.async :as a])) (defonce in-chan (a/chan)) (defonce out-chan (a/chan)) ;; Handles incoming ev...
null
https://raw.githubusercontent.com/lilactown/punk/0c6e529429837c00958d41e09fd672f49778dedf/adapter-web/src/punk/adapter/web.cljs
clojure
Handles incoming events from the UI and passes them to the user-space frame 'js (with-meta identity {:punk/literal-tag 'js}) ---- Defaults ---- ":8701/main.js" script tag css container
(ns punk.adapter.web (:require [goog.object :as gobj] [punk.core :as punk] [frame.core :as f] [cljs.tools.reader.edn :as edn] [cljs.tagged-literals] [clojure.core.async :as a])) (defonce in-chan (a/chan)) (defonce out-chan (a/chan)) (defonce event-loop ...
59e5c4aa2f1bd482adb377811a17da87c2cafb28f0f24e21f8d07f598dd57566
snmsts/cl-langserver
clasp.lisp
;;;; -*- indent-tabs-mode: nil -*- ;;; slynk-clasp.lisp --- SLIME backend for CLASP . ;;; ;;; This code has been placed in the Public Domain. All warranties ;;; are disclaimed. ;;; Administrivia (defpackage :ls-clasp (:use cl ls-backend)) (in-package ls-clasp) (defmacro cslime-log (fmt &rest fmt-args) `(f...
null
https://raw.githubusercontent.com/snmsts/cl-langserver/3b1246a5d0bd58459e7a64708f820bf718cf7175/src/backend/impls/clasp.lisp
lisp
-*- indent-tabs-mode: nil -*- This code has been placed in the Public Domain. All warranties are disclaimed. Hard dependencies. Soft dependencies. Slynk-mop TCP Server I use ECLs CLOS implementation - this is a worry for the future. SLYNK:CREATE-SERVER will barf. Unix Integration executing the SIGINT han...
slynk-clasp.lisp --- SLIME backend for CLASP . Administrivia (defpackage :ls-clasp (:use cl ls-backend)) (in-package ls-clasp) (defmacro cslime-log (fmt &rest fmt-args) `(format t ,fmt ,@fmt-args)) (eval-when (:compile-toplevel :load-toplevel :execute) (require 'sockets)) (eval-when (:compile-toplevel ...
58f89dd0617d7a545a4943667b9e638b6b64d0b08b9a8176f4390b1cbbb53357
input-output-hk/cardano-wallet
Primitive.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # # OPTIONS_GHC -Wno - orphans # -- | Copyright : © 2018 - 2022 IOHK -- License: Apache-2.0 module Cardano.Wallet.Api.Types.Primitive () where impor...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/18bc22ad0932e4e8b1b6eafee5edf99ac57126af/lib/wallet/api/http/Cardano/Wallet/Api/Types/Primitive.hs
haskell
| License: Apache-2.0 TODO: consider other structures TODO: reject unknown fields # OVERLAPS # # OVERLAPS # # OVERLAPS # # OVERLAPS #
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # # OPTIONS_GHC -Wno - orphans # Copyright : © 2018 - 2022 IOHK module Cardano.Wallet.Api.Types.Primitive () where import Prelude import Cardano.Ap...
379e38a71ba45127cc339c04b4092f5be95f7197771282b76667493a81cba3d6
kayceesrk/httpaf
httpaf.mli
---------------------------------------------------------------------------- Copyright ( c ) 2016 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
null
https://raw.githubusercontent.com/kayceesrk/httpaf/791593e0f576a54a6eb37534abde2df60a8370e8/lib/httpaf.mli
ocaml
* Protocol Version HTTP uses a "<major>.<minor>" numbering scheme to indicate versions of the protocol. The protocol version as a whole indicates the sender's conformance with the set of requirements laid out in that version's corresponding specification of HTTP. See {{:#section-2.6} RFC7230§2.6} ...
---------------------------------------------------------------------------- Copyright ( c ) 2016 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
036c1945824226c988d1413100edb230d715c925569eb5df71d57981bb95ff34
discus-lang/salt
Pretty.hs
module Salt.Core.Codec.Text.Pretty ( module Salt.Core.Codec.Text.Pretty.Base , module Salt.Core.Codec.Text.Pretty.Term , module Salt.Core.Codec.Text.Pretty.Type , module Salt.Data.Pretty) where import Salt.Core.Codec.Text.Pretty.Base import Salt.Core.Codec.Text.Pretty.Term import Salt.C...
null
https://raw.githubusercontent.com/discus-lang/salt/33c14414ac7e238fdbd8161971b8b8ac67fff569/src/salt/Salt/Core/Codec/Text/Pretty.hs
haskell
module Salt.Core.Codec.Text.Pretty ( module Salt.Core.Codec.Text.Pretty.Base , module Salt.Core.Codec.Text.Pretty.Term , module Salt.Core.Codec.Text.Pretty.Type , module Salt.Data.Pretty) where import Salt.Core.Codec.Text.Pretty.Base import Salt.Core.Codec.Text.Pretty.Term import Salt.C...
8f04c0d04321c06fe90a902a14d11586b049e66bf77b5c2522663ba6792238f1
Operational-Transformation/ot.hs
ClientServerTests.hs
# LANGUAGE MultiParamTypeClasses , FlexibleInstances , BangPatterns # module Control.OperationalTransformation.ClientServerTests ( tests ) where import Control.OperationalTransformation import Control.OperationalTransformation.Client import Control.OperationalTransformation.Server import Data.Maybe (fromJust) im...
null
https://raw.githubusercontent.com/Operational-Transformation/ot.hs/4a0ca8f1e3f59fd8ce0e6cfd95633940d4e22f88/test/Control/OperationalTransformation/ClientServerTests.hs
haskell
# LANGUAGE MultiParamTypeClasses , FlexibleInstances , BangPatterns # module Control.OperationalTransformation.ClientServerTests ( tests ) where import Control.OperationalTransformation import Control.OperationalTransformation.Client import Control.OperationalTransformation.Server import Data.Maybe (fromJust) im...
aed7f37aa15dbc646b6106d5a7690ca81131137243e361947a1e6e211a9ecc84
xvw/preface
free_selective.mli
(** A [Free selective] allows you to build a {e rigid} {!module:Preface_specs.Selective} from a given {!module:Preface_specs.Functor}. *) (** Such {!module:Preface_specs.selective} is equipped with and additional function for [promoting] values from the underlying {!module:Preface_specs.Functor} into t...
null
https://raw.githubusercontent.com/xvw/preface/d6424579efdc91744414db2ca6541eb9469ac1a8/lib/preface_specs/free_selective.mli
ocaml
* A [Free selective] allows you to build a {e rigid} {!module:Preface_specs.Selective} from a given {!module:Preface_specs.Functor}. * Such {!module:Preface_specs.selective} is equipped with and additional function for [promoting] values from the underlying {!module:Preface_specs.Functor} into the [Fre...
* { 2 Note about complexity } Although free constructs are elegant , they introduce an execution cost due to the recursive nature of defining the type of a [ Free Selective ] . There are { e cheaper } encodings but they are not , for the moment , available in Preface . Although free cons...
63fe06cda31e79f14f8d3f5db00834ef7faad954b6845e2c3ac02358aeb8e0e2
c-cube/funarith
Simplex.ml
copyright ( c ) 2014 - 2018 , , copyright (c) 2014-2018, Guillaume Bury, Simon Cruanes *) OPTIMS : * - distinguish separate systems ( that do not interact ) , such as in { 1 < = 3x = 3y < = 2 ; z < = 3 } ? * - Implement cuts ? * - distinguish separate systems (that do not interact), such as...
null
https://raw.githubusercontent.com/c-cube/funarith/1c86ac45e9608efaa761e3f14455402730885339/src/Simplex.ml
ocaml
new row, filled with element new column, filled with element */* */* num of columns use non-polymorphic comparison ops Simplex Implementation Exceptions reference number coefficient for epsilon, the infinitesimal * Epsilon-rationals, used for strict bounds the matrix of coefficients basic variables ...
copyright ( c ) 2014 - 2018 , , copyright (c) 2014-2018, Guillaume Bury, Simon Cruanes *) OPTIMS : * - distinguish separate systems ( that do not interact ) , such as in { 1 < = 3x = 3y < = 2 ; z < = 3 } ? * - Implement cuts ? * - distinguish separate systems (that do not interact), such as...
061efbfdab972afc6a7c0a7f6988a114afbdd8d62880451b58b80858f118929d
sbcl/sbcl
bit-bash.lisp
;;;; functions to implement bitblt-ish operations This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the publi...
null
https://raw.githubusercontent.com/sbcl/sbcl/8911276f69a6f3e11f81e6da7c6b84c6302a4f35/src/code/bit-bash.lisp
lisp
functions to implement bitblt-ish operations more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. support routines Produce a mask that contains 1's for the COUNT "start" bits and Produce a mask...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-VM") (declaim (inline start-mask end-mask)) 0 's for the remaining " end " bits . Only the lower 5 bits ...
9e9c9604e5a5f27463908140390a56ef0e1962a45b17ceb6bf540c2682ceef94
Decentralized-Pictures/T4L3NT
test_store.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/lib_store/test/test_store.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2020 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WIT...
63cd6298094f60a497d42f65906ea14eb888c15dbd68be3e3ca474b06c8bb1f2
smallmelon/sdzmmo
mod_goods.erl
%%%------------------------------------ %%% @Module : mod_goods @Author : xhg %%% @Email : @Created : 2010.05.25 @Description : %%%------------------------------------ -module(mod_goods). -behaviour(gen_server). -export([start/3]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, ...
null
https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/mod/mod_goods.erl
erlang
------------------------------------ @Module : mod_goods @Email : ------------------------------------ io:format("equip_current: ~p~n",[NewStatus#goods_status.equip_current]), 设置物品信息 设置物品信息 获取玩家物品列表信息 装备 仓库 当前装备 获取玩家物品列表信息 io:format("list_other: ~p~n",[[PlayerId, lib_player:is_online(PlayerId), e...
@Author : xhg @Created : 2010.05.25 @Description : -module(mod_goods). -behaviour(gen_server). -export([start/3]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -include("common.hrl"). -include("record.hrl"). start(PlayerId,CellNum, Equip) -> gen...
8a77886f9aa4cc92ebd8e0ed99bcf2a185be47e937aae9f007f9ff880abf06c4
HunterYIboHu/htdp2-solution
ex312-eye-colors.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 ex312-eye-colors) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter4/Section19-the-poetry-of-s-expressions/ex312-eye-colors.rkt
racket
about the language level of this file in a form that our tools can easily process. data difinitions constants Oldest Generation: Middle Generation: Youngest Generation: functions FT -> [List-of String] produces a list of all eye colors in the tree, an eye color may occur more than once.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex312-eye-colors) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/abstraction) (define-struct...
3a52f8dfe7d9c17bacd562bb857f19e2341b1095cdb7c3b869a7d00f1603a65b
samrushing/irken-compiler
t_anno1.scm
;; (define (thing:(int -> int) x) ;; 3) (define (printn x) (%%cexp ('a -> undefined) "dump_object (%0, 0); fprintf (stdout, \"\\n\")" x)) (define (thing x) : (int -> int) (printn x) (printn x) (printn x) (printn x) (printn x) (printn x) (printn x) 3) (printn (thing 3)) (printn (thing 4)) (printn...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_anno1.scm
scheme
(define (thing:(int -> int) x) 3)
(define (printn x) (%%cexp ('a -> undefined) "dump_object (%0, 0); fprintf (stdout, \"\\n\")" x)) (define (thing x) : (int -> int) (printn x) (printn x) (printn x) (printn x) (printn x) (printn x) (printn x) 3) (printn (thing 3)) (printn (thing 4)) (printn (thing 5))
8e19ace1f7784cdfe04f7230fe548fc3247f519a3f93fd701935298ab13341cb
s-expressionists/Concrete-Syntax-Tree
packages.lisp
(cl:defpackage #:concrete-syntax-tree-test (:use #:common-lisp) (:export #:run-tests)) (cl:in-package #:concrete-syntax-tree-test) (defun run-tests () (test-cst-from-expression) (test-reconstruct) (test-reconstruct-1) (test-quasiquotation))
null
https://raw.githubusercontent.com/s-expressionists/Concrete-Syntax-Tree/a34e9f01f3e8121a32aad03d35cf113916694492/Test/packages.lisp
lisp
(cl:defpackage #:concrete-syntax-tree-test (:use #:common-lisp) (:export #:run-tests)) (cl:in-package #:concrete-syntax-tree-test) (defun run-tests () (test-cst-from-expression) (test-reconstruct) (test-reconstruct-1) (test-quasiquotation))
c685c5b273c4093ad305d5f4e8faf580d8a9f97fb0bccb5309e4f260eeaa4a9a
rixed/ramen
output_specs.ml
(* Manually written impostor to output_specs_wire, converting from/to hashes *) open Batteries open Stdint open DessserOCamlBackEndHelpers module Wire = Output_specs_wire.DessserGen module DessserGen = struct type file_spec = { file_type : Wire.file_type ; fieldmask : DessserMasks.t ; filters : (Uin...
null
https://raw.githubusercontent.com/rixed/ramen/e395febf4b101461adb2af484e78e1e21a4f4905/src/output_specs.ml
ocaml
Manually written impostor to output_specs_wire, converting from/to hashes
open Batteries open Stdint open DessserOCamlBackEndHelpers module Wire = Output_specs_wire.DessserGen module DessserGen = struct type file_spec = { file_type : Wire.file_type ; fieldmask : DessserMasks.t ; filters : (Uint16.t * Raql_value.t array) array ; mutable channels : (Uint16.t, ...
85cb57fe0a1fa259e96eb1b1d330e3f600460f806e6838a4e29c8abdc7e552a9
nvim-treesitter/nvim-treesitter
highlights.scm
[ "require" "replace" "go" "exclude" "retract" "module" ] @keyword "=>" @operator (comment) @comment (module_path) @text.uri [ (version) (go_version) ] @string
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/0493aa026bd726b762004a7e78ccb19471e47daa/queries/gomod/highlights.scm
scheme
[ "require" "replace" "go" "exclude" "retract" "module" ] @keyword "=>" @operator (comment) @comment (module_path) @text.uri [ (version) (go_version) ] @string
5b0719dc3ebfb3572a0cb90c38a498073eefe60ea5b5585758af331268c9c05e
msakai/toysolver
ProbSAT.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Test.ProbSAT (probSATTestGroup) where import Control.Applicative import Control.Monad import Data.Array.IArray import Data.Default.Class import Data.Maybe import Test.Tasty import Test.Tasty.QuickCheck import Test.Tasty....
null
https://raw.githubusercontent.com/msakai/toysolver/5dc84559c2ec782b2247febe529e4abd0971d1d3/test/Test/ProbSAT.hs
haskell
---------------------------------------------------------------------- Test harness
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Test.ProbSAT (probSATTestGroup) where import Control.Applicative import Control.Monad import Data.Array.IArray import Data.Default.Class import Data.Maybe import Test.Tasty import Test.Tasty.QuickCheck import Test.Tasty....
0a2972766506b11673f361bc3b01b4d499902e824e8c6a95338c1dd4bacdae97
iambrj/imin
functions_test_3.rkt
(define (car [x : (Vector Integer)]) : Integer (vector-ref x 0)) (car (vector 1))
null
https://raw.githubusercontent.com/iambrj/imin/f350276a35bff309e17fb03e41996dd2e550b789/tests/functions_test_3.rkt
racket
(define (car [x : (Vector Integer)]) : Integer (vector-ref x 0)) (car (vector 1))
ed1049c834e608004fba958c037ff20f415633bde573b158fd1db0c36403d0dc
stuartsierra/altlaw-backend
crawl.clj
(ns org.altlaw.jobs.web.crawl (:require [org.altlaw.extract.scrape.handler :as handler] [org.altlaw.util.log :as log] [org.altlaw.util.hadoop :as h] [org.altlaw.util.date :as date] [org.altlaw.util.crawler :as crawler] [org.altlaw.util.context :as context] ...
null
https://raw.githubusercontent.com/stuartsierra/altlaw-backend/c2ceeb0be2d622ca921339be06de5485733451bc/src/org/altlaw/jobs/web/crawl.clj
clojure
(ns org.altlaw.jobs.web.crawl (:require [org.altlaw.extract.scrape.handler :as handler] [org.altlaw.util.log :as log] [org.altlaw.util.hadoop :as h] [org.altlaw.util.date :as date] [org.altlaw.util.crawler :as crawler] [org.altlaw.util.context :as context] ...
2ef2965259ae497948875470751192435c0ec0c831f8981caca331a07b7532bd
alexlenail/Erlang-Shen
shen_print.erl
%% =================================================================== shen_print.erl %% %% Helper module for printing progress information for the user. %% %% =================================================================== -module(shen_print). %% API -export([title/2, event/2]). %% ============...
null
https://raw.githubusercontent.com/alexlenail/Erlang-Shen/ddfcbab261865af0925b7aeb6866febeb7142d00/src/shen_print.erl
erlang
=================================================================== Helper module for printing progress information for the user. =================================================================== API =================================================================== API Functions ===================...
shen_print.erl -module(shen_print). -export([title/2, event/2]). title(Text, Format) -> io:format("========================================~n"), io:format(Text, Format), io:format("========================================~n"), ok. event(Text, Format) -> io:format(Text, Format...