_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
cac926a7a5b16760fa93e4d2b682d3d943ea8deafd402d7ec1d5f0b8d56f672f
Clojure2D/clojure2d-examples
scene.clj
(ns rt4.the-next-week.ch04c.scene (:require [fastmath.vector :as v] [fastmath.core :as m] [rt4.the-next-week.ch04c.hittable :as hittable] [rt4.the-next-week.ch04c.interval :as interval] [rt4.the-next-week.ch04c.material :as material] [rt4.common :as common] ...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/the_next_week/ch04c/scene.clj
clojure
(ns rt4.the-next-week.ch04c.scene (:require [fastmath.vector :as v] [fastmath.core :as m] [rt4.the-next-week.ch04c.hittable :as hittable] [rt4.the-next-week.ch04c.interval :as interval] [rt4.the-next-week.ch04c.material :as material] [rt4.common :as common] ...
5700b58a50e20a65e27a2eaddeb79889313185724fcab74df10b8bb745292fd2
huangjs/cl
mformt.lisp
-*- Mode : Lisp ; Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; The data in this file contains enhancments. ;;;;; ;;; ;;;;; ...
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/maxima/src/mformt.lisp
lisp
Package : Maxima ; Syntax : Common - Lisp ; Base : 10 -*- ; ; ; ; The data in this file contains enhancments. ;;;;; ;;;;; ; ; ; ; All rights reserved ;;;;; ; ; Who can read ...
(in-package :maxima) (macsyma-module mformt) (load-macsyma-macros mforma) (setf (get '|| 'mformat-ops) nil) (setf (get '|| 'mformat-state-vars) nil) (defmacro def-mformat-op (char &rest body) `(+def-mformat-op ,'|| ,char ,@body)) (defmacro def-mformat-var (var val init) `(+def-mformat-var ,'|| ,var ,val ,init...
cc65174020f4050f93f04c232c56a1f77c93e0b15d5cd635cd0748296c3b242a
ekmett/intervals
Kaucher.hs
# LANGUAGE CPP # {-# LANGUAGE Rank2Types #-} {-# LANGUAGE DeriveDataTypeable #-} #if __GLASGOW_HASKELL__ >= 704 # LANGUAGE DeriveGeneric # #endif ----------------------------------------------------------------------------- -- | -- Module : Numeric.Interval Copyright : ( c ) 2010 - 2014 -- License : ...
null
https://raw.githubusercontent.com/ekmett/intervals/257fd4d9cb994a7471c3f6040740aa64a0b5c777/src/Numeric/Interval/Kaucher.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE DeriveDataTypeable # --------------------------------------------------------------------------- | Module : Numeric.Interval License : BSD3 Maintainer : Stability : experimental Portability : DeriveDataTypeable \"Directed\" Interval arithmetic --------------...
# LANGUAGE CPP # #if __GLASGOW_HASKELL__ >= 704 # LANGUAGE DeriveGeneric # #endif Copyright : ( c ) 2010 - 2014 module Numeric.Interval.Kaucher ( Interval(..) , (...) , interval , whole , empty , null , singleton , member , notMember , elem , notElem , inf , sup , singular , widt...
0bb078c9f01abb3fd0ac074ae064495b8513ef51d20923417af87cb53a767181
bytekid/mkbtt
nodeGoal.mli
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mkbtt/nodeGoal.mli
ocaml
** VALUES ************************************************************
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either version 3 of the License , or (...
b6559fba4902cfe648e2695ebe3bf7f948d19c9a9f0f213a35109d32ce88185e
v-kolesnikov/sicp
1_20_test.clj
(ns sicp.chapter01.1-20-test (:require [clojure.test :refer :all] [sicp.test-helper :refer :all] [sicp.chapter01.1-20 :refer :all])) (deftest test-gcd (assert-equal 2 (gcd 206 40)) (assert-equal 256 (gcd 256 0)) (assert-equal 128 (gcd 1024 128)))
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/test/sicp/chapter01/1_20_test.clj
clojure
(ns sicp.chapter01.1-20-test (:require [clojure.test :refer :all] [sicp.test-helper :refer :all] [sicp.chapter01.1-20 :refer :all])) (deftest test-gcd (assert-equal 2 (gcd 206 40)) (assert-equal 256 (gcd 256 0)) (assert-equal 128 (gcd 1024 128)))
2abb6f172d4a6089c83c1be2ac7003164d9ff0d10845587eea93022d66c777c9
lowasser/TrieMap
SetOp.hs
# LANGUAGE CPP , TupleSections , FlexibleInstances , TypeSynonymInstances # module Data.TrieMap.OrdMap.SetOp () where import Control.Monad.Option import Data.Functor.Immoral import Data.TrieMap.OrdMap.Base import Data.TrieMap.OrdMap.Traversable () import Data.TrieMap.OrdMap.Searchable () import Data.TrieMap.OrdMap.Sp...
null
https://raw.githubusercontent.com/lowasser/TrieMap/1ab52b8d83469974a629f2aa577a85de3f9e867a/Data/TrieMap/OrdMap/SetOp.hs
haskell
# LANGUAGE CPP , TupleSections , FlexibleInstances , TypeSynonymInstances # module Data.TrieMap.OrdMap.SetOp () where import Control.Monad.Option import Data.Functor.Immoral import Data.TrieMap.OrdMap.Base import Data.TrieMap.OrdMap.Traversable () import Data.TrieMap.OrdMap.Searchable () import Data.TrieMap.OrdMap.Sp...
16b110f812a098e1b4ee6a802956ba1b2e2b79fd28fd95bdbc49cb791d86df21
7even/endless-ships
navigation.cljs
(ns endless-ships.views.navigation (:require [re-frame.core :as rf] [endless-ships.events :as events] [endless-ships.subs :as subs] [endless-ships.routes :as routes])) (defn navigation [] (let [[route] @(rf/subscribe [::subs/route])] [:ul.nav.nav-tabs [:li {:role :prese...
null
https://raw.githubusercontent.com/7even/endless-ships/a85954d162e561f2c0a2114830139fbd769e2128/src/cljs/endless_ships/views/navigation.cljs
clojure
(ns endless-ships.views.navigation (:require [re-frame.core :as rf] [endless-ships.events :as events] [endless-ships.subs :as subs] [endless-ships.routes :as routes])) (defn navigation [] (let [[route] @(rf/subscribe [::subs/route])] [:ul.nav.nav-tabs [:li {:role :prese...
2c9413ad021cf5480749c61cf0147f0130281f47d362106a213d061b0bc7e671
philipcmonk/phlisped
default-horizontal-v11n.rkt
#lang racket (require sgl sgl/gl) (require "../core/common.rkt") (require "helpers/default-v11n.rkt") (provide visualization) (define visualization (make-default-v11n #:child-w-generator (lambda (n) -1) #:child-x-generator (lambda (data w n) (car data)) #:child-y-generator (lambda (data arg tree) (+ (cadr dat...
null
https://raw.githubusercontent.com/philipcmonk/phlisped/ded1be5d9e7206cd3c71db49ccd250fa4381cf99/visualizations/default-horizontal-v11n.rkt
racket
(define default-v11n (v11n (def-painter #:drawer (lambda (text x y w h text-w text-h clr u tree center) (draw-rectangle (if (eq? Selected-tree tree) (cdr clr) (map (curryr / 3) (cdr clr))) x y w h) (if (and (< (/ (- text-w PADDING) (whole-tree-zoom tree)) w) (< (/ text-h (whole-tree-zo...
#lang racket (require sgl sgl/gl) (require "../core/common.rkt") (require "helpers/default-v11n.rkt") (provide visualization) (define visualization (make-default-v11n #:child-w-generator (lambda (n) -1) #:child-x-generator (lambda (data w n) (car data)) #:child-y-generator (lambda (data arg tree) (+ (cadr dat...
83f638cfdcd05b85b6640716b5cf0979bf2a6a854fdb3f242361f6c4a24a1b1c
rescript-lang/rescript-compiler
ast_util.mli
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/9d585cdfaf8025a3bc412ffde5ca8559a1b91103/jscomp/frontend/ast_util.mli
ocaml
Copyright ( C ) 2015 - 2016 Bloomberg Finance L.P. * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later...
95ad7117c1305d2fd1d4acc2c1ef005b6719baa538c33a3a6ddb2fcd10a92251
zhongwencool/observer_cli
observer_cli.erl
%%% @author zhongwen <> -module(observer_cli). -include("observer_cli.hrl"). %% API -export([start/0]). -export([start/1]). -export([start/2]). -export([start_plugin/0]). -export([clean/1]). %% cpu >= this value will be highlight -define(CPU_ALARM_THRESHOLD, 0.8). port or process reach max_limit * 0.85 will be hi...
null
https://raw.githubusercontent.com/zhongwencool/observer_cli/83c31a4533a181fec5d5d0d65c50cc6fc6a486c1/src/observer_cli.erl
erlang
@author zhongwen <> API cpu >= this value will be highlight Private pause status waiting to be resume running status translate gen_xxx behavior
-module(observer_cli). -include("observer_cli.hrl"). -export([start/0]). -export([start/1]). -export([start/2]). -export([start_plugin/0]). -export([clean/1]). -define(CPU_ALARM_THRESHOLD, 0.8). port or process reach max_limit * 0.85 will be highlight -define(COUNT_ALARM_THRESHOLD, 0.85). -define(LAST_LINE, "...
2e7facb1e4bcfa3373f95f0aaa50d0bdbd50092bcb0595cdeec6dd8cfb327cfa
bytekid/mkbtt
replacement.ml
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/util/src/replacement.ml
ocaml
** OPENS ******************************************************************* ** MODULE TYPES ************************************************************ ** EXCEPTIONS ************************************************************** ** MODULES ***************************************************************** ** INCLUDES ...
Copyright 2008 , Christian Sternagel , * GNU Lesser General Public License * * This file is part of TTT2 . * * TTT2 is free software : you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free Software Foundation , either ve...
154ef4c012f7cc88269b247dbed214478193b78f7726082a5b3ab19dfe8eaca6
tommaisey/aeon
c_set.help.scm
; /c_set Set bus value(s) ; [ ; int - a bus index ; float - a control value ; ] * N ; Takes a list of pairs of bus indices and values and sets the buses to ; those values.
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/server-command/c_set.help.scm
scheme
/c_set Set bus value(s) [ int - a bus index float - a control value ] * N Takes a list of pairs of bus indices and values and sets the buses to those values.
7d9954a67a8c0c8faa833a8e2c7b60a05a0224ee5a401abbdec775b697772409
binsec/binsec
term.mli
(**************************************************************************) This file is part of BINSEC . (* *) Copyright ( C ) 2016 - 2022 CEA ( Co...
null
https://raw.githubusercontent.com/binsec/binsec/22ee39aad58219e8837b6ba15f150ba04a498b63/src/term/term.mli
ocaml
************************************************************************ alternatives) you can redistribute it an...
This file is part of BINSEC . Copyright ( C ) 2016 - 2022 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , ve...
d77de45326ea35112bf7a74f636f4f9c3d0edd299878f5908783f8117ec52662
florence/reactor
basics.rkt
#lang racket (require reactor) (module+ test (require rackunit) (test-begin (define g (prime (thunk (void)))) (check-false (reactor-done? g)) (check-not-exn (lambda () (react! g))) (check-true (reactor-done? g)) (check-not-exn (lambda () (react! g))) (check-true (reactor-done? g)) (check-not-ex...
null
https://raw.githubusercontent.com/florence/reactor/c4687bd43fafcd09802042648900d4737b04f923/tests/basics.rkt
racket
#lang racket (require reactor) (module+ test (require rackunit) (test-begin (define g (prime (thunk (void)))) (check-false (reactor-done? g)) (check-not-exn (lambda () (react! g))) (check-true (reactor-done? g)) (check-not-exn (lambda () (react! g))) (check-true (reactor-done? g)) (check-not-ex...
88c8dd5e554ffd8fb8bda6de39364e62499a3224e3a9c14b370b80b18cc802cd
ninenines/cowboy
switch_handler_h.erl
%% This module returns switch_handler based on the query string. -module(switch_handler_h). -export([init/2]). -export([allowed_methods/2]). -export([allow_missing_post/2]). -export([charsets_provided/2]). -export([content_types_accepted/2]). -export([content_types_provided/2]). -export([delete_completed/2]). -expor...
null
https://raw.githubusercontent.com/ninenines/cowboy/8795233c57f1f472781a22ffbf186ce38cc5b049/test/handlers/switch_handler_h.erl
erlang
This module returns switch_handler based on the query string. These are all the methods necessary to reach all callbacks. We need to accept/provide media types to reach these callbacks. We need to accept ranges to reach these callbacks. We need resource_exists to return false to reach these callbacks. We need pre...
-module(switch_handler_h). -export([init/2]). -export([allowed_methods/2]). -export([allow_missing_post/2]). -export([charsets_provided/2]). -export([content_types_accepted/2]). -export([content_types_provided/2]). -export([delete_completed/2]). -export([delete_resource/2]). -export([forbidden/2]). -export([is_autho...
141ca5d4cbb2a25d1f374c6554f722542186756d1fb4997c56b16acecfaab84a
tsloughter/kuberl
kuberl_v1beta1_user_info.erl
-module(kuberl_v1beta1_user_info). -export([encode/1]). -export_type([kuberl_v1beta1_user_info/0]). -type kuberl_v1beta1_user_info() :: #{ 'extra' => maps:map(), 'groups' => list(), 'uid' => binary(), 'username' => binary() }. encode(#{ 'extra' := Extra, 'groups' := Groups, ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_user_info.erl
erlang
-module(kuberl_v1beta1_user_info). -export([encode/1]). -export_type([kuberl_v1beta1_user_info/0]). -type kuberl_v1beta1_user_info() :: #{ 'extra' => maps:map(), 'groups' => list(), 'uid' => binary(), 'username' => binary() }. encode(#{ 'extra' := Extra, 'groups' := Groups, ...
7b9cc18e5afdd7ddaca6501144cf5c2c0656fab5f93052608d4fb12452eda658
ygmpkk/house
Packet.hs
module Net.Packet (module Data.Array.Unboxed,Word8, InPacket,len,emptyInPack,toInPack,takeInPack,dropInPack, byteAt,wordAt,toChunk, OutPacket,outLen,chunks,Chunk, emptyOutPack,addChunk,appendOutPack, splitOutPack,outBytes,loopback,loopbackout ) where import Kernel.Bits import Data.Array.Unb...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Net/Packet.hs
haskell
| The buffers used to represent packet, when they are received over the network. in bytes ^Invariant: all (inRange (bounds buffer)) [from..from+len-1] | Get a byte at a certain offset. | Get a word from a certain offset (big endian). | The buffers for packets, that are to be sent over the network. Each array co...
module Net.Packet (module Data.Array.Unboxed,Word8, InPacket,len,emptyInPack,toInPack,takeInPack,dropInPack, byteAt,wordAt,toChunk, OutPacket,outLen,chunks,Chunk, emptyOutPack,addChunk,appendOutPack, splitOutPack,outBytes,loopback,loopbackout ) where import Kernel.Bits import Data.Array.Unb...
7be037c2e3e12e3c2fbda0796ed89cd33aa4d2b8901497f0a31b91f473f11834
ckirkendall/enfocus
report_generator.cljs
(ns enfocus.reporting.report-generator) (def ^:export dom-report (atom [])) (defn ^:export generate-summary-report [] (let [frag (.createDocumentFragment js/document)] (doseq [[test res] @dom-report] (let [div (.createElement js/document "div")] (set! (.-className div) (name res)) (set! ...
null
https://raw.githubusercontent.com/ckirkendall/enfocus/54ee5d1ec4c1fd603d4766caac07bfc482f65abb/test/tools/enfocus/reporting/report_generator.cljs
clojure
initialize the environment execute the unit test clear the environment
(ns enfocus.reporting.report-generator) (def ^:export dom-report (atom [])) (defn ^:export generate-summary-report [] (let [frag (.createDocumentFragment js/document)] (doseq [[test res] @dom-report] (let [div (.createElement js/document "div")] (set! (.-className div) (name res)) (set! ...
a1aef636436ab6ca69fee36ab62352f993e2408fd3264a2011de75727e47c5d4
lemmaandrew/CodingBatHaskell
bigHeights.hs
From ( A variation on the sumHeights problem . ) We have an array of heights , representing the altitude along a walking trail . Given start / end indexes into the array , return the number of " steps for a walk starting at the start index and ending at the end index . We 'll say that step is big if it is...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/AP-1/bigHeights.hs
haskell
From ( A variation on the sumHeights problem . ) We have an array of heights , representing the altitude along a walking trail . Given start / end indexes into the array , return the number of " steps for a walk starting at the start index and ending at the end index . We 'll say that step is big if it is...
c20344cb94591243f9a198dad09ed1aad880d6b11a238ed2b4ef60ffe1aa8657
cj1128/sicp-review
2.32.scm
; The set of all subsets of a given set is the union of: - the set of all subsets excluding the first number . - the set of all subsets excluding the first number , with the first number re - inserted into each subset . (define (subsets s) (if (null? s) (list '()) (let ((rest (subsets (cdr s)))) ...
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.2/2.32.scm
scheme
The set of all subsets of a given set is the union of:
- the set of all subsets excluding the first number . - the set of all subsets excluding the first number , with the first number re - inserted into each subset . (define (subsets s) (if (null? s) (list '()) (let ((rest (subsets (cdr s)))) (append rest (map (lambda (l) ...
96467ef36a72c97c3fabb250a5328ba02ebce6bbf9b1ed5d42ff5c987fb32a5c
zadean/xqerl
math_pi_SUITE.erl
-module('math_pi_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['math-pi-001'/1]). -export(['math-pi-002'/1]). -export(['math-pi-003'/1]). -export(['ma...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/math/math_pi_SUITE.erl
erlang
-module('math_pi_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['math-pi-001'/1]). -export(['math-pi-002'/1]). -export(['math-pi-003'/1]). -export(['ma...
4e8fb9e3f7fcc9d0e3c90d5fb71c2ff02b72f6772d6c7c28f5f0ea672d9773ef
archimag/rulisp
pcl.lisp
;;;; pcl.lisp ;;;; This file is part of the rulisp application , released under GNU Affero General Public License , Version 3.0 ;;;; See file COPYING for details. ;;;; Author : < > (in-package :rulisp.pcl) (defparameter *pcl-files-map* '#(("introduction-why-lisp" "Введение: почему Lisp?" "%D0%B...
null
https://raw.githubusercontent.com/archimag/rulisp/2af0d92066572c4665d14dc3ee001c0c5ff84e84/src/pcl.lisp
lisp
pcl.lisp See file COPYING for details. contents chapter pdf
This file is part of the rulisp application , released under GNU Affero General Public License , Version 3.0 Author : < > (in-package :rulisp.pcl) (defparameter *pcl-files-map* '#(("introduction-why-lisp" "Введение: почему Lisp?" "%D0%B2%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5%D0%BF%D0%BE%D1%...
4aa37e5c1858e534460fb4a394d4b54e532da843aea378acac40f517696b560d
fourmolu/fourmolu
wildcards-four-out.hs
# LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # foo x y = Foo{x, y} bar x y z = Bar { x , y , z , .. } baz = Baz{..}
null
https://raw.githubusercontent.com/fourmolu/fourmolu/1f8903a92c8d5001dc1ec8ecfd4a04a3b61c3283/data/examples/declaration/value/function/record/wildcards-four-out.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # foo x y = Foo{x, y} bar x y z = Bar { x , y , z , .. } baz = Baz{..}
ffba5be2e8dfea14a2780814ab2b275e246da597b1aee21e6b5bfc9efc1c5348
rurban/clisp
clos-package.lisp
Common Lisp Object System for CLISP 21.8.1993 - 2004 1998 - 2007 , 2009 - 2010 , 2017 ;; to use it: (USE-PACKAGE "CLOS"). (in-package "COMMON-LISP") (pushnew ':mop *features*) (pushnew ':clos *features*) (in-package "SYSTEM") ; necessary despite DEFPACKAGE! ;; Defined later, in functions.lisp. (import 'ma...
null
https://raw.githubusercontent.com/rurban/clisp/75ed2995ff8f5364bcc18727cde9438cca4e7c2c/src/clos-package.lisp
lisp
to use it: (USE-PACKAGE "CLOS"). necessary despite DEFPACKAGE! Defined later, in functions.lisp. Import: for error messages (i18n.d) defined in error.d defined in control.d defined in control.d defined in control.d defined in eval.d defined in list.d defined in init.lisp defined in lambdalist.lisp defined...
Common Lisp Object System for CLISP 21.8.1993 - 2004 1998 - 2007 , 2009 - 2010 , 2017 (in-package "COMMON-LISP") (pushnew ':mop *features*) (pushnew ':clos *features*) (import 'make-signature) (import 'sig-req-num) (import 'sig-opt-num) (import 'sig-rest-p) (import 'sig-keys-p) (import 'sig-keywords) (imp...
ecf7463a2ab6982a09368a6475ad26535aa0b91d22096f42b7e25bbd11b3d414
LeventErkok/sbv
SoftConstrain.hs
----------------------------------------------------------------------------- -- | Module : . Misc . SoftConstrain Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- Bench suite for Documentation . SBV.Examples . Misc . SoftConstrain -------------------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/SBVBenchSuite/BenchSuite/Misc/SoftConstrain.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental --------------------------------------------------------------------------- # LANGUAGE OverloadedStrings # # OPTIONS_GHC -Wall -Werror # benchmark suite Now add soft-constraints to...
Module : . Misc . SoftConstrain Copyright : ( c ) Bench suite for Documentation . SBV.Examples . Misc . SoftConstrain module BenchSuite.Misc.SoftConstrain(benchmarks) where import Data.SBV import BenchSuite.Bench.Bench benchmarks :: Runner benchmarks = rGroup [ run "SoftConstrain...
c1367f9c056b9064f1bb2d9b3cd1faf26ca3d2bd72ce354fb0d9e827fb686e2a
den1k/vimsical
user.cljc
(ns vimsical.user (:require [clojure.spec.alpha :as s] [vimsical.vims :as vims] [vimsical.user.settings :as settings])) (s/def ::uid uuid?) (s/def :db/uid ::uid) (s/def ::first-name string?) (s/def ::last-name string?) (s/def ::email string?) (s/def ::password string?) (s/def ::vimsae (s/every ::vims/vims))...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/src/common/vimsical/user.cljc
clojure
(ns vimsical.user (:require [clojure.spec.alpha :as s] [vimsical.vims :as vims] [vimsical.user.settings :as settings])) (s/def ::uid uuid?) (s/def :db/uid ::uid) (s/def ::first-name string?) (s/def ::last-name string?) (s/def ::email string?) (s/def ::password string?) (s/def ::vimsae (s/every ::vims/vims))...
8b72fc3566c6ea896e7d1ced9321d2bc935fb5a94e86723e2c15e8805b3d307d
webyrd/n-grams-for-synthesis
contagion.scm
; This file is part of the reference implementation of the R6RS Arithmetic SRFI. ; See file COPYING. Utilities for implementing contagion ; Indices for the various numerical types (define fixtype 0) (define bigtype 1) (define rattype 2) (define rectype 3) (define flotype 4) (define comptype 5) (define-syntax...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-77/arithmetic-reference/contagion.scm
scheme
This file is part of the reference implementation of the R6RS Arithmetic SRFI. See file COPYING. Indices for the various numerical types number-type is highly bummed but can be made even faster by elminating the conds and instead simply shifting bytevector-like based on the type tag alone, and having contagion ma...
Utilities for implementing contagion (define fixtype 0) (define bigtype 1) (define rattype 2) (define rectype 3) (define flotype 4) (define comptype 5) (define-syntax numtype-enum (syntax-rules (fix big rat rec flo comp) ((numtype-enum fix) fixtype) ((numtype-enum big) bigtype) ((numtype-enum r...
55f6b24bc10eef945d8badea6d2daa0503fd73497cbb59c2b45118a63afaeaa4
typedclojure/typedclojure
non_literal_val_fn.clj
(ns clojure.core.typed.test.non-literal-val-fn (:require [typed.clojure :as t])) (t/ann kw-invoke [t/Kw -> (t/U nil t/Num)]) (defn kw-invoke [k] (k {:a 1 :b 2})) (t/ann sym-invoke [t/Sym -> (t/U nil t/Num)]) (defn sym-invoke [k] (k {:a 1 :b 2})) (t/ann either-invoke [(t/U t/Kw t/Sym) -> (t/U nil t/Num)]) (defn...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/5fd7cdf7941c6e7d1dd5df88bf44474fa35e1fca/typed/clj.checker/test/clojure/core/typed/test/non_literal_val_fn.clj
clojure
(ns clojure.core.typed.test.non-literal-val-fn (:require [typed.clojure :as t])) (t/ann kw-invoke [t/Kw -> (t/U nil t/Num)]) (defn kw-invoke [k] (k {:a 1 :b 2})) (t/ann sym-invoke [t/Sym -> (t/U nil t/Num)]) (defn sym-invoke [k] (k {:a 1 :b 2})) (t/ann either-invoke [(t/U t/Kw t/Sym) -> (t/U nil t/Num)]) (defn...
155518736b3025aaf9d8cb75dd48d5f1082f23aa3cf979d63786173fe80aa019
UChicago-PL/smyth
float2.mli
val to_string : float -> string
null
https://raw.githubusercontent.com/UChicago-PL/smyth/08fea281f70d3ee604fde9dde140c8a570d6905d/lib/stdlib2/float2.mli
ocaml
val to_string : float -> string
4066fe0a0c065f7c5c6db04cd7196da2b3621ea2cbdb7d6490c571e789f8c7bd
chrisdone/prana
Base.hs
NOTA BENE : Do NOT use ( $ ) anywhere in this module ! The type of ( $ ) is slightly magical ( it can return unlifted types ) , and it is wired in . But , it is also * defined * in this module , with a non - magical type . GHC gets terribly confused ( and * hangs * ) if you try to use ( $ ) in this module , ...
null
https://raw.githubusercontent.com/chrisdone/prana/f2e45538937d326aff562b6d49296eaedd015662/prana-boot/packages/base-4.11.1.0/GHC/Base.hs
haskell
------------------------------------------- ------------------------------------------- -Wno-orphans is needed for things like: # OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | Module : GHC.Base License : see libraries/base/LICENSE Maintainer : ...
NOTA BENE : Do NOT use ( $ ) anywhere in this module ! The type of ( $ ) is slightly magical ( it can return unlifted types ) , and it is wired in . But , it is also * defined * in this module , with a non - magical type . GHC gets terribly confused ( and * hangs * ) if you try to use ( $ ) in this module , ...
b6c07bcb430b661aee7a771380e2b4af2308a525c0619f328b8cf2c8a3dddd85
cedlemo/OCaml-GObject-Introspection
utils.ml
* Copyright 2019 , * This file is part of OCaml - GObject - Introspection . * * OCaml - GObject - Introspection is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the L...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GObject-Introspection/261c76d9e5d90f706edff1121a63bf5eb611399b/lib/utils.ml
ocaml
* Copyright 2019 , * This file is part of OCaml - GObject - Introspection . * * OCaml - GObject - Introspection is free software : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation , either version 3 of the L...
0980bcd4b8c6bc3bb13c6a4250198bd0f06e5ab68875fc6e064dc1a1fa10b732
spawnfest/eep49ers
lispc.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 w...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/syntax_tools/examples/merl/lispc.erl
erlang
--------------------------------------------------------------------- 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....
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may distributed under the License is distributed on an " AS IS " BASIS , @author < > 2012 @doc Lisp compiler in Erlang . -module(lispc). -export([eval/1]). -record(st, {}). -include("lisp_test.erl"). -include("merl.hrl"). ev...
46d687c7327ef9e610b9cebbea7bb0a3934501dc752db05b97b7718419c5ad5f
andgate/type-theory-compiler
Desugar.hs
# LANGUAGE LambdaCase , FlexibleContexts , RankNTypes , ConstraintKinds , TupleSections , ViewPatterns , OverloadedStrings # , FlexibleContexts , RankNTypes , ConstraintKinds , TupleSec...
null
https://raw.githubusercontent.com/andgate/type-theory-compiler/a404f085d19a19b16ae8c26616707dc46707ea10/stlc/src/Language/STLC/Desugar.hs
haskell
The end result of desugaring is a Low-Level Type Theory (LLTT) ast. At some point, it would be nice if case could work with any type...
# LANGUAGE LambdaCase , FlexibleContexts , RankNTypes , ConstraintKinds , TupleSections , ViewPatterns , OverloadedStrings # , FlexibleContexts , RankNTypes , ConstraintKinds , TupleSec...
a3466b243994b1ed1a6e2509bd995f5375b7a3de080ca38b4781f92f220e8f9b
jfeser/L2
input_deduction.ml
open Core open Collections open Hypothesis module Sk = Skeleton module Sp = Specification let get_curr_spec : Sp.t -> Sk.t -> Sp.t = fun parent_spec sk -> let curr_spec = Sk.spec sk in if Sp.equal Sp.top curr_spec then parent_spec else curr_spec let get_child_spec : Sp.t -> Sk.t -> Sp.t = fun parent_spec sk -> ...
null
https://raw.githubusercontent.com/jfeser/L2/a66659c7d75f75788c48a17b531045fb3d5f8351/lib/input_deduction.ml
ocaml
Let introduces a new scope, so we can't use the parent context.
open Core open Collections open Hypothesis module Sk = Skeleton module Sp = Specification let get_curr_spec : Sp.t -> Sk.t -> Sp.t = fun parent_spec sk -> let curr_spec = Sk.spec sk in if Sp.equal Sp.top curr_spec then parent_spec else curr_spec let get_child_spec : Sp.t -> Sk.t -> Sp.t = fun parent_spec sk -> ...
eeef991a2df4c3ba88630d2e1acbbb269c10bfdeb40651ad35ede1203cf580e0
pesterhazy/cljs-spa-example
routes.cljs
(ns cljs-spa.routes (:require [cljs-spa.layout :as layout] [cljs-spa.page.home :as home] [cljs-spa.page.users :as users] [cljs-spa.page.profile :as profile] [cljs-spa.page.clock :as clock])) (def the-routes [{:name "home", :path "/", :render-fn (fn [params] [home/pag...
null
https://raw.githubusercontent.com/pesterhazy/cljs-spa-example/ef6e6042d0d0759f8bdfc6be4921b72170fd2352/src/cljs_spa/routes.cljs
clojure
(ns cljs-spa.routes (:require [cljs-spa.layout :as layout] [cljs-spa.page.home :as home] [cljs-spa.page.users :as users] [cljs-spa.page.profile :as profile] [cljs-spa.page.clock :as clock])) (def the-routes [{:name "home", :path "/", :render-fn (fn [params] [home/pag...
fb95632c24cb166fe7f8f31f511825bdf037491b9ce80b7b16e42fd243753cb2
zkat/sheeple
utils.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;;; ;;;; This file is part of Sheeple ;;;; utils.lisp ;;;; ;;;; Miscellaneous utilities for Sheeple ;;;; ;;;; TODO: ;;;; * Move conditions in here, or into a new file? ;;;; * DOCUMENTATION! ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/zkat/sheeple/5393c74737ccf22c3fd5f390076b75c38453cb04/src/utils.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- This file is part of Sheeple utils.lisp Miscellaneous utilities for Sheeple TODO: * Move conditions in here, or into a new file? * DOCUMENTATION! I could go nuts with DO, like I do below... or I could LOOP - Adlai This implementation could use some speed, but at...
(in-package :sheeple) From Alexandria (deftype string-designator () "A string designator is either a string, a symbol, or a character." `(or symbol string character)) (defmacro fun (&body body) "This macro puts the FUN back in FUNCTION." `(lambda (&optional _) (declare (ignorable _)) ,@body)) Adapted fr...
36429deef488666b4ccc2e9c0a32072873fab36fa40792d89711767e5c82c054
awslabs/s2n-bignum
bignum_mul.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_mul.ml
ocaml
========================================================================= Multiplication. ========================================================================= PUSH (% rbx) PUSH (% rbp) PUSH (% r12) PUSH (% r13) PUSH (% r14) PUSH (% r15) T...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) * * * print_literal_from_elf " x86 / generic / bignum_mul.o " ; ; ...
994e6306d593af7852386d47cdff1cbef5c42a829cd4d56ba2123423748581c3
comtihon/social_network_example
sn_handler_mngr.erl
%%%------------------------------------------------------------------- @author tihon ( C ) 2017 , < COMPANY > %%% @doc %%% This module is responsible for starting handlers - http and websocket %%% @end %%%------------------------------------------------------------------- -module(sn_handler_mngr). -author("tihon")...
null
https://raw.githubusercontent.com/comtihon/social_network_example/eed32f43947fc8d88c41e38fc2d31d2371be0c2b/src/handler/sn_handler_mngr.erl
erlang
------------------------------------------------------------------- @doc This module is responsible for starting handlers - http and websocket @end ------------------------------------------------------------------- API private functions here - get handlers configuration and start cowboy listeners determine and s...
@author tihon ( C ) 2017 , < COMPANY > -module(sn_handler_mngr). -author("tihon"). -export([init/0, stop/0]). -spec init() -> ok. init() -> erlang:error(not_implemented). -spec stop() -> ok. stop() -> erlang:error(not_implemented).
79a271ec9baeb7987137e04f5379233034e22350f22acc851cddea9e86f7730b
biocaml/biocaml
psl.ml
module Result = Biocaml_result open CFStream type item = { matches : int; mismatches : int; rep_matches : int; n_count : int; q_num_insert : int; q_base_insert : int; t_num_insert : int; t_base_insert : int; q_name : string; q_strand : char; q_size : int; q_start : int; q_end : int; t_name ...
null
https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/lib/unix/psl.ml
ocaml
module Result = Biocaml_result open CFStream type item = { matches : int; mismatches : int; rep_matches : int; n_count : int; q_num_insert : int; q_base_insert : int; t_num_insert : int; t_base_insert : int; q_name : string; q_strand : char; q_size : int; q_start : int; q_end : int; t_name ...
7e7d60273dedf7a47bd1909b4808e2669ec477255f433e2173739e666ccd4f19
dimitri/pgloader
sqlite-cast-rules.lisp
;;; Tools to handle the SQLite Database ;;; (in-package :pgloader.source.sqlite) (defvar *sqlite-db* nil "The SQLite database connection handler.") (defparameter *sqlite-default-cast-rules* `((:source (:type "character") :target (:type "text" :drop-typemod t)) (:source (:type "varchar") :target (:type "t...
null
https://raw.githubusercontent.com/dimitri/pgloader/3047c9afe141763e9e7ec05b7f2a6aa97cf06801/src/sources/sqlite/sqlite-cast-rules.lisp
lisp
parse-sqlite-type-name returns multiple values, here we only need the pgloader API only wants to see text representations to send down normalize default values that comes from the casting rules (respecting user cast decision to "drop default" or "keep default") we don't care about spaces in that expression at l...
Tools to handle the SQLite Database (in-package :pgloader.source.sqlite) (defvar *sqlite-db* nil "The SQLite database connection handler.") (defparameter *sqlite-default-cast-rules* `((:source (:type "character") :target (:type "text" :drop-typemod t)) (:source (:type "varchar") :target (:type "text" :dr...
d30657b992a2f802a2dad17eb7d984fdd2524cdc8bb0c47e06352d6067ae9f77
boxer-project/boxer-sunrise
keydef-high-tests.lisp
(in-package :boxer-sunrise-test) (plan nil) (is (boxer::remove-shift-bit 0) 0) (is (boxer::remove-shift-bit 1) 0) (is (boxer::remove-shift-bit 2) 2) (is (boxer::remove-shift-bit 3) 2) (is (boxer::remove-shift-bit 4) 4) (is (boxer::remove-shift-bit 5) 4) (is (boxer::remove-shift-bit 6) 6) (is (boxer::remove-shift-bit ...
null
https://raw.githubusercontent.com/boxer-project/boxer-sunrise/922bd8d476ed4780b98476a93916d34d0f61c90c/tests/keydef-high-tests.lisp
lisp
The tables `*default-mouse-click-name-translation-table*` and `*key-names*` are usually bound by now. Tests for lookup-input-name, which can take a character, number, mouse-event or gesture-spec character number mouse-event This may require having more of the editor system spun up as it calculates boundaries a...
(in-package :boxer-sunrise-test) (plan nil) (is (boxer::remove-shift-bit 0) 0) (is (boxer::remove-shift-bit 1) 0) (is (boxer::remove-shift-bit 2) 2) (is (boxer::remove-shift-bit 3) 2) (is (boxer::remove-shift-bit 4) 4) (is (boxer::remove-shift-bit 5) 4) (is (boxer::remove-shift-bit 6) 6) (is (boxer::remove-shift-bit ...
9611d9b9f5db763d109892890e35129975803db00be55c54cb2940cd529a3acd
clj-commons/seesaw
canvas.clj
Copyright ( c ) , 2011 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be ...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/test/seesaw/test/examples/canvas.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) , 2011 . All rights reserved . (ns seesaw.test.examples.canvas (:use seesaw.core seesaw.graphics seesaw.color seesaw.test.examples.example)) This first handler uses raw Java2D calls to do painting . See ( paint2 ) below for an example of using 's simple shape su...
9532771c4d1b4757d281edad5bbeee90cab638437d90c05ea7a66e4ef7ff5fb1
well-typed/large-records
R050.hs
# LANGUAGE TypeApplications # #if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif module Experiment.Induction_Tree_Nominal.Sized.R050 where import Data.Proxy import Common.EmptyClass_Tree_N...
null
https://raw.githubusercontent.com/well-typed/large-records/c6c2b51af11e90f30822543d7ce4d1cb28cee294/large-records-benchmarks/bench/experiments/Experiment/Induction_Tree_Nominal/Sized/R050.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings #
# LANGUAGE TypeApplications # #if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif module Experiment.Induction_Tree_Nominal.Sized.R050 where import Data.Proxy import Common.EmptyClass_Tree_Nominal import Common.HListOfSize.HL050 requiresInstance :: () requiresInstance = requireEmptyClass (Proxy @ExampleFields)
445432dd1d9e4dd254a6780c7d35ae41d290e9db0500cd5285b2758bde7c4904
alvatar/spheres
pure-arithm.scm
; Pure, declarative, and constructive arithmetics ; ; aka: division as relation. The function //o below is a KANREN relation between three numerals ; n, m, and q such that the following holds exists , n = q*m + r ; That relation is more remarkable than it may look . First , it 's possible to ; ask (//o ...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/doc/logic/kanren-examples/pure-arithm.scm
scheme
Pure, declarative, and constructive arithmetics aka: division as relation. n, m, and q such that the following holds ask (//o 1 0 q). Obviously, such q does not exist. The relation thus fail -- it does not try to enumerate all natural numbers. Again, (divo 5 m 7 _) simply fails and does not loop forever. ...
The function //o below is a KANREN relation between three numerals exists , n = q*m + r That relation is more remarkable than it may look . First , it 's possible to A more general relation is ( divo n m q r ) . We can invoke it like ( divo 5 m 1 _ ) , where n is a free variable . The answers are ( 5 4 3...
62239e777a1afe4d4216e539d789ffd6422f4df2cfe40947eec49df526271813
fulcrologic/semantic-ui-wrapper
ui_button_group.cljc
(ns com.fulcrologic.semantic-ui.elements.button.ui-button-group (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$ButtonGroup" :as ButtonGroup]))) (def ui-button-group "Buttons can be grouped. Props: - as (elementType): An element type to render as (string ...
null
https://raw.githubusercontent.com/fulcrologic/semantic-ui-wrapper/7bd53f445bc4ca7e052c69596dc089282671df6c/src/main/com/fulcrologic/semantic_ui/elements/button/ui_button_group.cljc
clojure
(ns com.fulcrologic.semantic-ui.elements.button.ui-button-group (:require [com.fulcrologic.semantic-ui.factory-helpers :as h] #?(:cljs ["semantic-ui-react$ButtonGroup" :as ButtonGroup]))) (def ui-button-group "Buttons can be grouped. Props: - as (elementType): An element type to render as (string ...
7491373b72546886b924959407b900144e5e41529bc3cf7ec49d22fb72257255
SquidDev/urn
simple.lisp
(import urn/analysis/nodes ()) (import urn/analysis/pass ()) (import urn/analysis/traverse traverse) (import urn/analysis/vars ()) (import urn/analysis/visitor visitor) (import urn/backend/lua lua) (import urn/logger logger) (import urn/range (get-source get-top-source)) (import urn/resolve/native native) (import urn/r...
null
https://raw.githubusercontent.com/SquidDev/urn/6e6717cf1376b0950e569e3771cb7e287aed291d/urn/analysis/optimise/simple.lisp
lisp
We replace the last node in the block with a nil: otherwise we might change what is returned If we're invoking a function with entirely constant arguments then Determine whether we have a native (and pure) function. If so, we'll invoke it. Don't fold non-integer values as we cannot accurately represent them To co...
(import urn/analysis/nodes ()) (import urn/analysis/pass ()) (import urn/analysis/traverse traverse) (import urn/analysis/vars ()) (import urn/analysis/visitor visitor) (import urn/backend/lua lua) (import urn/logger logger) (import urn/range (get-source get-top-source)) (import urn/resolve/native native) (import urn/r...
009302d54262d0e436f53bf93de2acbc3b5c9ae53fef50ea1ec84dd9ffa5962b
xvw/preface
formlet.ml
let subject a = Alcotest.testable (Preface.Validate.pp (Alcotest.pp a)) (Preface.Validate.equal (Alcotest.equal a)) ;; module Formlet = struct module Nel = Preface.Nonempty_list type t = { age : int ; firstname : string ; lastname : string ; checked_rules : [ `Yes ] } let make age...
null
https://raw.githubusercontent.com/xvw/preface/ece0829c9ede3e5a4975df3864edb657b96fe82c/test/preface_examples_test/formlet.ml
ocaml
let subject a = Alcotest.testable (Preface.Validate.pp (Alcotest.pp a)) (Preface.Validate.equal (Alcotest.equal a)) ;; module Formlet = struct module Nel = Preface.Nonempty_list type t = { age : int ; firstname : string ; lastname : string ; checked_rules : [ `Yes ] } let make age...
9005098da768a078fd7fe2e7bcd29477cd4640eb106c3a349e181104ed248c3d
stumpwm/stumpwm-contrib
clim-mode-line.lisp
(in-package #:clim-mode-line) ;; Uncomment for debugging ( declaim ( optimize ( speed 0 ) ( safety 3 ) ( debug 3 ) ) ) (defvar *align-x* :left) (defvar *highlight-drop* nil) (defvar *display-as-table* nil) (defvar *display-style* :text "Should be one of either :table o...
null
https://raw.githubusercontent.com/stumpwm/stumpwm-contrib/9f4d7f2cd8930937b9fa5e14043d5fad0df3148d/modeline/clim-mode-line/clim-mode-line.lisp
lisp
Uncomment for debugging (frame-text-style frame) TODO: We may need to use default text style
(in-package #:clim-mode-line) ( declaim ( optimize ( speed 0 ) ( safety 3 ) ( debug 3 ) ) ) (defvar *align-x* :left) (defvar *highlight-drop* nil) (defvar *display-as-table* nil) (defvar *display-style* :text "Should be one of either :table or :text.") (defvar *text-d...
a1f73d58c89d55fa1b8fd764245951ad7e3003d954a025125267ee9ed00ae7cc
bos/rwh
actions.hs
{-- snippet all --} -- ch08/actions.hs str2action :: String -> IO () str2action input = putStrLn ("Data: " ++ input) list2actions :: [String] -> [IO ()] list2actions = map str2action numbers :: [Int] numbers = [1..10] strings :: [String] strings = map show numbers actions :: [IO ()] actions = list2actions strings ...
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch08/actions.hs
haskell
- snippet all - ch08/actions.hs Take a list of actions, and execute each of them in turn. - /snippet all -
str2action :: String -> IO () str2action input = putStrLn ("Data: " ++ input) list2actions :: [String] -> [IO ()] list2actions = map str2action numbers :: [Int] numbers = [1..10] strings :: [String] strings = map show numbers actions :: [IO ()] actions = list2actions strings printitall :: IO () printitall = runal...
a54d188b389009a276143c8a9904652870d82a97f144c35a75a1b480af47d118
pflanze/chj-schemelib
cj-posix.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 def...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/posix/cj-posix.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. (interrupts interrupt-install-handler! SIGCHLD) {maybe-,}define-constant-from-C including define/check and define/check->integer (or should I make cj-c-errno export those by default?) for re-export: for the...
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 define-macro-star cj-typed (cj-env warn) cj-warn (posix/cj-c-errno throw-posix-exception posix-ex...
4e6ea0b41241776cfd27ce250c56f8b77c38321f26bea3bac41bb0b62929dabd
racketscript/racketscript
interop.rkt
(module interop '#%kernel (#%provide #%js-ffi) # % js - ffi is treated specially by compiler to interact with JS or do ;; operations which are not otherwise possible within Racket. ;; # % js - ffi : Operation Any ... - > Any ;; WHERE: - Operation is one of - ;; + 'ref ;; + 'index ;; + 'var ...
null
https://raw.githubusercontent.com/racketscript/racketscript/f3bddfb52d3a0229b9585db676d498f560eea658/racketscript-compiler/racketscript/private/interop.rkt
racket
operations which are not otherwise possible within Racket. WHERE: + 'ref + 'index + 'var + 'assign + 'new + 'object + 'array + 'require + 'this + 'typeof + 'string + 'arguments + 'operator
(module interop '#%kernel (#%provide #%js-ffi) # % js - ffi is treated specially by compiler to interact with JS or do # % js - ffi : Operation Any ... - > Any - Operation is one of - + ' (define-values (#%js-ffi) (lambda _ (#%app error 'racketscript "can't make JS ffi calls in Racket"))))
75528c828c3a20650bc20f00fee5724305f0ae54790b66d93622ce94b4f63e2d
nklein/cl-reactive
with.lisp
;;;; with.lisp (in-package #:cl-reactive) (defun %listify-signal (sig) "Internal: ensure that SIG is a list. If it is not, make it list of length two where both values are SIG." (etypecase sig (symbol (list sig sig)) (list sig))) (defun %signal-name (sig) "Internal: return the local name for a given...
null
https://raw.githubusercontent.com/nklein/cl-reactive/095af14792cbf33eca6f1db38a0c0456d9042ace/src/with.lisp
lisp
with.lisp
(in-package #:cl-reactive) (defun %listify-signal (sig) "Internal: ensure that SIG is a list. If it is not, make it list of length two where both values are SIG." (etypecase sig (symbol (list sig sig)) (list sig))) (defun %signal-name (sig) "Internal: return the local name for a given signal clause ...
855257f33a68e0c075525650f37b5741669725dbceba0ccb55620ba099912921
wdebeaum/step
interpret.lisp
;;;; ;;;; W::interpret ;;;; (define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::interpret (wordfeats (W::morph (:forms (-vb) :past w::interpreted :pastpart w::interpreted :ing w::interpreting :nom w::interpretation))) (SENSES ((LF-PARENT ONT::classify) (meta-data :origin calo-ontology :...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/interpret.lisp
lisp
W::interpret
(define-words :pos W::v :TEMPL AGENT-FORMAL-XP-TEMPL :words ( (W::interpret (wordfeats (W::morph (:forms (-vb) :past w::interpreted :pastpart w::interpreted :ing w::interpreting :nom w::interpretation))) (SENSES ((LF-PARENT ONT::classify) (meta-data :origin calo-ontology :entry-date 20051209 :change-...
55b63a2cdbfe9f409df658a6dc0bc1fe6fa2f2df6565b1c0fb373df5b8dfcf99
haskell-opengl/OpenGLRaw
MultiDrawIndirect.hs
-------------------------------------------------------------------------------- -- | Module : Graphics . GL.ARB.MultiDrawIndirect Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ----------------------------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/MultiDrawIndirect.hs
haskell
------------------------------------------------------------------------------ | License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Functions
Module : Graphics . GL.ARB.MultiDrawIndirect Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.MultiDrawIndirect ( glGetARBMultiDrawIndirect, gl_ARB_multi_draw_indirect, glMultiDrawArraysIndirect, glMultiDrawElementsIndirect ) where import Graphics.GL.ExtensionPredicat...
5cd327f409236c0b894a055d61e4ae406daf5b577b4b582b6645880d6ec04365
jpb/ring-aws-lambda-adapter
core.clj
(ns ring-aws-lambda-adapter.core (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.data.json :as json] [clojure.set :as set] [ring.util.codec :as codec] [uswitch.lambada.core :refer [deflambdafn]]) (:import [java.io InputStream File] ...
null
https://raw.githubusercontent.com/jpb/ring-aws-lambda-adapter/277a89393c6e5c98d6c007639270ad5b36a341e2/src/ring_aws_lambda_adapter/core.clj
clojure
(ns ring-aws-lambda-adapter.core (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.data.json :as json] [clojure.set :as set] [ring.util.codec :as codec] [uswitch.lambada.core :refer [deflambdafn]]) (:import [java.io InputStream File] ...
3a038f23e4af3e6854637360a3f4c88ce02dea1cfb7af172299664ad3708749f
xtdb/core2
jdbc_test.clj
(ns core2.jdbc-test (:require [core2.jdbc :as c2-jdbc] [core2.jdbc.postgresql :as c2-psql] [core2.object-store-test :as ost] [juxt.clojars-mirrors.nextjdbc.v1v2v674.next.jdbc :as jdbc] [juxt.clojars-mirrors.integrant.core :as ig])) (defn- with-obj-store [opts f] (let...
null
https://raw.githubusercontent.com/xtdb/core2/3adeb391ca4dd73a3f79faba8024289376597d23/src/test/clojure/core2/jdbc_test.clj
clojure
(ns core2.jdbc-test (:require [core2.jdbc :as c2-jdbc] [core2.jdbc.postgresql :as c2-psql] [core2.object-store-test :as ost] [juxt.clojars-mirrors.nextjdbc.v1v2v674.next.jdbc :as jdbc] [juxt.clojars-mirrors.integrant.core :as ig])) (defn- with-obj-store [opts f] (let...
241b9fe828b0ddffed2ca86d5cf8675bd20a072d6d160b59250e6323de311576
racket/racket7
check-and-report.rkt
#lang racket/base (require "../run/status.rkt" "../boot/runtime-primitive.rkt" "link.rkt" "linklet-info.rkt" "linklet.rkt") (provide check-and-report!) ;; Check for bootstrap obstacles and report the results (define (check-and-report! #:compiled-modules compiled-modules ...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/extract/check-and-report.rkt
racket
Check for bootstrap obstacles and report the results Check whether any needed linklet needs an instance of a pre-defined instance that is not part of the runtime system:
#lang racket/base (require "../run/status.rkt" "../boot/runtime-primitive.rkt" "link.rkt" "linklet-info.rkt" "linklet.rkt") (provide check-and-report!) (define (check-and-report! #:compiled-modules compiled-modules #:linklets linklets ...
0b6432e84802e6fd56c8191ad72788727eab771063f2e38491dfa18180187278
flipstone/orville
DatabaseDescription.hs
module Orville.PostgreSQL.PgCatalog.DatabaseDescription ( DatabaseDescription (..), RelationDescription (..), ConstraintDescription (..), ForeignRelationDescription (..), IndexDescription (..), IndexMember (..), lookupRelation, lookupRelationOfKind, lookupAttribute, lookupAttribute...
null
https://raw.githubusercontent.com/flipstone/orville/a018288c5d3fe8c567b156b980d9f8aab2d06b28/orville-postgresql-libpq/src/Orville/PostgreSQL/PgCatalog/DatabaseDescription.hs
haskell
| A description of selected items from a single PostgreSQL database. 'describeDatabaseRelations' can be used to load the descriptions of request items. | A description of a particular relation in the PostgreSQL database, including the attributes of the relation. | Find an attribute by name from the 'Re...
module Orville.PostgreSQL.PgCatalog.DatabaseDescription ( DatabaseDescription (..), RelationDescription (..), ConstraintDescription (..), ForeignRelationDescription (..), IndexDescription (..), IndexMember (..), lookupRelation, lookupRelationOfKind, lookupAttribute, lookupAttribute...
9ecd774d05ce63cafa95ec2631f2124109362382ba542d582280aa3f5ba28055
hellopatrick/xmas
main.ml
open Containers let input = IO.(read_lines_l stdin) module Move = struct type t = Rock | Paper | Scissors let of_char = function | 'A' | 'X' -> Rock | 'B' | 'Y' -> Paper | 'C' | 'Z' -> Scissors | _ -> failwith "Invalid move" let value = function Rock -> 1 | Paper -> 2 | Scissors -> 3 let nex...
null
https://raw.githubusercontent.com/hellopatrick/xmas/ff2cbbfb2d569aabd33905e1caece50f88c8c54e/2022/day02/main.ml
ocaml
open Containers let input = IO.(read_lines_l stdin) module Move = struct type t = Rock | Paper | Scissors let of_char = function | 'A' | 'X' -> Rock | 'B' | 'Y' -> Paper | 'C' | 'Z' -> Scissors | _ -> failwith "Invalid move" let value = function Rock -> 1 | Paper -> 2 | Scissors -> 3 let nex...
ab02844aac06943bd0cea452c8da4c5bc368c5702a2ddb0efd39586a6834ca26
cljfx/cljfx
tree_cell.clj
(ns cljfx.fx.tree-cell "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.fx.indexed-cell :as fx.indexed-cell] [cljfx.coerce :as coerce]) (:import [javafx.scene.control TreeCell] [javafx.scene AccessibleRole])) (s...
null
https://raw.githubusercontent.com/cljfx/cljfx/543f7409290051e9444771d2cd86dadeb8cdce33/src/cljfx/fx/tree_cell.clj
clojure
overrides definitions
(ns cljfx.fx.tree-cell "Part of a public API" (:require [cljfx.composite :as composite] [cljfx.lifecycle :as lifecycle] [cljfx.fx.indexed-cell :as fx.indexed-cell] [cljfx.coerce :as coerce]) (:import [javafx.scene.control TreeCell] [javafx.scene AccessibleRole])) (s...
8b75966d661cd736f7ee7ca9baf5b38463fa68b23607656dd63fa06870d439b9
cert-lv/pastelyzer
package.lisp
(defpackage #:pastelyzer.tests (:use #:common-lisp #:2am #:pastelyzer) (:shadowing-import-from #:2am #:run) (:local-nicknames (#:util #:pastelyzer.util)))
null
https://raw.githubusercontent.com/cert-lv/pastelyzer/278caeaafd5073300b5ee5bc9b801be5bd4f8637/tests/package.lisp
lisp
(defpackage #:pastelyzer.tests (:use #:common-lisp #:2am #:pastelyzer) (:shadowing-import-from #:2am #:run) (:local-nicknames (#:util #:pastelyzer.util)))
647898a35abcca0de6ace187269a4b9028496ac385a1d55cbaede827bfea95d1
GNOME/gimp-tiny-fu
fuzzyborder.scm
; ; fuzzy-border ; ; Do a cool fade to a given colour at the border of an image (optional shadow) ; Will make image RGB if it isn't already. ; ( ) At ECS Dept , University of Southampton , England . ; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Pu...
null
https://raw.githubusercontent.com/GNOME/gimp-tiny-fu/a64d85eec23b997e535488d67f55b44395ba3f2e/scripts/fuzzyborder.scm
scheme
fuzzy-border Do a cool fade to a given colour at the border of an image (optional shadow) Will make image RGB if it isn't already. This program is free software: you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. This program is distributed in the h...
( ) At ECS Dept , University of Southampton , England . it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (define (script-fu-fuzzy-border inImage inLayer inC...
3914838499cacb2b329ed2937091fbc702ee34920d7503b7d1a4d69311322f17
yogthos/krueger
messages.clj
(ns krueger.routes.services.messages (:require [schema.core :as s])) (s/defschema Message {:author s/Str :recipient s/Str :content s/Str})
null
https://raw.githubusercontent.com/yogthos/krueger/782e1f8ab358867102b907c5a80e56ee6bc6ff82/src/clj/krueger/routes/services/messages.clj
clojure
(ns krueger.routes.services.messages (:require [schema.core :as s])) (s/defschema Message {:author s/Str :recipient s/Str :content s/Str})
971543d6fe3a2ade7c417f9e7177956260c8e6605189fa64035e7df4d81eeaf7
input-output-hk/plutus
MachineParameters.hs
-- editorconfig-checker-disable-file {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE StrictData #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} module PlutusCore.Evaluation.Machine.MachineParameters where import PlutusCore.Builtin import Control.DeepSeq import Co...
null
https://raw.githubusercontent.com/input-output-hk/plutus/ece3115856b370e259d88e6b45a4f59db7756ca6/plutus-core/plutus-core/src/PlutusCore/Evaluation/Machine/MachineParameters.hs
haskell
editorconfig-checker-disable-file # LANGUAGE DeriveAnyClass # # LANGUAGE StrictData # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # See Note [Inlining meanings of builtins]. | This just uses 'toBuiltinsRuntime' function to convert a BuiltinCostModel to a BuiltinsRuntime.
# LANGUAGE TemplateHaskell # module PlutusCore.Evaluation.Machine.MachineParameters where import PlutusCore.Builtin import Control.DeepSeq import Control.Lens import GHC.Exts (inline) import GHC.Generics import NoThunks.Class | We need to account for the costs of evaluator steps and also built - in function ev...
3a20cce1c4d5929e91fb48008d8f1f06bfb37387398d7b06d7e90bb723782ce8
lexi-lambda/racket-pvector
main.rkt
#lang racket/base (require rackunit data/collection data/pvector) (test-case "Basic vector operations" (check-equal? (sequence->list (pvector 1 2 3 4)) '(1 2 3 4)) (check-equal? (sequence->list (conj* (pvector) 1 2 3 4)) '(1 2 3 4)) (check-equal? (sequence->list (rest (pvector 1 2 3 4))) '(2 3 4)) (check-e...
null
https://raw.githubusercontent.com/lexi-lambda/racket-pvector/d0132809b4da6e48c3e3087dc35cda1c47565e5e/data/private/test/main.rkt
racket
#lang racket/base (require rackunit data/collection data/pvector) (test-case "Basic vector operations" (check-equal? (sequence->list (pvector 1 2 3 4)) '(1 2 3 4)) (check-equal? (sequence->list (conj* (pvector) 1 2 3 4)) '(1 2 3 4)) (check-equal? (sequence->list (rest (pvector 1 2 3 4))) '(2 3 4)) (check-e...
7ec368c48fc389cef3cefcbf0b178ac5e00592e17346ad51ddad454d749ffcdb
kadena-io/masala
Memory.hs
# LANGUAGE ScopedTypeVariables # -- | Holds all memory operations. module Masala.VM.Memory where import Masala.VM.Types import Masala.Word import Data.Maybe import qualified Data.Map.Strict as M import Control.Lens mload :: Monad m => U256 -> VM m U256 mload i | i +^ 31 <= i = return 0 | otherwise = do m <...
null
https://raw.githubusercontent.com/kadena-io/masala/9fb5bce2f0cacc2e92862f84110477514e7fb47a/src/Masala/VM/Memory.hs
haskell
| Holds all memory operations.
# LANGUAGE ScopedTypeVariables # module Masala.VM.Memory where import Masala.VM.Types import Masala.Word import Data.Maybe import qualified Data.Map.Strict as M import Control.Lens mload :: Monad m => U256 -> VM m U256 mload i | i +^ 31 <= i = return 0 | otherwise = do m <- use mem return $ head . u8sToU...
5181a3f6666acaa9bf108dd75ae934b10a105ba50a8d2d3ef8502d7bb182b8e8
yuriy-chumak/ol
xpm3.scm
(define-library (file xpm3) (import (otus lisp) (file parser) (lang sexp)) (export xpm3-parser xpm3-parse-file) parsed xpm3 as : ; vector of vectors of colors (begin (define (block-comment) (either (let-parse* ( (skip (get-imm #\*)) (skip (get-imm #\...
null
https://raw.githubusercontent.com/yuriy-chumak/ol/193e7e3ad6dc8a662cf46bc4c8dff144595e5905/libraries/file/xpm3.scm
scheme
vector of vectors of colors header: parameters: colour table: bitmap end
(define-library (file xpm3) (import (otus lisp) (file parser) (lang sexp)) (export xpm3-parser xpm3-parse-file) parsed xpm3 as : (begin (define (block-comment) (either (let-parse* ( (skip (get-imm #\*)) (skip (get-imm #\/))) 'comment) ...
357b2afc8fb74cc6109c6a5d798de9aaa40d7d4afd1c6ed0898261cc77a9a579
pirapira/coq2rust
q_util.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/grammar/q_util.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 - 2012 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * necessary for val mlexpr_...
c93016dc09325caa4371f8746027c2b1a829d6d235d8517fd6793f6deaf60515
rgrinberg/onanomsg
topkg.ml
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
null
https://raw.githubusercontent.com/rgrinberg/onanomsg/106cff749f09fbdd003cfca20643f227ab595e61/pkg/topkg.ml
ocaml
Public api * Build environment access * [bool key] declares [key] as being a boolean key in the environment. Specifing key=(true|false) on the command line becomes mandatory. * [native] is [bool "native"]. * [native_dylink] is [bool "native-dynlink"] * Exts defines sets of file extensions. * [interface] is...
--------------------------------------------------------------------------- Copyright ( c ) 2014 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Cop...
f781aacf43210eebe5fa093cd00cbd8c062d43c7e9af67a94d9f0ef26bc8fa22
racket/slideshow
info.rkt
#lang info (define collection 'multi) (define deps '("slideshow-lib" "slideshow-exe" "slideshow-plugin" "slideshow-doc")) (define implies '("slideshow-lib" "slideshow-exe" "slideshow-plugin" "slideshow-doc")) (define...
null
https://raw.githubusercontent.com/racket/slideshow/c3603f65735462bd94cc2015c7147014aa728a4f/slideshow/info.rkt
racket
#lang info (define collection 'multi) (define deps '("slideshow-lib" "slideshow-exe" "slideshow-plugin" "slideshow-doc")) (define implies '("slideshow-lib" "slideshow-exe" "slideshow-plugin" "slideshow-doc")) (define...
304db3fc104d4f86312dc18a16213f55c39fc534c2165e7b8d7b1636de027ee7
picty/parsifal
cryptoUtil.ml
type signature_result = | SignatureOK | UnknownSignatureAlgorithm of string | UnknownHashAlgorithm of string | InvalidSignature let string_of_signature_result = function | SignatureOK -> "Signature OK" | UnknownSignatureAlgorithm s -> "Unknown Signature Algorithm: " ^ s | UnknownHashAlgorithm s -> "Unkno...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/crypto/cryptoUtil.ml
ocaml
type signature_result = | SignatureOK | UnknownSignatureAlgorithm of string | UnknownHashAlgorithm of string | InvalidSignature let string_of_signature_result = function | SignatureOK -> "Signature OK" | UnknownSignatureAlgorithm s -> "Unknown Signature Algorithm: " ^ s | UnknownHashAlgorithm s -> "Unkno...
9afb86892d1cf4bad9c40e9fa9536ac603237c31e9e37c14689951381cab32b1
well-typed-lightbulbs/ocaml-esp32
opt_variants.ml
(* TEST *) let () = assert(Sys.getenv_opt "FOOBAR_UNLIKELY_TO_EXIST_42" = None); assert(int_of_string_opt "foo" = None); assert(int_of_string_opt "42" = Some 42); assert(int_of_string_opt (String.make 100 '9') = None); assert(Nativeint.of_string_opt "foo" = None); assert(Nativeint.of_string_opt "42" = So...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/basic/opt_variants.ml
ocaml
TEST
let () = assert(Sys.getenv_opt "FOOBAR_UNLIKELY_TO_EXIST_42" = None); assert(int_of_string_opt "foo" = None); assert(int_of_string_opt "42" = Some 42); assert(int_of_string_opt (String.make 100 '9') = None); assert(Nativeint.of_string_opt "foo" = None); assert(Nativeint.of_string_opt "42" = Some 42n); ...
fe4d8b45c5b2213bd69c8b9249fb2418e2b5306617538bec87f496ffa7524845
modular-macros/ocaml-macros
main.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/lex/main.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Syntax let ml_automata = ref false let source_name = ref None let output_name = ref None let usag...
25eb29853efed9cac51006c48b359ae31d74cb472308880a68da04197f4e45a6
CodeforSouth/fbi-api
util_test.clj
(ns unit.fbi-api.util-test (:require [clojure.test :refer :all] [fbi-api.util :refer :all])) (deftest str-null->int-test (testing "Should return integer on correct int string" (is (= 1 (str-null->int "1"))) (is (= 43434 (str-null->int "43434"))) (is (= (str-null->int "123") 123))) (testin...
null
https://raw.githubusercontent.com/CodeforSouth/fbi-api/ddc1f1c45269bd9a0401c5047d0c5ab1dbe299ba/test/unit/fbi_api/util_test.clj
clojure
TODO:
(ns unit.fbi-api.util-test (:require [clojure.test :refer :all] [fbi-api.util :refer :all])) (deftest str-null->int-test (testing "Should return integer on correct int string" (is (= 1 (str-null->int "1"))) (is (= 43434 (str-null->int "43434"))) (is (= (str-null->int "123") 123))) (testin...
5382c48a664f9ce49a83344afc59c269db24381b5f7c6c19436f1c14048f785d
matthiasn/systems-toolbox
test_promise.cljc
(ns matthiasn.systems-toolbox.test-promise "Provide a promise-like experience for testing." #?(:cljs (:require-macros [cljs.core.async.macros :refer [go]])) (:require #?(:clj [clojure.test :refer [is]] :cljs [cljs.test :refer-macros [async is]]) #?(:clj [clojure.core.async :refer [go alts! <!! tim...
null
https://raw.githubusercontent.com/matthiasn/systems-toolbox/6bcc44af449b4a5d4e9128cd0f2129b58619a5dc/test/matthiasn/systems_toolbox/test_promise.cljc
clojure
(ns matthiasn.systems-toolbox.test-promise "Provide a promise-like experience for testing." #?(:cljs (:require-macros [cljs.core.async.macros :refer [go]])) (:require #?(:clj [clojure.test :refer [is]] :cljs [cljs.test :refer-macros [async is]]) #?(:clj [clojure.core.async :refer [go alts! <!! tim...
c572f43bbf66a0d3fd8b645eff600b855f3fc1cb50195ae653c9797e4316df5c
dwayne/eopl3
parser.test.rkt
#lang racket (require "./parser.rkt") (require rackunit) (check-equal? (parse "1") (a-program (const-exp 1))) (check-equal? (parse "x") (a-program (var-exp 'x))) (check-equal? (parse "-(5, y)") (a-program (diff-exp (const-exp 5) (var-exp 'y)))) (check-equal? (parse "zero?(z)") (a-program (zero?-exp (var-e...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/05-ch5/interpreters/racket/LETCC-5.43/parser.test.rkt
racket
Multiargument procedure tests Test try and raise Test letcc
#lang racket (require "./parser.rkt") (require rackunit) (check-equal? (parse "1") (a-program (const-exp 1))) (check-equal? (parse "x") (a-program (var-exp 'x))) (check-equal? (parse "-(5, y)") (a-program (diff-exp (const-exp 5) (var-exp 'y)))) (check-equal? (parse "zero?(z)") (a-program (zero?-exp (var-e...
888710cbf59f25ebcc7c2b1241523fe3878ac1ed6183c9475eb1fc4eb8a3ed11
chetmurthy/ensemble
param.mli
(**************************************************************) PARAM.MLI Author : , 12/96 (**************************************************************) open Trans (**************************************************************) (* The type of parameters. *) type t = | String of string | Int of int | ...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/type/param.mli
ocaml
************************************************************ ************************************************************ ************************************************************ The type of parameters. Parameter lists are (name,value) association lists. Add a parameter to the defaults. Lookup a parameter...
PARAM.MLI Author : , 12/96 open Trans type t = | String of string | Int of int | Bool of bool | Time of Time.t | Float of float type tl = (name * t) list val default : name -> t -> unit val lookup : tl -> name -> t val string : tl -> name -> string val int : tl -> name -> int val bool : tl -> name ...
8c3cf332dd96e568b72beec91b9892261e04f0ca9df30cf5a4a67fdc084733a0
unix1/nuk
nuk_game_sessions.erl
%%%------------------------------------------------------------------- %% @doc `nuk_game_sessions' module %% %% This module should be used as an API for mapping game session identifiers %% to process IDs: %% - given a game process `pid()' create a new unique session identifier %% - translate a given unique session iden...
null
https://raw.githubusercontent.com/unix1/nuk/ad771c8b164c305408d8076627228024c4955ec1/src/nuk_game_sessions.erl
erlang
------------------------------------------------------------------- @doc `nuk_game_sessions' module This module should be used as an API for mapping game session identifiers to process IDs: - given a game process `pid()' create a new unique session identifier - translate a given unique session identifier to the g...
-module(nuk_game_sessions). -export([get_pid/1, put/1, delete/1]). -spec get_pid(SessionId :: string()) -> {ok, Pid :: pid()} | {error, game_session_not_found, Extra :: string()}. get_pid(SessionId) -> SessionStorageModule = nuk_app:get_storage_module(game_sessions), SessionStorageModule:get_pid(Sess...
62cc02db93929789e13775c9accc0e6e66b4e1cbf2466d2c3938ac6fd64e2d5e
mhwombat/creatur
BRGCBoolQC.hs
------------------------------------------------------------------------ -- | Module : ALife . . Genetics . BRGCBoolQC Copyright : ( c ) 2013 - 2022 -- License : BSD-style -- Maintainer : -- Stability : experimental -- Portability : portable -- -- QuickCheck tests. -- ------------------...
null
https://raw.githubusercontent.com/mhwombat/creatur/c715f4de16d29b646b27f3185d1d073df0fc9cb6/test/ALife/Creatur/Genetics/BRGCBoolQC.hs
haskell
---------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : experimental Portability : portable QuickCheck tests. ---------------------------------------------------------------------- (prop_round_trippable :: Word64 -> Property), (prop...
Module : ALife . . Genetics . BRGCBoolQC Copyright : ( c ) 2013 - 2022 # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # module ALife.Creatur.Genetics.BRGCBoolQC ( test ) where import ALife.Creatur.Genetics.Analysis (Analysable) import ALife.Creatur.Ge...
4f889fb3044c7336a4ffa0cb87c8d35f45f01494a1b4b8a2af2a2feb564abe7d
Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator
Test9.hs
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE MultiWayIf #-} -- | Contains the types generated from the schema Test9 module OpenAPI.Types.Test9 where import qualified Prelude as GHC.In...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator/5d8f5da48273d006dd0e2cdb6d2425fb6b52f0c5/testing/golden-output/src/OpenAPI/Types/Test9.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE MultiWayIf # | Contains the types generated from the schema Test9 ^ This case is used if the value encountered during decoding does not match any of the provided cases in the specification. ^ This constructor can be used to send values to the server which are not present...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module OpenAPI.Types.Test9 where import qualified Prelude as GHC.Integer.Type import qualified Prelude as GHC.Maybe import qualified Control.Monad.Fail import qualified Data.Aeson import...
c39d3fb30119cbeeff6287c9679a0154daf71a73c7e97bf87c1701327d2fd4e2
ROCKTAKEY/roquix
glab.scm
(define-module (roquix packages glab) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) #:use-module (nonguix build-system binary)) (define-public go-github-com-profclems-glab (package (name "go-github-com-profclems-glab") (version "1.22.0") ...
null
https://raw.githubusercontent.com/ROCKTAKEY/roquix/13871c4ea0a257ca9eb1f21aa67a18e08d7abe04/roquix/packages/glab.scm
scheme
(define-module (roquix packages glab) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) #:use-module (nonguix build-system binary)) (define-public go-github-com-profclems-glab (package (name "go-github-com-profclems-glab") (version "1.22.0") ...
046fb10f576db64bcda2887759ef97aa6b2863102e3d02982df72d027ca89b76
namin/biohacker
carnival-play.lisp
(new-carnival "test") (load "../ltms/carnival-test.lisp") (solve) (check-consistency) (what-node 'NS1) (what-node 'PIK3CA) (what-node 'MYC)
null
https://raw.githubusercontent.com/namin/biohacker/334692bdeb4b88a09f440bf7bface419ffbe7861/BPS/ltms/carnival-play.lisp
lisp
(new-carnival "test") (load "../ltms/carnival-test.lisp") (solve) (check-consistency) (what-node 'NS1) (what-node 'PIK3CA) (what-node 'MYC)
235e7e78923d6f7af7f3776e862ed359e41ad989f88dbde6d404096dc7a47507
realworldocaml/book
cram_stanza.mli
open Import type applies_to = | Whole_subtree | Files_matching_in_this_dir of Predicate_lang.Glob.t type t = { loc : Loc.t (* ; dir : Path.t *) ; applies_to : applies_to ; alias : Alias.Name.t option ; deps : Dep_conf.t Bindings.t option ; enabled_if : Blang.t ; locks : Locks.t ; package : Package.t...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/dune_/src/dune_rules/cram_stanza.mli
ocaml
; dir : Path.t
open Import type applies_to = | Whole_subtree | Files_matching_in_this_dir of Predicate_lang.Glob.t type t = ; applies_to : applies_to ; alias : Alias.Name.t option ; deps : Dep_conf.t Bindings.t option ; enabled_if : Blang.t ; locks : Locks.t ; package : Package.t option } val decode : t Dune_lang...
a8af31fe88e44329956d41482f62d9fbbdf4c4d82025e1484fb85302d455a8a8
screenshotbot/screenshotbot-oss
test-git.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :screenshotbot/sdk/test-git (:use #:cl #:fi...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/ffe8c39fb3a79013692a8d8b4f76e1b1b4714c12/src/screenshotbot/sdk/test-git.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc.
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :screenshotbot/sdk/test-git (:use #:cl #:fiveam) (:import-from #:screenshotbot/sdk/git ...
6b26fd3d9b786260658029218ff4f3c3014b08f43409deb173bc90ecc793cb35
webyrd/mediKanren
sqlite-to-db.rkt
#lang racket/base (require "csv.rkt" "repr.rkt" racket/file racket/list racket/set racket/string racket/system ) (define set-empty (set)) (define hash-empty (hash)) (define (subsumed? rs s) (ormap (lambda (r) (subset? r s)) rs)) (define (unique-add/subsume unique uniques) (define us (set->list uniqu...
null
https://raw.githubusercontent.com/webyrd/mediKanren/a2b80ea94f66bcdd4305b9369ad4184c2afe9829/attic/pharos/sqlite-to-db.rkt
racket
"text" "timestamp" "date"
#lang racket/base (require "csv.rkt" "repr.rkt" racket/file racket/list racket/set racket/string racket/system ) (define set-empty (set)) (define hash-empty (hash)) (define (subsumed? rs s) (ormap (lambda (r) (subset? r s)) rs)) (define (unique-add/subsume unique uniques) (define us (set->list uniqu...
40aee1db7750b54f4bfd687ce66612b94b3c07551a970664bb379cefaa30a223
melange-re/melange
obj_repr_test.ml
* for objects its size is dynamic let xx = object ... end its tag is 248 field 0 is an array obj[0 ] = table.methods field 1 is its i d ` ` ` class point .. ` ` ` point is quarduple , produced by Caml_internalOO.make_class for objects its size is dynamic let xx = object ... end its tag...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/obj_repr_test.ml
ocaml
* for objects its size is dynamic let xx = object ... end its tag is 248 field 0 is an array obj[0 ] = table.methods field 1 is its i d ` ` ` class point .. ` ` ` point is quarduple , produced by Caml_internalOO.make_class for objects its size is dynamic let xx = object ... end its tag...
d5745701d6610dd12eeccd66a6404a2bac80c2a2282fc1006ea98eb7961c1c35
qitab/ace.core
tty.lisp
Copyright 2020 Google LLC ;;; Use of this source code is governed by an MIT - style ;;; license that can be found in the LICENSE file or at ;;; . ;;; Functions related to TTY . E.g. Printing of ANSI escape codes . ;;; (defpackage #:ace.core.tty (:use #:common-lisp) (:export #:ttyp #:*print-ansi*)) (in-pack...
null
https://raw.githubusercontent.com/qitab/ace.core/e6eb21ff67b0c5eaec21c9b543b6dce18d7c8e6d/tty.lisp
lisp
license that can be found in the LICENSE file or at . Optimize output for safety.
Copyright 2020 Google LLC Use of this source code is governed by an MIT - style Functions related to TTY . E.g. Printing of ANSI escape codes . (defpackage #:ace.core.tty (:use #:common-lisp) (:export #:ttyp #:*print-ansi*)) (in-package #:ace.core.tty) (declaim (boolean *print-ansi*)) (defvar *print-ansi*...
0db099cee6419e010363be7c384075540a3278c03ce9e0432fe43ca0f2636b8c
IndianRoboticsOrganization/ArimaTTS
INST_LANG_lex.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Carnegie Mellon University ; ; ; and and ; ; ; Copyright ( c ) 1998 - 2000 ...
null
https://raw.githubusercontent.com/IndianRoboticsOrganization/ArimaTTS/7377dca466306e2e6b90a063427273142cd50616/festvox/src/vox_diphone/festvox/INST_LANG_lex.scm
scheme
;;; ; ; ; ; ; ; ; ; ;;; Permission is hereby granted, free of charge, to use and distribute ;;; this software and its documentation without restriction, including ;;; withou...
(define (INST_LANG_lts_function word features) "(INST_LANG_lts_function WORD FEATURES) Return pronunciation of word not in lexicon." (format stderr "failed to find pronunciation for %s\n" word) (let ((dword (downcase word))) (if (lts.in.alphabet word 'INST_LANG) (list word features this language ( its...
75c328bbffde50ddb1d1cb45449db58a88a97e2ae1371b30d4f597b68b339170
jeluard/hipo
runner.cljs
(ns hipo.runner (:require [doo.runner :refer-macros [doo-tests]] [hipo.attribute-test] [hipo.compiler-test] [hipo.core-test] [hipo.hiccup-test] [hipo.interpreter-test] [hipo.reconciliation-test])) (doo-tests 'hipo.attribute-test ...
null
https://raw.githubusercontent.com/jeluard/hipo/1c107002bc5d338050046e9d8be2d8eba3fa9187/test/hipo/runner.cljs
clojure
(ns hipo.runner (:require [doo.runner :refer-macros [doo-tests]] [hipo.attribute-test] [hipo.compiler-test] [hipo.core-test] [hipo.hiccup-test] [hipo.interpreter-test] [hipo.reconciliation-test])) (doo-tests 'hipo.attribute-test ...
8c7bf23471537b65b75b92ca766aa27fa834df057e2c42f872261d791f4c7afd
backtracking/ocamlgraph
util.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and (* ...
null
https://raw.githubusercontent.com/backtracking/ocamlgraph/1c028af097339ca8bc379436f7bd9477fa3a49cd/src/util.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking open Sig ...
401835d5e6b2c20d90994665dc47e88329a2f5c6a910fe6e0ee4b4a78557b451
martijnbastiaan/doctest-parallel
Foo.hs
-- | module header module Foo ( -- * some heading | export list 1 foo -- * some other heading | export list 2 , bar * one more heading -- $foo , baz ) where -- | foo foo :: Int foo = 23 -- $foo named chunk -- | bar bar :: Int bar = 23 baz :: Int baz = 23
null
https://raw.githubusercontent.com/martijnbastiaan/doctest-parallel/f70d6a1c946cc0ada88571b90a39a7cd4d065452/test/extract/comment-order/Foo.hs
haskell
| module header * some heading * some other heading $foo | foo $foo named chunk | bar
module Foo ( | export list 1 foo | export list 2 , bar * one more heading , baz ) where foo :: Int foo = 23 bar :: Int bar = 23 baz :: Int baz = 23
aede8acb6453bec69c180b277676c96e59fcb1214beb843ace374e701b81ff73
codinuum/cca
lang.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/c22bbe5b4d8824695a5844b23309a8652d371e70/src/ast/analyzing/common/lang.ml
ocaml
lang.ml exclude ghost nodes leaves internal nodes no subtree digests parser name -> functions external parser name -> functions
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
c3bb364ebfa82d4576d58736267352152828f67960ef8a9d6d3581e59e97e782
heroku/logplex
rolling_upgrade.erl
f(RollingUpgrade). RollingUpgrade = fun (Nodes) -> lists:foldl(fun (N, {good, Upgraded}) -> case rpc:call(N, erlang, apply, [ UpgradeNode, [] ]) of consistent -> {good, [N | Upgraded]}; Else -> {{bad, N, Else}, Upgraded} end; (N, {_, _} = Acc) -> Acc end, {good, []}, ...
null
https://raw.githubusercontent.com/heroku/logplex/fc520c44cf4687726d5d51464d3264ddc6abb0ba/upgrades/v33_v34/rolling_upgrade.erl
erlang
f(RollingUpgrade). RollingUpgrade = fun (Nodes) -> lists:foldl(fun (N, {good, Upgraded}) -> case rpc:call(N, erlang, apply, [ UpgradeNode, [] ]) of consistent -> {good, [N | Upgraded]}; Else -> {{bad, N, Else}, Upgraded} end; (N, {_, _} = Acc) -> Acc end, {good, []}, ...
5bb25bfcae66fba855e8051bbdf81869166bc68aa6f8c30c8e056b5ff6ac651d
ndmitchell/uniplate
Compos.hs
| Compos compatibility layer . This module serves as a drop - in replacement in some situations for some of the Compos operations . Only the single - type traversals are supported , on normal algebraic data types . Users should also import either " Data . Generics . Uniplate . Data " or " ...
null
https://raw.githubusercontent.com/ndmitchell/uniplate/7d3039606d7a083f6d77f9f960c919668788de91/Data/Generics/Compos.hs
haskell
| If you want to keep an existing type class | @composOp == 'descend'@ | @composOpM == 'descendM'@ | @composOpM_ == 'composOpFold' (return ()) (>>)@ | @composOpMPlus = 'composOpFold' mzero mplus@ | Probably replace with 'universe', perhaps 'para'
| Compos compatibility layer . This module serves as a drop - in replacement in some situations for some of the Compos operations . Only the single - type traversals are supported , on normal algebraic data types . Users should also import either " Data . Generics . Uniplate . Data " or " ...
e8635a1da42dc735048f2decd610963f17b188cf0034c7c94d8703e4339ab945
ijp/guildhall
utils.scm
(import (except (rnrs) delete-file file-exists?) (srfi :8 receive) (guildhall ext trc-testing) (guildhall spells filesys) (guildhall spells pathname) (guildhall private utils)) (define-test-suite utils-tests "Utilities") (define test-dir (->pathname '((",utils-test.tmp"))))...
null
https://raw.githubusercontent.com/ijp/guildhall/2fe2cc539f4b811bbcd69e58738db03eb5a2b778/tests/utils.scm
scheme
Local Variables: scheme-indent-styles: (trc-testing) End:
(import (except (rnrs) delete-file file-exists?) (srfi :8 receive) (guildhall ext trc-testing) (guildhall spells filesys) (guildhall spells pathname) (guildhall private utils)) (define-test-suite utils-tests "Utilities") (define test-dir (->pathname '((",utils-test.tmp"))))...
675d969b105bb5af95f889557cf58aa34d2c50387c355fb7788d79b03e33abd0
9beach/hanspell-hs
Decoder.hs
{-# OPTIONS_HADDOCK hide #-} module Language.Hanspell.Decoder (decodeEntity) where import qualified Data.Text as T import qualified Data.Text.Lazy as TL import HTMLEntities.Decoder import Data.Text.Lazy.Builder -- HTML entity decoder. decodeEntity :: String -> String decodeEntity = T.unpack . TL.toStrict . toLazyTe...
null
https://raw.githubusercontent.com/9beach/hanspell-hs/15c462683b42106f20343b10e80fd8d9d81a5feb/src/Language/Hanspell/Decoder.hs
haskell
# OPTIONS_HADDOCK hide # HTML entity decoder.
module Language.Hanspell.Decoder (decodeEntity) where import qualified Data.Text as T import qualified Data.Text.Lazy as TL import HTMLEntities.Decoder import Data.Text.Lazy.Builder decodeEntity :: String -> String decodeEntity = T.unpack . TL.toStrict . toLazyText . htmlEncodedText . T.pack
350b721412f452775d61cf7d4b23be354fbae92559b14392a071c7709e94e5b6
emqx/emqx
emqx_ee_bridge_clickhouse.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %%-------------------------------------------------------------------- -module(emqx_ee_bridge_clickhouse). -include_lib("emqx_bridge/include/emqx_bridge.hrl"). -include_lib("t...
null
https://raw.githubusercontent.com/emqx/emqx/a638cc65666110ccfab832669c4a4fd1f411639a/lib-ee/emqx_ee_bridge/src/emqx_ee_bridge_clickhouse.erl
erlang
-------------------------------------------------------------------- -------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- Callback used by HTTP API -------------------------------------------------------...
Copyright ( c ) 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . -module(emqx_ee_bridge_clickhouse). -include_lib("emqx_bridge/include/emqx_bridge.hrl"). -include_lib("typerefl/include/types.hrl"). -include_lib("hocon/include/hoconsc.hrl"). -include_lib("emqx_resource/include/emqx_resource.hrl"). -import(hoco...
be29423b934b4fb661b2a4b2a70f30d5f0a37df9307bc7b045d2ed5da372dc54
jrm-code-project/LISP-Machine
ti-cruft.lisp
-*- Mode : LISP ; Package : USER ; -*- here is how to bootstrap the TI software network config at LMI . * create a directory LM : SITE ; for the SITEINFO.XFASL file to go . add the local host EXP1 , and DJ . ;; Also add a optional site option :CHAOS-HOST-TABLE-SERVER-HOSTS '("DJ") ;; ;; ;; Then run this func...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/ti-cruft.lisp
lisp
Package : USER ; -*- for the SITEINFO.XFASL file to go . Also add a optional site option :CHAOS-HOST-TABLE-SERVER-HOSTS '("DJ") Then run this function: Then make sure you (update-site-configuration-info) on DJ. then load the file it produced onto the ti. then process/distribute network configuration from in-c...
here is how to bootstrap the TI software network config at LMI . add the local host EXP1 , and DJ . (defun dump-crufty-for-ti-site (to-file) (update-site-configuration-info) (with-open-file (stream to-file :direction :output) (dolist (x si:host-alist) (let ((name (car x))) (format stream "(...
ce92669aa27db678fc491b680cfbedd38d8de9597dae8cf20e0eb9e51395a002
bluddy/rails
tile.ml
open Containers type t = 0 | Woods | Swamp | Foothills | Hills 5 | City | Village | Farm | Slums 10 US US | Factory US , 15 , US | Landing of Dir.Set.t (* Light blue river *) US | CoalMine | SteelMill 20 US , Europe US US | EnemyRR | River of Dir.Set.t (* directions o...
null
https://raw.githubusercontent.com/bluddy/rails/b2a8dd700fdcbdf36984ba50eb148000c1f0b32f/bin/backend/tile.ml
ocaml
Light blue river directions of river same as ocean Alternative Eng Eng, Eur Eng, Eur Eng Eur Eur Eur Eng Eng, Eur farms I guess TODO: power plant conversion makes no sense. Only due to simplicity of conversion system Eng, Eur Eng, Eur Eng, Eur Eur Eur Eur Note: this seems like...
open Containers type t = 0 | Woods | Swamp | Foothills | Hills 5 | City | Village | Farm | Slums 10 US US | Factory US , 15 , US US | CoalMine | SteelMill 20 US , Europe US US | EnemyRR 25 | Desert [@@deriving eq, yojson] let show = function | Clear -> "Clear" ...
e83a10bf9f3f1d40474aa4e2af6728622c34e2b6c9cac99c5027909f21e67bcd
rtoy/ansi-cl-tests
broadcast-stream-streams.lsp
;-*- Mode: Lisp -*- Author : Created : Thu Jan 29 22:06:28 2004 Contains : Tests of BROADCAST - STREAM - STREAMS (in-package :cl-test) (deftest broadcast-stream-streams.1 (broadcast-stream-streams (make-broadcast-stream)) nil) (deftest broadcast-stream-streams.2 (equalt (broadcast-stream-st...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/broadcast-stream-streams.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Thu Jan 29 22:06:28 2004 Contains : Tests of BROADCAST - STREAM - STREAMS (in-package :cl-test) (deftest broadcast-stream-streams.1 (broadcast-stream-streams (make-broadcast-stream)) nil) (deftest broadcast-stream-streams.2 (equalt (broadcast-stream-streams (make-broadcast-st...