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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13,229 | md5.lisp | ahungry_ahungry-fleece/contrib/sb-md5/md5.lisp | ;;;; This file implements The MD5 Message-Digest Algorithm, as defined in
;;;; RFC 1321 by R. Rivest, published April 1992.
;;;;
;;;; It was written by Pierre R. Mai, with copious input from the
;;;; cmucl-help mailing-list hosted at cons.org, in November 2001 and
;;;; has been placed into the public domain.
;;;;
;;;; ... | 22,037 | Common Lisp | .lisp | 463 | 39.479482 | 79 | 0.602527 | ahungry/ahungry-fleece | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | e69230c0f60d02ef3b92aea50b4e6fa63db9f4e690255c0f4b936e0c85e9f377 | 13,229 | [
-1
] |
13,230 | ahungry-fleece.asd | ahungry_ahungry-fleece/ahungry-fleece.asd | ;; Ahungry Fleece - A JSON (and friends) utility library.
;; Copyright (C) 2016 Matthew Carter <m@ahungry.com>
;;
;; This program 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 th... | 4,023 | Common Lisp | .asd | 104 | 28.971154 | 82 | 0.562468 | ahungry/ahungry-fleece | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 7926ab47e4955a477ca3651a3b6eeb85d5f7cbd8a514d2acd929c34bfa7db387 | 13,230 | [
-1
] |
13,231 | skeleton.asd | ahungry_ahungry-fleece/skel/skeleton.asd | ;; skeleton - A project template generated by ahungry-fleece
;; Copyright (C) 2016 Your Name <skeleton@example.com>
;;
;; This program 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 ... | 1,673 | Common Lisp | .asd | 49 | 29.44898 | 78 | 0.665842 | ahungry/ahungry-fleece | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 3b1e2ad59e9047c338f761aebfa74f30fc62f09411a3a401fc9d033efcd45364 | 13,231 | [
-1
] |
13,235 | build.sh | ahungry_ahungry-fleece/build.sh | #!/bin/sh
# Handle generating the makefile
autoconf
./configure
make && make test
| 83 | Common Lisp | .l | 5 | 15.4 | 32 | 0.792208 | ahungry/ahungry-fleece | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b583710030175bfcd48ea185be17f83ddda66b71e1cffe53ed181ba094158a50 | 13,235 | [
-1
] |
13,236 | Makefile.in | ahungry_ahungry-fleece/Makefile.in | LISP?= sbcl
AF_LIB_TESTY_COLORIZE?= yes
TFLAGS = --non-interactive \
--eval '(ql:quickload :ahungry-fleece)' \
--eval '(af.run.tests:main)'
CFLAGS = --disable-debugger \
--eval "(mapc \#'require '(sb-bsd-sockets sb-posix sb-introspect sb-cltl2 sb-rotate-byte sb-cover asdf))" \
--eval '(sb-ext:save-lisp-and-die "b... | 1,154 | Common Lisp | .l | 35 | 31.085714 | 108 | 0.679024 | ahungry/ahungry-fleece | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 5d9083a0a0cf5ddb8fa684dede5dc920ec2892dd86b332503964e7aceed78c0d | 13,236 | [
-1
] |
13,239 | Makefile.in | ahungry_ahungry-fleece/skel/Makefile.in | LISP?= sbcl
AF_LIB_TESTY_COLORIZE?= yes
TFLAGS = --non-interactive \
--eval '(ql:quickload :skeleton)' \
--eval '(skeleton.run.tests:main)'
CFLAGS = --disable-debugger \
--eval "(mapc \#'require '(sb-bsd-sockets sb-posix sb-introspect sb-cltl2 sb-rotate-byte sb-cover asdf))" \
--eval '(sb-ext:save-lisp-and-die "b... | 1,100 | Common Lisp | .l | 35 | 29.542857 | 108 | 0.672053 | ahungry/ahungry-fleece | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b9db80cc7374f14f269096a143d6907397ba6d49550bc766d768b41dee89bbb9 | 13,239 | [
-1
] |
13,242 | skeleton.ros | ahungry_ahungry-fleece/skel/roswell/skeleton.ros | #!/bin/sh
#|-*- mode:lisp -*-|#
#| A skelly project for Common Lisp dependant on SBCL, generated by Ahungry Fleece
exec ros -Q -L sbcl-bin -- $0 "$@"
|#
#-sbcl
(error "skeleton requires SBCL. Make sure it is installed with `ros install sbcl' and use it with `ros use sbcl'.")
(progn ;;init forms
(ql:quickload '(#:ske... | 502 | Common Lisp | .l | 15 | 31.733333 | 115 | 0.690871 | ahungry/ahungry-fleece | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 5bfcbc2a765a9d7340ee757ec5060c5457643f6a7ea5b5f0164f0d54b2032179 | 13,242 | [
-1
] |
13,249 | ahungry-fleece.ros | ahungry_ahungry-fleece/roswell/ahungry-fleece.ros | #!/bin/sh
#|-*- mode:lisp -*-|#
#| A utility library for Common Lisp dependant on SBCL
exec ros -Q -L sbcl-bin -m ahungry-fleece -- $0 "$@"
|#
#-sbcl
(error "ahungry-fleece requires SBCL. Make sure it is installed with `ros install sbcl' and use it with `ros use sbcl'.")
(progn ;;init forms
(ql:quickload '(#:ahungry... | 522 | Common Lisp | .l | 15 | 33.066667 | 121 | 0.695219 | ahungry/ahungry-fleece | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 7bb2937a095e84ccde3225fbb6e9930c13762864195f7eab64a016900ed5644e | 13,249 | [
-1
] |
13,251 | pets.yml | ahungry_ahungry-fleece/t/fixtures/pets.yml | # Taken from
# https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md
definitions:
Pet:
type: object
discriminator: petType
properties:
name:
type: string
petType:
type: string
required:
- name
- petType
Cat:
description: A representation o... | 1,001 | Common Lisp | .l | 45 | 15.133333 | 74 | 0.581322 | ahungry/ahungry-fleece | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 752a8e0c3999d423ea7ff89e7d4e431e35831265ed85c6dfad6fb18f616504e7 | 13,251 | [
-1
] |
13,275 | glist.lisp | bohonghuang_cl-glib/glib/glist.lisp | ;;;; glib/glist.lisp
;;;; Copyright (C) 2022-2023 Bohong Huang
;;;;
;;;; This program is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU Lesser General Public License as published by
;;;; the Free Software Foundation, either version 3 of the License, or
;;;; (at your option) any... | 5,872 | Common Lisp | .lisp | 136 | 40.470588 | 93 | 0.696975 | bohonghuang/cl-glib | 7 | 1 | 0 | LGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 72edf9026de0f783c1a11382536432e2c233b428c467154405a008881d1db2d3 | 13,275 | [
-1
] |
13,276 | package.lisp | bohonghuang_cl-glib/glib/package.lisp | ;;;; glib/package.lisp
;;;; Copyright (C) 2022 Bohong Huang
;;;;
;;;; This program is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU Lesser General Public License as published by
;;;; the Free Software Foundation, either version 3 of the License, or
;;;; (at your option) any la... | 3,689 | Common Lisp | .lisp | 76 | 40.013158 | 125 | 0.623991 | bohonghuang/cl-glib | 7 | 1 | 0 | LGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 7cdfa6a82064c81038faf91a095352f9559669c411248b1b72893b0b11964c56 | 13,276 | [
-1
] |
13,277 | package.lisp | bohonghuang_cl-glib/gobject/package.lisp | ;;;; gobject/package.lisp
;;;; Copyright (C) 2022-2023 Bohong Huang
;;;;
;;;; This program is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU Lesser General Public License as published by
;;;; the Free Software Foundation, either version 3 of the License, or
;;;; (at your option... | 1,112 | Common Lisp | .lisp | 25 | 42.84 | 80 | 0.730805 | bohonghuang/cl-glib | 7 | 1 | 0 | LGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | a0d4c4a2a02f0553702f918ab6700fac835f8cdb11c9e24700e0d1e113e816be | 13,277 | [
-1
] |
13,278 | package.lisp | bohonghuang_cl-glib/gio/package.lisp | ;;;; gio/package.lisp
;;;; Copyright (C) 2022-2023 Bohong Huang
;;;;
;;;; This program is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU Lesser General Public License as published by
;;;; the Free Software Foundation, either version 3 of the License, or
;;;; (at your option) an... | 3,014 | Common Lisp | .lisp | 45 | 46.222222 | 154 | 0.512673 | bohonghuang/cl-glib | 7 | 1 | 0 | LGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | e1509f2f1dded6b84e15995674dc1ad7771bbe17817f21e9f0609fc28342f373 | 13,278 | [
-1
] |
13,279 | cl-gobject.asd | bohonghuang_cl-glib/cl-gobject.asd | (defsystem cl-gobject
:version "1.0.0"
:author "Bohong Huang <1281299809@qq.com>"
:maintainer "Bohong Huang <1281299809@qq.com>"
:license "lgpl3"
:description "GObject bindings for Common Lisp."
:homepage "https://github.com/BohongHuang/cl-gobject"
:bug-tracker "https://github.com/BohongHuang/cl-gobject/i... | 796 | Common Lisp | .asd | 19 | 37.631579 | 72 | 0.70232 | bohonghuang/cl-glib | 7 | 1 | 0 | LGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 4fea1672d34e9331cd86a74d236c5ebfc71a61c3298009e782a437a18160a368 | 13,279 | [
-1
] |
13,280 | cl-glib.asd | bohonghuang_cl-glib/cl-glib.asd | (defsystem cl-glib
:version "1.0.0"
:author "Bohong Huang <1281299809@qq.com>"
:maintainer "Bohong Huang <1281299809@qq.com>"
:license "lgpl3"
:description "GLib bindings for Common Lisp."
:homepage "https://github.com/BohongHuang/cl-glib"
:bug-tracker "https://github.com/BohongHuang/cl-glib/issues"
:so... | 849 | Common Lisp | .asd | 20 | 37.6 | 70 | 0.681159 | bohonghuang/cl-glib | 7 | 1 | 0 | LGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 7db57c34ee06a17a0b9a62552966f0db2a9d65a9019f743b9991b102611cd20a | 13,280 | [
-1
] |
13,281 | cl-gio.asd | bohonghuang_cl-glib/cl-gio.asd | (defsystem cl-gio
:version "1.0.0"
:author "Bohong Huang <1281299809@qq.com>"
:maintainer "Bohong Huang <1281299809@qq.com>"
:license "lgpl3"
:description "GIO bindings for Common Lisp."
:homepage "https://github.com/BohongHuang/cl-glib"
:bug-tracker "https://github.com/BohongHuang/cl-glib/issues"
:sour... | 771 | Common Lisp | .asd | 19 | 36.315789 | 70 | 0.69241 | bohonghuang/cl-glib | 7 | 1 | 0 | LGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | ca1336d99aae94d4a3233599b1683e94236a349e2605b28f369a521726897049 | 13,281 | [
-1
] |
13,304 | cataclysm.lisp | jstoddard_Cataclysm/cataclysm.lisp | ;;;;---------------------------------------------------------------------------
;;;; cataclysm.lisp
;;;; An adventure game based in a dystopian future
;;;; Copyright (C) 2011 Jeremiah Stoddard
;;;;
;;;; This program is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU Gener... | 20,569 | Common Lisp | .lisp | 458 | 39.71179 | 81 | 0.631141 | jstoddard/Cataclysm | 7 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 088fa891c598e3dd87dadf132d1548d89edb33018746175b819b7c76f9236e6c | 13,304 | [
-1
] |
13,305 | cataclysm.asd | jstoddard_Cataclysm/cataclysm.asd | ;;;; cataclysm.asd
(asdf:defsystem #:cataclysm
:serial t
:depends-on (#:lispbuilder-sdl)
:components ((:file "package")
(:file "cataclysm")))
| 165 | Common Lisp | .asd | 6 | 22.666667 | 36 | 0.624204 | jstoddard/Cataclysm | 7 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | d972806d8e5d27f4164e2d4cc118462ff9d96c2cd8fcd97fdaa7adb85ed00f04 | 13,305 | [
-1
] |
13,311 | overworld.map | jstoddard_Cataclysm/overworld.map | ;;;; Hey, Emacs! This is a -*- lisp -*- file!
(in-package #:cataclysm)
(defvar *key-location* nil)
(defvar *portal-location* nil)
(defvar *crown-location* nil)
(defvar *current-dungeon* nil)
(defvar *current-floor* 0)
(defparameter *from* 'above)
(unless *crown-location*
(setf *random-state* (make-random-state t))
... | 9,988 | Common Lisp | .l | 294 | 31.986395 | 103 | 0.636072 | jstoddard/Cataclysm | 7 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 68a4ad1588b3e64744c8ce07b6098d3da66229e568a9d49c4d3701d58e0d94ef | 13,311 | [
-1
] |
13,326 | example1.lisp | theothornhill_gql/example/example1.lisp | (eval-when (:compile-toplevel :load-toplevel :execute)
(ql:quickload '(:gql :cl-json :hunchentoot) :silent t))
(defpackage :gql-example1
(:use :cl :gql))
(in-package :gql-example1)
(defparameter *fields*
(list
(field :name "name"
:type *string*
:resolver (constantly "Theodor Th... | 1,024 | Common Lisp | .lisp | 25 | 34.88 | 71 | 0.639394 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 3492e1b3bbdcb13af9f330970c93861442a1fea10e88a916bdc050ed9672d0eb | 13,326 | [
-1
] |
13,327 | example2.lisp | theothornhill_gql/example/example2.lisp | (eval-when (:compile-toplevel :load-toplevel :execute)
(ql:quickload '(:gql :cl-json) :silent t))
(defpackage :gql-example2
(:use :cl :gql))
(in-package #:gql-example2)
(defclass pet (gql-object)
((name :initarg :name :accessor name)))
(defclass dog (pet)
((owner :initarg :owner :accessor owner)))
(defclas... | 2,265 | Common Lisp | .lisp | 60 | 30.916667 | 90 | 0.561387 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | fc41a1c447647bc5e6044f10acd52127a5e106ebaeceb5e4cbf21aa7f49f4c8d | 13,327 | [
-1
] |
13,328 | parser-utils.lisp | theothornhill_gql/src/parser-utils.lisp | (in-package :gql)
(defgeneric parse (node-type &key &allow-other-keys)
(:method :before (node-type &key &allow-other-keys)
(when *debug-print*
(with-token
(with-accessors ((value value) (kind kind)) *token*
(format t "; value: ~Vakind: ~Vanode-type: ~Va~%" 10 value 10 kind 10 node-type)))... | 7,522 | Common Lisp | .lisp | 181 | 35.845304 | 94 | 0.65362 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 7ede58aafc40c532d5e30df812023f0c16d9fff3ff7c8fc7008d3d536148de1f | 13,328 | [
-1
] |
13,329 | lexer.lisp | theothornhill_gql/src/lexer.lisp | (in-package #:gql)
(defclass* lexer
source
last-token
token
line
line-start)
(defun make-lexer (source)
"Convenience function to make a GraphQL lexer.
SOURCE is a string representation of a GraphQL document."
(let ((start-of-file (make-token 'sof 0 0 0 0 nil nil)))
(make-instance 'lexer
:source... | 12,470 | Common Lisp | .lisp | 318 | 29.091195 | 165 | 0.518201 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | a5c2edcbf43163e74cb0846bd9da8a3853e1f52acbc016d22e6845bd42750410 | 13,329 | [
-1
] |
13,330 | package.lisp | theothornhill_gql/src/package.lisp | ;;;; package.lisp
(defpackage #:gql
(:use #:cl)
(:export
#:gql
#:build-schema
#:build-document
#:generate
#:with-context
#:execute
#:resolve
#:bool
#:true
#:false
#:gql-object
#:make-name
#:named
#:list-type
#:non-null-type
#:field
#:object
#:interface
#:enu... | 724 | Common Lisp | .lisp | 51 | 10.294118 | 22 | 0.553731 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 8be3ef0f97d11c7bebdebcf9e4ffea0ebef9ca821d02aa425b6d73bb71fb2124 | 13,330 | [
-1
] |
13,331 | debugger-utils.lisp | theothornhill_gql/src/debugger-utils.lisp | (in-package #:gql)
(defmethod print-object ((obj operation-definition) stream)
(print-unreadable-object (obj stream :type t :identity t)
(princ (operation-type obj) stream)))
(defmethod print-object ((obj field-definition) stream)
(print-unreadable-object (obj stream :type t :identity t)
(princ (nameof ob... | 1,257 | Common Lisp | .lisp | 25 | 46.92 | 64 | 0.733006 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 6c250404a36ea6e1f79c4555f25044d109209a30c75aac0665958efc87262974 | 13,331 | [
-1
] |
13,332 | rules.lisp | theothornhill_gql/src/rules.lisp | (in-package :gql)
(defun every-definition-executable-p (definitions)
;; https://spec.graphql.org/draft/#sec-Executable-Definitions
(loop
:for definition :in definitions
:unless (or (eq (kind definition) 'operation-definition)
(eq (kind definition) 'fragment-definition))
:do (push-erro... | 2,295 | Common Lisp | .lisp | 47 | 40.361702 | 122 | 0.653743 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 9aff19ec50bf352ebb520a41f34620374537bbb60a299dcc9fd7b8914c0af0b8 | 13,332 | [
-1
] |
13,333 | types.lisp | theothornhill_gql/src/types.lisp | (in-package #:gql)
(defun built-in-scalar-p (scalar)
(member scalar '("Int" "Float" "String" "Boolean" "ID") :test #'string=))
(deftype built-in-scalar ()
'(and string (satisfies built-in-scalar-p)))
(deftype wrapper-type ()
'(member non-null-type list-type))
(deftype input-types ()
'(member
scalar-type... | 2,623 | Common Lisp | .lisp | 77 | 26.896104 | 75 | 0.606888 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | cef1548cabfe00065140cee43a3531cc8571812202deff567ebb0f47dbd45b66 | 13,333 | [
-1
] |
13,334 | specials.lisp | theothornhill_gql/src/specials.lisp | (in-package #:gql)
(defvar *parser* nil
"The current parser.
Bind dynamically in the top level constructs. Other functions rely on this
being set to an instance of GQL:PARSER.")
(defvar *token* nil
"The current token.
Bind dynamically in the top level constructs. Other functions rely on this
being set to an i... | 1,547 | Common Lisp | .lisp | 33 | 44.333333 | 81 | 0.762317 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | a41d603852e0a47c507e0dc4377a75570ede2ca4e01f4ae39898dc25f6e55dfe | 13,334 | [
-1
] |
13,335 | utils.lisp | theothornhill_gql/src/utils.lisp | (in-package :gql)
(defun slurp (file)
(uiop:read-file-string file))
(defun skippable-field-p (directives)
(some (lambda (directive)
(with-accessors ((name name) (arguments arguments)) directive
(and (or (string= (name name) "skip")
(string= (name name) "include"))
... | 4,319 | Common Lisp | .lisp | 116 | 28.008621 | 90 | 0.56962 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b39b694407b974027618686b4f4f69664a7af84ec54b27454440183afc1546ce | 13,335 | [
-1
] |
13,336 | execution.lisp | theothornhill_gql/src/execution.lisp | (in-package #:gql)
(declaim (optimize (debug 3)))
(defun fragment-type-applies-p (object-type fragment-type)
;; TODO: https://spec.graphql.org/draft/#DoesFragmentTypeApply()
(let ((type-definition (gethash object-type (type-map (schema *context*)))))
(typecase type-definition
(object-type-definition
... | 19,063 | Common Lisp | .lisp | 355 | 42.307042 | 141 | 0.612943 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 8fce5a93b9eed36d8922224f80210dda45245a02d3b7591b917ec2270e2b3571 | 13,336 | [
-1
] |
13,337 | language.lisp | theothornhill_gql/src/language.lisp | (in-package :gql)
(defclass* parser
lexer)
(defun make-parser (source)
(make-instance 'parser :lexer (make-lexer source)))
(defclass* location
start
end
start-token
end-token
source)
(defclass* ast-node
kind
location
resolver)
(defgql name
:node (defnode name name)
:parser (defparser name (... | 21,546 | Common Lisp | .lisp | 477 | 36.542977 | 104 | 0.632401 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | c87b53ce64b017838014ac0d658848a08e6ce1dd450df60c7889a7a44546aaf0 | 13,337 | [
-1
] |
13,338 | conditions.lisp | theothornhill_gql/src/conditions.lisp | (in-package #:gql)
(define-condition gql-condition (condition) ()
(:documentation "Superclass for all conditions related to gql."))
(define-condition gql-error (gql-condition error) ()
(:documentation "Superclass for all errors related to gql"))
(define-condition gql-simple-error (gql-condition simple-condition)... | 1,010 | Common Lisp | .lisp | 19 | 49.263158 | 73 | 0.75813 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 23938c9b3efac059b83a8fa53ddfeca2ecbb63128bfebb084567cc0ee9343844 | 13,338 | [
-1
] |
13,339 | introspection.lisp | theothornhill_gql/src/introspection.lisp | (in-package :gql)
(defobject |__Schema|
"A GraphQL Schema defines the capabilities of a GraphQL server."
((|description| :description "A description of the current schema."
:gql-type *string*
:resolver (lambda () (description (schema *context*))))
(|types| :description "A lis... | 6,067 | Common Lisp | .lisp | 136 | 33.566176 | 143 | 0.55 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | eaac1f8853bb0e1952421f903871592999c00db066afaff818aaf856e15f1029 | 13,339 | [
-1
] |
13,340 | mop.lisp | theothornhill_gql/src/mop.lisp | (in-package #:gql)
(defclass schema ()
((%type-map :initarg :type-map :accessor type-map)
(%directives :initarg :directives :accessor directives)
(%query-type :initarg :query-type :accessor query-type)
(%mutation-type :initarg :mutation-type :accessor mutation-type)
(%subscription-type :initarg :subscrip... | 6,805 | Common Lisp | .lisp | 154 | 35.948052 | 79 | 0.634798 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | fec3c2c29f1b2ba5f71cf11c8afd095138111eb9bab196270fe688102bb1a7c3 | 13,340 | [
-1
] |
13,341 | gql.lisp | theothornhill_gql/src/gql.lisp | (in-package #:gql)
(defgeneric gql (input &optional debug)
(:method :before (input &optional debug)
(setf *debug-print* debug))
(:method ((f pathname) &optional debug)
(declare (ignorable debug))
(let* ((str (slurp f))
(*parser* (make-parser str)))
(values str (parse 'document))))
(:... | 1,328 | Common Lisp | .lisp | 36 | 32.611111 | 56 | 0.652444 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b7baa52fe59afb59667f6b3ef37a53ab764509bd77ba046611cd665005087f79 | 13,341 | [
-1
] |
13,342 | lexer-tests.lisp | theothornhill_gql/t/lexer-tests.lisp | (in-package #:gql-tests)
(deftest lexer
(testing "Disallows uncommon control characters"
(ok (signals (test-lexer-one-step (format nil "~c" #\U+0007))
'gql::gql-simple-error)))
(testing "Accepts BOM headers"
(check-token :str (format nil "~c foo" #\U+FEFF)
:start 2 :end 5
... | 8,593 | Common Lisp | .lisp | 193 | 32.082902 | 84 | 0.467833 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 2636ac217505685909409c82fa44287b91cd403c3f4ae408c8694a2e4fab4674 | 13,342 | [
-1
] |
13,343 | execution-tests.lisp | theothornhill_gql/t/execution-tests.lisp | (in-package #:gql-tests)
(deftest execution
(testing "collect-fields returns the correct fields"
(let* ((definitions (gql::definitions
(build-schema "{ a { subfield1 } ...ExampleFragment } fragment ExampleFragment on Query { a { subfield2 } b }"))))
(defobject |Query| "Query" nil)... | 14,567 | Common Lisp | .lisp | 244 | 47.221311 | 227 | 0.549083 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 21ef32e60e48adcfffa8fd327b8d1de1adf5aec132197a9c37bec8980a5890fc | 13,343 | [
-1
] |
13,344 | utils.lisp | theothornhill_gql/t/utils.lisp | (in-package #:gql-tests)
(defun test-lexer-one-step (str)
(gql::advance (gql::make-lexer str)))
(defun test-lexer-two-steps (str)
(let ((lexer (gql::make-lexer str)))
(gql::advance lexer)
(gql::advance lexer)))
(defun check-token (&key
str
(kind 'gql::name)
... | 1,867 | Common Lisp | .lisp | 40 | 33.1 | 107 | 0.502212 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 1cb328e41d3c41c7f15dd3de31e3d2aa046bb73aa45909d2bae0a68a87f33dd9 | 13,344 | [
-1
] |
13,345 | type-system-tests.lisp | theothornhill_gql/t/type-system-tests.lisp | (in-package #:gql-tests)
(deftest input-output-types
(testing "scalar"
(let* ((definitions (gql::definitions (build-schema (asdf:system-relative-pathname 'gql-tests #p"t/test-files/validation-schema.graphql")))))
(defschema (:query (find-if (lambda (x) (string= (gql::nameof x) "Query")) definitions)
... | 2,979 | Common Lisp | .lisp | 44 | 58.704545 | 145 | 0.610372 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 956c4a55ac222762b4fd6e5bde286a7649b4aa9d41a4cd77ca96f040592519fe | 13,345 | [
-1
] |
13,346 | parser-tests.lisp | theothornhill_gql/t/parser-tests.lisp | (in-package #:gql-tests)
(deftest parser
(testing "Detects EOF"
(signals-with-check "{" gql::gql-simple-error "Expected NAME, found EOF at line: 1, column: 2"))
(testing "Returns OK"
(ok (gql "query withFragments {
user(id: 4) {
friends(first: 10) {
...friendFields
}
mutualFriends(first... | 5,071 | Common Lisp | .lisp | 228 | 18.298246 | 106 | 0.603391 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 93c4779d875277e6b5512f965c3b1f4b581f5fe76ef1d1146cfbc03533cb5f3a | 13,346 | [
-1
] |
13,347 | validation-tests.lisp | theothornhill_gql/t/validation-tests.lisp | (in-package #:gql-tests)
;; TODO: Redo the validation. We aren't there yet
;; (deftest validation
;; (testing "Only allows ExecutableDefintition in a Document"
;; ;; https://spec.graphql.org/draft/#sec-Executable-Definitions
;; (ok (string= "[{\"message\":\"Each definition must be executable.\",\"location... | 3,835 | Common Lisp | .lisp | 31 | 122.612903 | 318 | 0.602999 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | ffef7544b42a20942121ccb448a30c682353af856e2b1e1ff40694fc5d3217cf | 13,347 | [
-1
] |
13,348 | introspection-tests.lisp | theothornhill_gql/t/introspection-tests.lisp | (in-package #:gql-tests)
(deftest introspection-test
(testing "Getting __typename"
(defclass pet (gql-object)
((name :initarg :name :accessor name)))
(defclass dog (pet)
((owner :initarg :owner :accessor owner)
(nickname :initarg :nickname :accessor nickname)))
(defclass cat (pet)
... | 3,233 | Common Lisp | .lisp | 63 | 35.904762 | 155 | 0.467701 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 01fb89d6d27cdc75b9a36f95635c8654bfd124e0127a23f8fc0b0798cd968012 | 13,348 | [
-1
] |
13,349 | starwars-data.lisp | theothornhill_gql/t/starwars/starwars-data.lisp | (in-package #:gql-tests)
;; These are types which correspond to the schema.
;; They represent the shape of the data visited during field resolution.
(defclass swcharacter (gql-object)
;; type-name covered in gql-object
((id :initarg :id :accessor id)
(name :initarg :name :accessor name)
(friends :initarg :f... | 8,960 | Common Lisp | .lisp | 250 | 27.156 | 134 | 0.561903 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b1336ad021e5bfb480bd27af83693a8c657efa07f93a7f894149de62ed717288 | 13,349 | [
-1
] |
13,350 | gql.asd | theothornhill_gql/gql.asd | (asdf:defsystem #:gql
:description "Describe gql here"
:author "Theodor Thornhill <theo@thornhill.no>"
:license "AGPLv3"
:version "0.6.0"
:serial t
:depends-on (:cl-ppcre)
:components ((:module "src"
:components
((:file "package")
(:file "specials")
... | 746 | Common Lisp | .asd | 23 | 19.826087 | 49 | 0.435685 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 8bd4b897c0002feefb1e0447158e0630ac2f51784490b7e6dc8c7957c13461e3 | 13,350 | [
-1
] |
13,351 | gql-tests.asd | theothornhill_gql/gql-tests.asd | (asdf:defsystem #:gql-tests
:description "Tests for gql"
:author "Theodor Thornhill <theo@thornhill.no>"
:license "AGPLv3"
:version "0.6.0"
:depends-on (:rove :gql :cl-json)
:components ((:module "t"
:components
((:file "package")
(:file "utils")
... | 755 | Common Lisp | .asd | 20 | 26.15 | 77 | 0.50068 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 2616e9686e646623ac888f6a0aad6f2d794b791d6150f673dbab4e1a8b0be969 | 13,351 | [
-1
] |
13,353 | .build.yml | theothornhill_gql/.build.yml | image: archlinux
packages:
- sbcl
sources:
- https://git.sr.ht/~theo/lisp-ci
- https://git.sr.ht/~theo/gql
tasks:
- setup: |
./lisp-ci/lisp-ci.sh
mv ~/gql ~/quicklisp/local-projects/
cd ~/quicklisp/local-projects/gql
- test: |
cd ~/quicklisp/local-projects/gql
./test.sh
| 311 | Common Lisp | .l | 14 | 18.357143 | 42 | 0.636364 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 56449baeb96b164342543922c169933ecb07d32bf5f462490e3f3550e132cfca | 13,353 | [
-1
] |
13,356 | example2.md | theothornhill_gql/wiki/examples/example2.md | # Example 2
Let's try something a little more complicated. We do want to be able to define
and use nested structures, such as the ones defined in the
[spec](https://spec.graphql.org/draft/#example-19f2a). So let's use this.
The parts we will be exploring now are accessing a `Dog`, and getting the
properties from th... | 4,521 | Common Lisp | .l | 136 | 28.007353 | 115 | 0.629043 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 76998b5a9c966a81b6beebe63f7d86dbf83cc0a6f9728f732621468b1d51861d | 13,356 | [
-1
] |
13,357 | example1.md | theothornhill_gql/wiki/examples/example1.md | # Example1.md
Ok, so let's see how we can get something working using this framework. We'll
start by adding a couple of quickloads, just for good measure.
```lisp
(eval-when (:compile-toplevel :load-toplevel :execute)
(ql:quickload '(:gql :cl-json :hunchentoot) :silent t))
```
Then, we need to define our package ... | 3,334 | Common Lisp | .l | 82 | 37.731707 | 84 | 0.718711 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 487f428330b0e1537546f70d8f901ca3908b7c040284ec859daf591ef982678c | 13,357 | [
-1
] |
13,381 | example-schema.txt | theothornhill_gql/t/test-files/example-schema.txt | enum DogCommand { SIT, DOWN, HEEL }
type Dog implements Pet {
name: String!
nickname: String
barkVolume: Int
doesKnowCommand(dogCommand: DogCommand!): Boolean!
isHousetrained(atOtherHomes: Boolean): Boolean!
owner: Human
}
interface Sentient {
name: String!
}
interface Pet {
name: String!
}
type Alien i... | 1,393 | Common Lisp | .l | 55 | 23.236364 | 90 | 0.781016 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 34b1b0929dcfd41c877f5558e1ca1a4e598b0d399e10722db9bdaf6b7b2c2cb6 | 13,381 | [
-1
] |
13,382 | validation-schema.graphql | theothornhill_gql/t/test-files/validation-schema.graphql | # https://spec.graphql.org/draft/#example-19f2a
type Query {
dog: Dog
}
enum DogCommand {
SIT
DOWN
HEEL
}
type Dog implements Pet {
name: String!
nickname: String
barkVolume: Int
doesKnowCommand(dogCommand: DogCommand!): Boolean!
isHouseTrained(atOtherHomes: Boolean): Boolean!
owner: Human
}
inte... | 787 | Common Lisp | .l | 43 | 16.116279 | 52 | 0.757823 | theothornhill/gql | 7 | 1 | 0 | AGPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | fe7d86c10020c6dd2472307806605e91480eac9ffc42ed5d185b3f947a600dbf | 13,382 | [
-1
] |
13,398 | model.lisp | bjornmossa_cl-fasta-to-notes/model.lisp | (in-package :cl-user)
(defpackage #:fasta-notes.model
(:use #:cl)
(:export :codon-note
:make-codon-note
:codon-note-dur
:codon-note-degree
:codon-note-is-pause))
(in-package #:fasta-notes.model)
(defun dur-p (dur)
(or
(typep dur 'integer)
(typep dur 'ratio)))
... | 460 | Common Lisp | .lisp | 19 | 19.578947 | 33 | 0.626147 | bjornmossa/cl-fasta-to-notes | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | a1271d0a89df2425546d4a506e7bfa06b3ad184f88b9eca68ff8db44b3690253 | 13,398 | [
-1
] |
13,399 | readline.lisp | bjornmossa_cl-fasta-to-notes/readline.lisp | (in-package :cl-user)
(defpackage #:fasta-notes.readline
(:use #:cl))
(in-package :fasta-notes.readline)
(replic.completion:functions-to-commands :replic.base)
(replic.completion:functions-to-commands :fasta-notes.user)
| 225 | Common Lisp | .lisp | 6 | 35.666667 | 59 | 0.782407 | bjornmossa/cl-fasta-to-notes | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 38447b0c097141383dedf9c382ef0ceb7466ef50841a3c04bbeb7a198a4e5a07 | 13,399 | [
-1
] |
13,400 | fasta-notes.lisp | bjornmossa_cl-fasta-to-notes/fasta-notes.lisp | ;;;; fasta-notes.lisp
(defpackage #:fasta-notes
(:use #:cl
#:fasta-notes.model)
(:export #:create-codon-models))
(in-package #:fasta-notes)
(defun nucleotide-list ()
'(A G T C))
(defun nucleotide-values ()
'(0 1 2 3))
(defun get-nucleotide-assocs ()
(pairlis (nucleotide-list) (nucleotide-values))... | 1,294 | Common Lisp | .lisp | 37 | 29.108108 | 92 | 0.59759 | bjornmossa/cl-fasta-to-notes | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 9895bc450321d625546f330674012e7a1f6f53084adcae2260541125426f36d3 | 13,400 | [
-1
] |
13,401 | input.lisp | bjornmossa_cl-fasta-to-notes/input.lisp | (in-package :cl-user)
(defpackage #:fasta-notes.input
(:use #:cl
#:fasta-notes.utils)
(:export :fasta-file
:fasta-file-header
:fasta-file-content
:read-fasta-file))
(in-package #:fasta-notes.input)
(defstruct fasta-file
(header "" :type string)
(content nil :type list... | 1,357 | Common Lisp | .lisp | 39 | 28.923077 | 97 | 0.618321 | bjornmossa/cl-fasta-to-notes | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 7fbe712b851b7125caf02636f70ccd06e2d833b521c781791e85c82e5bf03b20 | 13,401 | [
-1
] |
13,402 | fasta-notes.asd | bjornmossa_cl-fasta-to-notes/fasta-notes.asd | ;;;; fasta-notes.asd
(asdf:defsystem #:fasta-notes
:description "Fasta-notes is a Common lisp tool for DNA data sonification"
:author "bjornmossa"
:license "GNU GPLv3"
:version "0.3.0"
:serial t
:depends-on (#:cl-ppcre
#:replic)
:components ((:file "utils")
(:file "model")
... | 590 | Common Lisp | .asd | 19 | 23.421053 | 76 | 0.564912 | bjornmossa/cl-fasta-to-notes | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 3b88b4901fe16ac099781d79b8634efa6776453a903fd844bee9871b608bd9cf | 13,402 | [
-1
] |
13,407 | Makefile | bjornmossa_cl-fasta-to-notes/Makefile | .PHONY: build
LISP?=sbcl
build:
$(LISP) --non-interactive \
--load fasta-notes.asd \
--eval '(ql:quickload :fasta-notes)' \
--eval '(asdf:make :fasta-notes)'
| 190 | Common Lisp | .l | 7 | 21.571429 | 48 | 0.576923 | bjornmossa/cl-fasta-to-notes | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 29d6d6d653644d1d111eb1323c853528c13a6fc27253d633dbc4d7a38909db6a | 13,407 | [
-1
] |
13,409 | build.yml | bjornmossa_cl-fasta-to-notes/.github/workflows/build.yml | # This is a basic workflow to help you get started with Actions
name: build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# A workflow run is made up of one or mo... | 1,847 | Common Lisp | .l | 39 | 41.538462 | 311 | 0.6991 | bjornmossa/cl-fasta-to-notes | 7 | 0 | 2 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 9510eb011eb4b9d9d7c2d196b9482a7f3be53ddaa87fb319cd3d2bd9d84e8fdb | 13,409 | [
-1
] |
13,424 | cl.lisp | g000001_srfi-46/cl.lisp | (cl:in-package "https://github.com/g000001/srfi-46#internals")
(in-readtable :quasiquote)
(cl:defparameter *cl-define-syntax-mstore* (null-mstore))
(cl:defmacro define-syntax (cl:&whole whole name cl:&body body)
(cl:declare (cl:ignore body))
#+lispworks (cl:declare (hcl:lambda-list name cl:&body body))
`(cl:eva... | 1,213 | Common Lisp | .lisp | 28 | 36.821429 | 64 | 0.647159 | g000001/srfi-46 | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 4be55ce7a3855cfda6793e2415c37817f7126d05b8ad936174bc3269496de1c4 | 13,424 | [
-1
] |
13,425 | package.lisp | g000001_srfi-46/package.lisp | ;;;; package.lisp
(cl:in-package :cl-user)
(defpackage "https://github.com/g000001/srfi-46"
(:use)
(:import-from #:cl #:***)
(:export #:define-syntax
#:syntax-rules
#:let-syntax
#:letrec-syntax
#:***))
(defpackage "https://github.com/g000001/srfi-46#internals"
(:us... | 837 | Common Lisp | .lisp | 26 | 25.923077 | 63 | 0.596535 | g000001/srfi-46 | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 7f1c730af8cc002cde5691a9ccc91b39b2139c563ca9e12e685664e3b17be05a | 13,425 | [
-1
] |
13,426 | srfi-46.lisp | g000001_srfi-46/srfi-46.lisp | ;;;; srfi-46.lisp
(cl:in-package "https://github.com/g000001/srfi-46#internals")
(in-readtable :quasiquote)
;; alexpander.scm: a macro expander for scheme.
;; [RCS tag expunged: this is alexpander 1.58 from petrofsky.org/src]
;; Copyright 2002-2004 Al Petrofsky <alexpander@petrofsky.org>
;; You may redistribute and... | 87,691 | Common Lisp | .lisp | 1,814 | 38.984013 | 113 | 0.556397 | g000001/srfi-46 | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 950ee5cf05f4c3f4244c4de58e825f9f7dcadd3bf5fc0b6b992a1a39c63adeb4 | 13,426 | [
-1
] |
13,427 | test.lisp | g000001_srfi-46/test.lisp | (cl:in-package "https://github.com/g000001/srfi-46#internals")
(in-readtable :quasiquote)
(5am:def-suite srfi-46)
(5am:in-suite srfi-46)
(define-syntax isqu
(syntax-rules ()
((_ x y)
(5am:is (equal? x y)))))
(define-syntax isquq
(syntax-rules ()
((_ x y)
(isqu x 'y))))
(define-syntax isqp
(... | 7,060 | Common Lisp | .lisp | 163 | 27.312883 | 83 | 0.418534 | g000001/srfi-46 | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | c6242689cf04ad6f59d96d4c75ddeab3a36034d03c6b14ffe1d4c37cd9b96b91 | 13,427 | [
-1
] |
13,428 | srfi-46.asd | g000001_srfi-46/srfi-46.asd | ;;;; srfi-46.asd -*- Mode: Lisp;-*-
(cl:in-package :asdf)
(defsystem :srfi-46
:version "20200129"
:description
"SRFI 46 for Common Lisp: Basic Syntax-rules Extensions"
:long-description
"SRFI 46 for Common Lisp: Basic Syntax-rules Extensions
https://srfi.schemers.org/srfi-46"
:author "Taylor Campbell"
:... | 2,208 | Common Lisp | .asd | 64 | 25.609375 | 73 | 0.55358 | g000001/srfi-46 | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | d3ce3f58cc4381947dd2eb908727872c5e92d099f2ba4239d4aac353cc6a12f1 | 13,428 | [
-1
] |
13,448 | geometric-object.lisp | grapesmoker_cl-geom/objects/geometric-object.lisp | (in-package :geom)
;; A generic class that all geometric objects are descended from. The class defines some
;; generic methods that can be used on it. Any new generic definitions should go here.
(defclass geometric-object ()
((is-valid :accessor geom-is-valid?
:initform nil)))
(defgeneric pprint-geom (obj)
... | 4,018 | Common Lisp | .lisp | 75 | 50.36 | 134 | 0.751724 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 613efed742ef084ea7062c954d9d6c6cf55e51f72a3852a41c41141e249001b3 | 13,448 | [
-1
] |
13,449 | matrix.lisp | grapesmoker_cl-geom/objects/matrix.lisp | (in-package :geom)
;; General `nice' matrix class that does things like check validity for you before
;; you use the matrix and provides lots of nice functionality
;; Are matrices really geometric objects? Is anything, like, real, man?!
(defclass matrix (geometric-object)
;; the underlying array representation
... | 7,896 | Common Lisp | .lisp | 260 | 25.234615 | 114 | 0.596184 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | d381fa833dd3b5df63a581183af303f2f994caf323e830d20fb0baa5317743b8 | 13,449 | [
-1
] |
13,450 | conditions.lisp | grapesmoker_cl-geom/objects/conditions.lisp | (in-package :geom)
(define-condition geometry-error (error)
((error-text :initarg :error-text
:accessor geometry-error-text)
(error-log :initarg :error-log
:accessor geometry-error-log)
(geometry-object :initarg :geometry-object
:accessor geometry-error-object
:initform nil))
(:re... | 2,209 | Common Lisp | .lisp | 49 | 40.040816 | 109 | 0.712756 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 7edd913f8cd270db1a125c197a957f3e6681f928a272804f50b83b8048776cd3 | 13,450 | [
-1
] |
13,451 | point.lisp | grapesmoker_cl-geom/objects/point.lisp | (in-package :geom)
(defclass point (geometric-object)
((x :accessor point-x
:initform nil
:initarg :x)
(y :accessor point-y
:initform nil
:initarg :y)
(z :accessor point-z
:initform nil
:initarg :z)))
(defun make-point (&optional x y z)
"A quick-and-dirty constructor for ... | 5,951 | Common Lisp | .lisp | 171 | 30.093567 | 103 | 0.604072 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b46663446b39f696d479878a0d1298b729f2ce18aeeee27e5dc4c6d3d96bb522 | 13,451 | [
-1
] |
13,452 | geometry.lisp | grapesmoker_cl-geom/objects/geometry.lisp | ;; some generic definitions of geometric objects and functions
;; that do stuff to them
(in-package :geom)
(defgeneric distance (obj1 obj2)
(:documentation "The distance between two geometric objects, however defined."))
(defgeneric scale (obj scale-factor)
(:documentation "Scales a geometric object by a s... | 4,240 | Common Lisp | .lisp | 110 | 35.181818 | 85 | 0.627618 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 5f1eb1e4182d1c173604d42bb9cec70c645c5cc80a618d574af2f323db8f2fcb | 13,452 | [
-1
] |
13,453 | test.lisp | grapesmoker_cl-geom/objects/test.lisp | (in-package :geom)
(defun make-random-point ()
(make-point (random 10.0)
(random 10.0)
(random 10.0)))
(defun make-random-points (num-points)
(loop
for i from 1 to num-points
collect
(make-random-point) into points
finally (return points)))
(defun time-random-rotations (num-ra... | 945 | Common Lisp | .lisp | 30 | 27.233333 | 79 | 0.646476 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 776af3430e9c886d2bed939ec51a802ec51453114afd17de13a6612b6fc348eb | 13,453 | [
-1
] |
13,454 | icp.lisp | grapesmoker_cl-geom/algorithms/icp.lisp | (in-package :geom)
(defun point-pairings (data-points model-points)
"Generate all possible pairings of data points and model points. Basically the Cartesian product."
(loop
for d in data-points
append
(loop
for m in model-points
collect `(,d ,m))))
(defun multipass-icp (data-points model-po... | 16,016 | Common Lisp | .lisp | 390 | 34.841026 | 127 | 0.632137 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b3fb5ca1785df04afdabe7a9988519a2d194a73a488f70926e7d8c48d03a8e5f | 13,454 | [
-1
] |
13,455 | nelder-mead.lisp | grapesmoker_cl-geom/algorithms/nelder-mead.lisp | (in-package :geom)
;; An implementation of the Nelder-Mead simplex optimization algorithm
(defun nelder-mead-2d (f-to-minimize starting-point step-size &optional (epsilon 1e-3))
"An implementation of the Nelder-Mead function minimization method in 2D."
(declare (optimize (debug 3)))
(the cs::point starting-poin... | 8,021 | Common Lisp | .lisp | 117 | 43.529915 | 118 | 0.454695 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 8215f99e6de05a780ea3048d35e654fa45939f7f904062aad4bfe48145dd9427 | 13,455 | [
-1
] |
13,456 | area-optimizer.lisp | grapesmoker_cl-geom/algorithms/area-optimizer.lisp | (in-package :geom)
(defmethod optimize-area ((p polygon) (area number) (num-points integer) &key (starting-point nil) (epsilon 0.01) )
"Add points to the polyline to match the given area."
(unless starting-point
(setf starting-point (centroid p)))
(format t "~F ~F~%" (polygon-area p) area)
(loop
with... | 4,562 | Common Lisp | .lisp | 122 | 31.483607 | 115 | 0.646018 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | e579133221a6685dadd854ac40a6bb4df44743e11da1945ddeb2d4b8501ef6a7 | 13,456 | [
-1
] |
13,457 | numerical-methods.lisp | grapesmoker_cl-geom/algorithms/numerical-methods.lisp |
(in-package :geom)
(defun sgn (x)
(assert (numberp x))
(cond ((= x 0)
'0)
((> x 0)
'+)
((< x 0)
'-)))
(defun sgn-numeric (x)
(assert (numberp x))
(cond ((= x 0)
0)
((> x 0)
1)
((< x 0)
-1)))
(defun d/dx (f-of-x x0 &optional (h 1e-8))
"Take the numerical derivative of a function sampled at... | 4,783 | Common Lisp | .lisp | 138 | 30.086957 | 99 | 0.628238 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 784f5329e25ef4d2273fb2984343a2ace2dfb23ae61ad9620a285bdc004b3e98 | 13,457 | [
-1
] |
13,458 | polygon-clipping.lisp | grapesmoker_cl-geom/algorithms/polygon-clipping.lisp | (in-package :geom)
;; An implementation of the Greiner-Hormann algorithm for polygon
;; clipping
;; A special vertex class for the GH algorithm. Don't use outside this file.
(defclass gh-vertex ()
((point :accessor gh-vertex-point
:initform nil
:initarg :point)
(next :accessor gh-next-verte... | 12,686 | Common Lisp | .lisp | 257 | 32.59144 | 110 | 0.492986 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | c1d107f04747a5ea2e8191a279de343d841b353aa2e831ffd9d37b9fddeb8d2a | 13,458 | [
-1
] |
13,459 | geometry.asd | grapesmoker_cl-geom/geometry.asd | ;; (eval-when (:compile-toplevel :load-toplevel :execute)
;; (ql:quickload :gsll))
(defsystem "geometry"
:name "geometry"
:description "General pupose geometric objects and algorithms."
:version "0.1"
:author "Jerry Vinokurov <jerryv@cmu.edu>"
:license "GPL v3"
:defsystem-depends-on (#:gsll #:cl-graph) ;;... | 1,655 | Common Lisp | .asd | 48 | 29.75 | 85 | 0.636534 | grapesmoker/cl-geom | 7 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 647802f54b17c38697a806d984a682f6f9a52ed8b6bbb87243fefccc40835bc8 | 13,459 | [
-1
] |
13,487 | package.lisp | Jobhdez_compiler-web-service/src/package.lisp | (defpackage #:scheme-to-lambda-calculus
(:use #:common-lisp)
(:export #:compile-scheme
#:repl))
(defpackage #:cps-compiler
(:use #:common-lisp #:trivia)
(:export #:parse-exp #:desugar #:cps))
(defpackage #:zetta
(:use #:common-lisp
#:alexa
#:yacc
#:trivia
#:alexandria)
(:export #:select-instructions... | 1,216 | Common Lisp | .lisp | 60 | 16.8 | 39 | 0.653008 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b77e0bf881c9c3664cf1e1c021a8bb11b138a7d61ebd0077b9424eb2e691f8f9 | 13,487 | [
-1
] |
13,488 | server.lisp | Jobhdez_compiler-web-service/src/server.lisp | (in-package #:lambda-server)
;;; == server ===
(defvar *server*
(make-instance 'hunchentoot:easy-acceptor
:port 4243))
(defun start-server ()
(hunchentoot:start *server*))
(defun stop-server ()
(hunchentoot:stop *server*))
;;; Launching in the browser:
;;; adopted from https://github.com/eu... | 822 | Common Lisp | .lisp | 27 | 26.62963 | 76 | 0.672173 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | aad42aaf30daea6fb828c24fe64e8476e821f9f06f8f5e6ff9e8e16ceef728c8 | 13,488 | [
-1
] |
13,489 | database.lisp | Jobhdez_compiler-web-service/src/database.lisp | (in-package #:lambda-server)
;;; database
(defun connect-to-postgres ()
(connect-toplevel :postgres :database-name "compiler" :username "compiler" :password "hello123"))
(connect-to-postgres)
(deftable user ()
((name :col-type (:varchar 64))
(username :col-type (:varchar 100))
(email :col-type (:varchar 1... | 1,198 | Common Lisp | .lisp | 38 | 28.842105 | 99 | 0.679756 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 94e44ad2e0afa7a1dcc34ec9f03b4fa4659d3280d265dda3d160982a03e1e674 | 13,489 | [
-1
] |
13,490 | handlers.lisp | Jobhdez_compiler-web-service/src/handlers.lisp | (in-package #:lambda-server)
;;; == password and user store and session like store ==
(setf user-map
(make-hash-table
:test #'equal
:size 10000
:rehash-size 10000
:rehash-threshold 0.8
:weakness nil
:synchronized nil))
(setf auth-map (make-hash-table :test #'equal))
;... | 9,684 | Common Lisp | .lisp | 203 | 41.403941 | 115 | 0.63673 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 718f521f30de98c35672d064896cfa503b86feb67ccf4325d456ef7551f66095 | 13,490 | [
-1
] |
13,491 | compilation-functions.lisp | Jobhdez_compiler-web-service/src/compilation-functions.lisp | (in-package #:lambda-server)
;;; == compilation functions for handlers ==
(defun compile-cps (e)
(cps (desugar (parse-exp e)) 'halt))
(defun identity* (e)
e)
(defun read-str (e)
(read-from-string e))
(defun compile-zetta (e)
(let ((ast (parse-with-lexer (token-generator (lex-line e)) *python-grammar*)))
... | 553 | Common Lisp | .lisp | 15 | 34.2 | 91 | 0.68609 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | a6f4fd28b853bf73d66a524aa34ad7a4d22730b78cb40f2225467c2617bc633d | 13,491 | [
-1
] |
13,492 | lexer.lisp | Jobhdez_compiler-web-service/src/pycompiler/lexer.lisp | (in-package #:zetta)
(deftype token ()
`(cons type val))
(defun tok (type &optional val)
(cons type val))
(alexa:define-string-lexer python-lexer
"Make a lexical analyzer for Python expressions."
((:num "\\d+")
(:name "[A-Za-z][A-Za-z0-9_]*"))
("and" (return (tok :boolop (intern (string-upcase $@) ... | 2,486 | Common Lisp | .lisp | 55 | 42.345455 | 76 | 0.558168 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 984472d0d31a02e3674bd487e97e5a21ad035a4586ea5b1b704fff94967637a7 | 13,492 | [
-1
] |
13,493 | expose-allocation.lisp | Jobhdez_compiler-web-service/src/pycompiler/expose-allocation.lisp | (in-package #:zetta)
(defstruct global-value arg1)
(defstruct less-than op)
(defstruct collect bytes)
(defstruct allocate len type)
(defstruct *type* type)
(defstruct begin statements)
(defun expose-alloc (ast)
(expose-allocation (car (py-module-statements ast))))
(defun expose-allocation (tup)
(match tup
((... | 1,712 | Common Lisp | .lisp | 39 | 38.358974 | 125 | 0.655006 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 08363023a4979fd3b0ad489b2a89dd1b2226a06eb643a7c2e2aa3b0c895977ba | 13,493 | [
-1
] |
13,494 | assign-homes.lisp | Jobhdez_compiler-web-service/src/pycompiler/assign-homes.lisp | (in-package #:zetta)
(defun patch-instructions (instr)
(match instr
((instruction :name name :arg1 a1 :arg2 a2)
(if (and (equalp name "addq")
(atomic-var-p a1)
(atomic-var-p a2))
(list (make-instruction :name name
:arg1 a1
:arg2 "%rax")
(make-instruction :name name
:ar... | 7,339 | Common Lisp | .lisp | 185 | 28.010811 | 92 | 0.506663 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 4fcb0cd9a3c889fdf3e37f2f19763352c7ab64bab5d6a580f5426d3227640935 | 13,494 | [
-1
] |
13,495 | ast.lisp | Jobhdez_compiler-web-service/src/pycompiler/ast.lisp | (in-package #:zetta)
(defstruct py-module
statements)
(defstruct py-print
exp)
(defstruct py-function
name
args
statements)
(defstruct py-while
prestatements
exp
body-statements)
(defstruct py-if
exp
if-statement
else-statement)
(defstruct py-neg-num
num)
(defstruct py-sum
lexp
rexp)
... | 693 | Common Lisp | .lisp | 49 | 11.55102 | 35 | 0.766773 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | aedcc835731da12a7855275f74e8f955849fe71cd9b7789ad51db1bc61fc98a7 | 13,495 | [
-1
] |
13,496 | select-instructions.lisp | Jobhdez_compiler-web-service/src/pycompiler/select-instructions.lisp | (in-package #:zetta)
(defstruct immediate
int)
(defstruct register
reg)
(defstruct deref
"Memory reference"
reg
int)
(defstruct instruction
name
arg1
arg2)
(defstruct callq
label)
(defstruct block-py name)
(defstruct free-pointer register)
(defstruct from-space register)
(defstruct tag t)
(d... | 9,188 | Common Lisp | .lisp | 254 | 28.65748 | 98 | 0.576332 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 44ab51f33f936e8516920865f2803d9bca683713ed6b67e79eee8097350d550a | 13,496 | [
-1
] |
13,497 | remove-complex-operands.lisp | Jobhdez_compiler-web-service/src/pycompiler/remove-complex-operands.lisp | (in-package #:zetta)
(defstruct atomic-assignment
temp-var
n)
(defstruct atomic-sum
lexp
rexp)
(defstruct atomic-var
name)
(defstruct if-atomic
block
begin-then
begin-else
condition)
(defstruct while-atomic
loop-block
test-block
pre-block)
(defun remove-complex-operands (parse-tree)
"Rem... | 8,811 | Common Lisp | .lisp | 240 | 29.820833 | 133 | 0.6071 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 3d7735f9ce34ed09af229235f544ac652c4f6dae3efba65a7781caa485be8b30 | 13,497 | [
-1
] |
13,498 | pyparser.lisp | Jobhdez_compiler-web-service/src/pycompiler/pyparser.lisp | (in-package #:zetta)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defun build-module (statements)
(make-py-module :statements (flatten statements)))
(defun build-print (print-token left-paren-token exp right-paren-token)
(declare (ignore print-token left-paren-token right-paren-token))
(mak... | 4,171 | Common Lisp | .lisp | 105 | 34.542857 | 203 | 0.687191 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b35848a4dfb4187cc746074fded34c957ad1a54268b29053bf7143594f56eb80 | 13,498 | [
-1
] |
13,499 | desugar.lisp | Jobhdez_compiler-web-service/src/cpscompiler/desugar.lisp | (in-package #:cps-compiler)
(defun desugar (ast)
"Desugar the abstract syntax tree."
;; given: Node
;; expect: Node
(match ast
((var :v a)
(make-var :v a))
((int :i a)
(make-int :i a))
((bool :value a)
(make-bool :value a))
((ifscm :cond a :then b :else c)
(make-ifscm :cond a :then b :e... | 2,659 | Common Lisp | .lisp | 88 | 25.034091 | 75 | 0.616759 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 25e19ac7f078d7c09a805db2788283c1ed71c7ebe945952b43364becb569916f | 13,499 | [
-1
] |
13,500 | cps.lisp | Jobhdez_compiler-web-service/src/cpscompiler/cps.lisp | (in-package #:cps-compiler)
(defun cps (ast k)
(match ast
((guard x (atomicp x))
(funcall k (cps-atomic x)))
((ifscm :cond a :then b :else c)
(let* ((cont-parameter (gensym "$RV"))
(cont (make-lambdascm :var cont-parameter
:body (make-application :operator k
:operands cont-pa... | 2,640 | Common Lisp | .lisp | 95 | 21.526316 | 60 | 0.545527 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 9c669bd28ed7a4a0e5b3d46120653fa107041bafd12a97476b3972b4beee1076 | 13,500 | [
-1
] |
13,501 | parser.lisp | Jobhdez_compiler-web-service/src/cpscompiler/parser.lisp | (in-package #:cps-compiler)
(defun parse-exp (exp)
"Parse given EXP."
(match exp
((guard x (numberp x))
(make-int :i x))
((guard x (scm-boolp x))
(make-bool :value x))
((guard x (and (not (scm-boolp x))
(symbolp x)))
(make-var :v x))
((guard x (scm-letp x))
(ma... | 7,035 | Common Lisp | .lisp | 250 | 24.3 | 78 | 0.582837 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 6ba4912ce5afce8c20e809a828317cd331cb6d7828002b8273e1a6fc043038ac | 13,501 | [
-1
] |
13,502 | compiler.lisp | Jobhdez_compiler-web-service/src/scheme-to-lambda/compiler.lisp | (in-package #:scheme-to-lambda-calculus)
(defun compile-scheme (scheme-expression)
"
compile a given SCHEME-EXPRESSION to the lambda calculus.
"
(cond ((integer-p scheme-expression)
(church-numeral scheme-expression))
((zero-p scheme-expression)
`(,lambda-zerop ,(compile-scheme (zeroexp scheme-expression)... | 8,616 | Common Lisp | .lisp | 264 | 27.397727 | 113 | 0.612471 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | e05dd9acefd85abf2d856b66cabb53ff66081bb5e029d361d3b14216812d990e | 13,502 | [
-1
] |
13,504 | lexer.lisp | Jobhdez_compiler-web-service/src/lalg-compiler/lexer.lisp | (in-package #:yotta)
(deftype token ()
`(cons keyword t))
(defun tok (type &optional val)
(cons type val))
(alexa:define-string-lexer linear-algebra-lexer
"Make a lexical analyzer for linear algebra expressions."
((:num "\\d+")
(:name "[A-Za-z][A-Za-z0-9_]*"))
("{{NAME}}" (return (tok :variable (inte... | 1,337 | Common Lisp | .lisp | 38 | 32.263158 | 80 | 0.599225 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | b7d16c6bf3f2c16652371d5beafcfd30dbfc277c5bc3c7348c31c02c43deada4 | 13,504 | [
-1
] |
13,512 | lambda-web.asd | Jobhdez_compiler-web-service/lambda-web.asd | (asdf:defsystem #:lambda-web
:description "A compiler web explorer."
:author "Job Hernandez <hj93@protonmail.com>"
:version (:read-file-form "VERSION.txt")
:depends-on (#:alexa #:yacc :mito :cl-pass :trivial-hashtable-serialize #:alexandria #:hunchentoot #:trivia #:com.inuoe.jzon)
:license "MIT License"
:ar... | 1,321 | Common Lisp | .asd | 45 | 24.088889 | 127 | 0.605965 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 029f374fbe4b28512b97c94ce7ded9a0195de64fa259d9d0a2aa0698957e31ad | 13,512 | [
-1
] |
13,516 | client.js | Jobhdez_compiler-web-service/src/client.js | function compiledExps(username, expr, endpoint) {
var data = new URLSearchParams();
data.append("user", username);
data.append("exp", expr);
fetch(endpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: data
})
... | 1,498 | Common Lisp | .l | 50 | 25.5 | 80 | 0.642808 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 2dde4a97f5a9d52246fdfedcd96ef066fe45a04e58e9cd477fccc3bbed17689a | 13,516 | [
-1
] |
13,540 | package-lock.json | Jobhdez_compiler-web-service/frontend/package-lock.json | {
"name": "frontend",
"version": "0.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "frontend",
"version": "0.1.0",
"dependencies": {
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@monaco-editor/react": "^4.5.1",
"... | 1,272,194 | Common Lisp | .l | 30,943 | 33.573894 | 262 | 0.611125 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 2c33949e1fcdaff63e1a74bb3ebba663b7cc620f6e4f2eaa394d2d9a1002be46 | 13,540 | [
-1
] |
13,541 | reportWebVitals.js | Jobhdez_compiler-web-service/frontend/src/reportWebVitals.js | const reportWebVitals = (onPerfEntry) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import("web-vitals").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
... | 364 | Common Lisp | .l | 12 | 25.75 | 80 | 0.675214 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 278a3614a3ff7a341a273c86695a979e5b15231f8d76ab1423d44ef0b58e235a | 13,541 | [
-1
] |
13,542 | SlidingBanner.js | Jobhdez_compiler-web-service/frontend/src/components/SlidingBanner.js | import React, { useState, useEffect } from "react";
import { motion } from "framer-motion";
import "./SlidingBanner.css"; // Import CSS file for styling
const companies = ["AMD", "ARM", "Google", "Apple"];
const SlidingBanner = () => {
const [offset, setOffset] = useState(0);
useEffect(() => {
const interval... | 1,271 | Common Lisp | .l | 39 | 25.487179 | 72 | 0.561175 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | cb57d5fba8be31940371358a02441fff83613cc5d5caf2a6e105ed0b2b8fe421 | 13,542 | [
-1
] |
13,543 | Compiler.js | Jobhdez_compiler-web-service/frontend/src/components/Compiler.js | import React, { useState } from "react";
import {
Box,
Button,
Typography,
FormControl,
Grid,
InputLabel,
MenuItem,
Select,
TextField,
} from "@mui/material";
import Editor from "@monaco-editor/react";
function Compiler() {
const [ExpCode, setExpCode] = useState("");
const [CompiledCode, setCompi... | 3,328 | Common Lisp | .l | 131 | 16.687023 | 85 | 0.494354 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 86b685f39425e8c15b0914784cf489b9b68f6bc94df791bc52c6797f91de19e9 | 13,543 | [
-1
] |
13,544 | index.html | Jobhdez_compiler-web-service/frontend/public/index.html | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created u... | 1,721 | Common Lisp | .l | 40 | 37.65 | 107 | 0.668653 | Jobhdez/compiler-web-service | 7 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | 5f3a88593394363dae2c7fe83acbe2800644833e6c4eb5e8ef7f7ca4a8273aa1 | 13,544 | [
-1
] |
13,559 | package.lisp | lepisma_pigeon/package.lisp | (defpackage #:pigeon
(:nicknames #:pg)
(:use #:cl
#:alexandria
#:cl-cut
#:trivia)
(:export #:pgfmt
#:fmt
#:read-pg
#:load-pgl))
| 191 | Common Lisp | .lisp | 10 | 11.8 | 23 | 0.441989 | lepisma/pigeon | 7 | 1 | 4 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | d449158be1fddaedee90f033599a12d95c8ce3afa53ed94a83d47af5397e9378 | 13,559 | [
-1
] |
13,560 | vars.lisp | lepisma_pigeon/src/vars.lisp | ;;; Few common vars
(in-package #:pigeon)
(cl-interpol:enable-interpol-syntax)
(defvar *macros* nil
"Macros enabled for the transformation")
| 145 | Common Lisp | .lisp | 5 | 27.2 | 42 | 0.768116 | lepisma/pigeon | 7 | 1 | 4 | GPL-3.0 | 9/19/2024, 11:27:05 AM (Europe/Amsterdam) | e85ccb0d0126f9cb54c6d66f90a46888e0187fa9b322b886b555f3ae00e8d434 | 13,560 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.