Back
comment (clj)
(source)macro
(comment & body)
Ignores body, yields nil
Examples
metabase/metabase
(ns metabase.util.memoize
(:require
[clojure.core.memoize :as memoize]
[metabase.shared.util.namespaces :as shared.ns]))
(comment
memoize/keep-me)
clojure/core.typed
(ns ^:skip-wiki clojure.core.typed.ext.clojure.core
"Typing rules for base Clojure distribution."
(:require [clojure.core.typed.checker.jvm.check :refer [defuspecial]]
[clojure.core.typed.checker.utils :as u]
[clojure.core.typed :as t]
[clojure.core.typed.checker.type-rep :as r]
[clojure.core.typed.checker.filter-rep :as fl]
[clojure.core.typed.checker.filter-ops :as fo]
[clojure.core.typed.checker.check-below :as below]
[clojure.core.typed.util-vars :as vs]
[clojure.core.typed.analyzer.common :as ana2]))
(comment
(binding [*ns* *ns*]
(t/cf (ns foo)))
(binding [*ns* *ns*]
(t/check-form-info '(ns foo)
:expected 't/Str
:type-provided? true))
)
cognitect-labs/aws-api
(ns s3-examples
(:require [clojure.core.async :as a]
[clojure.spec.alpha :as s]
[clojure.spec.gen.alpha :as gen]
[clojure.java.io :as io]
[clojure.repl :as repl]
[cognitect.aws.client.api :as aws]))
(comment
fluree/db
(ns json-ld
(:require [fluree.db.method.ipfs.core :as ipfs]
[fluree.db.db.json-ld :as jld-db]
[fluree.db.json-ld.transact :as jld-tx]
[clojure.core.async :as async]
[fluree.db.flake :as flake]
[fluree.db.json-ld.api :as fluree]
[fluree.db.util.async :refer [<?? go-try channel?]]
[fluree.db.query.range :as query-range]
[fluree.db.constants :as const]
[fluree.db.dbproto :as dbproto]
[fluree.db.did :as did]
[fluree.db.conn.proto :as conn-proto]
[fluree.db.util.json :as json]
[fluree.json-ld :as json-ld]
[fluree.db.indexer.default :as indexer]
[fluree.db.indexer.proto :as idx-proto]
[fluree.db.util.log :as log]))
(comment
(comment
(def db2 @(fluree/stage
newdb
{"@context" "https://schema.org",
"@graph" [{"id" "https://www.wikidata.org/wiki/Q836821"
"name" "NEW TITLE: The Hitchhiker's Guide to the Galaxy",
"commentCount" 42}]}))
(def db3 @(fluree/stage
ledger
{"@context" "https://schema.org",
"@graph" [{"id" "https://www.wikidata.org/wiki/Q836821"
"commentCount" 52}]}))
(def db3 @(fluree/stage db2
{"@context" "https://schema.org",
"@graph" [{"@id" "https://www.wikidata.org/wiki/Q836821"
"commentCount" 52}]}))
(def db4 @(fluree/stage db3
{"@context" "https://schema.org",
"@graph" [{"@id" "https://www.wikidata.org/wiki/Q836821"
"commentCount" 62}]}))
fluree/db
(ns json-ld
(:require [fluree.db.method.ipfs.core :as ipfs]
[fluree.db.db.json-ld :as jld-db]
[fluree.db.json-ld.transact :as jld-tx]
[clojure.core.async :as async]
[fluree.db.flake :as flake]
[fluree.db.json-ld.api :as fluree]
[fluree.db.util.async :refer [<?? go-try channel?]]
[fluree.db.query.range :as query-range]
[fluree.db.constants :as const]
[fluree.db.dbproto :as dbproto]
[fluree.db.did :as did]
[fluree.db.conn.proto :as conn-proto]
[fluree.db.util.json :as json]
[fluree.json-ld :as json-ld]
[fluree.db.util.log :as log]))
(comment
(-> (fluree/stage
ledger
{"@context" "https://schema.org",
"@graph" [{"@id" "https://www.wikidata.org/wiki/Q836821"
"name" "NEW TITLE: The Hitchhiker's Guide to the Galaxy",
"commentCount" 42}]})
(.then (fn [ledger]
(fluree/query ledger
{:select [:* {:schema/isBasedOn [:*]}]
:from :wiki/Q836821})))
(.then (fn [q2] (println "q2" q2))))
#_ (fluree/stage ledger {"@context" "https://schema.org",
"@graph" [{"@id" "https://www.wikidata.org/wiki/Q836821"
"commentCount" 52}]})
(def db2 @(fluree/stage
newdb
{"@context" "https://schema.org",
"@graph" [{"@id" "https://www.wikidata.org/wiki/Q836821"
"name" "NEW TITLE: The Hitchhiker's Guide to the Galaxy",
"commentCount" 42}]}))
(def db3 @(fluree/stage
ledger
{"@context" "https://schema.org",
"@graph" [{"@id" "https://www.wikidata.org/wiki/Q836821"
"commentCount" 52}]}))
(def db3 @(fluree/stage db2
{"@context" "https://schema.org",
"@graph" [{"@id" "https://www.wikidata.org/wiki/Q836821"
"commentCount" 52}]}))
(def db4 @(fluree/stage db3
{"@context" "https://schema.org",
"@graph" [{"@id" "https://www.wikidata.org/wiki/Q836821"
"commentCount" 62}]}))