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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19,013 | represent.lisp | exercism_common-lisp-representer/src/representer/represent.lisp | (in-package :representer)
(defun list-type (list)
(multiple-value-bind (length error)
(ignore-errors (list-length list))
(cond (error :dotted)
(length :proper)
(t :circular))))
(defgeneric represent (symbol form))
(defmethod represent (symbol form)
(declare (ignore symbol))
form)
... | 3,286 | Common Lisp | .lisp | 69 | 35.173913 | 87 | 0.557842 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | d90b22a16bc180e7719f08025d49af33338e0a5fb99bb71e7ae0cbbab10a0a8a | 19,013 | [
-1
] |
19,014 | io.lisp | exercism_common-lisp-representer/src/representer/io.lisp | (in-package :representer/io)
(defun slurp-solution (stream)
(let ((package-name (package-name *package*)))
(uiop:with-safe-io-syntax (:package package-name)
(uiop:slurp-stream-forms stream))))
(defun write-repr (repr stream) (write repr :stream stream :circle t))
(defun write-mapping (mapping stream)
(... | 408 | Common Lisp | .lisp | 10 | 36.9 | 70 | 0.701266 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 88eb8f53871951d983e2a69d5a976c8253b562608a31d176bac37f6993e78bb3 | 19,014 | [
-1
] |
19,015 | main.lisp | exercism_common-lisp-representer/src/representer/main.lisp | (in-package :representer/main)
(defun solution-file (slug directory)
(merge-pathnames (make-pathname :name slug :type "lisp")
(uiop:ensure-directory-pathname directory)))
(defun representation-file (directory)
(merge-pathnames (make-pathname :name "representation" :type "txt")
... | 2,376 | Common Lisp | .lisp | 44 | 40.590909 | 87 | 0.598882 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | d47ceb06c69f9e069c295619569ab744f73f7d1d47044ded31d19ead8f4c385c | 19,015 | [
-1
] |
19,016 | placeholder.lisp | exercism_common-lisp-representer/src/representer/placeholder.lisp | (in-package :placeholder)
(defvar *placeholders*)
(defvar *slug*)
(defvar *counter*)
(defun init (slug)
(setf *placeholders* (list)
*slug* (string-upcase slug)
*counter* 0))
(defun ->alist ()
(sort (mapcar
#'(lambda (acons) (cons (write-to-string (car acons))
... | 1,176 | Common Lisp | .lisp | 36 | 26.388889 | 64 | 0.598057 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | cc092905ae5653bb201ee54c2fd934162a1fdc08795922c10fb2725b5bf681d4 | 19,016 | [
-1
] |
19,017 | packages.lisp | exercism_common-lisp-representer/src/representer/packages.lisp | (defpackage :placeholder
(:documentation "Placeholder abstraction. Symbols can be mapped to
placeholders. Placeholders can be looked up to find symbols and symbols to
find placeholders. Adding the same symbol multiple times will not result in
multiple placeholders. The entire mapping can be retrieved in the for... | 704 | Common Lisp | .lisp | 19 | 34.315789 | 78 | 0.743402 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 136803879e6caac78998ec28cf8794d16f58e8d63bb6fd4e49292bc667c43d13 | 19,017 | [
-1
] |
19,018 | representer-test.asd | exercism_common-lisp-representer/test/representer-test.asd | (defsystem "representer-test"
:name "representer-test"
:version "0.0.0"
:description "Automated tests for the Common Lisp Representer"
:depends-on ("representer" "fiveam")
:pathname ""
:serial t
:components ((:file "packages")
(:file "suite")
(:file "placeholder")
... | 612 | Common Lisp | .asd | 18 | 24.611111 | 66 | 0.541455 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 0d056672fa146e506ac90e926c56eced4c05a8fca225e44bb7964244662ca78c | 19,018 | [
-1
] |
19,019 | representer.asd | exercism_common-lisp-representer/src/representer.asd | (defsystem "representer"
:name "representer"
:version "0.0.0"
:description "Exercism Common Lisp Representer"
:depends-on ("uiop" "yason" "alexandria")
:pathname "representer"
:serial t
:components ((:file "packages")
(:file "placeholder")
(:file "represent")
... | 424 | Common Lisp | .asd | 13 | 25.538462 | 57 | 0.588235 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 46a207ea6bdf3d13c45612b5a1ff9a2971e724d1b5bdf6219b4b3c7bb22fea57 | 19,019 | [
-1
] |
19,021 | Dockerfile | exercism_common-lisp-representer/Dockerfile | FROM clfoundation/sbcl:2.1.5-alpine3.13 AS build
RUN apk --no-cache add curl
# Set working directory
WORKDIR /opt/representer
ENV HOME=/opt/representer
# Pull down the latest Quicklisp
RUN mkdir build && curl https://beta.quicklisp.org/quicklisp.lisp -o build/quicklisp.lisp
# Install quicklisp
COPY build/install-qui... | 762 | Common Lisp | .l | 22 | 33.318182 | 89 | 0.810368 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 4f16341c4808660add5f23617d915d252a86172363c704f9e75679a97391cb49 | 19,021 | [
-1
] |
19,035 | labels.yml | exercism_common-lisp-representer/.appends/.github/labels.yml | # ----------------------------------------------------------------------------------------- #
# These are the repository-specific labels that augment the Exercise-wide labels defined in #
# https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml. #
# ------------------------------------... | 1,145 | Common Lisp | .l | 31 | 34.483871 | 93 | 0.61448 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | fc115a29bba3c34bb7b08a87cd836b350eeb9ecf3a58359004bd3a009e536f31 | 19,035 | [
-1
] |
19,036 | labels.yml | exercism_common-lisp-representer/.github/labels.yml | # --------------------------------------------------------------- #
# This is an auto-generated file - Do not manually edit this file #
# --------------------------------------------------------------- #
# This file is automatically generated by concatenating two files:
#
# 1. The Exercism-wide labels: defined in http... | 6,620 | Common Lisp | .l | 162 | 38.512346 | 134 | 0.696459 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 0b9a870597ac2b75846196f8c0c85d05d1dbe4bc2d569c5293d4832f5f1b55e8 | 19,036 | [
-1
] |
19,037 | pause-community-contributions.yml | exercism_common-lisp-representer/.github/workflows/pause-community-contributions.yml | name: Pause Community Contributions
on:
issues:
types:
- opened
pull_request_target:
types:
- opened
permissions:
issues: write
pull-requests: write
jobs:
pause:
if: github.repository_owner == 'exercism' # Stops this job from running on forks
uses: exercism/github-actions/.githu... | 507 | Common Lisp | .l | 19 | 22.473684 | 84 | 0.727835 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | da926aab4a633eccab0d70283fe8f847819ddfd45233b5799bf63a268539c998 | 19,037 | [
-1
] |
19,038 | ping-cross-track-maintainers-team.yml | exercism_common-lisp-representer/.github/workflows/ping-cross-track-maintainers-team.yml | name: Ping cross-track maintainers team
on:
pull_request_target:
types:
- opened
permissions:
pull-requests: write
jobs:
ping:
if: github.repository_owner == 'exercism' # Stops this job from running on forks
uses: exercism/github-actions/.github/workflows/ping-cross-track-maintainers-team.yml... | 424 | Common Lisp | .l | 13 | 28.769231 | 94 | 0.75 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | ef1253d2666a6a2eaf42581cd36dcca547e2cdc8e5a9fd43c962d814f2bf2282 | 19,038 | [
-1
] |
19,039 | sync-labels.yml | exercism_common-lisp-representer/.github/workflows/sync-labels.yml | name: Tools
on:
push:
branches:
- main
paths:
- .github/labels.yml
- .github/workflows/sync-labels.yml
workflow_dispatch:
schedule:
- cron: 0 0 1 * * # First day of each month
permissions:
issues: write
jobs:
sync-labels:
uses: exercism/github-actions/.github/workflows/lab... | 333 | Common Lisp | .l | 16 | 16.875 | 67 | 0.681529 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 24d71b63bb844f04110d19f179f629e197b6defc222f5021985e0447a45214f3 | 19,039 | [
-1
] |
19,040 | deploy.yml | exercism_common-lisp-representer/.github/workflows/deploy.yml | name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-push-image:
if: github.repository_owner == 'exercism' # Stops this job from running on forks.
uses: exercism/github-actions/.github/workflows/docker-build-push-image.yml@main
secrets:... | 665 | Common Lisp | .l | 19 | 30.368421 | 85 | 0.702955 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 4e7bb13bb966dc53a1cae16bca72a53a1f2cb601bb773b5923bb3d2d04cd2276 | 19,040 | [
-1
] |
19,041 | ci.yml | exercism_common-lisp-representer/.github/workflows/ci.yml | name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: Set up Docker Buildx
uses: docker/se... | 821 | Common Lisp | .l | 30 | 20.2 | 81 | 0.643766 | exercism/common-lisp-representer | 2 | 5 | 4 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 2d77f5b30ae4d718d8058a0a7ff6a61e409bd8713351ebc8c020a3d765cb9ee6 | 19,041 | [
-1
] |
19,056 | build.lisp | exercism_common-lisp-analyzer/build/build.lisp | (load "./quicklisp/setup")
(ql:quickload "analyzer")
(let ((bin-dir (make-pathname :directory '(:relative "bin"))))
(ensure-directories-exist bin-dir)
(sb-ext:save-lisp-and-die (merge-pathnames "analyzer" bin-dir)
:toplevel #'(lambda ()
(apply #... | 465 | Common Lisp | .lisp | 9 | 33.777778 | 80 | 0.49011 | exercism/common-lisp-analyzer | 2 | 4 | 0 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | dc2afd3a811b27569b0e3d632af9c546332674c84e031848e19af50a202e982b | 19,056 | [
-1
] |
19,057 | main.lisp | exercism_common-lisp-analyzer/src/analyzer/main.lisp | (in-package :analyzer/main)
(defun analysis-file (directory)
(merge-pathnames (make-pathname :name "analysis" :type "json") directory))
(defun main (&rest args)
(destructuring-bind (slug input-directory output-directory) args
(with-open-file (analysis-stream (analysis-file output-directory)
... | 575 | Common Lisp | .lisp | 11 | 41.636364 | 76 | 0.624555 | exercism/common-lisp-analyzer | 2 | 4 | 0 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | aadd2e535b36cc18b29a65bd189c0294b746a0a8b5b42915d3d97af679f0695c | 19,057 | [
-1
] |
19,058 | analyzer.asd | exercism_common-lisp-analyzer/src/analyzer.asd | (defsystem "analyzer"
:name "analyzer"
:version "0.0.0"
:description "Exercism Common Lisp Analyzer"
:depends-on ("uiop" "yason")
:pathname "analyzer"
:serial t
:components ((:file "packages")
(:file "main")))
| 241 | Common Lisp | .asd | 9 | 22.333333 | 46 | 0.63913 | exercism/common-lisp-analyzer | 2 | 4 | 0 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 8b66b076b1d53f42a04e1dd6f40f4f08065195490ea3ca5939a63e4433c0eb3a | 19,058 | [
-1
] |
19,060 | Dockerfile | exercism_common-lisp-analyzer/Dockerfile | FROM clfoundation/sbcl:2.1.5-alpine3.13 AS build
RUN apk --no-cache add curl
# Set working directory
WORKDIR /opt/analyzer
ENV HOME=/opt/analyzer
# Pull down the latest Quicklisp
RUN mkdir build && curl https://beta.quicklisp.org/quicklisp.lisp -o build/quicklisp.lisp
# Install quicklisp
COPY build/install-quicklisp... | 741 | Common Lisp | .l | 22 | 32.363636 | 89 | 0.804775 | exercism/common-lisp-analyzer | 2 | 4 | 0 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | b809de1c07fb8fbd436530491932fe6a0a67a9de91b1b6c6cfe7bde22cd10f0d | 19,060 | [
-1
] |
19,062 | run-local.sh | exercism_common-lisp-analyzer/bin/run-local.sh | #!/bin/sh -e
slug=$1
input_dir=`realpath $2`
output_dir=`realpath $3`
image=`docker build -q .`
docker run \
--network none \
--read-only \
--mount type=bind,source=${input_dir},target=/input\
--mount type=bind,source=${output_dir},target=/output\
--rm \
-it $image $slug /in... | 358 | Common Lisp | .l | 13 | 23 | 61 | 0.618768 | exercism/common-lisp-analyzer | 2 | 4 | 0 | AGPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 568eafe7d49a304d26d79169e252633e52915a4602a5105535a4882967f9fbd7 | 19,062 | [
-1
] |
19,085 | misc-utils.lisp | Eggy115_Lisp/misc-utils.lisp | ;; utility functions
(in-package :kbnlp)
;; Copyright Mark Watson 2008-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
(defun flatten (list)
(if (null list)
(list)
(if (atom (car list))
(cons (car list) (flatten (cdr list)))
(flatten (a... | 1,454 | Common Lisp | .lisp | 38 | 29.026316 | 70 | 0.567218 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c2b594f48e9c29784562e97953427e4391b0fed87b36342057364803843dfa59 | 19,085 | [
-1
] |
19,086 | 09-the-viewport.lisp | Eggy115_Lisp/09-the-viewport.lisp | (defpackage #:sdl2-tutorial-09-the-viewport
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package :sdl2-tutorial-09-the-viewport)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defmacro with-window-renderer ((window renderer) &body body)
... | 2,655 | Common Lisp | .lisp | 52 | 31.288462 | 88 | 0.471158 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 9407fcdaed922119e73565125f833267d05bff00e228d9294a351712f4b4ced6 | 19,086 | [
131009
] |
19,087 | FastTag.lisp | Eggy115_Lisp/FastTag.lisp | ;; FastTag.lisp
;;
;; Conversion of KnowledgeBooks.com Java FastTag to Common Lisp
;;
;; Copyright Mark Watson 2008-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
;; Note: you must either start with an image that contains
;; FastTagData.lisp or load this file... | 5,816 | Common Lisp | .lisp | 129 | 30.372093 | 109 | 0.449406 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 86a4df15bf2267fe8dc1e4540f2a651b14a6ed238d3d53be6961b5127d525df2 | 19,087 | [
-1
] |
19,088 | load-misc-data.lisp | Eggy115_Lisp/load-misc-data.lisp | ;; initialize any data - note: this file should get loaded by (ll)
;;(defpackage names
;; (:use
;; common-lisp)
;; (:export
;; #:get-word-vector-category
;; #:find-names-places
;; #:find-names
;; #:find-places
;; #:*name-prefix-list*
;; #:pronoun-resolution)
;; (:documentation "Mark Watso... | 3,795 | Common Lisp | .lisp | 104 | 29.019231 | 92 | 0.571271 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | acb24a5207d9c14b697241577708e8d69bcfb5ce964dc87dbc3d072f9629d21f | 19,088 | [
-1
] |
19,089 | 13-alpha-blending.lisp | Eggy115_Lisp/13-alpha-blending.lisp | (defpackage #:sdl2-tutorial-13-alpha-blending
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package #:sdl2-tutorial-13-alpha-blending)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defclass tex ()
((renderer
:initarg :renderer
... | 3,456 | Common Lisp | .lisp | 81 | 31.37037 | 105 | 0.565542 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 011c3ec5cc5bc0da52c2f235cc53a76052ace3f595f5708e4c17546d952c7b50 | 19,089 | [
428300
] |
19,090 | places.lisp | Eggy115_Lisp/places.lisp | ;;(in-package :names)
(in-package :kbnlp)
;;#+(or xanalys lispworks)
;;(proclaim '(optimize (speed 3) (space 0) (debug 0)))
;; count number of places
(defun count-places (&aux (count 0))
(maphash
#'(lambda (key value) (setq count (1+ count)))
place-hash)
count)
;;
;; utility for detecting p... | 2,245 | Common Lisp | .lisp | 64 | 29.28125 | 107 | 0.560222 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 55da4515a617b0107730dfe479032648b8006ae5761c0e92a579d410630b4925 | 19,090 | [
-1
] |
19,091 | package.lisp | Eggy115_Lisp/package.lisp | (defpackage kbnlp
(:use :cl :asdf)
(:export
:make-text-object)
(:documentation "Mark Watson's NLP utilities released under the AGPL"))
| 151 | Common Lisp | .lisp | 5 | 26 | 74 | 0.694444 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | cabd46c1bde397f26e0561012418915c69da1fb822891f009e8314dbc36bf7aa | 19,091 | [
-1
] |
19,092 | find-names-places.lisp | Eggy115_Lisp/find-names-places.lisp | (in-package :kbnlp)
;; Copyright Mark Watson 2008-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
(defun remove-shorter-names (lst &aux (c-lst lst) (num (length lst)))
(dotimes (i num)
(dotimes (j num)
(if (not (= i j))
(let ((s-i (nth i ... | 2,155 | Common Lisp | .lisp | 50 | 32.94 | 107 | 0.531803 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 78b9ad2e253babe396f5125bec83607880133d8554e82f84a7fdf994bada53a5 | 19,092 | [
-1
] |
19,093 | maths.lisp | Eggy115_Lisp/maths.lisp | ;;
;; Triple the value of a number
;;
(defun triple (X)
"Compute three times X." ; Inline comments can
(* 3 X)) ; be placed here.
;;
;; Negate the sign of a number
;;
(defun negate (X)
"Negate the value of X." ; This is a documentation string.
(- X))
| 282 | Common Lisp | .lisp | 12 | 21.5 | 61 | 0.606742 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 760a613284c4ff1e6aaacd84bf9e644c5a427722549e1893b212724a3d85ee22 | 19,093 | [
-1
] |
19,094 | 05-optimized-surface-loading-and-soft-stretching.lisp | Eggy115_Lisp/05-optimized-surface-loading-and-soft-stretching.lisp | (defpackage #:sdl2-tutorial-05-optimized-surface-loading-and-soft-stretching
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package :sdl2-tutorial-05-optimized-surface-loading-and-soft-stretching)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
... | 1,649 | Common Lisp | .lisp | 36 | 33.388889 | 85 | 0.564566 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 832a9e6a0a9ebe349de3b4f61fca06dc193040093dd7877c376bee2c79646147 | 19,094 | [
123005
] |
19,095 | 10-color-keying.lisp | Eggy115_Lisp/10-color-keying.lisp | (defpackage #:sdl2-tutorial-10-color-keying
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package :sdl2-tutorial-10-color-keying)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defclass tex ()
((renderer
:initarg :renderer
:init... | 2,498 | Common Lisp | .lisp | 61 | 31.688525 | 107 | 0.602813 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 681e2484fab92f3c701cc6f0fbe78ab8834f7023f88cece41693ca1814f7fadc | 19,095 | [
484094
] |
19,096 | KBtm.lisp | Eggy115_Lisp/KBtm.lisp | (in-package :kbnlp)
;; Copyright Mark Watson 2008-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
;; data structures
(defstruct text
url
title
summary
category-tags
human-names
place-names
text
tags)
(defun make-text-object (words &ke... | 965 | Common Lisp | .lisp | 24 | 35.083333 | 118 | 0.65194 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 979d149c7e39ab74584a528745fb76bda2be31121cffc1cafa1fdc68d9eb2128 | 19,096 | [
-1
] |
19,097 | example.lisp | Eggy115_Lisp/example.lisp | (asdf:operate 'asdf:load-op :kbnlp)
(in-package :kbnlp)
(defvar x)
(setf x (kbnlp:make-text-object "President Bill Clinton ran for president of the USA in two elections. George W Bush also ran twice. Bill Clinton took a long vacation in Europe to visit his daughter. Bill Clinton said that banking in Europe is a ... | 2,623 | Common Lisp | .lisp | 12 | 214.916667 | 741 | 0.808182 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 7707fbee18880be9551299b6f52a3337e78345c35acf77830ac29111ec40bf67 | 19,097 | [
-1
] |
19,098 | 02-getting-an-image-on-the-screen.lisp | Eggy115_Lisp/02-getting-an-image-on-the-screen.lisp | (defpackage #:sdl2-tutorial-02-getting-an-image-on-the-screen
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package :sdl2-tutorial-02-getting-an-image-on-the-screen)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defmacro with-window-surface... | 1,201 | Common Lisp | .lisp | 29 | 32.758621 | 81 | 0.608434 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 812b608b24578c179bd19117ac3fe65c02615039cb7955a3e46b66d28ebce4dc | 19,098 | [
167001
] |
19,099 | utils.lisp | Eggy115_Lisp/utils.lisp | (defpackage #:sdl2-tutorial-utils
(:use :cl)
(:export :asset-path))
(in-package #:sdl2-tutorial-utils)
(defun asset-pathname (pathname)
"Return an absolute filename for a given PATHNAME relative to
`:sdl2-tutorial' asdf system directory.
This function doesn't prepend 'assets/' to the PATHNAME to not
... | 448 | Common Lisp | .lisp | 10 | 41.4 | 76 | 0.763889 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | e13ef1328a2e4b924211d5bc04baa96c97aaab0ca4afca45e6f5c37c1cdd2980 | 19,099 | [
329720
] |
19,100 | 14-animated-sprites-and-vsync.lisp | Eggy115_Lisp/14-animated-sprites-and-vsync.lisp | (defpackage #:sdl2-tutorial-14-animated-sprites-and-vsync
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package #:sdl2-tutorial-14-animated-sprites-and-vsync)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defclass tex ()
((renderer
... | 3,707 | Common Lisp | .lisp | 85 | 31.682353 | 105 | 0.554566 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 8a09bb07858dcda5f2a29a311ac7723a7c5dd92ced57bacf87c8e3e905f62f40 | 19,100 | [
101043
] |
19,101 | log-to-database.lisp | Eggy115_Lisp/log-to-database.lisp | (module "sqlite3.lsp") ; loads the SQLite3 database module
; FUNCTIONS-------------------------------------------------
(define (displayln str-to-display)
(println str-to-display)
)
(define (open-database sql-db-to-open)
(if (sql3:open (string sql-db-to-open ".db"))
(displayln "")
(displayln "Th... | 9,361 | Common Lisp | .lisp | 182 | 47.884615 | 173 | 0.647913 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | a39c91c28b498759a75c1ac2aac6a1ee5f60fbaac8468298815d785f84c99a98 | 19,101 | [
-1
] |
19,102 | tests.lisp | Eggy115_Lisp/tests.lisp | (defpackage #:sdl2-tutorial-tests
(:use :cl :parachute))
(in-package #:sdl2-tutorial-tests)
(define-test hello
(true t))
| 134 | Common Lisp | .lisp | 5 | 23.2 | 35 | 0.696 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f4ed7962bbdeabc14623497a7ada124da16e31e5854ed5fe15418199a90e0daa | 19,102 | [
243807
] |
19,103 | sample.lisp | Eggy115_Lisp/sample.lisp | ;;;; -*- lisp -*-
(in-package :foo)
;;; Header comment.
(defvar *foo*)
(eval-when (:execute :compile-toplevel :load-toplevel)
(defun add (x &optional y &key z)
(declare (ignore z))
;; Inline comment.
(+ x (or y 1))))
#|
Multi-line comment.
|#
(defmacro foo (x &body b)
(if x
... | 366 | Common Lisp | .lisp | 16 | 18.5 | 55 | 0.558824 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 110f71f1d4ef3b6e8c9681ba2f90ae26a069c802e690cfbdabbdcf3641036d68 | 19,103 | [
34113
] |
19,104 | summarize.lisp | Eggy115_Lisp/summarize.lisp | (in-package :kbnlp)
;;
; This function performs a simple summarization by forming a word use histogram
; and after tossing out common words (stemmed, of course), ranking sentences
; based on how... | 1,943 | Common Lisp | .lisp | 42 | 36.642857 | 120 | 0.562665 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 17e19f95dbb3634e2286b95feccbca6a11d86f36275001c8020c8eb7e40f91a5 | 19,104 | [
-1
] |
19,105 | load.lisp | Eggy115_Lisp/load.lisp |
(load "FastTag")
(defpackage kbnlp
(:use :cl :asdf)
(:export
:make-text-object)
(:documentation "Mark Watson's NLP utilities released under the AGPL"))
(in-package :kbnlp)
(load "KBtm")
(in-package :kbnlp)
(defun cload (path)
(format t "\n*** starting to load ~A\n" path)
(compile-file ... | 719 | Common Lisp | .lisp | 26 | 24.230769 | 74 | 0.656761 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 2c53d2607eb129b2842239a7e894c7b61a607ffd62b1c38941d0928acb27faf5 | 19,105 | [
-1
] |
19,106 | 11-clip-rendering-and-sprite-sheets.lisp | Eggy115_Lisp/11-clip-rendering-and-sprite-sheets.lisp | (defpackage #:sdl2-tutorial-11-clip-rendering-and-sprite-sheets
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package :sdl2-tutorial-11-clip-rendering-and-sprite-sheets)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defclass tex ()
((ren... | 3,488 | Common Lisp | .lisp | 79 | 29.797468 | 109 | 0.525258 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | cc2b21caede303fcc33142e3daeb5cd9751a2dfa1b00f780e702ff22f54ae956 | 19,106 | [
244494
] |
19,107 | to-xml.lisp | Eggy115_Lisp/to-xml.lisp | (in-package :kbnlp)
;;
; save-text-objects-to-xml
;;
;; Copyright Mark Watson 2001-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
(defun to-xml (text-obj &aux (ret "") nl)
(setq nl (make-string 1 :initial-element #\newline))
(defun add (s)
(s... | 3,097 | Common Lisp | .lisp | 76 | 33.381579 | 98 | 0.520094 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c73d90b35046b2dbfcaec78d72712783fe1266d810cc42ce95a3b7b93adea1cb | 19,107 | [
-1
] |
19,108 | 04-key-presses.lisp | Eggy115_Lisp/04-key-presses.lisp | (defpackage #:sdl2-tutorial-04-key-presses
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package :sdl2-tutorial-04-key-presses)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defmacro with-window-surface ((window surface) &body body)
`(sd... | 2,164 | Common Lisp | .lisp | 47 | 32.234043 | 73 | 0.519715 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 1144882f5f80edec9af33fa5589a78a703d2aa81caf288382716c451fc15e6e7 | 19,108 | [
113004
] |
19,109 | 08-geometry-rendering.lisp | Eggy115_Lisp/08-geometry-rendering.lisp | (defpackage #:sdl2-tutorial-08-geometry-rendering
(:use :cl)
(:export :run))
(in-package :sdl2-tutorial-08-geometry-rendering)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defmacro with-window-renderer ((window renderer) &body body)
`(sdl2:with-init (:video)
(sdl2:with-... | 2,585 | Common Lisp | .lisp | 51 | 32.176471 | 81 | 0.470986 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 4f47e365e98a29953b820f6cbc56cd14909917a3331ad2f33ad3bcf6f8db524b | 19,109 | [
73995
] |
19,110 | 01-hello-sdl.lisp | Eggy115_Lisp/01-hello-sdl.lisp | (defpackage #:sdl2-tutorial-01-hello-sdl
(:use :cl)
(:export :run))
(in-package :sdl2-tutorial-01-hello-sdl)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defun run()
(sdl2:with-init (:video)
(sdl2:with-window (window :title "SDL2 Tutorial 01"
... | 732 | Common Lisp | .lisp | 18 | 28.444444 | 89 | 0.54096 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | e84410d13bc9c6f9836851d853e742603dc0c56ce5c46e9fa71c088b3d70fe5a | 19,110 | [
333355
] |
19,111 | file-utils.lisp | Eggy115_Lisp/file-utils.lisp | ;; Posted by Rob Warnock on comp.lang.lisp:
(defun file-string (path)
"Sucks up an entire file from PATH into a freshly-allocated string,
returning two values: the string and the number of bytes read."
(with-open-file (s path)
(let* ((len (file-length s))
(data (make-string len)))
... | 365 | Common Lisp | .lisp | 8 | 39.25 | 70 | 0.660057 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 36ec5396bbd6f5d77499b5802ae550ad8d3a4ec79cf72aae4db4d1dfee0e10a8 | 19,111 | [
-1
] |
19,112 | 07-texture-loading-and-rendering.lisp | Eggy115_Lisp/07-texture-loading-and-rendering.lisp | (defpackage #:sdl2-tutorial-07-texture-loading-and-rendering
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package :sdl2-tutorial-07-texture-loading-and-rendering)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defmacro with-window-renderer ... | 1,436 | Common Lisp | .lisp | 33 | 34.121212 | 90 | 0.606911 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 7397a7fb02b6eca51364f52eedfd76c8b8ed110005e892d62458790c8893c190 | 19,112 | [
95916
] |
19,113 | 03-event-driven-programming.lisp | Eggy115_Lisp/03-event-driven-programming.lisp | (defpackage #:sdl2-tutorial-03-event-driven-programming
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package :sdl2-tutorial-03-event-driven-programming)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defmacro with-window-surface ((window su... | 1,333 | Common Lisp | .lisp | 33 | 30.606061 | 74 | 0.576744 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 5dab52003ddb78e537e5bc8d739c1926fdf64a4fdd082ad026956183e04986a2 | 19,113 | [
239601
] |
19,114 | names.lisp | Eggy115_Lisp/names.lisp | ;;(in-package :names)
(in-package :kbnlp)
;;;#+(or xanalys lispworks)
;;;(proclaim '(optimize (speed 3) (space 0) (debug 0)))
(defvar *name-prefix-list*
'("Mr" "Mrs" "Ms" "Gen" "General" "Maj" "Major" "Doctor" "Vice" "President" "Lt"
"Premier" "Senator" "Congressman" "Prince" "King" "Representative" "... | 4,832 | Common Lisp | .lisp | 121 | 32.917355 | 93 | 0.546403 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 50aed69406ce45ccd95f1ff40423bb1583f539eab3e5ac5ba4ec7b90acd757dc | 19,114 | [
-1
] |
19,115 | 12-color-modulation.lisp | Eggy115_Lisp/12-color-modulation.lisp | (defpackage #:sdl2-tutorial-12-color-modulation
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package #:sdl2-tutorial-12-color-modulation)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defclass tex ()
((renderer
:initarg :renderer
... | 3,252 | Common Lisp | .lisp | 81 | 28.765432 | 97 | 0.543982 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 12a03a01f2742fd8d9a3c6afc7e8f3696d2d8af40c0c3fb1c6ca86ccd7369603 | 19,115 | [
421763
] |
19,116 | 15-rotation-and-flipping.lisp | Eggy115_Lisp/15-rotation-and-flipping.lisp | (defpackage #:sdl2-tutorial-15-rotation-and-flipping
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package #:sdl2-tutorial-15-rotation-and-flipping)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defclass tex ()
((renderer
:initarg :... | 3,363 | Common Lisp | .lisp | 79 | 29.21519 | 94 | 0.525704 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 1dd8f2798ae95c58eb7eefdea874b7ab65ab486a92f1a10a2565ff06192d1f18 | 19,116 | [
467195
] |
19,117 | 16-true-type-fonts.lisp | Eggy115_Lisp/16-true-type-fonts.lisp | (defpackage #:sdl2-tutorial-16-true-type-fonts
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package #:sdl2-tutorial-16-true-type-fonts)
(defparameter *screen-width* 640)
(defparameter *screen-height* 480)
(defparameter *font* nil)
(defclass tex ()
((rendere... | 3,641 | Common Lisp | .lisp | 84 | 31.583333 | 101 | 0.559547 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 3e979b8365343a7b0552779a0797146e7af86a7e9c226675d774701f91bad92d | 19,117 | [
131774
] |
19,118 | cat-tags.lisp | Eggy115_Lisp/cat-tags.lisp | (in-package :kbnlp)
;; access functions for determining category tags
;; Copyright Mark Watson 2008-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
(defvar categoryHashtables)
(defvar categoryNames)
(defun get-cat-tag-names ()
categoryNames)
(defun ge... | 1,744 | Common Lisp | .lisp | 49 | 27.897959 | 180 | 0.549791 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 3f259a6ef0ad417f86fac9fbc16ecc51c2a9ecaaad58c89d6ff8cfe0d28ea340 | 19,118 | [
-1
] |
19,119 | 06-extension-libraries-and-loading-other-image-formats.lisp | Eggy115_Lisp/06-extension-libraries-and-loading-other-image-formats.lisp | (defpackage #:sdl2-tutorial-06-extension-libraries-and-loading-other-image-formats
(:use :cl)
(:export :run)
(:import-from :sdl2-tutorial-utils :asset-pathname))
(in-package :sdl2-tutorial-06-extension-libraries-and-loading-other-image-formats)
(defparameter *screen-width* 640)
(defparameter *screen-hei... | 1,556 | Common Lisp | .lisp | 34 | 35.352941 | 85 | 0.6 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 6d155b1d33ecb5d1b467b8c4399df22ff3771971d55ec5bcb16a0329d84c5d38 | 19,119 | [
375091
] |
19,120 | nested.lisp | Eggy115_Lisp/code_snippets_for_book/nested.lisp | (flet ((add-one (x)
(+ x 1))
(add-two (x)
(+ x 2)))
(format t "redefined variables: ~A ~A~%" (add-one 100) (add-two 100)))
(let ((a 3.14))
(defun test2 (x)
(print x))
(test2 a))
(test2 50)
(let ((x 1)
(y 2))
;; define a test function nested inside a let stat... | 887 | Common Lisp | .lisp | 27 | 23.962963 | 75 | 0.472941 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 84f81973e5383b8c3765860a886f94c59e5a9351bad1de759b7968e22fa18795 | 19,120 | [
-1
] |
19,121 | closure1.lisp | Eggy115_Lisp/code_snippets_for_book/closure1.lisp | (let* ((fortunes
'("You will become a great Lisp Programmer"
"The force will not be with you"
"Take time for meditation"))
(len (length fortunes))
(index 0))
(defun fortune ()
(let ((new-fortune (nth index fortunes)))
(setq index (1+ index))
(if (>= index len) (setq index... | 350 | Common Lisp | .lisp | 11 | 25.545455 | 46 | 0.587537 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | d814a1b8fbf599d305f6ac2c6cdafa51c0f73c8eec086d79c4dba7221e7783d6 | 19,121 | [
268883
] |
19,122 | read-from-string-test.lisp | Eggy115_Lisp/code_snippets_for_book/read-from-string-test.lisp | (defun read-from-string-test ()
"read a maximum of 1000 expressions from a string"
(let ((str "1 2 \"My parrot is named Brady.\" (11 22)"))
(with-input-from-string
(input-stream str)
(dotimes (i 1000)
(let ((x (read input-stream nil nil)))
(if (null x) (return)) ;; break out of ... | 402 | Common Lisp | .lisp | 9 | 37.888889 | 67 | 0.592875 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 9e84229d2d928aaf5aa9d79e9dacc0da5a47ef610405460b0fc01978e8bf1f31 | 19,122 | [
476659
] |
19,123 | read-test-2.lisp | Eggy115_Lisp/code_snippets_for_book/read-test-2.lisp | (defun read-test-2 ()
"using pathname, read a maximum of 1000 expresions from the file 'test.dat'"
(let ((a-path-name (make-pathname :directory "testdata" :name "test.dat")))
(with-open-file
(input-stream a-path-name :direction :input)
(dotimes (i 1000)
(let ((x (read input-stream nil nil... | 441 | Common Lisp | .lisp | 9 | 43.555556 | 79 | 0.637209 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | d27555784b37b131e75fb18b40b9a14b2cc117a908273cd3b70a6f13596514ec | 19,123 | [
-1
] |
19,124 | read-test-1.lisp | Eggy115_Lisp/code_snippets_for_book/read-test-1.lisp | (defun read-test-1 ()
"read a maximum of 1000 expresions from the file 'test.dat'"
(with-open-file
(input-stream "test.dat" :direction :input)
(dotimes (i 1000)
(let ((x (read input-stream nil nil)))
(if (null x) (return)) ;; break out of the 'dotimes' loop
(format t "next expression... | 344 | Common Lisp | .lisp | 8 | 37.375 | 65 | 0.616071 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 4b784fc3d3e1a368cda7913953215cf2ac6252b52b431e7184356b60400d12d3 | 19,124 | [
-1
] |
19,125 | recursion1.lisp | Eggy115_Lisp/code_snippets_for_book/recursion1.lisp | ;; a simple loop using recursion
(defun recursion1 (value)
(format t "entering recursion1(~A)~%" value)
(if (< value 5)
(recursion1 (1+ value))))
| 163 | Common Lisp | .lisp | 5 | 28.2 | 47 | 0.641026 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 8064dcf7ec34b12e2ac8cedf9559dcfa3f1093092b5b63a1ab785df15f186464 | 19,125 | [
-1
] |
19,126 | do1.lisp | Eggy115_Lisp/code_snippets_for_book/do1.lisp | ;; example do macro use
(do ((i 0 (1+ i)))
((> i 3) "value-of-do-loop")
(print i))
| 95 | Common Lisp | .lisp | 4 | 19.75 | 33 | 0.494382 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | acab99a0f9cee2388a4f6142ba56b1a1260d431959b6067b4fae5480d8f7a735 | 19,126 | [
-1
] |
19,127 | readline-test.lisp | Eggy115_Lisp/code_snippets_for_book/readline-test.lisp | (defun readline-test ()
"read a maximum of 1000 expresions from the file 'test.dat'"
(with-open-file
(input-stream "test.dat" :direction :input)
(dotimes (i 1000)
(let ((x (read-line input-stream nil nil)))
(if (null x) (return)) ;; break out of the 'dotimes' loop
(format t "next lin... | 345 | Common Lisp | .lisp | 8 | 37.5 | 65 | 0.617211 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | cc4addc7b1b89325f2a3a1bce5f16ccd2cd1cef92ad6994abb50b85fd975fffa | 19,127 | [
-1
] |
19,128 | package.lisp | Eggy115_Lisp/plotlib/package.lisp | ;;;; package.lisp
(defpackage #:plotlib
(:use #:cl #:vecto)
(:export save-png plot-fill-rect plot-frame-rect plot-size-rect
plot-line plot-string plot-string-bold pen-width))
| 190 | Common Lisp | .lisp | 5 | 34 | 66 | 0.699454 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | a9d23774efe287bc642abadca5a7b5f0b104e29fed7f79f60dadd92ad72c4253 | 19,128 | [
-1
] |
19,129 | plotlib.lisp | Eggy115_Lisp/plotlib/plotlib.lisp | ;; Misc. plotting examples using the vecto library
(ql:quickload :vecto) ;; Zach Beane's plotting library
(in-package #:plotlib)
(defvar *base-pathname-pl* #.(or *compile-file-truename* *load-truename*))
(defvar a1 (write-to-string *base-pathname-pl*))
(print (list "**** a1=" a1))
(defvar *current-director... | 2,220 | Common Lisp | .lisp | 56 | 35.357143 | 95 | 0.664794 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 78a8d69598c0882a6abd91a6e8f0c677790a125af15a011b1a88696e9c520753 | 19,129 | [
-1
] |
19,130 | cat-data-tables.lisp | Eggy115_Lisp/data/cat-data-tables.lisp | (in-package :kbnlp)
;; Copyright Mark Watson 2001-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
(defvar categoryHashtables '())
(defvar categoryNames '())
(defvar *h*)
;;; Starting topic: news_economy.txt
(setf *h* (make-hash-table :test #'equal :size 1... | 257,213 | Common Lisp | .lisp | 6,800 | 33.834853 | 84 | 0.593099 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f48382030b81c78eb69c7b9ca5a56c28fc4c62d6b44c2fb7c966a1a3db197dcc | 19,130 | [
-1
] |
19,131 | FastTagData.lisp | Eggy115_Lisp/data/FastTagData.lisp | ;;(in-package :fasttag)
(in-package :kbnlp)
;; Copyright Mark Watson 2001-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
(defvar lex-hash (make-hash-table :test #'equal :size 110000))
(setf (gethash "Prizm" lex-hash) (list "NNP"))
(setf (gethash "shakeup" le... | 4,852,079 | Common Lisp | .lisp | 93,002 | 50.171491 | 229 | 0.651113 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | dcfeb52ea1dbfee1f0b22f606363d1ed07d9ea2f9582f0f3be1a301c188974ea | 19,131 | [
-1
] |
19,132 | clsql_create_news_schema.lisp | Eggy115_Lisp/clsql_examples/clsql_create_news_schema.lisp | (ql:quickload :clsql)
(ql:quickload :clsql-postgresql)
;; Postgres connection specification: (host db user password &optional port options tty).
;; The first argument to **clsql:connect** is a connection specification list:
(clsql:connect '("localhost" "news" "markw" nil) :database-type :postgresql)
(clsql:d... | 791 | Common Lisp | .lisp | 26 | 25.384615 | 90 | 0.666225 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | cc2e27ce72dbfcaf3bae9d25e7963615e73ff819d434e7cb2a31e85ca637ebd8 | 19,132 | [
-1
] |
19,133 | clsql_write_to_news.lisp | Eggy115_Lisp/clsql_examples/clsql_write_to_news.lisp | (ql:quickload :clsql)
(ql:quickload :clsql-postgresql)
;; Open connection to database and create CLOS class and database view for table 'articles':
(load "clsql_create_news_schema.lisp")
(defvar *a1*
(make-instance
'article
:uri "http://test.com"
:title "Trout Season is Open on Oak Creek"
... | 878 | Common Lisp | .lisp | 24 | 32.25 | 93 | 0.695444 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 44e7a25f3f531e5de2b2f395a03831fb481f7162d5064caef3df5a91792894d3 | 19,133 | [
-1
] |
19,134 | clsql_read_from_news.lisp | Eggy115_Lisp/clsql_examples/clsql_read_from_news.lisp | (ql:quickload :clsql)
(ql:quickload :clsql-postgresql)
;; Open connection to database and create CLOS class and database view for table 'articles':
(load "clsql_create_news_schema.lisp")
(defun pp-article (article)
(format t
"~%URI: ~S ~%Title: ~S ~%Text: ~S ~%"
(slot-value article 'uri)
(slot... | 541 | Common Lisp | .lisp | 14 | 34.214286 | 93 | 0.666019 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 562e7c088eda822e2f7f90cb022d509e7727f597bc5a0377b2c957b24ed96a22 | 19,134 | [
-1
] |
19,135 | split-sequence.lisp | Eggy115_Lisp/split-sequence/split-sequence.lisp | ;;;; SPLIT-SEQUENCE
;;;
;;; This code was based on Arthur Lemmens' in
;;; <URL:http://groups.google.com/groups?as_umsgid=39F36F1A.B8F19D20%40simplex.nl>;
;;;
;;; changes include:
;;;
;;; * altering the behaviour of the :from-end keyword argument to
;;; return the subsequences in original order, for consistency ... | 9,868 | Common Lisp | .lisp | 225 | 35.453333 | 198 | 0.604559 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | afd0b3b2589748b88828574aad5d70b70740ff58c104cc23d6aa99e381fa16cd | 19,135 | [
349189
] |
19,136 | src.lisp | Eggy115_Lisp/puri-1.5.5/src.lisp | ;; -*- mode: common-lisp; package: puri -*-
;; Support for URIs
;; For general URI information see RFC2396.
;;
;; copyright (c) 1999-2002 Franz Inc, Berkeley, CA - All rights reserved.
;; copyright (c) 2002-2005 Franz Inc, Oakland, CA - All rights reserved.
;; copyright (c) 2003-2010 Kevin Rosenberg
;;
;; This... | 53,120 | Common Lisp | .lisp | 1,288 | 29.218168 | 81 | 0.50159 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | b69a9dfde340ab82941123054ddf1502eec957f11cf0cf9312095a6dc3a3fce1 | 19,136 | [
143686
] |
19,137 | tests.lisp | Eggy115_Lisp/puri-1.5.5/tests.lisp | ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;; copyright (c) 1999-2001 Franz Inc, Berkeley, CA - All rights reserved.
;; copyright (c) 2003 Kevin Rosenberg (significant fixes for using
;; tester package)
;;
;; The software, data and information contained herein are proprietary
;; to, and comprise... | 18,262 | Common Lisp | .lisp | 410 | 30.302439 | 665 | 0.46356 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 87494dc7f828836e79539c28274404f393a1fa5ce628d3d1dcfe541d543086e8 | 19,137 | [
181057
] |
19,138 | encode.lisp | Eggy115_Lisp/cl-base64-3.3.3/encode.lisp | ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: encode.lisp
;;;; Purpose: cl-base64 encoding routines
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Dec 2... | 13,722 | Common Lisp | .lisp | 311 | 25.842444 | 96 | 0.416013 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 3e797fad1289f82940981bc908cd759aa08933091101d7de84fa83e79fd9a9a2 | 19,138 | [
106712,
348892
] |
19,139 | package.lisp | Eggy115_Lisp/cl-base64-3.3.3/package.lisp | ;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: package.lisp
;;;; Purpose: Package definition for cl-base64
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: ... | 2,374 | Common Lisp | .lisp | 59 | 32.457627 | 79 | 0.570057 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c7fe5fe6ad79f3c754dcd151a1d9df67ea79ea0624e20332abae420cf30fe00a | 19,139 | [
148865,
227125
] |
19,140 | decode.lisp | Eggy115_Lisp/cl-base64-3.3.3/decode.lisp | ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: encode.lisp
;;;; Purpose: cl-base64 encoding routines
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Dec 2... | 10,730 | Common Lisp | .lisp | 244 | 27.151639 | 84 | 0.435959 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 1a884989f9a28caae3125cf00d311fdcc2dc2112f0e7b5b55182bb0509a21730 | 19,140 | [
456415
] |
19,141 | tests.lisp | Eggy115_Lisp/cl-base64-3.3.3/tests.lisp | ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
;;;; Name: test.lisp
;;;; Purpose: Regression tests for cl-base64
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Jan ... | 3,045 | Common Lisp | .lisp | 69 | 31.086957 | 79 | 0.486468 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 3c7c6d7240506d298ce9f730173dd63ecfaaa0fadd16e7ece5023423baf4b05f | 19,141 | [
109015,
405367
] |
19,142 | prolog.lisp | Eggy115_Lisp/quick_start_allegrograph_lisp_embedded/prolog.lisp | (require :agraph)
(in-package :db.agraph.user)
(enable-!-reader) ; enable the ! reader macro
(create-triple-store "/tmp/rdfstore_prolog_1" :if-exists :supersede)
(register-namespace "kb" "http://knowledgebooks.com/ontology/#")
(load-ntriples #p"quick_start_allegrograph_lisp_embedded/sample_news.nt")
(pr... | 592 | Common Lisp | .lisp | 14 | 37.857143 | 74 | 0.677936 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 39cea4c4af1dd711cead4494c39a8e30b74ae50a574a278805d6a6bfcec1dc73 | 19,142 | [
-1
] |
19,143 | geoloc.lisp | Eggy115_Lisp/quick_start_allegrograph_lisp_embedded/geoloc.lisp | (require :agraph)
;; Copyright Mark Watson 2001-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
(in-package :db.agraph.user)
(enable-!-reader)
(register-namespace "g" "http://knowledgebooks.com/geo#")
(create-triple-store "/tmp/geospatial-test")
;; define ... | 2,156 | Common Lisp | .lisp | 49 | 38.122449 | 105 | 0.63383 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 4c1dbcba8a84d18393465671b66114ed32113f4a1cae19adfdcd96a4cb61907f | 19,143 | [
-1
] |
19,144 | text.lisp | Eggy115_Lisp/quick_start_allegrograph_lisp_embedded/text.lisp | (require :agraph)
(in-package :db.agraph.user)
;; Copyright Mark Watson 2001-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
(enable-!-reader) ; enable the ! reader macro
(create-triple-store "/tmp/index_test")
(register-namespace "kb" "http://knowledgebooks.... | 1,279 | Common Lisp | .lisp | 27 | 44.296296 | 95 | 0.726829 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | e1a23d3785bceadc507775e6913d53b74b9735a0deafebfcd6cd1ac2bcef1cbe | 19,144 | [
-1
] |
19,145 | quickstart.lisp | Eggy115_Lisp/quick_start_allegrograph_lisp_embedded/quickstart.lisp | (require :agraph)
(in-package :db.agraph.user)
;; Copyright Mark Watson 2001-2010. All Rights Reserved.
;; License: LGPL version 3 (http://www.gnu.org/licenses/lgpl-3.0.txt)
(enable-!-reader) ; enable the ! reader macro
(create-triple-store "/tmp/rdfstore_1")
(register-namespace "kb" "http://knowledgebooks.... | 1,398 | Common Lisp | .lisp | 34 | 37.764706 | 83 | 0.703731 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | e447fba1c39c6a87b0a4d63a5ea7a05595de1cedb64b5c072836e6c8a599c65a | 19,145 | [
-1
] |
19,146 | test.lisp | Eggy115_Lisp/dbpedia/test.lisp | (require :agraph)
;; from Franz documentation:
(sparql.client::run-sparql-remote "http://dbpedia.org/sparql" "
PREFIX dbpedia: <http://dbpedia.org/ontology/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?person {
?person dbpedia:birthPlace ... | 405 | Common Lisp | .lisp | 10 | 35.8 | 71 | 0.685422 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 658931a8f2bf824deaa90b126fa2a712823bdc999c6830b1eccda00f3f73f3b7 | 19,146 | [
-1
] |
19,147 | webscrape.lisp | Eggy115_Lisp/webscrape/webscrape.lisp | ;;;; webscrape.lisp
(in-package #:webscrape)
(defun fetch-page (uri)
(drakma:http-request uri))
;;
;; secret sauce: get the file path of this file:
;; (useful in NLP, etc. when we want to find data files at runtime)
;;
(defvar *base-pathname* #.(or *compile-file-truename* *load-truename*))
| 312 | Common Lisp | .lisp | 9 | 31.333333 | 72 | 0.68942 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | d0a1aa40771db87e7d52ede1b6727fad72c481eb02f8630a39800a96232a8b43 | 19,147 | [
-1
] |
19,148 | known-words.lisp | Eggy115_Lisp/chunga-1.1.1/known-words.lisp | ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CHUNGA; Base: 10 -*-
;;; $Header: /usr/local/cvsrep/chunga/known-words.lisp,v 1.3 2008/05/29 22:21:09 edi Exp $
;;; Copyright (c) 2006-2010, Dr. Edmund Weitz. All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;;; modifi... | 5,025 | Common Lisp | .lisp | 141 | 29.333333 | 91 | 0.649527 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 3de8c1d6d1705d40742a3bd7bfd5e24c6d287c50f11267d236cec5e150797681 | 19,148 | [
43580,
479096
] |
19,149 | util.lisp | Eggy115_Lisp/chunga-1.1.1/util.lisp | ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CHUNGA; Base: 10 -*-
;;; $Header: /usr/local/cvsrep/chunga/util.lisp,v 1.12 2008/05/25 10:53:48 edi Exp $
;;; Copyright (c) 2006-2010, Dr. Edmund Weitz. All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;;; modification... | 4,018 | Common Lisp | .lisp | 80 | 44.65 | 85 | 0.68977 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 3b53fded42f55ca473113c9a04fc9a03bc487261c2450afd7db350a90e6f6465 | 19,149 | [
135074
] |
19,150 | output.lisp | Eggy115_Lisp/chunga-1.1.1/output.lisp | ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CHUNGA; Base: 10 -*-
;;; $Header: /usr/local/cvsrep/chunga/output.lisp,v 1.14 2008/05/24 03:06:22 edi Exp $
;;; Copyright (c) 2006-2010, Dr. Edmund Weitz. All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;;; modificati... | 6,107 | Common Lisp | .lisp | 121 | 44.264463 | 94 | 0.694827 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 0baba81659150fe12b4b75e7d78d5a213b7d381c2044f53373ed6b3a2ea2091c | 19,150 | [
261518,
293716
] |
19,151 | specials.lisp | Eggy115_Lisp/chunga-1.1.1/specials.lisp | ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CHUNGA; Base: 10 -*-
;;; $Header: /usr/local/cvsrep/chunga/specials.lisp,v 1.12 2008/05/24 03:06:22 edi Exp $
;;; Copyright (c) 2006-2010, Dr. Edmund Weitz. All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;;; modifica... | 4,240 | Common Lisp | .lisp | 80 | 47.85 | 89 | 0.710194 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | e8a2f6d6f69d5d4b3a466fae8c62abfe47965813ad890720acd231ccee1de661 | 19,151 | [
125677,
490510
] |
19,152 | read.lisp | Eggy115_Lisp/chunga-1.1.1/read.lisp | ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CHUNGA; Base: 10 -*-
;;; $Header: /usr/local/cvsrep/chunga/read.lisp,v 1.22 2008/05/26 08:18:00 edi Exp $
;;; Copyright (c) 2006-2010, Dr. Edmund Weitz. All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;;; modification... | 14,090 | Common Lisp | .lisp | 271 | 40.402214 | 102 | 0.59544 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c26a2b484ba445f7a37b6f330776c85337e064c7fc5d9e38207dfb52b8665742 | 19,152 | [
50304
] |
19,153 | conditions.lisp | Eggy115_Lisp/chunga-1.1.1/conditions.lisp | ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: ODD-STREAMS; Base: 10 -*-
;;; $Header: /usr/local/cvsrep/odd-streams/conditions.lisp,v 1.5 2007/12/31 01:08:45 edi Exp $
;;; Copyright (c) 2008-2010, Dr. Edmund Weitz. All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;... | 3,847 | Common Lisp | .lisp | 69 | 50.927536 | 95 | 0.730256 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 4d65a03cf4840048bbfbcaebda5f786706742eecded10f66c36c3aa3f2c50df2 | 19,153 | [
172763,
341521
] |
19,154 | input.lisp | Eggy115_Lisp/chunga-1.1.1/input.lisp | ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CHUNGA; Base: 10 -*-
;;; $Header: /usr/local/cvsrep/chunga/input.lisp,v 1.18 2008/05/24 03:06:22 edi Exp $
;;; Copyright (c) 2006-2010, Dr. Edmund Weitz. All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;;; modificatio... | 9,161 | Common Lisp | .lisp | 169 | 41.591716 | 102 | 0.607589 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 59748ecd532397160c98c61d28f2fb2d3defee6be5fe794088eb439cf14fde6b | 19,154 | [
341108,
460643
] |
19,155 | streams.lisp | Eggy115_Lisp/chunga-1.1.1/streams.lisp | ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CHUNGA; Base: 10 -*-
;;; $Header: /usr/local/cvsrep/chunga/streams.lisp,v 1.10 2008/05/24 03:06:22 edi Exp $
;;; Copyright (c) 2006-2010, Dr. Edmund Weitz. All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;;; modificat... | 6,228 | Common Lisp | .lisp | 117 | 44.91453 | 95 | 0.67883 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 2157d9316340004c0eddb013eba34ab531c3dfc1ea04920550996b4b5d174a62 | 19,155 | [
252614,
479275
] |
19,156 | packages.lisp | Eggy115_Lisp/chunga-1.1.1/packages.lisp | ;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*-
;;; $Header: /usr/local/cvsrep/chunga/packages.lisp,v 1.19 2008/05/24 18:38:30 edi Exp $
;;; Copyright (c) 2006-2010, Dr. Edmund Weitz. All rights reserved.
;;; Redistribution and use in source and binary forms, with or without
;;; modific... | 2,765 | Common Lisp | .lisp | 60 | 37.816667 | 89 | 0.656087 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | f77d855e4ca66d784c29d9507cbd8286ef0d8c57d98d7748b1d6de9f48832b6c | 19,156 | [
68811,
253645
] |
19,157 | package.lisp | Eggy115_Lisp/kgn/package.lisp | ;;;; package.lisp
(defpackage #:kgn
(:use #:cl #:alexandria #:myutils #:sqlite #:myutils
#:lw-grapher #:trivial-open-browser #:entities #:entity-uris
#:kbnlp #:CAPI)
(:export #:kgn))
| 201 | Common Lisp | .lisp | 6 | 29.5 | 64 | 0.632124 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | bb21b2feb9b4b7660ad7703d1100c66198efa413ce8c7823d9c1db687a7dbb33 | 19,157 | [
-1
] |
19,158 | nlp.lisp | Eggy115_Lisp/kgn/nlp.lisp | (in-package #:kgn)
(ql:quickload "entity-uris")
;; (entity-uris:pp-entities "Bill Clinton and George Bush went to Mexico") | 128 | Common Lisp | .lisp | 3 | 40 | 74 | 0.729508 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | af56cc85508d31500d2d0b6af6fda60dfa0ab4f1cb93d9686ac26c9f21df6d25 | 19,158 | [
-1
] |
19,159 | option-pane.lisp | Eggy115_Lisp/kgn/option-pane.lisp | (in-package :kgn)
;; options for:
;; 1. programming language to generate code snippets for
;; 2. colorization options (do we really need this??)
;; 3. show disk space used by caching
;; 4. option to remove local disk cache
(defvar *width-options-panel* 800)
(defun get-cache-disk-space ()
(let ((x (i... | 2,985 | Common Lisp | .lisp | 77 | 30.766234 | 139 | 0.602911 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 91bc0532dd7162dd40d5c1547578ad854161da9e13bc8eaf72d12bd14bb641ce | 19,159 | [
-1
] |
19,160 | matching-templates.lisp | Eggy115_Lisp/kgn/matching-templates.lisp | (ql:quickload :trivia)
;; who is <name>, <name>, etc. -> (entity_lookup EntityTypes.PERSON <name>)
;; synonyms: who, what, tell, show
(defun process-query (query)
(let ((ret '()))
;; who..
;; where...
(let ((entities (entity-uris:
(print "test trivia matching")))))))
(t... | 1,118 | Common Lisp | .lisp | 29 | 31.517241 | 79 | 0.519926 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | c2f658d3ca7a54d0f869b7c694daf3993e52ac68e20769e1a6ad4dd55f89cdcd | 19,160 | [
-1
] |
19,161 | utils.lisp | Eggy115_Lisp/kgn/utils.lisp | (in-package #:kgn)
(ql:quickload "sqlite")
;;; command line arguments:
(defun command-line-args ()
(or
#+SBCL *posix-argv*
#+LISPWORKS system:*line-arguments-list*
#+CMU extensions:*command-line-words*
nil))
;;; SqList caching for SPARQL queries:
(defvar *db-path* (pathname "~/.kgn_... | 2,539 | Common Lisp | .lisp | 66 | 30.984848 | 106 | 0.612178 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 7045cf6f625bd514f62f9e52096f63beddf94c3154320c3aae6068f46e7d8980 | 19,161 | [
-1
] |
19,162 | sparql.lisp | Eggy115_Lisp/kgn/sparql.lisp | (in-package #:kgn)
(ql:quickload "cl-json")
(ql:quickload "drakma")
(defun sparql-wikidata (query)
(let* ((cr (fetch-result-wikidata query))
(response
(or
cr
(replace-all
(replace-all
(uiop:run-program
(list
... | 3,141 | Common Lisp | .lisp | 90 | 21.755556 | 98 | 0.446382 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | b6c162f93592c8de5051d10b7eb0ac8cc2e5fe7db463dde59925cf768329e60e | 19,162 | [
-1
] |
19,163 | user-interface.lisp | Eggy115_Lisp/kgn/user-interface.lisp | (in-package #:kgn)
(use-package "CAPI")
(defun prompt-selection-list (a-list-of-choices)
;; '((:people (("11" "data1") ("22" "data2"))) (:places (("p1" "data3") ("p2" "data4") ("p3" "data5"))))
(format t "~%~%~%__***__ user-interface.lisp prompt-selection-list___***___ a-list-of-coices:~%~%") (pprint ... | 2,592 | Common Lisp | .lisp | 40 | 43.95 | 162 | 0.442958 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | d5a2d7b106f846c5790ea21ef961b0cfe03028163c4227c7f3e12d5798f2e55f | 19,163 | [
-1
] |
19,164 | colorize.lisp | Eggy115_Lisp/kgn/colorize.lisp | (in-package #:kgn)
(defun colorize-sparql (s &key (stream nil))
(let ((tokens (tokenize-string-keep-uri (replace-all s "@@" " @@ ")))
in-var)
(dolist (token tokens)
(if (> (length token) 0)
(if (or in-var (equal token "?"))
(capi::write-string-with-properties token ... | 1,818 | Common Lisp | .lisp | 33 | 43.939394 | 138 | 0.522791 | Eggy115/Lisp | 2 | 2 | 0 | GPL-3.0 | 9/19/2024, 11:28:00 AM (Europe/Amsterdam) | 9c1444026826c42d49c7c350fdfd2fc81b4d3761977154381e0e627e94a6b47a | 19,164 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.