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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20,199 | password-prompt.lisp | alessiostalla_portofino-cli-lisp/src/password-prompt.lisp | (in-package :portofino-cli)
;; Credits go to Raymond Wiker for this
#+sbcl
(require :sb-posix)
#-capi
(defun prompt-for-value (prompt)
(format t "~&~a " prompt)
(force-output)
(read-line))
#+capi
(defun prompt-for-value (prompt)
(capi:prompt-for-string prompt))
#+(and sbcl (not win32))
(defun echo-off ()
... | 1,094 | Common Lisp | .lisp | 35 | 28.257143 | 66 | 0.677143 | alessiostalla/portofino-cli-lisp | 2 | 0 | 1 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f69f9dad4faa193f4bf0f9fea380b993beedd0332ad7e6e64e45efff9fff6345 | 20,199 | [
-1
] |
20,200 | packages.lisp | alessiostalla_portofino-cli-lisp/src/packages.lisp | (defpackage :portofino
(:use :cl :split-sequence)
(:export
#:action-types #:add-database-schema #:authentication-required
#:copy-or-move-action #:create-action #:create-application #:create-database
#:*default-connection-timeout*
#:*default-portofino-url*
#:delete-action
#:http-error-url
#:*lat... | 779 | Common Lisp | .lisp | 22 | 32.136364 | 99 | 0.71618 | alessiostalla/portofino-cli-lisp | 2 | 0 | 1 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 6f80f4107fb7afbeda24f67f009b01925b58ee004133de58adda6e184ac3152e | 20,200 | [
-1
] |
20,201 | portofino-cli.asd | alessiostalla_portofino-cli-lisp/portofino-cli.asd | (in-package :asdf)
(defsystem "portofino-cli"
:version "0.1.0"
:author "Alessio Stalla"
:license "AGPL"
:depends-on ("cl-json" "cl-semver" "clingon" "drakma" "split-sequence")
:components ((:module "src"
:components ((:file "packages") (:file "portofino") (:file "password-prompt") (:file "cli... | 1,179 | Common Lisp | .asd | 31 | 34.419355 | 110 | 0.684164 | alessiostalla/portofino-cli-lisp | 2 | 0 | 1 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 576678aaf993cd8609e650f56b8a2f0e30faea8f616f5c249595113136887d9a | 20,201 | [
-1
] |
20,202 | portofino-cli-osx-app.asd | alessiostalla_portofino-cli-lisp/portofino-cli-osx-app.asd | (asdf:defsystem "portofino-cli-osx-app"
:defsystem-depends-on (:deploy)
:build-operation "osx-app-deploy-op"
:build-pathname "portofino"
:entry-point "portofino-cli:main"
:version "0.1.0"
:author "Alessio Stalla"
:license "AGPL"
:depends-on ("portofino-cli")
:description "Portofino CLI OSX app")
| 316 | Common Lisp | .asd | 10 | 28.7 | 39 | 0.72459 | alessiostalla/portofino-cli-lisp | 2 | 0 | 1 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c327889b1e845d00a0f561b0efff3679ef92489ef4c4e290833ab6f58ce79e9e | 20,202 | [
-1
] |
20,203 | portofino-cli-deb.asd | alessiostalla_portofino-cli-lisp/portofino-cli-deb.asd | (asdf:defsystem "portofino-cli-deb"
:defsystem-depends-on (:linux-packaging)
:class "linux-packaging:deb"
:build-operation "linux-packaging:build-op"
:package-name "portofino-cli"
:build-pathname "portofino-cli"
:entry-point "portofino-cli:main"
:version "0.1.0"
:author "Alessio Stalla"
:license "AGPL... | 401 | Common Lisp | .asd | 12 | 30.583333 | 46 | 0.74036 | alessiostalla/portofino-cli-lisp | 2 | 0 | 1 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f7a79b783114e6f46ebec3fcebc8a98028ab1d6aaaeb4344837f9b775f064c08 | 20,203 | [
-1
] |
20,216 | linux-ci.yaml | alessiostalla_portofino-cli-lisp/.github/workflows/linux-ci.yaml | name: Build Linux executable
on:
push:
jobs:
build-executable:
name: Build Linux executable
runs-on: ubuntu-latest
env:
LISP: sbcl
steps:
- uses: actions/checkout@v3
# Caching - see https://github.com/40ants/setup-lisp
- name: Grant All Perms to Make Cache Restoring Possibl... | 2,284 | Common Lisp | .l | 64 | 26.734375 | 156 | 0.571429 | alessiostalla/portofino-cli-lisp | 2 | 0 | 1 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 66262c05a159e0b8795bd6938e2d1292e5880603d36824360f916c8954950a98 | 20,216 | [
-1
] |
20,217 | osx-ci.yaml | alessiostalla_portofino-cli-lisp/.github/workflows/osx-ci.yaml | name: Build OSX Application
on:
push:
jobs:
build-executable:
name: Build OSX Application
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: 40ants/setup-lisp@v2
with:
asdf-system: portofino-cli
- name: Build executable
run: |
PATH="~... | 708 | Common Lisp | .l | 23 | 23.565217 | 156 | 0.609649 | alessiostalla/portofino-cli-lisp | 2 | 0 | 1 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 277c9fd28fc4cf4ce2bf4ebab256a45c04ee405cbb7b4a09566e9b48c9173fbf | 20,217 | [
-1
] |
20,218 | windows-ci.yml | alessiostalla_portofino-cli-lisp/.github/workflows/windows-ci.yml | name: CI (Windows)
on:
push:
jobs:
build-executable:
name: Build Windows executable
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Install Roswell
env:
LISP: sbcl-bin
ROSWELL_INSTALL_DIR: /c/roswell
shell: bash
run: |
... | 946 | Common Lisp | .l | 28 | 26.071429 | 156 | 0.615721 | alessiostalla/portofino-cli-lisp | 2 | 0 | 1 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 20a9bdf0a6c39c35487279cddfdb544f5fc3eb162f85294dc2e1b371f9cef128 | 20,218 | [
-1
] |
20,233 | 4-4.lisp | LeZheng_l-lisp-demo/SICP_Exercise/4-4.lisp | ;;; 4.55
;;a) (supervisor ?p (Bitdiddle Ben))
;;b) (job ?p (accounting . ?type))
;;c) (address ?p (Slumerville . ?address))
;;; 4.56
;;a) (and (supervisor ?p (Bitdiddle Ben)) (address ?p ?where))
;;b) (and (salary (Bitdiddle Ben) ?b-salary) (salary ?p ?salary) (lisp-value > ?b-salary ?salary))
;;c) (and (supervisor ?p... | 12,269 | Common Lisp | .lisp | 374 | 28.534759 | 139 | 0.651701 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 23c8b103f82c489c92834b0470273c06ac23163a23263fd49e253e7cad82cda0 | 20,233 | [
-1
] |
20,234 | chapter-two.lisp | LeZheng_l-lisp-demo/SICP_Exercise/chapter-two.lisp | (defun make-rat (n d)
(let ((g (gcd n d)))
(cons (/ n g) (/ d g))))
(defun numer (x) (car x))
(defun denom (x) (cdr x))
(defun add-rat (x y)
(make-rat (+ (* (numer x) (denom y))
(* (numer y) (denom x)))
(* (denom x) (denom y))))
(defun sub-rat (x y)
(make-rat (- (* (numer x) (de... | 57,157 | Common Lisp | .lisp | 1,549 | 28.34603 | 148 | 0.535522 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | a6bd5448007d2d02fb9fe2ae3102a87e88e602e056eefe008bde69f2facddfc4 | 20,234 | [
-1
] |
20,235 | 5-5.lisp | LeZheng_l-lisp-demo/SICP_Exercise/5-5.lisp | (defvar all-regs '(exp env val continue proc argl unev))
(defvar label-count 0)
(defun make-label (symbol)
(intern (string-concat (symbol-name symbol) (format nil "~A" label-count))))
(defun l-compile (exp target linkage)
(cond ((self-evaluating? exp)
(compile-self-evaluating exp target linkage))
((quoted? exp)... | 10,491 | Common Lisp | .lisp | 325 | 27.713846 | 79 | 0.663441 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | fb61b1bda4d6387d91049b90441a5c8c0dbb5d68e4aee2473f4bb13798c1d8b9 | 20,235 | [
-1
] |
20,236 | 4-3.lisp | LeZheng_l-lisp-demo/SICP_Exercise/4-3.lisp | (defun l-require (p)
(if (not p) (amb)))
(defun an-element-of (items)
(l-require (not (null items)))
(amb (car items) (an-element-of (cdr items))))
;;; 4.35
(defun an-integer-between (a b)
(if (> a b)
(amb)
(amb a (an-integer-between (+ a 1) b))))
;;; 4.36
;;使用 an-integer-starting-from 会产生无尽的选择,导... | 10,949 | Common Lisp | .lisp | 340 | 26.723529 | 70 | 0.615839 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 7d133badd2f9f6992ea4e9ff734b54f920d53c3676428a16e3638b99d9b91813 | 20,236 | [
-1
] |
20,237 | chapter-one.lisp | LeZheng_l-lisp-demo/SICP_Exercise/chapter-one.lisp | ;;; exercise 1.1
10 ;; => 10
(+ 5 3 4) ;; => 12
(- 9 1) ;; => 8
(/ 6 2) ;; => 3
(+ (* 2 4) (- 4 6)) ;; => 6
(setf a 3) ;; => 3
(setf b (+ a 1)) ;; => 4
(+ a b (* a b)) ;; => 19
(= a b) ;; => nil
(if (and (> b a) (< b (* a b)))
b
a);; => 4
(cond ((= a 4) 6)
((= b 4) (+ 6 7 a))
(t 25)) ; => 16
(+ 2 (if (>... | 12,808 | Common Lisp | .lisp | 412 | 23.978155 | 95 | 0.484736 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 301ada6bb59e31c2f5917e441bbcf838affc2f98354db1d4b29faa2fa82ad307 | 20,237 | [
-1
] |
20,238 | 4-2.lisp | LeZheng_l-lisp-demo/SICP_Exercise/4-2.lisp | (defun list-of-values (exps env)
(if (no-operands? exps)
'()
(cons (l-eval (first-operand exps) env)
(list-of-values (rest-operands exps) env))))
(defun eval-if (exp env)
(if (true? (l-eval (if-predicate exp) env))
(l-eval (if-consequent exp) env)
(l-eval (if-alternative exp) env)))
(... | 12,480 | Common Lisp | .lisp | 398 | 27.648241 | 68 | 0.660722 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | a832f07d7faf7b1fadad853eedeb788c5e1c9eb024641c60963e3bf510ed942f | 20,238 | [
-1
] |
20,239 | chapter-three.lisp | LeZheng_l-lisp-demo/SICP_Exercise/chapter-three.lisp | ;;;;3.1
;;;exercise 3.1
(defun make-accumulator (num)
(lambda (x)
(setf num (+ num x))
num))
;;;exercise 3.2
(defun make-monitored (f)
(let ((count 0))
(lambda (x)
(if (equal 'how-many-calls x)
count
(progn
(incf count)
(funcall f x))))))
;;;exercise 3.3 3.4
... | 33,660 | Common Lisp | .lisp | 938 | 25.901919 | 114 | 0.522753 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | a29a0603643e71668715d1f6d93ef70f28f02063185790fda508ea946c457d52 | 20,239 | [
-1
] |
20,240 | 5-2.lisp | LeZheng_l-lisp-demo/SICP_Exercise/5-2.lisp |
(defun test-demo-1 ()
(let ((gcd-machine (make-machine
'(a b t)
(list (list 'rem #'rem) (list '= #'=))
'(test-b
(test (op =) (reg b) (const 0))
(branch (label gcd-done))
(assign t (op rem) (reg a) (reg b))
(assign a (reg b))
(assign b (reg t))
(goto (label test-b))
gcd-do... | 15,301 | Common Lisp | .lisp | 416 | 31.521635 | 97 | 0.651685 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | d6ec1d6d8d8640ae04bdf33b4b681ddac8c00c33719ef466531abb795fe7b712 | 20,240 | [
-1
] |
20,241 | chapter-four.lisp | LeZheng_l-lisp-demo/SICP_Exercise/chapter-four.lisp | ;;;;4.1.1
(defun list-of-values (exps env)
(if (no-operands? exps)
'()
(cons (l-eval (first-operand exps) env)
(list-of-values (rest-operands exps) env))))
(defun eval-if (exp env)
(if (true? (l-eval (if-predicate exp) env))
(l-eval (if-consequent exp) env)
(l-eval (if-alternative exp)... | 19,415 | Common Lisp | .lisp | 593 | 28.05059 | 95 | 0.647847 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 8894949fd9924853610e6336120b3ef23a670fe22b983a2e865104ff60c499f2 | 20,241 | [
-1
] |
20,242 | os-environment.lisp | LeZheng_l-lisp-demo/32_Platform_Specific_Extensions/os-environment.lisp | ;;;
(EXT:GETENV) ;;;get all environment variables
(EXT:GETENV "PATH") ;;get PATH environment variable
(SETF (EXT:GETENV "TIME") (format nil "~A" (get-universal-time)))
(EXT:GETENV "TIME")
| 192 | Common Lisp | .lisp | 5 | 36.6 | 65 | 0.706522 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 01eb2cddef0a0878c0bb5b4c7d9164fa3e192992056750cf0efe40ba4fe9c4c8 | 20,242 | [
-1
] |
20,243 | socket-demo.lisp | LeZheng_l-lisp-demo/32_Platform_Specific_Extensions/socket-demo.lisp | ;;;There are some socket examples
(defun start-read-tcp-server (port)
(LET ((server (SOCKET:SOCKET-SERVER port)))
(FORMAT t "~&Waiting for a connection on ~S:~D~%"
(SOCKET:SOCKET-SERVER-HOST server) (SOCKET:SOCKET-SERVER-PORT server))
(UNWIND-PROTECT
(LOOP (WITH-OPEN-STREAM (so... | 3,777 | Common Lisp | .lisp | 52 | 49.423077 | 135 | 0.505911 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 893d98a2f87386929a2c287a061c824a74e2343cfd43e76b7b73314e36186d12 | 20,243 | [
-1
] |
20,244 | foreign-fun.lisp | LeZheng_l-lisp-demo/32_Platform_Specific_Extensions/foreign-fun.lisp | ;;;
(FFI:OPEN-FOREIGN-LIBRARY "libpthread.so.0");;open a shared library
(FFI:DEF-C-STRUCT foo ;;define a c struct
(a ffi:int)
(b (ffi:c-array (ffi:c-ptr foo) 100)))
(declare (type foo f))
(foo-a (aref (foo-b f) 7))
(FFI:DEF-C-STRUCT bar
(x ffi:short)
(y ffi:short)
(a ffi:c... | 799 | Common Lisp | .lisp | 21 | 34.47619 | 80 | 0.606727 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 7d8a1d57c5d87e726b4198d6de0485dea3892d15b110bca9ea8940f391a0daaf | 20,244 | [
-1
] |
20,245 | llgen-tool.lisp | LeZheng_l-lisp-demo/EOPL_Exercise/llgen-tool.lisp | ;;Scanner-spec ::= ({Regexp-and-action }∗ )
;;Regexp-and-action ::= (Name ({Regexp}∗ ) Action)
;;Name ::= Symbol
;;Regexp ::= String | letter | digit | whitespace | any
;; ::= (not Character) | (or {Regexp}∗ )
;; ::= (arbno Regexp) | (concat {Regexp} ∗ )
;;... | 18,103 | Common Lisp | .lisp | 468 | 31.871795 | 124 | 0.586483 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f3fbc1d598809056d427c0f765855bda29c2a04ebdc134a024064578cccf234b | 20,245 | [
-1
] |
20,246 | chapter1.lisp | LeZheng_l-lisp-demo/EOPL_Exercise/chapter1.lisp | ;;LcExp ::= Identifier
;; ::= (lambda (Identifier) LcExp)
;; ::= (LcExp LcExp)
;;;1.1
;;TODO
;;;1.2
;;TODO
;;;1.3
;;TODO
;;;1.4
;; List-of-Int
;; => (Int . List-of-Int)
;; => (-7 . List-of-Int)
;; => (-7 . (Int . List-of-Int))
;; => (-7 . (3 . List-of-Int))
;; => (-7 . (3 . (Int . List-of-Int)))
;; ... | 8,091 | Common Lisp | .lisp | 307 | 21.576547 | 69 | 0.568807 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c9b9f1a6313ef947f85a276a4a09dd3f8ce9b885ff4b5631908a1ff84c76ec5f | 20,246 | [
-1
] |
20,247 | let-lang.lisp | LeZheng_l-lisp-demo/EOPL_Exercise/let-lang.lisp |
(defun empty-env ()
(list 'empty-env))
(defun extend-env (var val env)
(list 'extend-env var val env))
(defun apply-env (env search-var)
(cond
((eql (car env) 'empty-env)
(report-no-binding-found search-var))
((eql (car env) 'extend-env)
(let ((saved-var (cadr env))
(saved-val (caddr env))
... | 7,083 | Common Lisp | .lisp | 247 | 23.380567 | 88 | 0.588123 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 0b127a9dc2886db034785dd8e59ee70fb3c9787be151a2bfe843e4576c965b31 | 20,247 | [
-1
] |
20,248 | cl-llgen.lisp | LeZheng_l-lisp-demo/EOPL_Exercise/cl-llgen.lisp | (defun make-token (class-name data)
(list class-name data))
(defun make-string-scanner (scanner-spec)
(lambda (str)
(with-input-from-string
(stream str)
(scan-stream stream scanner-spec))))
(defun make-stream-scanner (scanner-spec)
(lambda (stream)
(scan-stream stream scanner-spec)))
(defun r... | 13,494 | Common Lisp | .lisp | 322 | 35 | 114 | 0.600167 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 6b77d31fe1bef43110fd47ef712daef0b060b8b30b1d809b88bf5aec4284c2b9 | 20,248 | [
-1
] |
20,249 | chapter2.lisp | LeZheng_l-lisp-demo/EOPL_Exercise/chapter2.lisp | ;;;exercise 2.1
(defvar bigit-base-n 16)
(defun bigit-zero ()
'())
(defun bigit-is-zero? (n)
(cond
((null n) t)
((zerop (car n)) (bigit-is-zero? (cdr n)))
(t nil)))
(defun bigit-successor (n)
(cond
((bigit-is-zero? n) (list 1))
((= (+ 1 (car n)) bigit-base-n)
(cons 0 (bigit-successor (cdr n))))... | 12,800 | Common Lisp | .lisp | 467 | 23.344754 | 82 | 0.607432 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 8c3e33e5dc400559528d62659ec33cf7cedca3652fd31df0408da30de86d0261 | 20,249 | [
-1
] |
20,250 | chapter3.lisp | LeZheng_l-lisp-demo/EOPL_Exercise/chapter3.lisp | ;;;;0.0 parser start
;;;TODO 这个解析器需要重写,把词法分析和语法分析分开
(defun subseq-and-trim (&rest s)
(string-trim '(#\Space #\Tab #\NewLine)
(apply #'subseq s)))
(defun start-with (s prefix)
(= (string/= s prefix) (length prefix)))
(defun skip-prefix (s prefix)
(let ((start (string/= s prefix)))
(if (= start (lengt... | 11,971 | Common Lisp | .lisp | 406 | 23.889163 | 86 | 0.598186 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | b5a6e52cd5ed82dcb6f20b987d4368529a5b8af337039eba6cf323bfb7c02052 | 20,250 | [
-1
] |
20,251 | cogf-llgen.lisp | LeZheng_l-lisp-demo/EOPL_Exercise/cogf-llgen.lisp |
(defclass lc-exp ()
())
(defclass var-exp (lc-exp)
((var :type symbol)))
(defclass lambda-exp (lc-exp)
((bound-var :type symbol)
(body :type lc-exp)))
(defclass app-exp (lc-exp)
((rator :type lc-exp)
(rand :type lc-exp)))
(define-datatype lc-exp
(var-exp
(var symbol))
(lambda-exp
(bound... | 1,913 | Common Lisp | .lisp | 67 | 23.626866 | 99 | 0.590289 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 0d93d1ee2b63ecb3665da2152be649c8a9f40e183f8ac09bf9b9d9c5029b5425 | 20,251 | [
-1
] |
20,252 | chapter-11.lisp | LeZheng_l-lisp-demo/CLHS-Demo/chapter-11.lisp | (make-package 'temp :use nil)
(use-package 'temp)
(intern "TEMP-SYM" 'temp)
(find-symbol "TEMP-SYM")
(export (find-symbol "TEMP-SYM" 'temp) 'temp)
(find-symbol "TEMP-SYM")
(find-package "COMMON-LISP")
(find-package 'common-lisp)
(find-all-symbols 'car)
(intern "CAR" 'temp)
(find-all-symbols 'car)
(import 'common-li... | 2,073 | Common Lisp | .lisp | 59 | 31.338983 | 75 | 0.648148 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 1135ce72af4ed05ad9239991b6b553f80de0371f4b5efaaa774cf8f8e92ecbc6 | 20,252 | [
-1
] |
20,253 | chapter-5.lisp | LeZheng_l-lisp-demo/CLHS-Demo/chapter-5.lisp | ;;apply
(apply '+ '(1 2))
(apply #'+ '(1 2))
(apply (lambda (a b) (+ a b)) (list 1 2))
;;defun
(defun fun1 (a b &optional c)
"this is fun1, contains optional."
(list a b c))
(defun fun2 (a b &rest r)
"this is fun2, contains rest."
(list a b r))
(defun fun3 (a b &key name (age 0))
(declare (number age))
(l... | 4,606 | Common Lisp | .lisp | 212 | 18.882075 | 65 | 0.583409 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 46422fb08608e05e3c443b41a2946040d9cfe6d80e6a6c0f39fe9bac17a1d911 | 20,253 | [
-1
] |
20,254 | chapter-7.lisp | LeZheng_l-lisp-demo/CLHS-Demo/chapter-7.lisp | ;;function-keywords
(defmethod gf1 ((a integer)
&optional (b 2)
&key (c 3) ((:dee d) 4) e ((eff f)))
(list a b c d e f))
(function-keywords (find-method #'gf1 '() (list (find-class 'integer))))
;;change-class
(defclass my-position() ())
(defclass x-y-position (my-position)
((x :initform 0 :initarg :x)
(y :i... | 2,259 | Common Lisp | .lisp | 68 | 30.720588 | 94 | 0.6621 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 89f508a7591456b5c5aacf7ecdd55695d3fd73bb59d231b98b2924e81fd5c973 | 20,254 | [
-1
] |
20,255 | chapter-7.lisp~ | LeZheng_l-lisp-demo/CLHS-Demo/chapter-7.lisp~ | ;;function-keywords
(defmethod gf1 ((a integer)
&optional (b 2)
&key (c 3) ((:dee d) 4) e ((eff f)))
(list a b c d e f))
(function-keywords (find-method #'gf1 '() (list (find-class 'integer))))
;;change-class
(defclass my-position() ())
(defclass x-y-position (my-position)
((x :initform 0 :initarg :x)
(y :i... | 1,141 | Common Lisp | .lisp | 37 | 28.594595 | 74 | 0.655485 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 36225319ea2e732792557bb3ee9e5361e9e8c8a4eb37c7a349746bbb8bbd6f06 | 20,255 | [
-1
] |
20,256 | sort.lisp | LeZheng_l-lisp-demo/Data_Structure_and_Algorithms/sort.lisp | ;;1,冒泡排序
(defun bubble-sort (arr)
(dotimes (i (1- (length arr)) arr)
(dotimes (j (- (length arr) i 1))
(if (> (svref arr j) (svref arr (1+ j)))
(rotatef (svref arr j) (svref arr (1+ j)))))))
(defun bubble-sort-2 (arr &optional (start 0))
(if (>= start (1- (length arr)))
arr
(loop for ... | 5,983 | Common Lisp | .lisp | 115 | 39.695652 | 137 | 0.508805 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 6ed6cca6a8ef3bd5acfa4f0c8869728933f0eba64aa90a46b6852647bcb86efc | 20,256 | [
-1
] |
20,257 | kmp.lisp | LeZheng_l-lisp-demo/Data_Structure_and_Algorithms/kmp.lisp | (defun index-kmp (str p)
(let ((next (loop for i from 1 below (length p)
with arr = (make-array (length p) :initial-element 0)
with j = 0
do (cond
((= i 1) (setf (aref arr i) 1))
((equal (elt p (1- i)) (elt ... | 865 | Common Lisp | .lisp | 15 | 36.8 | 112 | 0.376471 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 7fec5a65724337f7087b0506f6f298af35c8d54e6ac38e4225cf822d4e8399e1 | 20,257 | [
-1
] |
20,258 | fib-cps.lisp | LeZheng_l-lisp-demo/Data_Structure_and_Algorithms/fib-cps.lisp | (defun fib (n)
(labels ((iter (n f)
(if (= n 1)
(funcall f 0 1)
(iter (- n 1)
(lambda (a b)
(funcall f b (+ a b)))))))
(iter n (lambda (n1 n0) n0))))
(defun fib (n)
(labels ((rec (n f)
(if (<= n 2)
(funcall f 1)
(rec (- n 1)
(lambda (a)
(rec (- n 2)
(lamb... | 390 | Common Lisp | .lisp | 18 | 16.222222 | 36 | 0.421622 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 1c1bc7786486e39e078eac33d30603312f127a4017de47c23a9746664f7d9957 | 20,258 | [
-1
] |
20,259 | init-and-fini-hooks.lisp | LeZheng_l-lisp-demo/31_Platform_Independent_Extensions/init-and-fini-hooks.lisp | ;;;31.1. Customizing CLISP Process Initialization and Termination demo
(defun start ()
(format t "start...~%"))
(defun end ()
(format t "end...~%"))
(push #'start CUSTOM:*INIT-HOOKS*)
(push #'end CUSTOM:*FINI-HOOKS*)
(format t "hello~%")
(ext:saveinitmem "init-fini.mem"
:executable t)
;;this f... | 416 | Common Lisp | .lisp | 11 | 34.454545 | 103 | 0.673317 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 48023386565e100f147755e4d2a165672d958682486b3e73b07050e5757dc36e | 20,259 | [
-1
] |
20,260 | prompt-demo.lisp | LeZheng_l-lisp-demo/31_Platform_Independent_Extensions/prompt-demo.lisp | ;;;clisp prompt demo
;;;Please load this file in clisp to create memory file,then use ./prompt-demo.mem to start it
(setf CUSTOM:*PROMPT-START* "admin")
(setf CUSTOM:*PROMPT-FINISH* "->")
(setf CUSTOM:*PROMPT-BODY* #'(lambda () (format nil "[~A]" (get-internal-real-time))))
(ext:saveinitmem "prompt-demo.mem" :executa... | 335 | Common Lisp | .lisp | 7 | 46.428571 | 94 | 0.713846 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 069f9d7adb4ab0a1636271c51c90418d391e8e9f4bf66235845ce49f2d85dce9 | 20,260 | [
-1
] |
20,261 | additional-macro-and-fun.lisp | LeZheng_l-lisp-demo/31_Platform_Independent_Extensions/additional-macro-and-fun.lisp | ;;;This file show some additional fancy macros and functions examples
(EXT:ETHE number (+ 1 2))
;;=> 3 ;this will check the return value of form:(+ 1 2)
(EXT:ETHE number "This is string")
;; ERROR ,becase form is a string
| 226 | Common Lisp | .lisp | 5 | 43.4 | 69 | 0.720183 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 717297e41983a37ab48d74f9287dafdc9dfd5b7e96e791b051aee80b15b7ddea | 20,261 | [
-1
] |
20,262 | run-shell-demo.lisp | LeZheng_l-lisp-demo/31_Platform_Independent_Extensions/run-shell-demo.lisp | ;;;This demo is to run a shell command and get result to string
(defun sh (cmd)
(let ((res-str nil)
(res-code nil)
(buf-stream (ext:run-shell-command cmd :output :stream)))
(loop for c = (read-char buf-stream nil) while c do (push c res-str))
(values (concatenate 'string (reverse res-str)) re... | 330 | Common Lisp | .lisp | 7 | 42.285714 | 73 | 0.656347 | LeZheng/l-lisp-demo | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | a2e725a080d3ecb07db41bd058ff1c0c2a04b45cdaf860bc356aef7367d273bc | 20,262 | [
-1
] |
20,310 | PROJECT_LANG_1.lisp | seanpm2001_Learn-CommonLisp/PROJECT_LANG_1.lisp | ; Start of script
; Project language file 1
; For: seanpm2001/Learn-CommonLisp
; About:
; I decided to make Common Lisp the main project language file for this project (Seanpm2001/Learn-CommonLisp) as Common Lisp is the language this project is dedicated to, because this project is about learning the Common Lisp progr... | 1,194 | Common Lisp | .lisp | 16 | 73.125 | 394 | 0.788756 | seanpm2001/Learn-CommonLisp | 2 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f9aca752e27dad926be0b303d04d23c12d2a5fe515837393f155bb3e04c63212 | 20,310 | [
-1
] |
20,353 | mem.lisp | njm64_lzm/mem.lisp | (in-package #:lzm)
(defvar *memory*)
(defun read-u8 (addr)
(aref *memory* addr))
(defun read-u16 (addr)
(logior (ash (read-u8 addr) 8) (read-u8 (1+ addr))))
(defun read-word-addr (addr)
(* 2 (read-u16 addr)))
(defun write-u8 (addr value)
(assert (< addr *static-memory-offset*))
(setf (aref *memory* addr)... | 622 | Common Lisp | .lisp | 21 | 26.428571 | 55 | 0.620573 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 1a97eb803415a8b4c83811f6250331d6bd65ed010a58fb4a1acbab699730789d | 20,353 | [
-1
] |
20,354 | obj.lisp | njm64_lzm/obj.lisp | (in-package #:lzm)
(defun obj-property-default (property)
(read-u16 (+ *object-table-offset* (* (1- property) 2))))
(defun obj-address (obj)
(assert (plusp obj))
(+ *object-table-offset* 62 (* (1- obj) 9)))
(defun obj-attr-address (obj attr)
(multiple-value-bind (byte bit) (floor attr 8)
(values (+ (obj-... | 3,777 | Common Lisp | .lisp | 103 | 31.339806 | 64 | 0.605645 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 63008a6781375cd3de99567fcf93c1b9e77362d46e2ccb99d70ba50eda9d7319 | 20,354 | [
-1
] |
20,355 | decode.lisp | njm64_lzm/decode.lisp | (in-package #:lzm)
(defconstant +operand-type-word+ 0)
(defconstant +operand-type-byte+ 1)
(defconstant +operand-type-var+ 2)
(defconstant +operand-type-none+ 3)
(defun read-operand (operand-type)
(ecase operand-type
(0 (fetch-u16))
(1 (fetch-u8))
(2 (read-var (fetch-u8)))))
(defun decode-operand-type... | 1,875 | Common Lisp | .lisp | 51 | 29.509804 | 73 | 0.573635 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | de4eee0f9f0d5eb3c59041d86c624b95ad5e414ea0b803208db5b22d15169c4c | 20,355 | [
-1
] |
20,356 | main.lisp | njm64_lzm/main.lisp | (in-package #:lzm)
(defun read-data (filename)
(with-open-file (f filename :element-type '(unsigned-byte 8))
(let ((data (make-array (file-length f)
:element-type '(unsigned-byte 8))))
(read-sequence data f)
data)))
(defun init (filename)
(setf *memory* (read-data filen... | 1,252 | Common Lisp | .lisp | 33 | 29.090909 | 75 | 0.563067 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | d21dafbeb102879fe45fd66777d61fa397a36968a8c8c1b582db1cc8b343e987 | 20,356 | [
-1
] |
20,357 | header.lisp | njm64_lzm/header.lisp | (in-package #:lzm)
(defvar *version*)
(defvar *high-memory-offset*)
(defvar *initial-pc*)
(defvar *dictionary-offset*)
(defvar *object-table-offset*)
(defvar *global-table-offset*)
(defvar *static-memory-offset*)
(defvar *abbrev-table-offset*)
(defun read-header ()
(setf *version* (read-u8 #x00)
... | 1,191 | Common Lisp | .lisp | 27 | 40.259259 | 68 | 0.620155 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f05a726279758dfa49c0abb3f88debadc71f8fdff708bd098ce6f05bc04df38e | 20,357 | [
-1
] |
20,358 | var.lisp | njm64_lzm/var.lisp | (in-package #:lzm)
(defun local (i)
(aref *stack* (+ *frame* i)))
(defun (setf local) (val i)
(setf (aref *stack* (+ *frame* i)) val))
(defun global (i)
(read-u16 (+ *global-table-offset* (* i 2))))
(defun (setf global) (val i)
(write-u16 (+ *global-table-offset* (* i 2)) val))
(defun read-var (n)
(cond
... | 685 | Common Lisp | .lisp | 22 | 27.590909 | 54 | 0.545732 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 65d3b6f4602fddccc121bb16ac33236fdfdcd1af6a822bcb9cbe48d79d615664 | 20,358 | [
-1
] |
20,359 | op.lisp | njm64_lzm/op.lisp | (in-package #:lzm)
(defparameter *op-table* (make-array 128 :initial-element nil))
(eval-when (:compile-toplevel :load-toplevel)
(defun op-table-index (arity opcode)
(+ opcode (ecase arity (:0op 0) (:1op 32) (:2op 64) (:var 96)))))
(defun find-handler (arity opcode)
(aref *op-table* (op-table-index arity opc... | 7,321 | Common Lisp | .lisp | 197 | 33.050761 | 76 | 0.527703 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 874c3fa60b95c5e1e9f320df3a1f92561dbbd239a6627c4d88d3fe01056766ca | 20,359 | [
-1
] |
20,360 | cpu.lisp | njm64_lzm/cpu.lisp | (in-package #:lzm)
(defvar *stack*)
(defvar *frame*)
(defvar *pc*)
(defvar *break*)
(defun fetch-u8 ()
(prog1 (read-u8 *pc*)
(incf *pc*)))
(defun fetch-u16 ()
(prog1 (read-u16 *pc*)
(incf *pc* 2)))
(defun stack-push (value)
(vector-push-extend value *stack*))
(defun stack-pop ()
(vector-pop *stac... | 1,003 | Common Lisp | .lisp | 37 | 22.621622 | 50 | 0.577244 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | edd5374038cacfee1d638bc674def9d2e7a589f27d489cd31f294724db73321f | 20,360 | [
-1
] |
20,361 | text.lisp | njm64_lzm/text.lisp | (in-package #:lzm)
(defparameter *A0* "abcdefghijklmnopqrstuvwxyz")
(defparameter *A1* "ABCDEFGHIJKLMNOPQRSTUVWXYZ")
(defparameter *A2*
#(#\Space #\Newline #\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9
#\. #\, #\! #\? #\_ #\# #\' #\" #\/ #\\ #\- #\: #\( #\) ))
(defun abbrev-addr (table-index i)
(read-word-addr (+ *... | 1,855 | Common Lisp | .lisp | 49 | 27.918367 | 72 | 0.474736 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 658a37731ace8a8bab92c7826896c6bf76580cac851045f29b96d2edf0900207 | 20,361 | [
-1
] |
20,362 | rand.lisp | njm64_lzm/rand.lisp | (in-package #:lzm)
(defvar *rand-seed* nil)
(defvar *rand-next* 0)
(defun rand-seed (n)
(if (zerop n)
(setf *rand-seed* nil *rand-next* 0)
(setf *rand-seed* n *rand-next* 0)))
(defun rand-next-predictable ()
(assert *rand-seed*)
(prog1 (mod *rand-next* *rand-seed*)
(incf *rand-next*)))
(defun ... | 522 | Common Lisp | .lisp | 18 | 24.166667 | 42 | 0.591182 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 092e028e3c5a8513d4738f11b15a861e2cc01ed822a2b0b052e0516ed0e4bc1a | 20,362 | [
-1
] |
20,363 | tok.lisp | njm64_lzm/tok.lisp | (in-package #:lzm)
(defvar *dict-separators*)
(defvar *dict-words*)
(defvar *dict-word-length*)
(defun read-separators ()
(let ((num-separators (fetch-u8)))
(loop repeat num-separators
collect (code-char (fetch-u8)))))
(defun read-words ()
(let ((entry-length (fetch-u8))
(num-entries (fetch... | 1,904 | Common Lisp | .lisp | 51 | 31.803922 | 75 | 0.631236 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 23b5b1a1509b4fd2791d14e00a6bf2a9917eb64a046d3574a2780a0f42ac685b | 20,363 | [
-1
] |
20,364 | lzm.asd | njm64_lzm/lzm.asd | (defsystem :lzm
:author "Nick Maher"
:description "Lisp Z-Machine"
:depends-on (:alexandria)
:components ((:file "packages")
(:file "mem")
(:file "header")
(:file "text")
(:file "var")
(:file "obj")
(:file "cpu")
... | 462 | Common Lisp | .asd | 16 | 17.0625 | 33 | 0.394619 | njm64/lzm | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 5a3249288b19c1d90a5e176c97dcae32e60fe887e6ae976b679757192d27fea6 | 20,364 | [
-1
] |
20,391 | data.lisp | ryuslash_scrumli/data.lisp | ;; scrumli --- A simple scrum web application
;; Copyright (C) 2013 Tom Willemse
;; scrumli is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Affero General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) an... | 5,679 | Common Lisp | .lisp | 115 | 38.556522 | 78 | 0.575654 | ryuslash/scrumli | 2 | 0 | 2 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 40860a3767e711834367cd18762c123133122564d8b8af07bd59396a71ee9c15 | 20,391 | [
-1
] |
20,392 | packages.lisp | ryuslash_scrumli/packages.lisp | ;; scrumli --- A simple scrum web application
;; Copyright (C) 2013 Tom Willemse
;; scrumli is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Affero General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) an... | 1,095 | Common Lisp | .lisp | 20 | 52.3 | 78 | 0.75514 | ryuslash/scrumli | 2 | 0 | 2 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 60deda2924b0fcc9f376b8348882cb08491478233c784e96a018643e70b39589 | 20,392 | [
-1
] |
20,393 | scrumli.asd | ryuslash_scrumli/scrumli.asd | ;; scrumli --- A simple scrum web application
;; Copyright (C) 2013 Tom Willemse
;; scrumli is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Affero General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) an... | 1,440 | Common Lisp | .asd | 33 | 37.454545 | 78 | 0.679743 | ryuslash/scrumli | 2 | 0 | 2 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 7b377138613560c4fea2f66890974b3c61c65593df2d6092514b35d462725bf8 | 20,393 | [
-1
] |
20,398 | scrumli.tmpl | ryuslash_scrumli/templates/scrumli.tmpl | /* scrumli --- A simple scrum web application
Copyright (C) 2013 Tom Willemse
scrumli is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... | 4,724 | Common Lisp | .l | 138 | 24.521739 | 84 | 0.531148 | ryuslash/scrumli | 2 | 0 | 2 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | b7cc7b632ccea7f0a9ded61499a3ff73aae0a5f408d61e617aaaef9465ba68fc | 20,398 | [
-1
] |
20,399 | scrumli.css | ryuslash_scrumli/static/css/scrumli.css | /* scrumli --- A simple scrum web application
Copyright (C) 2013 Tom Willemse
scrumli is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... | 887 | Common Lisp | .l | 22 | 36.818182 | 78 | 0.753201 | ryuslash/scrumli | 2 | 0 | 2 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 14a2abab91966117bcde1a9258a8fc09b0e2e3c78c505c2c6c6876bac99eeb8b | 20,399 | [
-1
] |
20,414 | plan.lisp | whounslo_reasoner/test/plan.lisp | ;;; Copyright (C) 2007-2009, 2011 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Graphsearch planning
;;;
;;; Graphsearch adapted from: ANSI Common Lisp by Paul Graham, Prentice Hall, 1996.
(in-package reasoner)
(declaim (special *expan... | 22,532 | Common Lisp | .lisp | 445 | 29.822472 | 90 | 0.471642 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | ffa427e850e5e1669608e0e8fa71289b283d4dacbf54436b5b9f8df7fab1138f | 20,414 | [
-1
] |
20,415 | queens.lisp | whounslo_reasoner/test/queens.lisp | ;;; Copyright (C) 2007, 2009-11, 2017 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; n-queens problem
;;;
;;; Requires combin.lisp
(in-package :rs-user)
(eval-when (:execute :compile-toplevel :load-toplevel)
(import '(atms:assumed-datum... | 4,898 | Common Lisp | .lisp | 120 | 29 | 89 | 0.53346 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 9e560c4809f2d9ec3e09f13aaf853cdd58f0702a988bb4b0a309adacd9506a5a | 20,415 | [
-1
] |
20,416 | mult.lisp | whounslo_reasoner/test/mult.lisp | ;;; Copyright (C) 2007, 2009, 2011, 2013 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Multiple-Fault Diagnosis
(in-package :rs-user)
(defrange device-statuses faulty working)
(defrange device-inputs 0 big)
(defclass device (component... | 4,579 | Common Lisp | .lisp | 108 | 34.018519 | 82 | 0.565374 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | b748f3b2555d2f1fd894e44695c85dd08e2f80ba7f5c594248ee3ad01c900ba4 | 20,416 | [
-1
] |
20,417 | combin.lisp | whounslo_reasoner/test/combin.lisp | ;;; Copyright (C) 2007, 2009 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(in-package reasoner)
(defun place-randomly (value list limit &aux (n (random limit)))
(do ((tail (nthcdr n list) (or (cdr tail) list)))
((null (car tail)) (setf... | 4,787 | Common Lisp | .lisp | 91 | 34.582418 | 86 | 0.524727 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 7aea673279903832671fc29148f3e4f8ac37117ce2277351a3df624e8eb38f25 | 20,417 | [
-1
] |
20,418 | pref.lisp | whounslo_reasoner/test/pref.lisp | ;;; Copyright (C) 2011, 2013 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(in-package reasoner)
(defun preferred-extension (e1 e2)
(unless (and e1 e2) (return-from preferred-extension nil))
(if (< (size e1)
(size e2))
e2
... | 1,554 | Common Lisp | .lisp | 34 | 32.794118 | 84 | 0.555409 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 52e49298c3d4f076fb8fc284a101b5bd03953e80e25bb4c4472f947e1a587ab1 | 20,418 | [
-1
] |
20,419 | miss.lisp | whounslo_reasoner/test/miss.lisp | ;;; Copyright (C) 2009, 2011, 2012 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Missionaries-and-cannibals problem
;;;
;;; Requires plan.lisp
(in-package :rs-user)
(eval-when (:execute :compile-toplevel :load-toplevel)
(import '(rs::... | 5,873 | Common Lisp | .lisp | 135 | 27.059259 | 89 | 0.479881 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 4f4b4a5fdb2aefbf2f3cca6a065dcd1346c78dc6b18d3b219feccf2135c20fd4 | 20,419 | [
-1
] |
20,420 | blocks.lisp | whounslo_reasoner/test/blocks.lisp | ;;; Copyright (C) 2007, 2009, 2011-13 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Blocks-world planning
;;;
;;; Requires plan.lisp
(in-package :rs-user)
(eval-when (:execute :compile-toplevel :load-toplevel)
(import '(rs::make-insta... | 4,327 | Common Lisp | .lisp | 103 | 29.776699 | 87 | 0.539339 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 06875b94dc777b856656b231415accf6e9d76b9e92cbef113be8c94bf50082f9 | 20,420 | [
-1
] |
20,421 | range.lisp | whounslo_reasoner/src/range.lisp | ;;; Copyright (C) 2007, 2009, 2011, 2012, 2014 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(in-package reasoner)
(defrange (numeric-range (:include range)) -big big)
(defrange (symbolic-range (:include range)))
(defrange zero-or-more 0 big... | 3,597 | Common Lisp | .lisp | 72 | 38.208333 | 78 | 0.598288 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | e078a4ba1c7b106daa14455bdb39ef0231644e40bb4f807ad15d83c7894079f4 | 20,421 | [
-1
] |
20,422 | xmlnames.lisp | whounslo_reasoner/src/xmlnames.lisp | ;;; Copyright (C) 2011, 2012, 2013 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; XML names and namespaces
(in-package :reasoner-ext)
(defparameter *case-preference* (readtable-case *readtable*))
(defun preserve-case-p (&optional (readt... | 8,402 | Common Lisp | .lisp | 186 | 33.774194 | 97 | 0.562469 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 153887d4c493d90c92b96109ad7a4803581c6797b95c9f18270f5022862e4fe7 | 20,422 | [
-1
] |
20,423 | genrule.lisp | whounslo_reasoner/src/genrule.lisp | ;;; Copyright (C) 2012 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Automatically-generated rules
(in-package reasoner)
(defclass class-slot-dependency ()
((name :initarg :name :reader name)
(option :initarg :option :reader option... | 13,131 | Common Lisp | .lisp | 260 | 32.276923 | 86 | 0.514359 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c962c658c3ed1d275285f8acc60de07ac3a72d4373a70de335cb598226fc013c | 20,423 | [
-1
] |
20,424 | backtrack.lisp | whounslo_reasoner/src/backtrack.lisp | ;;; Copyright (C) 2007, 2009-10, 2014, 2017, 2022 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(eval-when (:compile-toplevel)
(declaim (optimize (speed 3) (safety 1) (space 0) (debug 0))))
(in-package atms)
(eval-when (:execute :compile-topl... | 14,720 | Common Lisp | .lisp | 297 | 33.636364 | 88 | 0.515432 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | ecd6dbe2934baeb141ca2388f205f4e6db951b714595dc8f56360872310b9286 | 20,424 | [
-1
] |
20,425 | pstreams.lisp | whounslo_reasoner/src/pstreams.lisp | ;;; Copyright (C) 2014, 2016-17 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Requires Lisp in Parallel (lparallel.org).
(defpackage :pstreams (:use :cl :lparallel)
(:import-from :streams
#:the-empty-stream #:empty-stre... | 3,683 | Common Lisp | .lisp | 76 | 42.605263 | 148 | 0.691451 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 677eda3edb7536a2e2850281d87d32f36367aa45b7ba2a43166247ec1234fa17 | 20,425 | [
-1
] |
20,426 | rsuser.lisp | whounslo_reasoner/src/rsuser.lisp | ;;; Copyright (C) 2007-2009, 2011, 2016 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(defpackage :reasoner-ext
(:nicknames :rs-ext :rse)
(:use :reasoner :cl)
#-mop
(:import-from :reasoner #:defclass*)
(:shadow #:defclass)
#+clisp
(:s... | 1,374 | Common Lisp | .lisp | 37 | 30.702703 | 72 | 0.637801 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 161675794f24fd99106e4057732d0825201619369c97f97612ada5ec68c47e54 | 20,426 | [
-1
] |
20,427 | composite.lisp | whounslo_reasoner/src/composite.lisp | ;;; Copyright (C) 2011 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Composite objects: compound objects and assemblies
(in-package reasoner)
(defclass composite-object ()
((parts :type part))
(:metaclass extended-class))
(defclass... | 4,852 | Common Lisp | .lisp | 104 | 27.923077 | 84 | 0.471818 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | ce26787db08a7873d6b6ea8b1b3317c8dfe1e11c9dbc29c9138891afe8d0dc76 | 20,427 | [
-1
] |
20,428 | triple.lisp | whounslo_reasoner/src/triple.lisp | ;;; Copyright (C) 2012, 2013, 2014, 2016 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; RDF/XML (de)serialization
(in-package :reasoner-ext)
(eval-when (:execute :compile-toplevel :load-toplevel)
(import '(rs::numeric-range-intersectio... | 50,687 | Common Lisp | .lisp | 972 | 37.333333 | 91 | 0.574751 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 582d972c6c1fe985c9e3f61b706224e75c9bf7d55412e5ae5ccb7b670f9913a3 | 20,428 | [
-1
] |
20,429 | deserial.lisp | whounslo_reasoner/src/deserial.lisp | ;;; Copyright (C) 2011-2014, 2016, 2017 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; XML deserialization
(in-package :reasoner-ext)
(eval-when (:execute :compile-toplevel :load-toplevel)
(shadowing-import 'rs::variable)
(import '(a... | 55,076 | Common Lisp | .lisp | 1,078 | 37.221707 | 100 | 0.585301 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 02f11739acb016ff3c0ccd98d32b5b7e130587cb587d3a2e5e2913507422d871 | 20,429 | [
-1
] |
20,430 | slotval.lisp | whounslo_reasoner/src/slotval.lisp | ;;; Copyright (C) 2007-2014, 2017 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(in-package reasoner)
;;; Slot values
(defclass standard-slot-value (node)
((object :reader datum-object :initarg :object)
(slot-name :reader datum-slot ... | 25,564 | Common Lisp | .lisp | 568 | 30.93838 | 108 | 0.520954 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | fee747b69f25413e5955967b8f69daeb81af1419f9e7f0b60840b7982a4f875f | 20,430 | [
-1
] |
20,431 | datatype.lisp | whounslo_reasoner/src/datatype.lisp | ;;; Copyright (C) 2012, 2013 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; XML Schema built-in datatypes
(in-package :reasoner-ext)
(defconstant field-missing-indicator 'field-missing)
(defun parse-integers (string start end predicate ... | 15,770 | Common Lisp | .lisp | 325 | 38.344615 | 87 | 0.592246 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | a81b26bc8076a04f54d09cbc6abfe7bf59aac136d70049aef0eb01575e57136b | 20,431 | [
-1
] |
20,432 | prop.lisp | whounslo_reasoner/src/prop.lisp | ;;; Copyright (C) 2007-2011, 2013, 2014 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(in-package reasoner)
(defclass proposition ()
((attribute-references :initform nil :accessor attribute-references
:initarg at... | 39,742 | Common Lisp | .lisp | 739 | 36.113667 | 140 | 0.54202 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 2d2f65e7d066b33102cdac8c2f1d48bc1c1db9618d185ea7b6ee4530360e3b13 | 20,432 | [
-1
] |
20,433 | xmlis.lisp | whounslo_reasoner/src/xmlis.lisp | ;;; Copyright (C) 2011, 2012, 2013 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Interface to SAX parsers (Allegro, cxml).
(eval-when (:execute :compile-toplevel :load-toplevel)
(when #+allegro (find-package :cxml) #-allegro t
(pus... | 6,656 | Common Lisp | .lisp | 163 | 33.472393 | 88 | 0.640161 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 298f1bee038e80f5b91b1e4d1be169bd9391d1d1b30a17bdf72da1d0a0238636 | 20,433 | [
-1
] |
20,434 | compat.lisp | whounslo_reasoner/src/compat.lisp | ;;; Copyright (C) 2007-2009, 2014 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Implements:
;;; :count slot option
;;; :type slot property inheritance (overriding of standard behaviour)
;;; extra instance storage
;;; assuming only t... | 4,462 | Common Lisp | .lisp | 95 | 38.147368 | 90 | 0.635691 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 9f08c125faecf574c233aa6e04a32e60c3b67622984b2929683969d3b9b3fdf2 | 20,434 | [
-1
] |
20,435 | rsexport.lisp | whounslo_reasoner/src/rsexport.lisp | ;;; Copyright (C) 2007, 2009, 2011-14, 2016-17 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(defpackage :reasoner
(:nicknames :rs)
(:use :rparallel :streams :atms #-closer-mop :cl #+closer-mop :c2cl)
#-(or closer-mop abcl clozure cmu mcl s... | 5,282 | Common Lisp | .lisp | 122 | 33.032787 | 81 | 0.616042 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 39f4b3663ff0188ab299e904a16098e567feea83b334db9e011ca14c3696541f | 20,435 | [
-1
] |
20,436 | atms.lisp | whounslo_reasoner/src/atms.lisp | ;;; Copyright (C) 2007-2011, 2014, 2017 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(eval-when (:compile-toplevel)
(declaim (optimize (speed 3) (safety 1) (space 0) (debug 0))))
(defpackage :atms (:use :cl))
(in-package atms)
(eval-when (:e... | 23,669 | Common Lisp | .lisp | 511 | 35.616438 | 98 | 0.611974 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f2bc8aa9ae5dae567a9c6c12d1027559131c43c2e095251627ec00886ac8f09c | 20,436 | [
-1
] |
20,437 | streams.lisp | whounslo_reasoner/src/streams.lisp | ;;; Copyright (C) 2007, 2011, 2014, 2017 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Adapted from: Structure and Interpretation of Computer Programs
;;; by Harold Abelson and Gerald Jay Sussman with Julie Sussman,
;;; MIT Press, 1985.
... | 3,511 | Common Lisp | .lisp | 75 | 41.2 | 148 | 0.696872 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | cd5a2a57703be7277f8c2e2fa10ecfbc88c61a488d80d81b25f73ed3b30a6ce1 | 20,437 | [
-1
] |
20,438 | rparallel.lisp | whounslo_reasoner/src/rparallel.lisp | ;;; Copyright (C) 2013, 2014, 2017 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Interface to Lisp in Parallel (lparallel.org).
(defpackage :rparallel (:use :cl #+lparallel :bordeaux-threads #+lparallel :lparallel))
(in-package :rparall... | 2,793 | Common Lisp | .lisp | 90 | 25.666667 | 87 | 0.620305 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c6f786093f6397a905203f14d7917a52f54b922c2b31a6b7b0293b801042b7bd | 20,438 | [
-1
] |
20,439 | defrule.lisp | whounslo_reasoner/src/defrule.lisp | ;;; Copyright (C) 2007, 2009, 2011, 2013 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
(in-package reasoner)
(defmacro defconstraint (&rest args)
(let (name qualifier documentation source-form
(class-name 'constraint))
(multiple-... | 5,130 | Common Lisp | .lisp | 111 | 28.963964 | 77 | 0.501198 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | cc512ab041da21e8dc2e197b61063df2b051a82ae6c6c4d8de28b1fa73d632be | 20,439 | [
-1
] |
20,440 | xmlic.lisp | whounslo_reasoner/src/xmlic.lisp | ;;; Copyright (C) 2011, 2012, 2013 by William Hounslow
;;; This is free software, covered by the GNU GPL (v2)
;;; See http://www.gnu.org/copyleft/gpl.html
;;;
;;; Interface to CLLIB XML parser.
(require :cllib-xml "clocc:src;cllib;xml")
(in-package :reasoner-ext)
(eval-when (:compile-toplevel :load-toplevel :execute... | 2,719 | Common Lisp | .lisp | 50 | 29.12 | 86 | 0.4003 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | e272df5336e82399acb32fd05f1ec05473b47ab3a58ba94529c632317a5a4d64 | 20,440 | [
-1
] |
20,441 | reasoner-sax.asd | whounslo_reasoner/reasoner-sax.asd | (defsystem "reasoner-sax"
:description "Reasoner plus XML, RDF/XML (de)serialization (Allegro SAX parser)."
:licence "GPL"
:author "William Hounslow"
:depends-on ("reasoner-xml")
:pathname "src"
:components ((:file "xmlis"))) | 237 | Common Lisp | .asd | 7 | 31.285714 | 83 | 0.709957 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | bf63230bb4cf52980f2121abd4ec105e23dc11978a8a920b0686adcac751e388 | 20,441 | [
-1
] |
20,442 | reasoner-xml.asd | whounslo_reasoner/reasoner-xml.asd | (defsystem "reasoner-xml"
:description "Reasoner plus XML, RDF/XML (de)serialization."
:licence "GPL"
:author "William Hounslow"
:depends-on ("reasoner")
:pathname "src"
:serial t
:components ((:file "xmlnames")
(:file "deserial")
(:file "serial")
(:file "datat... | 359 | Common Lisp | .asd | 12 | 22.833333 | 62 | 0.571839 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 91b9a079b9b16ed2a19dddcbccc83f427e25c6dadaa9886eb6cc50ba33d1b508 | 20,442 | [
-1
] |
20,443 | reasoner-cxml.asd | whounslo_reasoner/reasoner-cxml.asd | (defsystem "reasoner-cxml"
:description "Reasoner plus XML, RDF/XML (de)serialization plus parser."
:licence "GPL"
:author "William Hounslow"
:depends-on ("reasoner-xml" "cxml")
:pathname "src"
:components ((:file "xmlis"))) | 236 | Common Lisp | .asd | 7 | 31.142857 | 74 | 0.708696 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 95fb790d5e8683a9b68e1168cdf7ad0deefe40127bf633d6b6e3f30d2fc0009b | 20,443 | [
-1
] |
20,444 | reasoner.asd | whounslo_reasoner/reasoner.asd | #+(or abcl allegro clisp clozure cmu ecl lispworks mcl sbcl scl)
(pushnew :mop *features*)
(defsystem "reasoner"
:description "Problem-solving and reasoning in Lisp."
:licence "GPL"
:author "William Hounslow"
:depends-on (#+rparallel "lparallel")
:pathname "src"
:serial t
:components
((:file "rparallel... | 1,093 | Common Lisp | .asd | 40 | 20.45 | 64 | 0.541311 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 46d14a9d2973b98911348d8775612377f9c4c9885b921fce6fdeb1c756794c69 | 20,444 | [
-1
] |
20,445 | reasoner-demos.asd | whounslo_reasoner/reasoner-demos.asd | (defsystem "reasoner-demos"
:description "Problem-solving and reasoning demonstrations."
:licence "GPL"
:author "William Hounslow"
:depends-on ("reasoner")
:pathname "test"
:components
((:file "plan")
(:file "combin")
(:file "pref")
(:file "miss" :depends-on ("plan"))
(:file "blocks" :depends-... | 515 | Common Lisp | .asd | 17 | 26.941176 | 62 | 0.625251 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 8bed7817eee233f3982cd6ff41af6872cda3f145bd4e1fb31e93e219c27e14ba | 20,445 | [
-1
] |
20,476 | serialize.html | whounslo_reasoner/doc/serialize.html | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>XML Reference - Common Lisp Reasoner</title>
<style type="text/css" media="all">
@import "reasonerdef.css";
</style>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<h1 class="title"... | 39,786 | Common Lisp | .l | 1,105 | 34.852489 | 103 | 0.72791 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 4ada7ac101900c048c8889f8353799c47b887d8177a57af07f0a84124e88930b | 20,476 | [
-1
] |
20,477 | intro.html | whounslo_reasoner/doc/intro.html | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Common Lisp Reasoner</title>
<style type="text/css" media="all">
@import "reasoner.css";
</style>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<div id="header">
<div class="... | 4,572 | Common Lisp | .l | 90 | 48.433333 | 91 | 0.760368 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c81bb4c37290854dcdc24aed959eb82b159125270c8a74889ba472396013a24a | 20,477 | [
-1
] |
20,478 | triple.html | whounslo_reasoner/doc/triple.html | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>RDF/XML Reference - Common Lisp Reasoner</title>
<style type="text/css" media="all">
@import "reasonerdef.css";
table.names {
font-family: sans-serif;
}
</style>
<meta http-equiv="Content-type" content="text/html; char... | 15,255 | Common Lisp | .l | 412 | 35.864078 | 99 | 0.749966 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 517381ccb835af98c5daa726beaa4c86f1afc03c5331fb51c9742e0b9322f672 | 20,478 | [
-1
] |
20,479 | reasoner.html | whounslo_reasoner/doc/reasoner.html | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Reference - Common Lisp Reasoner</title>
<style type="text/css" media="all">
@import "reasonerdef.css";
</style>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<h1 class="title">Com... | 61,579 | Common Lisp | .l | 1,883 | 31.541689 | 151 | 0.721611 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | fbb05e10439f9ec73c4ebfdff9665a7578c2e1c6178f7cf7b232ce94e502c81d | 20,479 | [
-1
] |
20,480 | demos.html | whounslo_reasoner/doc/demos.html | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Demonstrations - Common Lisp Reasoner</title>
<style type="text/css" media="all">
@import "reasoner.css";
table.demos {
background: silver;
font-family: sans-serif;
}
tr.demos {
background: white;
}
span.defn {
f... | 6,675 | Common Lisp | .l | 200 | 31.74 | 107 | 0.722601 | whounslo/reasoner | 2 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 46548676df8a34a0cf1b45d4e0bd225070b9916d92c6edbf98e93c8c961a0d71 | 20,480 | [
-1
] |
20,496 | filesystems.lisp | jnc-nj_jack-tools/src/filesystems.lisp | (in-package #:jack.tools.filesystems)
(defun create-directory (name)
(ensure-directories-exist (pathname name))
(truename name))
(defun write-file (object target)
(with-open-file (file (pathname target)
:direction :output
:if-exists :supersede
... | 1,313 | Common Lisp | .lisp | 37 | 29.891892 | 68 | 0.635359 | jnc-nj/jack-tools | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 7117d296265299a514bb1b0752db44cfe81fc271eef6fd96460e7e14f09a9fda | 20,496 | [
-1
] |
20,497 | bootstraps.lisp | jnc-nj_jack-tools/src/bootstraps.lisp | (in-package #:jack.tools.bootstraps)
(defun create-bootstrap-id ()
(cl-ppcre:regex-replace-all "[\\W\\d]" (string-downcase (create-id)) ""))
(defmacro bs-btn ((&key (type "default") (size nil)) &body body)
`(with-html-output (*standard-output*)
(:button :type "button" :class
(concatenate 'string "btn"... | 3,918 | Common Lisp | .lisp | 87 | 38.091954 | 80 | 0.587093 | jnc-nj/jack-tools | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 039097317cf2a80d458889bc00e243c69f4c16ec8430aa118040e96de56347d2 | 20,497 | [
-1
] |
20,498 | trees.lisp | jnc-nj_jack-tools/src/trees.lisp | (in-package #:jack.tools.trees)
(defun tree-similarity (tree-1 tree-2)
(cos-similarity (upsilon tree-1) (upsilon tree-2)))
(defun upsilon (tree)
"Upsilion of tree."
(cond ((null tree) nil)
((atom tree) (list 0))
(t (cons (length tree)
(reduce #'append
(sort (mapcar #'upsilo... | 1,840 | Common Lisp | .lisp | 54 | 29.037037 | 95 | 0.615169 | jnc-nj/jack-tools | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f338d0cb3fe4b756933064866edf7db6adf455ea37f12cf53b4a5a911372312e | 20,498 | [
-1
] |
20,499 | maths.lisp | jnc-nj_jack-tools/src/maths.lisp | (in-package #:jack.tools.maths)
(defun random-float (min max &key (seed 2048))
"Calculate a random float within range min max.
Algorithm from /Collected Algorithms from the ACM/;
133, 266, 294, 370."
(+ (* (/ (random seed)
seed)
(- max
min))
min))
(defun average-vectors (ve... | 1,594 | Common Lisp | .lisp | 45 | 31.311111 | 75 | 0.607422 | jnc-nj/jack-tools | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | e085272c224f1cfec6e036be9ebe24c84577170e0bbd2d745d570eec324bfd1a | 20,499 | [
-1
] |
20,500 | objects.lisp | jnc-nj_jack-tools/src/objects.lisp | (in-package #:jack.tools.objects)
(defclass address-book ()
((interfaces :initarg :interfaces :initform nil)
(stack :initarg :stack :initform nil)))
(defgeneric copy-instance (object &rest initargs &key &allow-other-keys)
(:documentation "Makes and returns a shallow copy of OBJECT with optional reinitializatio... | 5,714 | Common Lisp | .lisp | 137 | 36.437956 | 106 | 0.657616 | jnc-nj/jack-tools | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 75dc58d8301218cd6fa73aec0efddd66f7c6577660a67fc6c1ac2c9c337b0418 | 20,500 | [
-1
] |
20,501 | .withs.lisp.~undo-tree~ | jnc-nj_jack-tools/src/.withs.lisp.~undo-tree~ | (undo-tree-save-format-version . 1)
"0d124615fe1ccf027f9b12e54321fe8cc3ef6b79"
[nil nil nil nil (25168 790 489945 0) 0 nil]
([nil nil ((6342 . 6351) (t 25168 790 956879 883000)) nil (25168 895 987377 0) 0 nil] [nil nil ((#("do" 0 2 (fontified t)) . -6351) (undo-tree-id1 . -2) (6351 . 6353) (#("d" 0 1 (fontified t)) . -... | 36,435 | Common Lisp | .lisp | 51 | 713.019608 | 7,934 | 0.612672 | jnc-nj/jack-tools | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 33f3f2f46787cdf400eccafb2761a0a2ad2ba3a8176eea765fc1475f3618d573 | 20,501 | [
-1
] |
20,502 | time.lisp | jnc-nj_jack-tools/src/time.lisp | (in-package #:jack.tools.time)
(defun universal-to-timestring (universal)
(local-time:format-timestring nil (local-time:universal-to-timestamp universal)))
(defun sec-now ()
(local-time:timestamp-to-universal (local-time:now)))
(defun create-time (&key +time -time (unit :hour))
(let ((time (local-time:now)))
... | 2,676 | Common Lisp | .lisp | 68 | 35.764706 | 83 | 0.701734 | jnc-nj/jack-tools | 2 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 6ad814e5eb06ad97fc3449cda43d73491c921d1b0cfe4e8427fd9e15a2223349 | 20,502 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.