id int64 0 45.1k | file_name stringlengths 4 68 | file_path stringlengths 14 193 | content stringlengths 32 9.62M | size int64 32 9.62M | language stringclasses 1
value | extension stringclasses 6
values | total_lines int64 1 136k | avg_line_length float64 3 903k | max_line_length int64 3 4.51M | alphanum_fraction float64 0 1 | repo_name stringclasses 779
values | repo_stars int64 0 882 | repo_forks int64 0 108 | repo_open_issues int64 0 90 | repo_license stringclasses 8
values | repo_extraction_date stringclasses 146
values | sha stringlengths 64 64 | __index_level_0__ int64 0 45.1k | exdup_ids_cmlisp_stkv2 listlengths 1 47 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24,508 | conllc.lisp | jnjcc_cl-nlp/corpora/conllc.lisp | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
;;;; CoNLL-2000 Shared Task Chunking
;;;; (https://www.clips.uantwerpen.be/conll2000/chunking/)
(in-package #:cl-nlp)
;;; CoNLL-2000 Chunking
;;; file format: word pos chunk
(defvar *conll-2000-fields* '("w" "pos" "chunking"))
(defvar *conll... | 4,258 | Common Lisp | .lisp | 109 | 33.192661 | 89 | 0.565175 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 67a90bf193ee0563831d226ef36ade5887f50d7672e1202b9a063f3c5c96006c | 24,508 | [
-1
] |
24,509 | treebank.lisp | jnjcc_cl-nlp/corpora/treebank.lisp | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
;;;; NOTICE: Wall Street Journal treebank from NLTK
;;;; - wsj_0001.mrg: . and `..' and `...', etc
;;;; - wsj_0008.mrg: 's of "it's"
;;;; - wsj_0088.mrg: colon in `3:15'
;;;; - wsj_0118.mrg: `ADVP|PRT'
;;;; NOTICE: some other cases:
;;;; ... | 4,086 | Common Lisp | .lisp | 101 | 35.118812 | 96 | 0.620403 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 09f514529747b5d5f879fbc6855b30494eb3277fa8d3c665ced22f67b10cf932 | 24,509 | [
-1
] |
24,510 | crfsuite.lisp | jnjcc_cl-nlp/corpora/crfsuite.lisp | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
;;;; CRFsuite data format for CRF training and tagging
;;;; (http://www.chokkan.org/software/crfsuite/manual.html)
;;;;
;;;; BNF notation representing the data format:
;;;; <line> ::= <item> | <eos>
;;;; <item> ::= <label> ('\t' <... | 6,862 | Common Lisp | .lisp | 171 | 34.584795 | 108 | 0.605997 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 29dc5ce6baff2853ac2784e9e5681e0430108ab398bf704778296993fed13c77 | 24,510 | [
-1
] |
24,511 | conllt.lisp | jnjcc_cl-nlp/corpora/conllt.lisp | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
;;;; CoNLL-2000 Shared Task Chunking, for POS tagging
(in-package #:cl-nlp)
;;; CoNLL-2000 Chunking (file format: word pos chunk)
;;; - `num': `w' full of digit; `cap': first letter uppercase; `sym': no alnum chars
;;; - `p3': prefix of `w', ... | 2,848 | Common Lisp | .lisp | 83 | 28.698795 | 86 | 0.407475 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 8b1ca383c45532a39b75c3779aa7858ae9b5515285b254b0a064b49443e0fdcc | 24,511 | [
-1
] |
24,512 | word.lisp | jnjcc_cl-nlp/segment/word.lisp | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
;;;; UTF-8 words
(in-package #:cl-nlp)
| 112 | Common Lisp | .lisp | 4 | 26.75 | 66 | 0.654206 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 97717669b98eeebfc1abfb25bf40c5f9cb0e3ba882882d481af1e116456cd080 | 24,512 | [
-1
] |
24,513 | u8char.lisp | jnjcc_cl-nlp/segment/u8char.lisp | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
;;;; UTF-8 characters
(in-package #:cl-nlp)
(defun %segment-keep-alnum (u8str)
(let ((chars nil)
(len (length u8str))
;; Finite state machine
(state :empty)
(beg 0)
(chr nil))
(dotimes (i len)
(... | 1,856 | Common Lisp | .lisp | 58 | 22.258621 | 66 | 0.494426 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | c3cdd0af5e6d085b76b30151a7908025f50443126f1483fd7c1d99ee273ecdde | 24,513 | [
-1
] |
24,515 | crftag.lisp | jnjcc_cl-nlp/postag/crftag.lisp | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
;;;; Conditional Random Fields Tagger
(in-package #:cl-nlp)
(defclass crf-tagger (pos-tagger crf-model)
())
(defmethod crf-tag-sent ((crf crf-tagger) sent)
)
| 237 | Common Lisp | .lisp | 8 | 27.75 | 66 | 0.70354 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | fcbcc85e2be357686d24185f7c272926eb7f4c83b626b475e34d7e431aa5cc3c | 24,515 | [
-1
] |
24,516 | tagger.lisp | jnjcc_cl-nlp/postag/tagger.lisp | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
;;;; Part-of-Speech tagging
(in-package #:cl-nlp)
;;; observations:
;;; - sentence: (word word ...)
;;; - corpus: (sentence sentence ...)
;;; - tagged sentence: ((word . tag) ...)
;;; - tagged corpus: (tagsent tagsent ...)
(defclass pos-t... | 1,389 | Common Lisp | .lisp | 40 | 31.3 | 66 | 0.65646 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 84e427bc7ad920b87d01119fc3dc30608d12f14a51d906cff52cf380ef5bce0e | 24,516 | [
-1
] |
24,517 | hmmtag.lisp | jnjcc_cl-nlp/postag/hmmtag.lisp | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
;;;; Hidden Markov Model Tagger
(in-package #:cl-nlp)
(defclass hmm-tagger (pos-tagger hmm-model)
())
(defmethod pos-tag-sent ((hmm hmm-tagger) sent)
(hmm-decode hmm sent))
| 252 | Common Lisp | .lisp | 8 | 29.625 | 66 | 0.701245 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 2c4ca8798381beccb1a1a134d134df6614f0740afc0d6a013ac749049c2a5e7f | 24,517 | [
-1
] |
24,518 | cl-nlp.asd | jnjcc_cl-nlp/cl-nlp.asd | ;;;; Copyright (c) 2012-2015 jnjcc, Yste.org. All rights reserved.
;;;;
(asdf:defsystem #:cl-nlp
:description "Natural Language Processing in Common Lisp"
:version "0.1.0"
:author "jnjcc at live.com"
:licence "GPL"
:depends-on (#:cl-ml)
:serial t
:components ((:module "algo"
:comp... | 4,055 | Common Lisp | .asd | 88 | 19.034091 | 100 | 0.283228 | jnjcc/cl-nlp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | a624c830acab9648a450c04ffbd40a3ecc8a1dba907b8698683636faa2828384 | 24,518 | [
-1
] |
24,589 | sql.cl | Duraznos_sqlisp/sql.cl |
(defvar *db* nil)
(defun prompt-read (prompt)
(format *query-io* "~a: " prompt)
(force-output *query-io*)
(read-line *query-io*))
(defun save-db (filename)
(with-open-file (out filename
:direction :output
:if-exists :supersede)
(with-standard-io-syntax
(print *db* out))))
(defun l... | 1,242 | Common Lisp | .cl | 38 | 29 | 66 | 0.67198 | Duraznos/sqlisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 51eebd74ea76699a63af2943c23785d7a9f75dfb7a8580923fc9bbc68a5a8478 | 24,589 | [
-1
] |
24,590 | repl.cl | Duraznos_sqlisp/repl.cl | (defparameter *x* (make-array 1024 :fill-pointer 0 :adjustable t :element-type 'character) "")
(defun parse-query (query)
(format *query-io* "~a~%" query)
(force-output *query-io*))
(defun repl-loop ()
(let (line)
(loop
(setf line (read-line *query-io*))
(if (equal line "exit") (return) (parse... | 456 | Common Lisp | .cl | 13 | 31.153846 | 94 | 0.621868 | Duraznos/sqlisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 16bd2cb4183a1f4304195c96b5f9acc94133b7a6f69d9ced70cd1d166ad5b4e9 | 24,590 | [
-1
] |
24,608 | package.lisp | xFA25E_cl-posix-mqueue/src/package.lisp | (defpackage #:posix-mqueue
(:documentation "POSIX message queue bindings.")
(:use #:cl)
(:import-from #:alexandria #:once-only #:starts-with #:when-let)
(:import-from #:babel #:string-to-octets #:octets-to-string)
(:import-from #:cffi
#:defbitfield
#:defcfun
#:d... | 2,478 | Common Lisp | .lisp | 89 | 20.449438 | 77 | 0.59481 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | f7d67408e436771ccd997c80b35a6b93ffda9e8600fa1a91db4dd63659360fba | 24,608 | [
-1
] |
24,609 | types.lisp | xFA25E_cl-posix-mqueue/src/types.lisp | (in-package #:posix-mqueue)
(defctype time-t :long "Type used to describe seconds since unix epoch")
(define-foreign-type mqd-type ()
()
(:actual-type :int)
(:simple-parser mqd)
(:documentation
"Type used to describe POSIX message queue file descriptor. Also, there are
translations defined for this type (... | 3,186 | Common Lisp | .lisp | 85 | 34.517647 | 83 | 0.714193 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 2e3401bb6252f7ac7626028d0a06af95c091a58d1d25dc683b708970bfc34fbf | 24,609 | [
-1
] |
24,610 | queue.lisp | xFA25E_cl-posix-mqueue/src/queue.lisp | (in-package #:posix-mqueue)
(defclass queue ()
((mqd :reader mqd
:initarg :mqd
:type (unsigned-byte 32)
:documentation "Message queue's file descriptor.")
(buffer :reader buffer
:initarg :buffer
:type (array (unsigned-byte 8))
:documentation "Buffer used to... | 1,372 | Common Lisp | .lisp | 31 | 33.516129 | 84 | 0.61435 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 70798101dd8358fbf4472b3c15bb18bb7c091424e6441f98d1c9bc91b29daa07 | 24,610 | [
-1
] |
24,611 | translation.lisp | xFA25E_cl-posix-mqueue/src/translation.lisp | (in-package #:posix-mqueue)
(defcvar "errno" :int "Global C variable used to get errors of functions.")
(defmethod expand-from-foreign (result (type result-type))
"If CFFI function returns -1, then return keyword representation of error code,
otherwise, return CFFI function's returned value."
(once-only ... | 2,751 | Common Lisp | .lisp | 54 | 44.425926 | 90 | 0.633222 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 742db7246933e1df0e69f5b258b56571c4fd8deea7810dd6d344f23f71e82123 | 24,611 | [
-1
] |
24,612 | spec.lisp | xFA25E_cl-posix-mqueue/src/spec.lisp | (in-package #:posix-mqueue)
(define-foreign-library lib-rt
(:unix (:or "librt.so" "librt.so.1"))
(t (:default "librt.so")))
(use-foreign-library lib-rt)
(defcfun "mq_open" result
"Open POSIX message queue. See mq_open(3) for more details."
(name :string)
(oflag oflag)
(mode mode)
(attr mq-size-attr-t)... | 1,782 | Common Lisp | .lisp | 56 | 29.196429 | 79 | 0.701458 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | ee59c894e4f0ab6b44a3acc3fb08f731889e267850d7bce3ec803a658c0fc6f8 | 24,612 | [
-1
] |
24,613 | posix-mqueue.lisp | xFA25E_cl-posix-mqueue/src/posix-mqueue.lisp | (in-package #:posix-mqueue)
(defvar *retry-on-interrupt-p* t
"Whether or not to retry send/receive operation on interrupt.")
(defun random-queue-name (&key (length 25) (start 97) (end 123))
"Generate random queue name with specified LENGTH, with characters starting
from START to END. With slash at the beginning.... | 20,006 | Common Lisp | .lisp | 399 | 44.60401 | 102 | 0.718957 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 77b6bbac6dd62b5f22ffa7b4fe65441dad43ad5e7ed5bb36ba497a0d3d53e4fd | 24,613 | [
-1
] |
24,614 | condition.lisp | xFA25E_cl-posix-mqueue/src/condition.lisp | (in-package #:posix-mqueue)
(define-condition generic (error)
((strerror :reader strerror
:initarg :strerror
:type string
:documentation "Error string from CFFI's strerror.")
(message :reader message
:initarg :message
:type string
:documen... | 5,939 | Common Lisp | .lisp | 125 | 44.288 | 81 | 0.750562 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 3e4d2e86a9a6ecd1aa1ce5af2c7517bb0a89833719c0812f8cc9d6bb00f18784 | 24,614 | [
-1
] |
24,615 | posix-mqueue.lisp | xFA25E_cl-posix-mqueue/tests/posix-mqueue.lisp | (defpackage #:posix-mqueue.tests
(:use #:cl #:fiveam))
(in-package #:posix-mqueue.tests)
(defmacro with-random-queue ((var random-params &rest options) &body body)
"Create a random name queue, close and unlink it in the end."
(let ((name (gensym "NAME")))
`(let* ((,name (posix-mqueue::random-queue-name ,@ran... | 11,772 | Common Lisp | .lisp | 208 | 49.543269 | 106 | 0.666261 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 3b03b410a137b9726d5ceba4d9741a94fac01644609fe84fb6e734d48498d67b | 24,615 | [
-1
] |
24,616 | cl-posix-mqueue.asd | xFA25E_cl-posix-mqueue/cl-posix-mqueue.asd | (defsystem "cl-posix-mqueue"
:author "Valeriy Litkovskyy <vlr.ltkvsk@protonmail.com>"
:maintainer "Valeriy Litkovskyy <vlr.ltkvsk@protonmail.com>"
:license "GPL3"
:version "0.1.2"
:depends-on ("cffi" "alexandria" "babel" "local-time")
:components ((:module "src"
:components ((:file "package"... | 1,311 | Common Lisp | .asd | 22 | 48.727273 | 129 | 0.587733 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 061a8d2750befa5fd01e17484492b1ff1fa465a55cd9e519a8f427511de081dd | 24,616 | [
-1
] |
24,619 | shell.nix | xFA25E_cl-posix-mqueue/shell.nix | let
pkgs = import <nixpkgs> {};
PROJECT_ROOT = builtins.toString ./.;
QUICKLISP_DIR = "${PROJECT_ROOT}/.quicklisp";
quicklisp-lisp = builtins.fetchurl https://beta.quicklisp.org/quicklisp.lisp;
quickstart = pkgs.writeShellScriptBin "quickstart" ''
${pkgs.sbcl}/bin/sbcl \
--non-interactive \
... | 1,619 | Common Lisp | .l | 43 | 33.162791 | 79 | 0.641401 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 95d03bee8e79bb5bb3fa6e577887b3a72a7e3984382a4941f11994ad10ef28dd | 24,619 | [
-1
] |
24,628 | cl-posix-mqueue.info | xFA25E_cl-posix-mqueue/doc/cl-posix-mqueue.info | This is cl-posix-mqueue.info, produced by makeinfo version 6.7 from
cl-posix-mqueue.texi.
INFO-DIR-SECTION Common Lisp
START-INFO-DIR-ENTRY
* cl-posix-mqueue Reference: (cl-posix-mqueue). The cl-posix-mqueue Reference Manual.
END-INFO-DIR-ENTRY
File: cl-posix-mqueue.info, Node: Top, Next: Systems, Prev: (dir), ... | 122,559 | Common Lisp | .l | 2,432 | 39.812089 | 192 | 0.593345 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | c95ff09d31ca115cd68ddaf6fdda938cde957acc7646c8ef6d55ac6ba4805e6b | 24,628 | [
-1
] |
24,629 | cl-posix-mqueue.texi | xFA25E_cl-posix-mqueue/doc/cl-posix-mqueue.texi | \input texinfo
@c cl-posix-mqueue.texi --- Reference manual
@c Copyright (C) 2021 Valeriy Litkovskyy
@c This file is part of cl-posix-mqueue.
@c Commentary:
@c Generated automatically by Declt version 3.0 "Montgomery Scott"
@c on Tue Apr 06 16:59:14 2021 GMT+1.
@c ==============================================... | 104,277 | Common Lisp | .l | 2,660 | 37.304511 | 144 | 0.748351 | xFA25E/cl-posix-mqueue | 1 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 58fbf855e96489c1b7ec9ba8a1f4733035a5ac97172a5b3f6f38ca2c454e9c02 | 24,629 | [
-1
] |
24,644 | lodash-sdf.lisp | vlad-km_lodash/lodash-sdf.lisp | ;;; -*- mode:lisp; coding:utf-8 -*-
;;; Lisp wrapper for lodash.js
;;; Copyright © 2018 Vladimir Mezentsev
;;;
(lores:defsys :loadsh
:path "git/lodash"
:components ((:file "lodash")))
;;; EOF
| 206 | Common Lisp | .lisp | 8 | 23.125 | 40 | 0.642487 | vlad-km/lodash | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 88967ad40d56eef55e9373e8f84960051d0f42d1f1cc0dab51cadeb8cd48cd62 | 24,644 | [
-1
] |
24,645 | lodash.lisp | vlad-km_lodash/lodash.lisp | ;;; -*- mode:lisp; coding:utf-8 -*-
;;; Lisp wrapper for lodash.js
;;; Copyright © 2018 Vladimir Mezentsev
;;;
(in-package :cl-user)
(eval-when (:compile-toplevel :load-toplevel :execute)
(unless #j:lodash_loaded
(klib:resloadjs
"node_modules/lodash/lodash.js"
(lambda ()
... | 1,136 | Common Lisp | .lisp | 37 | 27.72973 | 54 | 0.674033 | vlad-km/lodash | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 08c9bc6431423dd088ec6fcfb90b878fbb707cd20e24e764c7202887c03915d6 | 24,645 | [
-1
] |
24,663 | util.lisp | petelliott_peroku/peroku-client/util.lisp | (defpackage :peroku-client.util
(:nicknames :pcli.util :util)
(:use :cl)
(:export
#:auth-header
#:write-websocket
#:write-ws-logs
#:tar-and-b64
#:prepare-tar-dir
#:relative-dir))
(in-package :peroku-client.util)
(defun auth-header (token &optional headers)
"return the auth header in an... | 3,388 | Common Lisp | .lisp | 88 | 30.193182 | 79 | 0.616413 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | eb7c7f36c013f11db7fb31db3f4b225347dde160e33382de7fc1da0e49c596ad | 24,663 | [
-1
] |
24,664 | main.lisp | petelliott_peroku/peroku-client/main.lisp | (defpackage :peroku-client.main
(:nicknames :pcli.main)
(:use :cl)
(:export
#:main
#:start-peroku))
(in-package :peroku-client.main)
(defun main (args)
(let ((insecure (when (string= (car args) "noverify")
(setf args (cdr args)) t)))
(config:with-config (#P".peroku.json")
... | 1,388 | Common Lisp | .lisp | 31 | 36.709677 | 102 | 0.597489 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | e862682d6783ed42ad51fa71aa6f5d519d204b8b9478a537f7a3adf4eaad700b | 24,664 | [
-1
] |
24,665 | config.lisp | petelliott_peroku/peroku-client/config.lisp | (defpackage :peroku-client.config
(:nicknames :pcli.config :config)
(:use :cl)
(:export
*token*
*peroku*
*project*
*rule*
#:load-config
#:with-config))
(in-package :peroku-client.config)
(defvar *token*)
(defvar *peroku*)
(defvar *project*)
(defvar *rule*)
(defgeneric load-config (confi... | 1,333 | Common Lisp | .lisp | 43 | 27.093023 | 61 | 0.681499 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 59f64c249ab42da1e2fded441868ad7553e3864e21f423fa5f81db43380ba648 | 24,665 | [
-1
] |
24,666 | core.lisp | petelliott_peroku/peroku-client/core.lisp | (defpackage :peroku-client.core
(:nicknames :pcli.core :core)
(:use :cl)
(:export
#:list-projects
#:logs
#:up
#:down))
(in-package :peroku-client.core)
(defun list-projects (token peroku &key insecure)
"list all projects managed by peroku"
(let ((projects (json:decode-json-from-string
... | 2,670 | Common Lisp | .lisp | 73 | 21.493151 | 78 | 0.447836 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | b34e1a48b08784a24421dd24eab4a6172e76ce36225e1cfb750d366054854d71 | 24,666 | [
-1
] |
24,667 | logger.lisp | petelliott_peroku/peroku/logger.lisp | (defpackage :peroku.logger
(:nicknames :logger)
(:use :cl)
(:export
#:make-logger
#:logger-send
#:logger-attach
#:logger-close))
(in-package :peroku.logger)
(defstruct logger
(lock (bt:make-lock))
(closed nil)
(history '())
(websockets '()))
(defun logger-send (logger message)
"send... | 1,320 | Common Lisp | .lisp | 42 | 26.214286 | 59 | 0.663515 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | a5d1b472f910df44ea6ee5d4eb6b2a1b82948645d78eee5473353a56f2e6f2ba | 24,667 | [
-1
] |
24,668 | core.lisp | petelliott_peroku/peroku/core.lisp | (defpackage :peroku.core
(:nicknames core)
(:use :cl)
(:export
#:+label+
#:build
#:create-container
#:replace-container
#:list-projects
#:delete-project))
(in-package :peroku.core)
(defvar +label+ "ca.pelliott.peroku.managed")
(defun build (tarstring &key strmfun)
"builds a project i... | 1,841 | Common Lisp | .lisp | 54 | 26.018519 | 72 | 0.577853 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 68d138c4c5b360c96789e581942b6018b75557465923d312325594a34adb43ec | 24,668 | [
-1
] |
24,669 | log-manager.lisp | petelliott_peroku/peroku/log-manager.lisp | (defpackage :peroku.log-manager
(:nicknames :logman :log-manager)
(:use :cl)
(:export
#:*log-manager*
#:log-manager-endpoints
#:*log-manager-mw*
#:make-log-endpoint
#:make-log-manager
#:*log-manager*
#:is-endpoint
#:log-manager-attach))
(in-package :peroku.log-manager)
(defstruct... | 2,577 | Common Lisp | .lisp | 69 | 30.637681 | 90 | 0.645783 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | c5880f86b335cd262c34f2b04aca08a3be015f7e51ac3bdaf6727802ae3b5485 | 24,669 | [
-1
] |
24,670 | example.lisp | petelliott_peroku/example/example.lisp | (defpackage :example
(:use :cl)
(:export
#:*app*))
(in-package :example)
(defvar *app*
(lambda (env)
(declare (ignore env))
'(200 (:content-type "text/plain") ("peroku example"))))
| 201 | Common Lisp | .lisp | 9 | 19.111111 | 60 | 0.615789 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 8b0c8b897dcb42f4b51b2217d5de614888581e33bf8970b8fcb18695d7408ee9 | 24,670 | [
-1
] |
24,671 | api.lisp | petelliott_peroku/peroku-api/api.lisp | (defpackage :peroku.api
(:nicknames api)
(:use :cl :peroku.api.app)
(:export))
(in-package :peroku.api)
(setf (ningle:route *app* "/" :method :GET)
(lambda (params)
(declare (ignore params))
(format nil "peroku ~a"
(asdf:component-version
(asdf:find-syste... | 2,540 | Common Lisp | .lisp | 60 | 31.266667 | 74 | 0.548845 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | e80d2f563861ba5b374c17a5cb2252beb77adb41a5b423936f9a1f1a57ecfd58 | 24,671 | [
-1
] |
24,672 | logs.lisp | petelliott_peroku/peroku-api/logs.lisp | (defpackage :peroku.api.logs
(:nicknames :logs)
(:use :cl))
(in-package :peroku.api.logs)
(setf (ningle:route peroku.api.app:*app* "/logs/:logid" :method :GET :secured t)
(lambda (params)
(let ((ws (wsd:make-server
(lack.request:request-env ningle:*request*)))
(log... | 2,363 | Common Lisp | .lisp | 63 | 27.396825 | 91 | 0.547005 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 2f7aae312ae84815d5699213c22463b392ec0dcc1710d66478bc6a4a249fbbbf | 24,672 | [
-1
] |
24,673 | app.lisp | petelliott_peroku/peroku-api/app.lisp | (defpackage :peroku.api.app
(:use :cl)
(:export
#:*app*))
(in-package :peroku.api.app)
(defparameter *app* (make-instance 'ningle:<app>))
| 148 | Common Lisp | .lisp | 6 | 22 | 50 | 0.664286 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 1346c5d2d78289670ff7d488b3530bd1ef87de8990b08a24c9f63a607ca9c006 | 24,673 | [
-1
] |
24,674 | auth.lisp | petelliott_peroku/peroku-api/auth.lisp | (defpackage :peroku.api.auth
(:nicknames auth)
(:use :cl)
(:export
#:*token*
#:unauth
#:ws-unauth))
(in-package :peroku.api.auth)
(defparameter *token* (uiop:getenv "PEROKU_TOK"))
(setf (ningle:requirement peroku.api.app:*app* :secured)
(lambda (value)
(declare (ignore value))
... | 1,820 | Common Lisp | .lisp | 51 | 26.411765 | 72 | 0.558272 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 005935e79e9442f7fe25fbab352799155bf47862fa37c83f4ce842fa97271259 | 24,674 | [
-1
] |
24,675 | peroku-client.asd | petelliott_peroku/peroku-client.asd | (defpackage :peroku-client-asd
(:use :cl :asdf))
(in-package :peroku-client-asd)
(defsystem peroku-client
:version "0.3.1"
:author "Peter Elliott"
:license "AGPL"
:depends-on (:cl-json
:cl-base64
:archive
:flexi-streams
:websocket-driver-client
... | 737 | Common Lisp | .asd | 25 | 20.08 | 49 | 0.535211 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 8e3cd4abd7759476433bff2501e9a574f21999c8a69aba8a2be1da46ea6b422c | 24,675 | [
-1
] |
24,676 | peroku.asd | petelliott_peroku/peroku.asd | (defpackage :peroku-asd
(:use :cl :asdf))
(in-package :peroku-asd)
(defsystem peroku
:version "0.3.1"
:author "Peter Elliott"
:license "AGPL"
:depends-on (:docker
:cl-json
:uiop
:websocket-driver-server
:cl-base64
:bordeaux-threads)... | 536 | Common Lisp | .asd | 19 | 18.947368 | 45 | 0.516505 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | f2de0ff917564716debc2badaaed64ba422ea2020d9373f08fcfe22861b2b251 | 24,676 | [
-1
] |
24,677 | peroku-api.asd | petelliott_peroku/peroku-api.asd | (defpackage :peroku-api-asd
(:use :cl :asdf))
(in-package :peroku-api-asd)
(defsystem peroku-api
:version "0.3.1"
:author "Peter Elliott"
:license "AGPL"
:depends-on (:ningle
:cl-json
:uiop
:websocket-driver-server
:bordeaux-threads
... | 581 | Common Lisp | .asd | 21 | 17.666667 | 39 | 0.485663 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 132ead37c09fbb0bd006753a0a3b4c3279a1ebbef60e8f5492d13cf87c0d4d1c | 24,677 | [
-1
] |
24,678 | peroku-example.asd | petelliott_peroku/example/peroku-example.asd | (defpackage :peroku-example-asd
(:use :cl :asdf))
(in-package :peroku-example-asd)
(defsystem peroku-example
:components ((:file "example")))
| 148 | Common Lisp | .asd | 5 | 27.4 | 34 | 0.730496 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | e974977bac0f6bd3f36dae676ccef3106b71b5e1efe8c5015c4efb6feb40d9ad | 24,678 | [
-1
] |
24,681 | traefik.toml | petelliott_peroku/traefik.toml | debug = false
logLevel = "ERROR"
defaultEntryPoints = ["https","http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[retry]
[docker]
endpoint = "unix:///var/run/docker.sock"
watch = tr... | 565 | Common Lisp | .l | 25 | 20.68 | 45 | 0.73271 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | ebd3a2624ed1ff3fdda945ea404a5450f4e9c8ed32c27a934b3a342ba6a88bbc | 24,681 | [
-1
] |
24,682 | docker-compose.yml | petelliott_peroku/docker-compose.yml | version: '3'
services:
peroku-traefik:
image: traefik:v1.7 # The official Traefik docker image
restart: always
command: --api --docker # Enables the web UI and tells Traefik to listen to docker
ports:
- "80:80" # The HTTP port
- "443:443" # The HTTPS port
- "8080:8080" # The W... | 1,030 | Common Lisp | .l | 28 | 31.107143 | 99 | 0.662338 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 0f4c1fe44f88b40c3c303793e082cf951d89ea7ad1ff5f9865065c016c0f7a28 | 24,682 | [
-1
] |
24,683 | deploy.sh | petelliott_peroku/deploy.sh | #!/usr/bin/env bash
PEROKU=$1
PROJECT=$2
RULE=$3
DATA=$(tar -zc . | base64 -w 0)
PAYLOAD="{\"project\": \"$PROJECT\", \"rule\": \"$RULE\", \"data\": \"$DATA\"}"
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $PEROKU_TOK" \
-X POST \
--data "$PAYLOAD" \
$PEROKU/run
# to prevent missin... | 345 | Common Lisp | .l | 13 | 24.461538 | 79 | 0.631098 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | f469ba9b700d1b099985fed83c6a60e5920b8e0efa8c20cf6e96ef6221617a88 | 24,683 | [
-1
] |
24,684 | Dockerfile | petelliott_peroku/Dockerfile | FROM ubuntu:18.04
RUN apt-get update && apt-get install -y sbcl curl git
RUN curl -O https://beta.quicklisp.org/quicklisp.lisp
RUN sbcl --load quicklisp.lisp --eval '(quicklisp-quickstart:install)'\
--eval '(ql-util:without-prompting (ql:add-to-init-file))' --quit
RUN git clone https://github.com/Petelliott/cl-d... | 1,493 | Common Lisp | .l | 29 | 48.551724 | 95 | 0.730769 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 54807d9ce6cbd285d49e9fc92379a2662abff68f3bf2d0b0c544fc6f66ae08a4 | 24,684 | [
-1
] |
24,695 | Dockerfile | petelliott_peroku/example/Dockerfile | FROM ubuntu:18.04
RUN apt-get update && apt-get install -y sbcl curl libssl-dev
RUN curl -O https://beta.quicklisp.org/quicklisp.lisp && \
sbcl --load quicklisp.lisp --eval '(quicklisp-quickstart:install)'\
--eval '(ql-util:without-prompting (ql:add-to-init-file))' --quit
RUN sbcl --eval '(ql:quickload :clac... | 631 | Common Lisp | .l | 12 | 49.416667 | 88 | 0.693312 | petelliott/peroku | 1 | 0 | 7 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 8bb2e88c5ffcedb5eca913891007f8fce4f21296d9820fd5f4df93d2fde0ab76 | 24,695 | [
-1
] |
24,714 | canvas.lisp | VitoVan_scoreboard/canvas.lisp | (in-package #:calm)
;; change this to suit yourself
(defparameter *board-items* '("A" "B" "C" "D" "E"))
(unless (str:starts-with? "dist" (uiop:getenv "CALM_CMD"))
(swank:create-server))
(setf *calm-window-flags* '(:shown :allow-highdpi :always-on-top))
(setf *calm-window-height* 100)
(defun calculate-calm-width ... | 2,325 | Common Lisp | .lisp | 62 | 29.983871 | 96 | 0.549822 | VitoVan/scoreboard | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | e6f533a11ee0a03ac97c4fb950bd2cfd414415163a6d78c9e4cb6902b4ddf38e | 24,714 | [
-1
] |
24,731 | searx.lisp | accraze_cl-searx/searx.lisp | (in-package #:searx)
(defun websearch (query)
(let* (
(endpoint (uiop:getenv "SEARX_ENDPOINT"))
(command
(concatenate
'string
"curl -v -X GET \"" endpoint "?q="
(drakma:url-encode query :utf-8)
"&format=json\""
))
(response
... | 452 | Common Lisp | .lisp | 17 | 18.470588 | 56 | 0.523041 | accraze/cl-searx | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 14a90f6b785e23b8ec6ce104319f915f3376a3b7a1f60767b5876cd502c6ff4a | 24,731 | [
-1
] |
24,732 | searx.asd | accraze_cl-searx/searx.asd | (asdf:defsystem #:searx
:description "Searx meta-search client"
:author "accraze@gmail.com"
:license "GPL 3.0"
:depends-on (#:drakma #:cl-json)
:components ((:file "package")
(:file "searx")))
| 218 | Common Lisp | .asd | 7 | 26.571429 | 41 | 0.635071 | accraze/cl-searx | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 9ea814ba739091f195e8e0489a929e2025d3d101b7a749fa3cbbc6d8110c54bb | 24,732 | [
-1
] |
24,749 | package.lisp | pocket7878_cl-rc/src/package.lisp | ;;Copyright (C) <2011> <Pocket7878>
;;
;;This program is free software: you can redistribute it and/or modify
;;it under the terms of the GNU General Public License as published by
;;the Free Software Foundation, either version 3 of the License, or
;;(at your option) any later version.
;;
;;This program is dist... | 884 | Common Lisp | .lisp | 24 | 33.625 | 72 | 0.713953 | pocket7878/cl-rc | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | ef36020de7e4f7c927b678d9c1d88cd37788033ddb729e0e56159226b3c1b2a8 | 24,749 | [
-1
] |
24,750 | cl-rc.lisp | pocket7878_cl-rc/src/cl-rc.lisp | ;;Copyright (C) <2011> <Pocket7878>
;;
;;This program is free software: you can redistribute it and/or modify
;;it under the terms of the GNU General Public License as published by
;;the Free Software Foundation, either version 3 of the License, or
;;(at your option) any later version.
;;
;;This program is dist... | 2,285 | Common Lisp | .lisp | 57 | 35.175439 | 98 | 0.670444 | pocket7878/cl-rc | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 2f5bbf9e24a68c64843c0ef208d2410f6f7d514734604d5343481369d14831ce | 24,750 | [
-1
] |
24,751 | main-test.lisp | pocket7878_cl-rc/t/main-test.lisp | ;;Copyright (C) <2011> <Pocket7878>
;;
;;This program is free software: you can redistribute it and/or modify
;;it under the terms of the GNU General Public License as published by
;;the Free Software Foundation, either version 3 of the License, or
;;(at your option) any later version.
;;
;;This program is distributed... | 1,805 | Common Lisp | .lisp | 45 | 37.555556 | 80 | 0.676906 | pocket7878/cl-rc | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 47aa06ca6c0ab84405e16f0a363be4a587b7860b933b6749f650fb26cf123cba | 24,751 | [
-1
] |
24,752 | cl-rc.asd | pocket7878_cl-rc/cl-rc.asd | ;;Copyright (C) <2011> <Pocket7878>
;;
;;This program is free software: you can redistribute it and/or modify
;;it under the terms of the GNU General Public License as published by
;;the Free Software Foundation, either version 3 of the License, or
;;(at your option) any later version.
;;
;;This program is dist... | 937 | Common Lisp | .asd | 23 | 37.043478 | 72 | 0.702407 | pocket7878/cl-rc | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 4c27009157237bc747163e2c8a6ba0d432ca86feab084c767020a9b2621ef1ee | 24,752 | [
-1
] |
24,753 | cl-rc-test.asd | pocket7878_cl-rc/cl-rc-test.asd | ;;Copyright (C) <2011> <Pocket7878>
;;
;;This program is free software: you can redistribute it and/or modify
;;it under the terms of the GNU General Public License as published by
;;the Free Software Foundation, either version 3 of the License, or
;;(at your option) any later version.
;;
;;This program is distributed... | 956 | Common Lisp | .asd | 27 | 32.777778 | 71 | 0.717976 | pocket7878/cl-rc | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | e39523e4a6568d5431ab9c2b19da84ff10560b16d9e06be1455ce8aa754b4019 | 24,753 | [
-1
] |
24,789 | url.lisp | vlad-km_url/url.lisp | ;;; -*- mode:lisp; coding:utf-8 -*-
;;; Lisp interface for Node API URL
;;; Copyright © 2017,2018 Vladimir Mezentsev
(eval-when (:compile-toplevel :load-toplevel :execute)
(unless (find :url *features*)
(push :url *features*))
(unless #j:url
(setf #j:url (require "url"))) )
(defpackage #:... | 1,706 | Common Lisp | .lisp | 50 | 28.06 | 102 | 0.582217 | vlad-km/url | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 82cd7ba4dc27d74cc3b1d8c4221205f543a1e484a17b31faca447cf65d13865a | 24,789 | [
-1
] |
24,790 | url-sdf.lisp | vlad-km_url/url-sdf.lisp | ;;; -*- mode:lisp; coding:utf-8 -*-
(lores:defsys :url
:path "/git/url"
:components ((:file "url")))
;;; EOF
| 119 | Common Lisp | .lisp | 5 | 20.8 | 35 | 0.553571 | vlad-km/url | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 5a44f1e20ae44a3ee1b8b615f03d467cbbf3b7d97628652b537540ca482f24ee | 24,790 | [
-1
] |
24,808 | measure-test.lisp | MetaCommunity_igneous-math/src/test/cltl/measure-test.lisp |
;; ...
;; To Do: scan the entire codebase for inline tests,
;; and refactor for application here
;;
;; e.g.
;; (measurement-domain-base-measure (domain-of (make-instance 'gram)))
;; => #<BASE-MASS KILOGRAM>
;; see also: SCALE-SI methods defined in prefix.lisp
;; esp. SCALE-SI (MEASUREMENT &OPTIONAL T)
;... | 2,642 | Common Lisp | .lisp | 61 | 41.016393 | 87 | 0.629064 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 8c6077bcd496a49562d5700893d8116a2a9144b6e19d5b9297198f227b807744 | 24,808 | [
-1
] |
24,809 | math-test-package.lisp | MetaCommunity_igneous-math/src/test/cltl/math-test-package.lisp | ;; math-test-package.lisp - package definition for igneous-math tests
(in-package #:cl-user)
(defpackage #:info.metacommunity.cltl.math.test
(:nicknames #:mcicl.math.test)
(:use
#:info.metacommunity.cltl.test
#:info.metacommunity.cltl.utils
#:cl
))
| 267 | Common Lisp | .lisp | 9 | 26.666667 | 69 | 0.730469 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 310b0e9ecf4ed7400b42f5053403cc693473ae82f289759bbc31a697452a45fd | 24,809 | [
-1
] |
24,810 | ov-seq.lisp | MetaCommunity_igneous-math/src/main/cltl/ov-seq.lisp | ;; ov-seq.lisp - overloading for simple mathematical operations onto Lisp sequence objects
(in-package #:mcicl.math)
#+NIL
(defmethod @= ((a list) (b list))
)
#+NIL
(defmethod @= ((a simple-vector) (b simple-vector))
)
;; trivial example:
(defmethod @* ((a real) (b vector))
;; NOTE: This assumes B is a vect... | 1,439 | Common Lisp | .lisp | 43 | 27.860465 | 90 | 0.562319 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 624395a671f550e1dbf8c96b572afcb3d27569d0364c2cb8ceef8d92eb197f59 | 24,810 | [
-1
] |
24,811 | math-reader.lisp | MetaCommunity_igneous-math/src/main/cltl/math-reader.lisp | ;; math-reader.lisp - ...
(in-package #:mcicl.math)
(defun read-unit (s)
(declare (type stream s)
(values (or prefix null)
measurement-class))
(let* ((name (read-name-string s))
(len (length name)))
(declare (type simple-string name))
(case len
;; FIXME: Interning arbitrary strings in :K... | 2,984 | Common Lisp | .lisp | 87 | 30.137931 | 72 | 0.658917 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 6bef41f69cbff146158683442327f065f1adb5ab4e36cd5d1b79b8150aaa774b | 24,811 | [
-1
] |
24,812 | parse-tree.lisp | MetaCommunity_igneous-math/src/main/cltl/parse-tree.lisp | ;; parse-tree.lisp - generic parser framework
;; see also: math-reader.lisp
;; FIXME: Move this code into an indep system in the mci-cltl-utils source tree
#| Documentation, draft nr. 1
From a perspective of the _data space_ in a software program, the
igneous-math _prefix_ and _measurement-class_ objects are define... | 6,962 | Common Lisp | .lisp | 165 | 38.490909 | 136 | 0.703802 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 3e138723599714ec9bde40e1a908c09daae1e1411e5df4e49c5880ed83ba6124 | 24,812 | [
-1
] |
24,813 | defclass-star.lisp | MetaCommunity_igneous-math/src/main/cltl/defclass-star.lisp |
(in-package #:mcicl.math)
;: ^ FIXME: move into #:utils
(defun ensure-forward-referenced-class (name)
(declare (type symbol name))
(ensure-class name
:direct-slots nil
:direct-superclasses nil
:metaclass (find-class 'forward-referenced-class)))
;; (ensure-forward-referenced-class (gensym))
(defmacro def... | 7,483 | Common Lisp | .lisp | 152 | 43.230263 | 74 | 0.668584 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 4e08f326c3ffe0830f04dce8930609e09902ff71a6e35ccb17ea2eca0ec454d4 | 24,813 | [
-1
] |
24,814 | math-ov.lisp | MetaCommunity_igneous-math/src/main/cltl/math-ov.lisp | ;; math-ov.lisp : definition of 'overloaded' mathematical operations
(in-package #:mcicl.math)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defun compute-end-classes (c)
;; compute list of "end classes of C"
;; i.e. classes being subclasses of C, with no subclasses
(let ((cds (class-direct-subclasse... | 13,602 | Common Lisp | .lisp | 410 | 29.031707 | 86 | 0.638246 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 972273c22d5c109d0750841420d6b432c6da1bb9db23c4f025e25527aab65fb1 | 24,814 | [
-1
] |
24,815 | matrix-clim.lisp | MetaCommunity_igneous-math/src/main/cltl/matrix-clim.lisp |
(in-package #:clim-user)
;; CLIM-CLX is not loading.
;; Something about presentation types + defmethod
;; Refer to debug output in SLIME.
(defun display-frob (frame pane)
;; FIXME: provide the matrix value via an attribute of the PANE
;; FIXME: also draw the conventional brackets on the pane
(declare (ignore f... | 1,015 | Common Lisp | .lisp | 30 | 27.1 | 65 | 0.588115 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | ce9e79e466a3c5dc8dbb7133ebf4ad67741a0a92b98d24e75cd92730b555f571 | 24,815 | [
-1
] |
24,816 | unit-expr-proto.lisp | MetaCommunity_igneous-math/src/main/cltl/unit-expr-proto.lisp | ;; unit-expr-proto.lisp -- prototyeps for expression of measurement units
(in-package #:mcicl.math)
#+PROTOTYPE
(defstruct (expr
(:constructor make-expr (unit &key (factor 1) (degree 1))))
(factor 1)
(unit))
#+PROTOTYPE
(defun domain-analyze (op u1 u2)
(let* ((unit-1 (expr-unit u1))
(unit-2 (expr-uni... | 5,430 | Common Lisp | .lisp | 154 | 30.168831 | 89 | 0.626455 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | e7fab3dafd558bea12fda8b8b58fe568f8e121b6d6b83d2d7ac3263ed825a23b | 24,816 | [
-1
] |
24,817 | math-package.lisp | MetaCommunity_igneous-math/src/main/cltl/math-package.lisp | ;; math-package.lisp
(in-package #:cl-user)
(defpackage #:info.metacommunity.cltl.math
(:nicknames #:mcicl.math)
(:use #:info.metacommunity.cltl.utils
#:info.metacommunity.cltl.utils.mop
#:bordeaux-threads
#:c2mop
#:cl)
(:shadowing-import-from
;; prefer the implementation's o... | 3,013 | Common Lisp | .lisp | 111 | 23 | 69 | 0.703022 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | a43a32c00eb0fde34fb59a813b983e110b00c12dc8d8c3810d35ba6360bc7a53 | 24,817 | [
-1
] |
24,818 | geometry.lisp | MetaCommunity_igneous-math/src/main/cltl/geometry.lisp |
(in-package #:mcicl.math)
;;; % Geometry Domain
;; TO DO
(defclass scalar (measurement)
;; effectively a coordinate onto a number line
())
;;; % Concepts of Plane and Space
;; (defclass plane ...)
;; (defclass euclidian-plane ...)
;; ^ alternate name for cartesian coordinate plane ?(?)
;;
;; (defclass rec... | 1,891 | Common Lisp | .lisp | 48 | 37.791667 | 72 | 0.714756 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 5c86e8ac0b6edfbeb0a61caad208a56be6889f8e7ea39e9f01a8336176e765bb | 24,818 | [
-1
] |
24,819 | math-system-utils.lisp | MetaCommunity_igneous-math/src/main/cltl/math-system-utils.lisp | ;; math-system-utils.lisp - misc. utility forms
(in-package #:mcicl.math)
(defmacro vsubsetp (v1 v2 &key (key nil kp)
(test #'eql tp)
(test-not nil tnp))
;; cf. subsetp
(with-gensym (%v1 %v2 %elt %test %test-not)
`(let ((,%v1 ,v1)
(,%v2 ,v2)... | 826 | Common Lisp | .lisp | 22 | 27.090909 | 60 | 0.42428 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 3625a33d16280137bcd59d91e0e7210e7fb2cbdfec213226d44594a984f5ffdf | 24,819 | [
-1
] |
24,820 | linear.lisp | MetaCommunity_igneous-math/src/main/cltl/linear.lisp | ;; linear.lisp - matrix operations
(in-package #:mcicl.math)
;;; % Matrix class
#+NIL
(defstruct (matrix-2d
(:constructor %make-matrix-2d (vector matrix)))
;; a two-dimensional matrix displaced to a row-major vector
(vector #() :type (simple-array * (*)))
(matrix #() :type (array * (* *))))
#+NIL... | 6,737 | Common Lisp | .lisp | 160 | 30.675 | 83 | 0.488305 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | d8a350e5745e416a803646de31623a6a9dd6d21ff3716a22cffef2bcd1a281ff | 24,820 | [
-1
] |
24,821 | monotonic-genf.lisp | MetaCommunity_igneous-math/src/main/cltl/monotonic-genf.lisp | ;; monotonic-genf.lisp - definition of a MONOTONIC-GENERIC-FUNCTION
(in-package #:mcicl.math)
;; FIXME: Move code to mci-cltl-utils system
;; FIXME: This does not work in CCL
;;
;; Tested with (DEFGENERIC @GEOMETRIC-SUM ...)
;; followed by (geometric-sum 3 4)
;; using native MOP forms (C2MOP)
;;; % MOP Util
(defge... | 4,801 | Common Lisp | .lisp | 124 | 35.064516 | 88 | 0.709185 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 2c33f03869680934a6f6c4dd8fcbf6801019ab5999be6a92e2f9e6e4642fdd60 | 24,821 | [
-1
] |
24,822 | prefix.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/prefix.lisp | ;; prefix.lisp
(in-package #:math)
(defgeneric rescale (scalar prefix)
(:documentation
"Return a new scalar object representing the magnitude of SCALAR
multiplied by the effective factor-base of the measurement rasied to
the PREFIX degree.
For measurements using SI decimal prefixes, the effective factor base... | 20,685 | Common Lisp | .lisp | 545 | 33.526606 | 90 | 0.650756 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | a06b76fb9c64df5ad5c94694e5a71169b3adb54798691a29699183565f495267 | 24,822 | [
-1
] |
24,823 | decimal-scale.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/decimal-scale.lisp | ;; decimal-scale.lisp - exponent-based rational storage for decimal values
(in-package #:math)
#|
(defun total-integer-part-digits (n)
(1+ (truncate (log n 10))))
(total-integer-part-digits 1020.1)
;; => 4
(total-integer-part-digits 102.1)
;; => 3
|#
(defun integer-shift-digits (d)
"Perform a decimal s... | 6,014 | Common Lisp | .lisp | 181 | 27.132597 | 137 | 0.57582 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 625cf365e323d3c1751e57fbe973c99dc2f35bf706b1423da8e61a75935f215a | 24,823 | [
-1
] |
24,824 | measurement-base.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/measurement-base.lisp | ;; measurement.lisp - measurement object model
(in-package #:math)
;; see also:
;; * http://www.bipm.org/en/publications/si-brochure/
;; * http://physics.nist.gov/pubs/sp811/contents.html
;; * IUPAC 'Gold Book' http://goldbook.iupac.org/list_math.html
;; esp. <http://goldbook.iupac.org/list_goldbook_quantities_defs... | 28,259 | Common Lisp | .lisp | 658 | 35.203647 | 87 | 0.621435 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 481f02ce62eb21ae30a66e241bb811f121c4653f975318183db306096b1fe618 | 24,824 | [
-1
] |
24,825 | mconv.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/mconv.lisp | ;; mconv.lisp - procedures for measurement conversion
(in-package #:math)
(define-condition conversion-domains-mismatch (error)
((source-domain
:initarg :source-domain
:reader conversion-source-domain)
(dest-domain
:initarg :destination-domain
:reader conversion-destination-domain))
(:report
... | 6,156 | Common Lisp | .lisp | 159 | 33.603774 | 86 | 0.654053 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 9de47e6b4501de40d2848e370f5d738eb2b47bf6e0ca1fa0034eb783b04bab43 | 24,825 | [
-1
] |
24,826 | measurement-ov.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/measurement-ov.lisp | ;; measurement-ov.lisp - math operations for measurement values
;; [prototype 0]
;;
;; see also: unit-expr-proto.lisp
(in-package #:math)
#+PROTOTYPE-0
(defgeneric unit-degree (measurement-unit)) ;; FIXME: Move to other file
#+PROTOTYPE-0
(defgeneric compute-measurement-class (operation a b)
;; avoiding EQL specia... | 6,535 | Common Lisp | .lisp | 174 | 33.591954 | 83 | 0.601931 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 3aad04102100297c834d81a7d4b0c6014580609562db9f2f2d6b10d8314c48e3 | 24,826 | [
-1
] |
24,827 | domain.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/domain.lisp | ;; domain-lisp - measurement domains
(in-package #:math)
(defgeneric measurement-domain-base-measure (instance))
(defgeneric measurement-domain-symbol (instance))
(defgeneric measurement-domain-cf-lock (instance))
(defgeneric measurement-domain-conversion-factors (instance))
(defclass measurement-domain (pretty-pr... | 5,901 | Common Lisp | .lisp | 146 | 32.267123 | 86 | 0.627204 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 216b6edb1ee40ad327fc82d19f35f30980507a76bc89cdc06df7677053eb2a71 | 24,827 | [
-1
] |
24,828 | derived-length.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/derived/derived-length.lisp | ;; length-measure.lisp - derived measurements of length
(in-package #:math)
;;; %% Derived Measures of Length
;; referencing [NIST SP811]
(defclass us-survey-foot (measurement)
;; prototypical, derived measurement unit
;;
;; FIXME: Denote this as a "US Survey Foot" [1893], per NIST SP811
;; section B.6
;... | 2,473 | Common Lisp | .lisp | 65 | 35.415385 | 75 | 0.685046 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 721ed002f9dbb2f0c73dfc67b029c9bc78a3eaf99ea4b0da045a939a1958bcae | 24,828 | [
-1
] |
24,829 | linear-measure.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/derived/linear-measure.lisp | ;; linear-measure.lisp - linear measurement units/expressions
(in-package #:math)
(defclass linear-derived-measurement-class (derived-measurement-class
linear-measurement-class )
())
;; LINEAR-UNIT-EXPR : defined in measurement-base.lisp
| 287 | Common Lisp | .lisp | 6 | 38.666667 | 70 | 0.672662 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 39aedd563dd769171e37e2b9279f979e6fedc9615a83c6f78f411d0b034e30b2 | 24,829 | [
-1
] |
24,830 | geom-measure.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/derived/geom-measure.lisp | ;; geom-measure.lisp - geometric measurement units/expressions
(in-package #:math)
(defclass geometric-measurement-class (derived-measurement-class)
((degree
:initarg :degree
:type fixnum
:accessor measurement-degree)))
(defclass geometric-unit-expr (linear-unit-expr)
((degree
:initarg :degree
... | 369 | Common Lisp | .lisp | 12 | 27.166667 | 65 | 0.745763 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 5387080c6b83ddcd9108ed7a0dbd26b20b9eb3b8183dcc9b6f380f5f904aa011 | 24,830 | [
-1
] |
24,831 | compound-measure.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/derived/compound-measure.lisp | ;; compound-measure.lisp - object model for compound measurements
(in-package #:math)
(defgeneric measurement-unit-sequence (class))
(defgeneric measurement-degree-sequence (class))
(defgeneric measurement-normalized-expression (class))
;; % Compound Measurements - Registry and Retrieval
#| Notes
* This system... | 10,869 | Common Lisp | .lisp | 241 | 33.6639 | 76 | 0.561413 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | a67cb75ed120fe926fa8c32d8d2dab80a2015557c2c74867accc2d4338733282 | 24,831 | [
-1
] |
24,832 | dimensionless.lisp | MetaCommunity_igneous-math/src/main/cltl/measure/derived/dimensionless.lisp | ;; dimensionless.lisp - standard dimensionless measurements
(in-package #:math)
;; % Class for Dimensionless Measurement Domains
(defclass dimensionless-measurement-domain (measurement-domain)
;; FIXME: For formulas resulting in dimensionless measurements, it
;; may be possible to define a method to provide 'adv... | 2,887 | Common Lisp | .lisp | 71 | 37.985915 | 90 | 0.727045 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | a790b9b323ae9ef12c0bdffa04b2fc038f7c09cd7d018108cb089b505e0b648f | 24,832 | [
-1
] |
24,833 | info.metacommunity.cltl.math.test.asd | MetaCommunity_igneous-math/src/test/cltl/info.metacommunity.cltl.math.test.asd | ;; info.metacommunity.cltl.math.test.asd - math system tests -*- lisp -*-
(in-package #:cl-user)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defpackage #:math-system
(:use #:asdf #:cl)))
(in-package #:math-system)
(defsystem #:info.metacommunity.cltl.math.test
:depends-on
(#:info.metacommuni... | 528 | Common Lisp | .asd | 17 | 27.470588 | 74 | 0.684418 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | c5c10a7e68569658e142f1f7ac89c61a50e5214e6cc9c4bfdb6e92bbf9c22566 | 24,833 | [
-1
] |
24,834 | info.metacommunity.cltl.math.asd | MetaCommunity_igneous-math/src/main/cltl/info.metacommunity.cltl.math.asd | ;; info.metacommunity.cltl.math.asd -*-lisp-*-
(in-package #:cl-user)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defpackage #:math-system
(:use #:asdf #:cl)))
(in-package #:math-system)
#|
Effective version history:
1.0: Initial prototype
1.1: Decimal scaling introduced
1.2: DEFOP defi... | 2,951 | Common Lisp | .asd | 82 | 23.670732 | 90 | 0.511307 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 462a5773d22c1f7b2274d988c6d81fa204460e0476f62605b0fd3ad2a0fca44d | 24,834 | [
-1
] |
24,846 | floating-point-notes.diff | MetaCommunity_igneous-math/src/main/cltl/floating-point-notes.diff | diff --git a/src/main/cltl/decimal-scale.lisp b/src/main/cltl/decimal-scale.lisp
index ad6727a..5936c7c 100644
--- a/src/main/cltl/decimal-scale.lisp
+++ b/src/main/cltl/decimal-scale.lisp
@@ -2,7 +2,29 @@
(in-package #:math)
+#|
+
+ (defun total-integer-part-digits (n)
+ (1+ (truncate (log n 10))))
+
+ (total-i... | 4,313 | Common Lisp | .l | 125 | 32.096 | 138 | 0.677008 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 443e3b94f8d82180d04a7363720f4096522a77bad27de2f930f090256d937afa | 24,846 | [
-1
] |
24,868 | igm-guide.xml | MetaCommunity_igneous-math/doc/igm-guide.xml | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book [
<!ENTITY mdash
"—"
>
<!-- project metadata -->
<!ENTITY project
"<productname>Igneous Math</productname>"
>
<!ENTITY project.id
"igm"
>
<!-- terms -->
<!ENTITY cltl
"<productname><acronym>ANSI</acronym> Common Lisp</productname>"
>
<!ENTITY asdf
... | 20,107 | Common Lisp | .l | 421 | 38.263658 | 84 | 0.664878 | MetaCommunity/igneous-math | 1 | 0 | 0 | EPL-1.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 4857c85dd1054d1567d730bb32d10298c6a21e826e238ae65c9c1261f0d60804 | 24,868 | [
-1
] |
24,883 | build-with-ecl.lisp | csvitlik_build-with-ecl/build-with-ecl.lisp | (require 'cmp)
(declaim (optimize (debug 0) (safety 0) (speed 3) (space 3)))
(setq ext:*help-message* "
build-with-ecl [--help | -?] out-filename
Build a standalone executable using Embeddable Common-Lisp.
If the name of the program you want to build is \"ls.lisp\",
you would build it like this:
$ ... | 1,212 | Common Lisp | .lisp | 33 | 32.545455 | 72 | 0.63613 | csvitlik/build-with-ecl | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 7b521d7d6c3e9ca2c53cc1c6d2b3a1e1f3581f190f7cb5eac8657e14c0067336 | 24,883 | [
-1
] |
24,884 | test.lisp | csvitlik_build-with-ecl/test.lisp | (declaim (optimize (debug 0) (safety 0) (speed 3) (space 3)))
(defun main () (princ "Hello, world!
"))
(main)
(ext:quit 0)
| 126 | Common Lisp | .lisp | 5 | 23.6 | 61 | 0.644068 | csvitlik/build-with-ecl | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | cfc0ae5df9e6e269ca665cf9923d518f5c00821984059e1b73f2420c674f61c0 | 24,884 | [
-1
] |
24,903 | typechecker.lisp | jrharbin_cl-ocaml/typechecker.lisp |
;; Basics of type handling in types.lisp
(defun unify-types (constraints t1 t2)
"Unify two types")
(defun unify-expr
"Unify two expressions"
())
| 158 | Common Lisp | .lisp | 6 | 23.166667 | 40 | 0.718121 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 795a69d402b377ce5f11e355e99392a0c9a87cb493893fb728eac1ac8769431b | 24,903 | [
-1
] |
24,904 | parse-helpers.lisp | jrharbin_cl-ocaml/parse-helpers.lisp | (defun expr-list-p (l) (every #'(lambda (x) (typep x 'expr)) l))
(deftype expr-list () '(satisfies expr-list-p))
(defstruct expr
(tag :E_Unit :type (member :E_Unit :E_Int
:E_Float :E_Ident
:E_Binop :E_Seq
:E_Letbind :E_Letbind_in
:E_Apply :E_Fun))
val
(sub-exprs () :type list))
(... | 1,419 | Common Lisp | .lisp | 45 | 27.822222 | 64 | 0.624082 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 435c843458ac5aa1efba552fb6d42b26883daf0fa7e4ec5c6e95121bab1b5788 | 24,904 | [
-1
] |
24,905 | test-parsing.lisp | jrharbin_cl-ocaml/test-parsing.lisp | (defparameter *parsing-test-expressions*
'("1"
"1+2"
"(1+2)"
"1;2;3"
"1/.5"
"fun x -> 1 + x"
"let y = 3"
"let square = fun x -> x * x"
"(fun x -> x * x) 2"))
(defun test-parsing-expressions ()
(mapcar (lambda (str)
(format t "Expression = ~A: " str)
(print (test-parse str... | 400 | Common Lisp | .lisp | 17 | 19.058824 | 41 | 0.546174 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | a25d409fd317ebe1fff76c5bccacd2a29c3369e4099090e95d8a0b5d28d07e8a | 24,905 | [
-1
] |
24,906 | repl.lisp | jrharbin_cl-ocaml/repl.lisp | ;; Needed processing sequence from string input:
;; Lexing/parsing of input into parse tree representation
;; Conversion to a typed tree representation
;; Unification of expression with known types
;; Handle conditions for errors in any of these
;; Backend(s): for now, 1) compile to CL code
;; 2)... | 760 | Common Lisp | .lisp | 20 | 34.45 | 57 | 0.67663 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | cb8e288c9f09df01f7007e45390d8fe43ceb7e123dab6a80c05f7046dd0d3448 | 24,906 | [
-1
] |
24,907 | types.lisp | jrharbin_cl-ocaml/types.lisp | ;; Determine a type representation: location, level
;; Exceptions for unification failure
(defclass type-info ()
())
;; Need the following - Look at Caml light for simplest implementation
;; Find the free type variables in a type
;; Generalise a type
;; Occurs checks - does a variable occur in a type?
;; Unific... | 417 | Common Lisp | .lisp | 10 | 40 | 77 | 0.761194 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | dc644f885a52e9d1ce509d696888966f05869e38ac8db68fd16fb67cb2bd656f | 24,907 | [
-1
] |
24,908 | lexing.lisp | jrharbin_cl-ocaml/lexing.lisp | (defparameter *str-keywords* (make-hash-table :test 'equal))
(defparameter *str-tokfuncs* (make-hash-table :test 'equal))
(defun add-to-hash (ht l)
"Adds the given list l to the hashtable. Elements should be a 2-element list
of string and result"
(mapcar (lambda (tokstr-pair)
(setf (gethash (car tokstr-pair... | 3,372 | Common Lisp | .lisp | 102 | 25.235294 | 82 | 0.51517 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 2de90a8f09e7345935af8a24c0592f8b443fabec263dc585189cfb8828455afe | 24,908 | [
-1
] |
24,909 | customtypespec.lisp | jrharbin_cl-ocaml/customtypespec.lisp | (defun elements-are-of-type (seq type)
(every #'(lambda (x) (typep x type)) seq))
(deftype list-of-type (type)
(let ((predicate (gensym)))
(format t "Defining predicate as gensym: ~A~%" predicate)
(setf (symbol-function predicate)
#'(lambda (seq) (elements-are-of-type seq type)))
`(and list (sati... | 341 | Common Lisp | .lisp | 8 | 38.75 | 61 | 0.662651 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | c2a85640f76cd71e403e77ca62167e24b5aed683b52a3dadb4ca4823f536a6f3 | 24,909 | [
-1
] |
24,910 | parsing.lisp | jrharbin_cl-ocaml/parsing.lisp | (defmacro define-parser-start-symbol (parser-name start-sym)
`(yacc:define-parser ,parser-name
(:start-symbol ,start-sym)
(:terminals (Identifier Int Float
Plus Minus
Semi SemiSemi
BinOp
Equals MinusGreater Underscore Tilde
Let Fun IN
LParen RParen))
(:p... | 1,407 | Common Lisp | .lisp | 40 | 28.625 | 75 | 0.656761 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 873584ca8f454e77cbb8df652604e87c3705f742372bdc275d84e0c1350f9bbc | 24,910 | [
-1
] |
24,911 | macros.lisp | jrharbin_cl-ocaml/macros.lisp | (defmacro let1 (name val &body body)
"Let bind a single value"
`(let ((,name ,val))
,@body))
| 102 | Common Lisp | .lisp | 4 | 22.25 | 36 | 0.612245 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | f169ce833e5bcec405b31de1f0be3b33537c1f137606bae1e4d13108d1e56e17 | 24,911 | [
-1
] |
24,912 | cl-ocaml.asd | jrharbin_cl-ocaml/cl-ocaml.asd | ;;;; cl-ocaml.asd
(asdf:defsystem #:cl-ocaml
:description "Toy implementation of OCaml in Common Lisp"
:author "James Harbin <james.harbin@gmail.com>"
:license "GPL2"
:depends-on (#:yacc
#:lexer)
:serial t
:components ((:file "customtypespec")
(:file "package")
(:file "macros... | 611 | Common Lisp | .asd | 17 | 29.058824 | 64 | 0.587838 | jrharbin/cl-ocaml | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 6db9d76a421cd831f6a74c5124fa11d8cd18e39da6a1584dfa7be4436685cef1 | 24,912 | [
-1
] |
24,938 | ui.lisp | mparlaktuna_cl-cu2e/ui.lisp | (in-package :cl-cu2e)
(defclass world2d-pane (basic-gadget)
((%background :initform (make-rgb-color 0.35 0.35 0.46) :reader background-color)
(x :initform 0.0 :accessor x)
(y :initform 0.0 :accessor y)
(scene :initarg :scene :accessor world-scene)
(scene-tf :initform (mat3 '(1 0 200 0 1 300 0 0 1)) :acce... | 3,033 | Common Lisp | .lisp | 72 | 37.875 | 92 | 0.671312 | mparlaktuna/cl-cu2e | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 555d054df605656e4ff606e5e729e16e57f288cfc3dcdf6198b3b783255c9d88 | 24,938 | [
-1
] |
24,939 | package.lisp | mparlaktuna_cl-cu2e/package.lisp | (cl:in-package #:cl-user)
(defpackage #:cl-cu2e
(:use #:clim-lisp :3d-vectors :3d-matrices :clim :hooks :iterate)
(:export make-aabb
make-circle
make-vec2
aabbvsaabb
circle-intersect-p
run-cl-cu2e-viewer))
| 259 | Common Lisp | .lisp | 9 | 21.888889 | 67 | 0.610442 | mparlaktuna/cl-cu2e | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 9823495afe5cd4b8112f4610c4d8d2b202f86611ba037fa2cc60c4991ccac021 | 24,939 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.