entities listlengths 1 44.6k | max_stars_repo_path stringlengths 6 160 | max_stars_repo_name stringlengths 6 66 | max_stars_count int64 0 47.9k | content stringlengths 18 1.04M | id stringlengths 1 6 | new_content stringlengths 18 1.04M | modified bool 1
class | references stringlengths 32 1.52M |
|---|---|---|---|---|---|---|---|---|
[
{
"context": " \n {:doc \"set intersection testing.\"\n :author \"palisades dot lakes at gmail dot com\"\n :since \"2017-08-19\"\n :version \"2017-09-05\"}",
"end": 267,
"score": 0.9472653865814209,
"start": 231,
"tag": "EMAIL",
"value": "palisades dot lakes at gmail dot com"
}
] | src/main/clojure/palisades/lakes/multix/sets/dynamap.clj | palisades-lakes/multimethod-experiments | 5 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.multix.sets.dynamap
{:doc "set intersection testing."
:author "palisades dot lakes at gmail dot com"
:since "2017-08-19"
:version "2017-09-05"}
... | 47027 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.multix.sets.dynamap
{:doc "set intersection testing."
:author "<EMAIL>"
:since "2017-08-19"
:version "2017-09-05"}
(:refer-clojure :exclude [... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.multix.sets.dynamap
{:doc "set intersection testing."
:author "PI:EMAIL:<EMAIL>END_PI"
:since "2017-08-19"
:version "2017-09-05"}
(:refer-clo... |
[
{
"context": "ubworker-num init-data]\n (let [redis-source-key \"claronte\"\n redis-backup-key (str \"claronte-backup-\"",
"end": 1117,
"score": 0.9935131072998047,
"start": 1109,
"tag": "KEY",
"value": "claronte"
},
{
"context": "rce-key \"claronte\"\n redis-backup-ke... | src/claronte/transport_redis_to_rabbitmq.clj | jordillonch/claronte | 1 | (ns claronte.transport-redis-to-rabbitmq
(:require
[claronte.workers.pool :refer :all]
[claronte.config.claronte-config :refer :all]
[claronte.transport.fetcher.redis.fetcher :refer :all]
[claronte.transport.sender.rabbitmq.sender :refer :all]
[claronte.transport.sender.rabbitmq.connection-factory... | 118826 | (ns claronte.transport-redis-to-rabbitmq
(:require
[claronte.workers.pool :refer :all]
[claronte.config.claronte-config :refer :all]
[claronte.transport.fetcher.redis.fetcher :refer :all]
[claronte.transport.sender.rabbitmq.sender :refer :all]
[claronte.transport.sender.rabbitmq.connection-factory... | true | (ns claronte.transport-redis-to-rabbitmq
(:require
[claronte.workers.pool :refer :all]
[claronte.config.claronte-config :refer :all]
[claronte.transport.fetcher.redis.fetcher :refer :all]
[claronte.transport.sender.rabbitmq.sender :refer :all]
[claronte.transport.sender.rabbitmq.connection-factory... |
[
{
"context": ";; Clojure 1.4.07\n\n(println \"Hello, Dcoder!\")\n\n<sys_write;collapse might.hackdude;com>r",
"end": 37,
"score": 0.5937342643737793,
"start": 36,
"tag": "USERNAME",
"value": "D"
},
{
"context": ";; Clojure 1.4.07\n\n(println \"Hello, Dcoder!\")\n\n<sys_write;collapse... | dist/frk.clj | pedroxian/jeriko-source | 0 | ;; Clojure 1.4.07
(println "Hello, Dcoder!")
<sys_write;collapse might.hackdude;com>raw
viel.nacht
slozze.item cage.runge ;free | 44692 | ;; Clojure 1.4.07
(println "Hello, D<NAME>!")
<sys_write;collapse might.hackdude;com>raw
viel.nacht
slozze.item cage.runge ;free | true | ;; Clojure 1.4.07
(println "Hello, DPI:NAME:<NAME>END_PI!")
<sys_write;collapse might.hackdude;com>raw
viel.nacht
slozze.item cage.runge ;free |
[
{
"context": "NAPSHOT\"\n :description \"Personal clojure dojo for Stephen Sloan\"\n :url \"https://github.com/polygloton/clojure-do",
"end": 97,
"score": 0.9967736601829529,
"start": 84,
"tag": "NAME",
"value": "Stephen Sloan"
},
{
"context": "ojo for Stephen Sloan\"\n :url \"htt... | project.clj | polygloton/clojure-dojo | 0 | (defproject clojure-dojo "0.1.0-SNAPSHOT"
:description "Personal clojure dojo for Stephen Sloan"
:url "https://github.com/polygloton/clojure-dojo"
:license {:name "MIT"
:url "https://raw2.github.com/polygloton/clojure-dojo/master/LICENSE.txt"
:distribution "manual"}
:min-lein-version "2.... | 21653 | (defproject clojure-dojo "0.1.0-SNAPSHOT"
:description "Personal clojure dojo for <NAME>"
:url "https://github.com/polygloton/clojure-dojo"
:license {:name "MIT"
:url "https://raw2.github.com/polygloton/clojure-dojo/master/LICENSE.txt"
:distribution "manual"}
:min-lein-version "2.0.0"
... | true | (defproject clojure-dojo "0.1.0-SNAPSHOT"
:description "Personal clojure dojo for PI:NAME:<NAME>END_PI"
:url "https://github.com/polygloton/clojure-dojo"
:license {:name "MIT"
:url "https://raw2.github.com/polygloton/clojure-dojo/master/LICENSE.txt"
:distribution "manual"}
:min-lein-vers... |
[
{
"context": " :he \"Hebrew\"\n :mrj \"Hill Mari\"\n :hi \"Hindi\"\n :hu ",
"end": 2092,
"score": 0.9942177534103394,
"start": 2083,
"tag": "NAME",
"value": "Hill Mari"
}
] | app/src/app/core.clj | lewismc/iPReS | 5 | ; Licensed to the Apache Software Foundation (ASF) under one or more
; contributor license agreements. See the NOTICE file distributed with
; this work for additional information regarding copyright ownership.
; The ASF licenses this file to You under the Apache License, Version 2.0
; (the "License"); you may not use t... | 34292 | ; Licensed to the Apache Software Foundation (ASF) under one or more
; contributor license agreements. See the NOTICE file distributed with
; this work for additional information regarding copyright ownership.
; The ASF licenses this file to You under the Apache License, Version 2.0
; (the "License"); you may not use t... | true | ; Licensed to the Apache Software Foundation (ASF) under one or more
; contributor license agreements. See the NOTICE file distributed with
; this work for additional information regarding copyright ownership.
; The ASF licenses this file to You under the Apache License, Version 2.0
; (the "License"); you may not use t... |
[
{
"context": "n \"Community Chat\"]]\n [:a {:href \"mailto:crux@juxt.pro\"} [:span.n \"crux@juxt.pro\"]]]]]\n [:div {:st",
"end": 2395,
"score": 0.999925971031189,
"start": 2382,
"tag": "EMAIL",
"value": "crux@juxt.pro"
},
{
"context": " [:a {:href \"mailto:crux@ju... | crux-console/src/crux_ui_server/pages.clj | iojtaylor/crux | 1 | (ns crux-ui-server.pages
(:require [crux-ui-server.preloader :as preloader]
[page-renderer.api :as pr]
[clojure.java.io :as io]))
(def id #uuid "50005565-299f-4c08-86d0-b1919bf4b7a9")
(def console-assets-frame
{:title "Crux Console"
:lang "en"
:theme-color "hsl(32, 91%, 54%)"
:og-... | 83010 | (ns crux-ui-server.pages
(:require [crux-ui-server.preloader :as preloader]
[page-renderer.api :as pr]
[clojure.java.io :as io]))
(def id #uuid "50005565-299f-4c08-86d0-b1919bf4b7a9")
(def console-assets-frame
{:title "Crux Console"
:lang "en"
:theme-color "hsl(32, 91%, 54%)"
:og-... | true | (ns crux-ui-server.pages
(:require [crux-ui-server.preloader :as preloader]
[page-renderer.api :as pr]
[clojure.java.io :as io]))
(def id #uuid "50005565-299f-4c08-86d0-b1919bf4b7a9")
(def console-assets-frame
{:title "Crux Console"
:lang "en"
:theme-color "hsl(32, 91%, 54%)"
:og-... |
[
{
"context": "ution\"}]}]}\n {:id 3\n :label \"Gloubi Boulga\"}])\n\n(def LEAVES\n \"Extract leaf nodes from a tre",
"end": 2661,
"score": 0.9686994552612305,
"start": 2648,
"tag": "NAME",
"value": "Gloubi Boulga"
}
] | src/talk_paris_clojure_meetup_specter/core.clj | DjebbZ/talk-paris-clojure-meetup-specter | 0 | (ns talk-paris-clojure-meetup-specter.core
(:require [com.rpl.specter :as sp]))
;; Intro
(def flat-numbers [1 2 3 4])
(defn inc-flat-numbers
"Increment each number"
[]
(map inc flat-numbers))
(defn inc-flat-numbers-specter []
(sp/transform [sp/ALL] inc flat-numbers))
(def maps-numbers [{:id 1 :value 1} ... | 45931 | (ns talk-paris-clojure-meetup-specter.core
(:require [com.rpl.specter :as sp]))
;; Intro
(def flat-numbers [1 2 3 4])
(defn inc-flat-numbers
"Increment each number"
[]
(map inc flat-numbers))
(defn inc-flat-numbers-specter []
(sp/transform [sp/ALL] inc flat-numbers))
(def maps-numbers [{:id 1 :value 1} ... | true | (ns talk-paris-clojure-meetup-specter.core
(:require [com.rpl.specter :as sp]))
;; Intro
(def flat-numbers [1 2 3 4])
(defn inc-flat-numbers
"Increment each number"
[]
(map inc flat-numbers))
(defn inc-flat-numbers-specter []
(sp/transform [sp/ALL] inc flat-numbers))
(def maps-numbers [{:id 1 :value 1} ... |
[
{
"context": "ns under the License.\n;;\n;; Copyright © 2013-2022, Kenneth Leung. All rights reserved.\n\n(ns czlab.test.basal.util\n",
"end": 597,
"score": 0.9998529553413391,
"start": 584,
"tag": "NAME",
"value": "Kenneth Leung"
}
] | src/test/clojure/czlab/test/basal/util.clj | llnek/xlib | 0 | ;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed ... | 70375 | ;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed ... | true | ;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed ... |
[
{
"context": ";;; singleton.clj: singleton functions\n\n;; by Stuart Sierra, http://stuartsierra.com/\n;; April 14, 2009\n\n;; C",
"end": 59,
"score": 0.9999000430107117,
"start": 46,
"tag": "NAME",
"value": "Stuart Sierra"
},
{
"context": "artsierra.com/\n;; April 14, 2009\n\n;; Cop... | ThirdParty/clojure-contrib-1.1.0/src/clojure/contrib/singleton.clj | allertonm/Couverjure | 3 | ;;; singleton.clj: singleton functions
;; by Stuart Sierra, http://stuartsierra.com/
;; April 14, 2009
;; Copyright (c) Stuart Sierra, 2009. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
;; wh... | 105328 | ;;; singleton.clj: singleton functions
;; by <NAME>, http://stuartsierra.com/
;; April 14, 2009
;; Copyright (c) <NAME>, 2009. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
;; which can be fou... | true | ;;; singleton.clj: singleton functions
;; by PI:NAME:<NAME>END_PI, http://stuartsierra.com/
;; April 14, 2009
;; Copyright (c) PI:NAME:<NAME>END_PI, 2009. All rights reserved. The use
;; and distribution terms for this software are covered by the Eclipse
;; Public License 1.0 (http://opensource.org/licenses/eclipse-... |
[
{
"context": "et-initial-state\n (fn []\n {:file-input-key (gensym \"file-input-\")})\n :render\n (fn [{:keys [state",
"end": 503,
"score": 0.9225755929946899,
"start": 497,
"tag": "KEY",
"value": "gensym"
},
{
"context": "al-state\n (fn []\n {:file-input-key (gensym ... | src/cljs/main/broadfcui/page/workspace/data/import_data.cljs | epam/firecloud-ui | 0 | (ns broadfcui.page.workspace.data.import-data
(:require
[dmohs.react :as react]
[broadfcui.common.components :as comps]
[broadfcui.common.icons :as icons]
[broadfcui.common.style :as style]
[broadfcui.components.buttons :as buttons]
[broadfcui.endpoints :as endpoints]
[broadfcui.page.workspace.wo... | 25922 | (ns broadfcui.page.workspace.data.import-data
(:require
[dmohs.react :as react]
[broadfcui.common.components :as comps]
[broadfcui.common.icons :as icons]
[broadfcui.common.style :as style]
[broadfcui.components.buttons :as buttons]
[broadfcui.endpoints :as endpoints]
[broadfcui.page.workspace.wo... | true | (ns broadfcui.page.workspace.data.import-data
(:require
[dmohs.react :as react]
[broadfcui.common.components :as comps]
[broadfcui.common.icons :as icons]
[broadfcui.common.style :as style]
[broadfcui.components.buttons :as buttons]
[broadfcui.endpoints :as endpoints]
[broadfcui.page.workspace.wo... |
[
{
"context": "lly based on the ACL SNePS 3 implementation by Dr. Stuart C. Shapiro.\n\n(in-ns 'zinc.core.build)\n\n(declare structurally",
"end": 77,
"score": 0.9998753666877747,
"start": 60,
"tag": "NAME",
"value": "Stuart C. Shapiro"
}
] | src/clj/zinc/core/build_substitution.clj | martinodb/Zinc | 0 | ; Originally based on the ACL SNePS 3 implementation by Dr. Stuart C. Shapiro.
(in-ns 'zinc.core.build)
(declare structurally-subsumes-varterm parse-vars-and-rsts check-and-build-variables notsames pre-build-vars build-vars build-quantterm-channels)
(defn apply-sub-to-term
([term subst]
(apply-sub-to-term term... | 42953 | ; Originally based on the ACL SNePS 3 implementation by Dr. <NAME>.
(in-ns 'zinc.core.build)
(declare structurally-subsumes-varterm parse-vars-and-rsts check-and-build-variables notsames pre-build-vars build-vars build-quantterm-channels)
(defn apply-sub-to-term
([term subst]
(apply-sub-to-term term subst nil)... | true | ; Originally based on the ACL SNePS 3 implementation by Dr. PI:NAME:<NAME>END_PI.
(in-ns 'zinc.core.build)
(declare structurally-subsumes-varterm parse-vars-and-rsts check-and-build-variables notsames pre-build-vars build-vars build-quantterm-channels)
(defn apply-sub-to-term
([term subst]
(apply-sub-to-term t... |
[
{
"context": "))\n\n(def ^:private elb-account-id\n {\"us-east-1\"\"127311923021\"\n \"us-east-2\" \"033677994240\"\n \"us-west-1\" ",
"end": 285,
"score": 0.7689497470855713,
"start": 277,
"tag": "KEY",
"value": "27311923"
},
{
"context": "oPort 0\n :c... | src/pulumi_cljs/aws/ecs.cljs | modern-energy/pulumi-cljs | 20 | (ns pulumi-cljs.aws.ecs
"Utilities for building ECS Fargate tasks"
(:require ["@pulumi/pulumi" :as pulumi]
["@pulumi/aws" :as aws]
[pulumi-cljs.core :as p]
[pulumi-cljs.aws :as aws-utils]))
(def ^:private elb-account-id
{"us-east-1""127311923021"
"us-east-2" "033677994240"
... | 95284 | (ns pulumi-cljs.aws.ecs
"Utilities for building ECS Fargate tasks"
(:require ["@pulumi/pulumi" :as pulumi]
["@pulumi/aws" :as aws]
[pulumi-cljs.core :as p]
[pulumi-cljs.aws :as aws-utils]))
(def ^:private elb-account-id
{"us-east-1""1<KEY>021"
"us-east-2" "033677994240"
... | true | (ns pulumi-cljs.aws.ecs
"Utilities for building ECS Fargate tasks"
(:require ["@pulumi/pulumi" :as pulumi]
["@pulumi/aws" :as aws]
[pulumi-cljs.core :as p]
[pulumi-cljs.aws :as aws-utils]))
(def ^:private elb-account-id
{"us-east-1""1PI:KEY:<KEY>END_PI021"
"us-east-2" "0336... |
[
{
"context": "t-gray-500 :text-xs)}\n [:small \"Copyright © 2021 Kyle Erhabor\"]\n ;; TODO: Use images instead of text.\n [:ul",
"end": 658,
"score": 0.9998968839645386,
"start": 646,
"tag": "NAME",
"value": "Kyle Erhabor"
},
{
"context": "space-x-2)}\n [:li>a {:href \"https... | src/treehouse/core.cljs | KyleErhabor/treehouse | 0 | (ns treehouse.core
(:require [treehouse.pages :as pages]
[treehouse.router :as router]
[treehouse.storage :as store]
[treehouse.tailwind :refer [tw]]
[goog.dom :as gdom]
[reagent.dom :as rdom]))
(def container [:container :mx-auto :p-2])
(defn header []
... | 22048 | (ns treehouse.core
(:require [treehouse.pages :as pages]
[treehouse.router :as router]
[treehouse.storage :as store]
[treehouse.tailwind :refer [tw]]
[goog.dom :as gdom]
[reagent.dom :as rdom]))
(def container [:container :mx-auto :p-2])
(defn header []
... | true | (ns treehouse.core
(:require [treehouse.pages :as pages]
[treehouse.router :as router]
[treehouse.storage :as store]
[treehouse.tailwind :refer [tw]]
[goog.dom :as gdom]
[reagent.dom :as rdom]))
(def container [:container :mx-auto :p-2])
(defn header []
... |
[
{
"context": "; Copyright (c) Rich Hickey. All rights reserved.\n; The use and distributio",
"end": 29,
"score": 0.9998680353164673,
"start": 18,
"tag": "NAME",
"value": "Rich Hickey"
},
{
"context": "ce, or any other, from this software.\n\n; Authors: Stuart Halloway, Frantisek... | Source/clojure/test_clojure/metadata.clj | etherny/Arcadia | 1,447 | ; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any ... | 16601 | ; Copyright (c) <NAME>. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashi... | true | ; Copyright (c) PI:NAME:<NAME>END_PI. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this softwar... |
[
{
"context": "eset-db)\n\n(def ^:private context\n {:users (->> [\"john@doe.com\" \"jane@doe.com\"]\n (mapv #(factory :",
"end": 872,
"score": 0.9999106526374817,
"start": 860,
"tag": "EMAIL",
"value": "john@doe.com"
},
{
"context": "^:private context\n {:users (->> [... | test/clj_money/api/commodities_test.clj | dgknght/clj-money | 5 | (ns clj-money.api.commodities-test
(:require [clojure.test :refer [deftest use-fixtures is]]
[ring.mock.request :as req]
[cheshire.core :as json]
[clj-factory.core :refer [factory]]
[dgknght.app-lib.web :refer [path]]
[dgknght.app-lib.test]
[clj-... | 17373 | (ns clj-money.api.commodities-test
(:require [clojure.test :refer [deftest use-fixtures is]]
[ring.mock.request :as req]
[cheshire.core :as json]
[clj-factory.core :refer [factory]]
[dgknght.app-lib.web :refer [path]]
[dgknght.app-lib.test]
[clj-... | true | (ns clj-money.api.commodities-test
(:require [clojure.test :refer [deftest use-fixtures is]]
[ring.mock.request :as req]
[cheshire.core :as json]
[clj-factory.core :refer [factory]]
[dgknght.app-lib.web :refer [path]]
[dgknght.app-lib.test]
[clj-... |
[
{
"context": "ildren}))\n\n(def ^:private wrapper-key (js/Symbol \"tsers$$wrapper\"))\n(def ^:private memo-wrapper-key (js/Symbol \"ts",
"end": 4963,
"score": 0.9838104248046875,
"start": 4949,
"tag": "KEY",
"value": "tsers$$wrapper"
},
{
"context": "er\"))\n(def ^:private memo-wrapp... | src/main/tsers/react.cljs | tav10102/cljs-vanilla-react-example | 0 | (ns tsers.react
(:require [clojure.string :as string]
[goog.object :as gobj]
["react" :as reactjs]
["react-dom" :as react-dom]))
; cache for parsed hiccup tags and converted js props
(def ^:private tag-cache (js/Map.))
(def ^:private js-prop-cache
(doto (js/Map.)
(.set "clas... | 73460 | (ns tsers.react
(:require [clojure.string :as string]
[goog.object :as gobj]
["react" :as reactjs]
["react-dom" :as react-dom]))
; cache for parsed hiccup tags and converted js props
(def ^:private tag-cache (js/Map.))
(def ^:private js-prop-cache
(doto (js/Map.)
(.set "clas... | true | (ns tsers.react
(:require [clojure.string :as string]
[goog.object :as gobj]
["react" :as reactjs]
["react-dom" :as react-dom]))
; cache for parsed hiccup tags and converted js props
(def ^:private tag-cache (js/Map.))
(def ^:private js-prop-cache
(doto (js/Map.)
(.set "clas... |
[
{
"context": ":owner owner\n :passwd passwd\n :test test\n ",
"end": 3475,
"score": 0.9963271617889404,
"start": 3469,
"tag": "PASSWORD",
"value": "passwd"
}
] | src/cayenne/data/deposit.clj | CrossRef/cayenne | 11 | (ns cayenne.data.deposit
(:import [java.util Date])
(:require [clojure.data.json :as json]
[metrics.gauges :refer [defgauge]]
[somnium.congomongo :as m]
[cayenne.conf :as conf]
[cayenne.api.v1.response :as r]
[cayenne.api.v1.query :as q]
[cayen... | 16972 | (ns cayenne.data.deposit
(:import [java.util Date])
(:require [clojure.data.json :as json]
[metrics.gauges :refer [defgauge]]
[somnium.congomongo :as m]
[cayenne.conf :as conf]
[cayenne.api.v1.response :as r]
[cayenne.api.v1.query :as q]
[cayen... | true | (ns cayenne.data.deposit
(:import [java.util Date])
(:require [clojure.data.json :as json]
[metrics.gauges :refer [defgauge]]
[somnium.congomongo :as m]
[cayenne.conf :as conf]
[cayenne.api.v1.response :as r]
[cayenne.api.v1.query :as q]
[cayen... |
[
{
"context": " [:copyright \"℗ & © 2005 John Doe & Family\"]\n [:itunes:subtitle \"ePubを",
"end": 1638,
"score": 0.9998683333396912,
"start": 1630,
"tag": "NAME",
"value": "John Doe"
},
{
"context": "bをPodcastで配信するサーバの実験\"]\n [:itunes:a... | src/epubcast/core.clj | deltam/ePubcast | 1 | (ns epubcast.core
"experiment server for publishing ePub on Podcast RSS."
(:gen-class)
(:use [clojure.java.io :only (file)]
[clojure.contrib.io :only (reader writer)]
[clojure.contrib.seq :only (rand-elt)]
[compojure.core]
[hiccup.core]
[hiccup.form-helpers]
[ring.m... | 4612 | (ns epubcast.core
"experiment server for publishing ePub on Podcast RSS."
(:gen-class)
(:use [clojure.java.io :only (file)]
[clojure.contrib.io :only (reader writer)]
[clojure.contrib.seq :only (rand-elt)]
[compojure.core]
[hiccup.core]
[hiccup.form-helpers]
[ring.m... | true | (ns epubcast.core
"experiment server for publishing ePub on Podcast RSS."
(:gen-class)
(:use [clojure.java.io :only (file)]
[clojure.contrib.io :only (reader writer)]
[clojure.contrib.seq :only (rand-elt)]
[compojure.core]
[hiccup.core]
[hiccup.form-helpers]
[ring.m... |
[
{
"context": "ch -- Predicate logic\n\n; Copyright (c) 2016 - 2018 Burkhardt Renz, THM. All rights reserved.\n; The use and distribu",
"end": 84,
"score": 0.9998691082000732,
"start": 70,
"tag": "NAME",
"value": "Burkhardt Renz"
},
{
"context": " phi6 world-5-11)\n; => false\n\n;; Ex... | src/lwb/pred/examples/halbach.clj | esb-lwb/lwb | 22 | ; lwb Logic WorkBench -- Predicate logic
; Copyright (c) 2016 - 2018 Burkhardt Renz, THM. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php).
; By using this software in any fashion, you are agreeing t... | 48309 | ; lwb Logic WorkBench -- Predicate logic
; Copyright (c) 2016 - 2018 <NAME>, THM. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php).
; By using this software in any fashion, you are agreeing to be bou... | true | ; lwb Logic WorkBench -- Predicate logic
; Copyright (c) 2016 - 2018 PI:NAME:<NAME>END_PI, THM. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php).
; By using this software in any fashion, you are agre... |
[
{
"context": " (Associative Destructuring)\n(def a-name {:first \"Toto\" :last \"Mookey\" :salutation \"Mr.\"})\n\n(println a-n",
"end": 75,
"score": 0.9997372627258301,
"start": 71,
"tag": "NAME",
"value": "Toto"
},
{
"context": " Destructuring)\n(def a-name {:first \"Toto\" :last \... | session/01_languages/05-dps-3.clj | DhavalDalal/destructuring-and-pattern-matching | 2 | ; Destructuring a map (Associative Destructuring)
(def a-name {:first "Toto" :last "Mookey" :salutation "Mr."})
(println a-name)
(let [{fname :first lname :last} a-name]
(println fname lname))
(require '[clojure.string :refer [upper-case]])
(defn capitalize [{fname :first lname :last}]
(str (upper-case fname... | 124707 | ; Destructuring a map (Associative Destructuring)
(def a-name {:first "<NAME>" :last "<NAME>" :salutation "Mr."})
(println a-name)
(let [{fname :first lname :last} a-name]
(println fname lname))
(require '[clojure.string :refer [upper-case]])
(defn capitalize [{fname :first lname :last}]
(str (upper-case fna... | true | ; Destructuring a map (Associative Destructuring)
(def a-name {:first "PI:NAME:<NAME>END_PI" :last "PI:NAME:<NAME>END_PI" :salutation "Mr."})
(println a-name)
(let [{fname :first lname :last} a-name]
(println fname lname))
(require '[clojure.string :refer [upper-case]])
(defn capitalize [{fname :first lname :la... |
[
{
"context": ") (dec cnt))\n ))\n\n; destructuring\n(def names [\"Bob\" \"Joe\" \"Sam\" \"Ned\" \"Homer\" \"Bart\"])\n(let [[item1 ",
"end": 380,
"score": 0.9997652769088745,
"start": 377,
"tag": "NAME",
"value": "Bob"
},
{
"context": " cnt))\n ))\n\n; destructuring\n(def names... | aoc-2020/src/aoc_2020/playground.clj | xfr3386/aoc_clojure | 0 | (ns playground
(:require [clojure.string :as str])
(:require [clojure.edn :as edn])
(:require [clojure.math.numeric-tower :as math]))
; print 0, -1, -2, -3, -4
(loop [i 0]
(when (> i -5)
(println i)
(recur (dec i))
))
; sum of 10+9+8+7...
(loop [sum 0 cnt 10]
(if (= cnt 0)
sum
(recur (+ ... | 97743 | (ns playground
(:require [clojure.string :as str])
(:require [clojure.edn :as edn])
(:require [clojure.math.numeric-tower :as math]))
; print 0, -1, -2, -3, -4
(loop [i 0]
(when (> i -5)
(println i)
(recur (dec i))
))
; sum of 10+9+8+7...
(loop [sum 0 cnt 10]
(if (= cnt 0)
sum
(recur (+ ... | true | (ns playground
(:require [clojure.string :as str])
(:require [clojure.edn :as edn])
(:require [clojure.math.numeric-tower :as math]))
; print 0, -1, -2, -3, -4
(loop [i 0]
(when (> i -5)
(println i)
(recur (dec i))
))
; sum of 10+9+8+7...
(loop [sum 0 cnt 10]
(if (= cnt 0)
sum
(recur (+ ... |
[
{
"context": "wordpress.com/2016/03/hll-fig-3.png\n;;\n;; To quote Adrian: \"The end result is that for an important ran",
"end": 731,
"score": 0.7356041669845581,
"start": 729,
"tag": "NAME",
"value": "Ad"
}
] | src/hllsandbox/notes.clj | amontalenti/hyperloglog-sandbox | 1 | (ns hllsandbox.notes)
;; Notes from reading HyperLogLogPlusPlus.java from Elasticsearch:
;;
;; - Precision min/max is 4 - 18
;; - There are also "thresholds" which provide a convenience over
;; the precision values; the set looks like [10, 20, ..., 350000]
;; and they map to the precision values.
;; - When the HLL... | 38881 | (ns hllsandbox.notes)
;; Notes from reading HyperLogLogPlusPlus.java from Elasticsearch:
;;
;; - Precision min/max is 4 - 18
;; - There are also "thresholds" which provide a convenience over
;; the precision values; the set looks like [10, 20, ..., 350000]
;; and they map to the precision values.
;; - When the HLL... | true | (ns hllsandbox.notes)
;; Notes from reading HyperLogLogPlusPlus.java from Elasticsearch:
;;
;; - Precision min/max is 4 - 18
;; - There are also "thresholds" which provide a convenience over
;; the precision values; the set looks like [10, 20, ..., 350000]
;; and they map to the precision values.
;; - When the HLL... |
[
{
"context": "tegory\" \"reference\"\n \"author\" \"Nigel Rees\"\n \"title\" \"Sayings of the Cen",
"end": 500,
"score": 0.9998818635940552,
"start": 490,
"tag": "NAME",
"value": "Nigel Rees"
},
{
"context": "category\" \"fiction\"\n ... | src/test/com/yetanalytics/pathetic/json_test.cljc | yetanalytics/pathetic | 10 | (ns com.yetanalytics.pathetic.json-test
(:require [clojure.test :refer [deftest testing is]]
[clojure.spec.alpha :as s]
[clojure.test.check]
[clojure.test.check.properties]
[clojure.spec.test.alpha :as stest]
[com.yetanalytics.pathetic.json :as json
... | 9841 | (ns com.yetanalytics.pathetic.json-test
(:require [clojure.test :refer [deftest testing is]]
[clojure.spec.alpha :as s]
[clojure.test.check]
[clojure.test.check.properties]
[clojure.spec.test.alpha :as stest]
[com.yetanalytics.pathetic.json :as json
... | true | (ns com.yetanalytics.pathetic.json-test
(:require [clojure.test :refer [deftest testing is]]
[clojure.spec.alpha :as s]
[clojure.test.check]
[clojure.test.check.properties]
[clojure.spec.test.alpha :as stest]
[com.yetanalytics.pathetic.json :as json
... |
[
{
"context": "intln (let [progeny\n #{[\"father\" \"son\"] [\"uncle\" \"cousin\"] [\"son\" \"grandson\"]}]\n ",
"end": 736,
"score": 0.8869077563285828,
"start": 733,
"tag": "NAME",
"value": "son"
},
{
"context": "et [progeny\n #{[\"father\" \"so... | src/clojure4j/explorer/questions/$81to90/$84_set_theory_h_transitive_closure.clj | ningDr/clojure-4-me | 0 | (ns clojure4j.explorer.questions.$81to90.$84-set-theory-h-transitive-closure
(:require [clojure.set]))
(defn transitive-closure
"Write a function which generates the transitive closure of a binary relation.
The relation will be represented as a set of 2 item vectors."
[arg]
(println (let [divides #{[8 4] [9 ... | 82722 | (ns clojure4j.explorer.questions.$81to90.$84-set-theory-h-transitive-closure
(:require [clojure.set]))
(defn transitive-closure
"Write a function which generates the transitive closure of a binary relation.
The relation will be represented as a set of 2 item vectors."
[arg]
(println (let [divides #{[8 4] [9 ... | true | (ns clojure4j.explorer.questions.$81to90.$84-set-theory-h-transitive-closure
(:require [clojure.set]))
(defn transitive-closure
"Write a function which generates the transitive closure of a binary relation.
The relation will be represented as a set of 2 item vectors."
[arg]
(println (let [divides #{[8 4] [9 ... |
[
{
"context": "auth-by-username-password\n conn\n \"zk+test-rx@heyzk.com\"\n \"Test1234\")\n <?))\n\n(def cog-schem",
"end": 752,
"score": 0.999804675579071,
"start": 732,
"tag": "EMAIL",
"value": "zk+test-rx@heyzk.com"
},
{
"context": " conn\n ... | src/cljs/rx/box/sync_client_test.cljs | zk/rx-lib | 0 | (ns rx.box.sync-client-test
(:require [rx.kitchen-sink :as ks]
[rx.res :as res]
[rx.anom :as anom
:refer-macros [<defn <?]]
[rx.aws :as aws]
[rx.box.common :as com]
[rx.box.auth :as auth]
[rx.box.test-helpers :as th]
[rx.... | 52818 | (ns rx.box.sync-client-test
(:require [rx.kitchen-sink :as ks]
[rx.res :as res]
[rx.anom :as anom
:refer-macros [<defn <?]]
[rx.aws :as aws]
[rx.box.common :as com]
[rx.box.auth :as auth]
[rx.box.test-helpers :as th]
[rx.... | true | (ns rx.box.sync-client-test
(:require [rx.kitchen-sink :as ks]
[rx.res :as res]
[rx.anom :as anom
:refer-macros [<defn <?]]
[rx.aws :as aws]
[rx.box.common :as com]
[rx.box.auth :as auth]
[rx.box.test-helpers :as th]
[rx.... |
[
{
"context": "n matching in clojure\"\n :url \"https://github.com/justiniac/matchure\"\n :license {:name \"Copyright (c) 2011 D",
"end": 156,
"score": 0.992375373840332,
"start": 147,
"tag": "USERNAME",
"value": "justiniac"
},
{
"context": "ac/matchure\"\n :license {:name \"Copyri... | project.clj | fdserr/matchure | 4 | (defproject org.clojars.justiniac/matchure "0.13.1"
:description "Idiomatic and powerful pattern matching in clojure"
:url "https://github.com/justiniac/matchure"
:license {:name "Copyright (c) 2011 Drew Colthorp"
:url "https://github.com/justiniac/matchure#license"}
:dependencies [[org.clojure/cloj... | 64377 | (defproject org.clojars.justiniac/matchure "0.13.1"
:description "Idiomatic and powerful pattern matching in clojure"
:url "https://github.com/justiniac/matchure"
:license {:name "Copyright (c) 2011 <NAME>"
:url "https://github.com/justiniac/matchure#license"}
:dependencies [[org.clojure/clojure "1.... | true | (defproject org.clojars.justiniac/matchure "0.13.1"
:description "Idiomatic and powerful pattern matching in clojure"
:url "https://github.com/justiniac/matchure"
:license {:name "Copyright (c) 2011 PI:NAME:<NAME>END_PI"
:url "https://github.com/justiniac/matchure#license"}
:dependencies [[org.cloju... |
[
{
"context": " managing the context stack.\"\n ;;\n ;; 2019-12-05 Klaus Harbo\n ;;\n ;; We need this because Clojupyter functio",
"end": 859,
"score": 0.9998895525932312,
"start": 848,
"tag": "NAME",
"value": "Klaus Harbo"
},
{
"context": "for now, this is how we do it.\n ;;\n ... | src/clojupyter/state.clj | nighcoder/clojupyter | 2 | (ns clojupyter.state
(:require [clojupyter.util-actions :as u!]
[io.simplect.compose :refer [p P]]))
(def STATE (atom {:execute-count 1N
:display-queue []
:history-session nil
:zmq-context nil
:halt? false
:co... | 88602 | (ns clojupyter.state
(:require [clojupyter.util-actions :as u!]
[io.simplect.compose :refer [p P]]))
(def STATE (atom {:execute-count 1N
:display-queue []
:history-session nil
:zmq-context nil
:halt? false
:co... | true | (ns clojupyter.state
(:require [clojupyter.util-actions :as u!]
[io.simplect.compose :refer [p P]]))
(def STATE (atom {:execute-count 1N
:display-queue []
:history-session nil
:zmq-context nil
:halt? false
:co... |
[
{
"context": "noisy [] (swap! noisy (fn [n] (not n))))\n;;From Stuart Sierra's blog post, for catching otherwise \"slien",
"end": 1024,
"score": 0.6115736961364746,
"start": 1020,
"tag": "NAME",
"value": "uart"
},
{
"context": "] (swap! noisy (fn [n] (not n))))\n;;From Stuart Sierra'... | src/nightclub/core.clj | joinr/nightclub | 6 | (ns nightclub.core
(:require [nightcode.customizations :as custom]
[nightcode.editors :as editors]
[nightcode.projects :as projects]
[nightcode.utils :as utils]
[nightcode.sandbox :as sandbox]
[nightcode.repl :as repl]
[nightcode.shortcuts :as sh... | 11501 | (ns nightclub.core
(:require [nightcode.customizations :as custom]
[nightcode.editors :as editors]
[nightcode.projects :as projects]
[nightcode.utils :as utils]
[nightcode.sandbox :as sandbox]
[nightcode.repl :as repl]
[nightcode.shortcuts :as sh... | true | (ns nightclub.core
(:require [nightcode.customizations :as custom]
[nightcode.editors :as editors]
[nightcode.projects :as projects]
[nightcode.utils :as utils]
[nightcode.sandbox :as sandbox]
[nightcode.repl :as repl]
[nightcode.shortcuts :as sh... |
[
{
"context": "file is part of gorilla-repl. Copyright (C) 2014-, Jony Hudson.\n;;;;\n;;;; gorilla-repl is licenced to you under ",
"end": 72,
"score": 0.9997404217720032,
"start": 61,
"tag": "NAME",
"value": "Jony Hudson"
},
{
"context": "n the notebook style.\"\n :url \"https://git... | project.clj | benfb/gorilla-repl | 39 | ;;;; This file is part of gorilla-repl. Copyright (C) 2014-, Jony Hudson.
;;;;
;;;; gorilla-repl is licenced to you under the MIT licence. See the file LICENCE.txt for full details.
(defproject org.clojars.benfb/gorilla-repl "0.7.0"
:description "A rich REPL for Clojure in the notebook style."
:url "https://github... | 5305 | ;;;; This file is part of gorilla-repl. Copyright (C) 2014-, <NAME>.
;;;;
;;;; gorilla-repl is licenced to you under the MIT licence. See the file LICENCE.txt for full details.
(defproject org.clojars.benfb/gorilla-repl "0.7.0"
:description "A rich REPL for Clojure in the notebook style."
:url "https://github.com/... | true | ;;;; This file is part of gorilla-repl. Copyright (C) 2014-, PI:NAME:<NAME>END_PI.
;;;;
;;;; gorilla-repl is licenced to you under the MIT licence. See the file LICENCE.txt for full details.
(defproject org.clojars.benfb/gorilla-repl "0.7.0"
:description "A rich REPL for Clojure in the notebook style."
:url "https... |
[
{
"context": " :dbpedia.resource/Pablo-Picasso ; id\n :name \"Pablo\"\n :last-name \"Picasso\"\n :location \"Spain\"",
"end": 544,
"score": 0.9996162056922913,
"start": 539,
"tag": "NAME",
"value": "Pablo"
},
{
"context": "-Picasso ; id\n :name \"Pablo\"\n :last-n... | docs/example/repl-walkthrough/walkthrough.clj | deobald/crux | 0 | ;; load a repl with the latest crux-core dependency, e.g. using clj:
;; $ clj -Sdeps '{:deps {juxt/crux-core {:mvn/version "RELEASE"}}}'
(ns walkthrough.crux-standalone
(:require [crux.api :as crux])
(:import (crux.api ICruxAPI)))
;; this in-memory configuration is the easiest way to try Crux, no Kafka needed
(de... | 76708 | ;; load a repl with the latest crux-core dependency, e.g. using clj:
;; $ clj -Sdeps '{:deps {juxt/crux-core {:mvn/version "RELEASE"}}}'
(ns walkthrough.crux-standalone
(:require [crux.api :as crux])
(:import (crux.api ICruxAPI)))
;; this in-memory configuration is the easiest way to try Crux, no Kafka needed
(de... | true | ;; load a repl with the latest crux-core dependency, e.g. using clj:
;; $ clj -Sdeps '{:deps {juxt/crux-core {:mvn/version "RELEASE"}}}'
(ns walkthrough.crux-standalone
(:require [crux.api :as crux])
(:import (crux.api ICruxAPI)))
;; this in-memory configuration is the easiest way to try Crux, no Kafka needed
(de... |
[
{
"context": "; Copyright (c) Rich Hickey. All rights reserved.\n; The use and distributio",
"end": 29,
"score": 0.9998687505722046,
"start": 18,
"tag": "NAME",
"value": "Rich Hickey"
},
{
"context": "\"Tests for clojure.core/gen-class\"\n :author \"Stuart Halloway, Daniel S... | test/clojure/test_clojure/genclass.clj | lorettahe/clojure | 1 | ; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any ... | 81302 | ; Copyright (c) <NAME>. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashi... | true | ; Copyright (c) PI:NAME:<NAME>END_PI. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this softwar... |
[
{
"context": ";;;; 05.aug.15\n\n;;; p. 14\n\n(conj #{} \"John\")\n\n(def visitors (atom #{}))\n\n;;; (swap! referenc",
"end": 42,
"score": 0.9997096061706543,
"start": 38,
"tag": "NAME",
"value": "John"
},
{
"context": "eference update-fn & args)\n\n(swap! visitors conj \"Steph\")\n\... | book-programming-clj-2nd-ed/visitors.clj | reddress/clojuring | 0 | ;;;; 05.aug.15
;;; p. 14
(conj #{} "John")
(def visitors (atom #{}))
;;; (swap! reference update-fn & args)
(swap! visitors conj "Steph")
@visitors
;;; or
(deref visitors)
(defn hello
"Writes 'Hello name'. Saves names to visitors atom"
[username]
(println (str "Hello " (if (some #{username} @visitors) "a... | 55750 | ;;;; 05.aug.15
;;; p. 14
(conj #{} "<NAME>")
(def visitors (atom #{}))
;;; (swap! reference update-fn & args)
(swap! visitors conj "<NAME>")
@visitors
;;; or
(deref visitors)
(defn hello
"Writes 'Hello name'. Saves names to visitors atom"
[username]
(println (str "Hello " (if (some #{username} @visitors)... | true | ;;;; 05.aug.15
;;; p. 14
(conj #{} "PI:NAME:<NAME>END_PI")
(def visitors (atom #{}))
;;; (swap! reference update-fn & args)
(swap! visitors conj "PI:NAME:<NAME>END_PI")
@visitors
;;; or
(deref visitors)
(defn hello
"Writes 'Hello name'. Saves names to visitors atom"
[username]
(println (str "Hello " (if ... |
[
{
"context": "r]))\n\n; Most codes taken from: https://github.com/redplanetlabs/specter/blob/master/README.md\n\n; ex: Increment ev",
"end": 138,
"score": 0.9996509552001953,
"start": 125,
"tag": "USERNAME",
"value": "redplanetlabs"
},
{
"context": " · redplanetlabs/specter Wiki](htt... | clj/ex/study_specter/e01/src/specter01.clj | mertnuhoglu/study | 1 | (ns specter01
(:use [com.rpl.specter])
(:require [clojure.string :as str]))
; Most codes taken from: https://github.com/redplanetlabs/specter/blob/master/README.md
; ex: Increment every even number nested within map of vector of maps id=g11441
(def data {:a [{:aa 1 :bb 2}
{:cc 3}]
:b [{... | 74739 | (ns specter01
(:use [com.rpl.specter])
(:require [clojure.string :as str]))
; Most codes taken from: https://github.com/redplanetlabs/specter/blob/master/README.md
; ex: Increment every even number nested within map of vector of maps id=g11441
(def data {:a [{:aa 1 :bb 2}
{:cc 3}]
:b [{... | true | (ns specter01
(:use [com.rpl.specter])
(:require [clojure.string :as str]))
; Most codes taken from: https://github.com/redplanetlabs/specter/blob/master/README.md
; ex: Increment every even number nested within map of vector of maps id=g11441
(def data {:a [{:aa 1 :bb 2}
{:cc 3}]
:b [{... |
[
{
"context": "; Copyright (c) 2017-present Walmart, Inc.\n;\n; Licensed under the Apache License, Vers",
"end": 36,
"score": 0.7134128212928772,
"start": 29,
"tag": "NAME",
"value": "Walmart"
},
{
"context": "\"\n :best_friend {:name \"Luke Skywalker\"}}}}\n... | test/com/walmartlabs/lacinia/variables_test.clj | hagenek/lacinia | 1,762 | ; Copyright (c) 2017-present Walmart, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to... | 117872 | ; Copyright (c) 2017-present <NAME>, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to ... | true | ; Copyright (c) 2017-present PI:NAME:<NAME>END_PI, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law... |
[
{
"context": "e* tool that you can find at: <https://github.com/fredokun/markdownize>\n;; \n;; Also, there are a few exercis",
"end": 1936,
"score": 0.9866346716880798,
"start": 1928,
"tag": "USERNAME",
"value": "fredokun"
},
{
"context": "plaining things to other people.\n;; \n;; My... | src/latte_tutorial/ch01_front_matter.clj | latte-central/latte-tutorial | 2 |
;;{
;; # Introduction
;;}
(ns latte-tutorial.ch01-front-matter)
;;{
;; This document is a tutorial introduction to the LaTTe proof assistant.
;;
;; My primary goal is to write:
;;
;; - a quick startup guide to LaTTe,
;; - a pedagogical overview of its main features,
;; - a first experiment with important pro... | 53534 |
;;{
;; # Introduction
;;}
(ns latte-tutorial.ch01-front-matter)
;;{
;; This document is a tutorial introduction to the LaTTe proof assistant.
;;
;; My primary goal is to write:
;;
;; - a quick startup guide to LaTTe,
;; - a pedagogical overview of its main features,
;; - a first experiment with important pro... | true |
;;{
;; # Introduction
;;}
(ns latte-tutorial.ch01-front-matter)
;;{
;; This document is a tutorial introduction to the LaTTe proof assistant.
;;
;; My primary goal is to write:
;;
;; - a quick startup guide to LaTTe,
;; - a pedagogical overview of its main features,
;; - a first experiment with important pro... |
[
{
"context": "eflate, sdch\",\n :X-Forwarded-For \"127.0.0.1, 127.0.0.2\",\n :CloudFront-Viewer-Country \"U",
"end": 1394,
"score": 0.9997550249099731,
"start": 1385,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "h\",\n :X-Forwarded-For ... | test/lambda/api_test.clj | raiffeisenbankinternational/edd-core | 4 | (ns lambda.api-test
(:require
[lambda.core :refer [handle-request]]
[clojure.string :as str]
[lambda.util :refer [to-edn]]
[lambda.filters :as fl]
[lambda.util :as util]
[clojure.test :refer :all]
[lambda.core :as core]
[lambda.jwt-test :as jwt-test]
[lambda.test.fixture.client :refer [veri... | 106366 | (ns lambda.api-test
(:require
[lambda.core :refer [handle-request]]
[clojure.string :as str]
[lambda.util :refer [to-edn]]
[lambda.filters :as fl]
[lambda.util :as util]
[clojure.test :refer :all]
[lambda.core :as core]
[lambda.jwt-test :as jwt-test]
[lambda.test.fixture.client :refer [veri... | true | (ns lambda.api-test
(:require
[lambda.core :refer [handle-request]]
[clojure.string :as str]
[lambda.util :refer [to-edn]]
[lambda.filters :as fl]
[lambda.util :as util]
[clojure.test :refer :all]
[lambda.core :as core]
[lambda.jwt-test :as jwt-test]
[lambda.test.fixture.client :refer [veri... |
[
{
"context": "\")\n\n; --- Day 4: The Ideal Stocking Stuffer ---\n\n; Santa needs help mining some AdventCoins (very similar ",
"end": 123,
"score": 0.7708238959312439,
"start": 118,
"tag": "NAME",
"value": "Santa"
},
{
"context": "r in decimal. To mine AdventCoins, you\n; must find ... | src/aoc/day4.clj | magopian/adventofcode | 0 | ; http://adventofcode.com/day/4
(ns aoc.day4)
(def input "iwrupvqb")
; --- Day 4: The Ideal Stocking Stuffer ---
; Santa needs help mining some AdventCoins (very similar to bitcoins) to use as
; gifts for all the economically forward-thinking little girls and boys.
; To do this, he needs to find MD5 hashes which, i... | 75944 | ; http://adventofcode.com/day/4
(ns aoc.day4)
(def input "iwrupvqb")
; --- Day 4: The Ideal Stocking Stuffer ---
; <NAME> needs help mining some AdventCoins (very similar to bitcoins) to use as
; gifts for all the economically forward-thinking little girls and boys.
; To do this, he needs to find MD5 hashes which, ... | true | ; http://adventofcode.com/day/4
(ns aoc.day4)
(def input "iwrupvqb")
; --- Day 4: The Ideal Stocking Stuffer ---
; PI:NAME:<NAME>END_PI needs help mining some AdventCoins (very similar to bitcoins) to use as
; gifts for all the economically forward-thinking little girls and boys.
; To do this, he needs to find MD5 ... |
[
{
"context": "ollects results from workers via that socket\n;;\n;; Isaiah Peng <issaria@gmail.com>\n;;\n\n(defn -main []\n (let [ct",
"end": 209,
"score": 0.9998717904090881,
"start": 198,
"tag": "NAME",
"value": "Isaiah Peng"
},
{
"context": "s from workers via that socket\n;;\n;; ... | docs/zeroMQ-guide2/examples/Clojure/tasksink.clj | krattai/noo-ebs | 2 | (ns tasksink
(:refer-clojure :exclude [send])
(:require [zhelpers :as mq]))
;;
;; Task sink
;; Binds PULL socket to tcp://localhost:5558
;; Collects results from workers via that socket
;;
;; Isaiah Peng <issaria@gmail.com>
;;
(defn -main []
(let [ctx (mq/context 1)
receiver (mq/socket ctx mq/pull)]
... | 56700 | (ns tasksink
(:refer-clojure :exclude [send])
(:require [zhelpers :as mq]))
;;
;; Task sink
;; Binds PULL socket to tcp://localhost:5558
;; Collects results from workers via that socket
;;
;; <NAME> <<EMAIL>>
;;
(defn -main []
(let [ctx (mq/context 1)
receiver (mq/socket ctx mq/pull)]
(mq/bind rece... | true | (ns tasksink
(:refer-clojure :exclude [send])
(:require [zhelpers :as mq]))
;;
;; Task sink
;; Binds PULL socket to tcp://localhost:5558
;; Collects results from workers via that socket
;;
;; PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
;;
(defn -main []
(let [ctx (mq/context 1)
receiver (mq/socket ct... |
[
{
"context": "ed\"})\n grape (default-conn/create! {:name \"grape\"})]\n (is (= (default-conn/update! {:appearance",
"end": 2689,
"score": 0.7036882638931274,
"start": 2684,
"tag": "NAME",
"value": "grape"
},
{
"context": "ed\"})\n grape (default-conn/create! {:name ... | test/simple_crud_jdbc/core_test.clj | adambaker/simple-crud-jdbc | 1 | (ns simple-crud-jdbc.core-test
(:require [clojure.test :refer :all]
[environ.core :refer [env]]
[clojure.java.jdbc :as jdbc]
[conman.core :refer [connect! disconnect! with-transaction]]
[simple-crud-jdbc.core]))
(def ^:dynamic *db* nil)
(use-fixtures :once
(fn [test... | 115633 | (ns simple-crud-jdbc.core-test
(:require [clojure.test :refer :all]
[environ.core :refer [env]]
[clojure.java.jdbc :as jdbc]
[conman.core :refer [connect! disconnect! with-transaction]]
[simple-crud-jdbc.core]))
(def ^:dynamic *db* nil)
(use-fixtures :once
(fn [test... | true | (ns simple-crud-jdbc.core-test
(:require [clojure.test :refer :all]
[environ.core :refer [env]]
[clojure.java.jdbc :as jdbc]
[conman.core :refer [connect! disconnect! with-transaction]]
[simple-crud-jdbc.core]))
(def ^:dynamic *db* nil)
(use-fixtures :once
(fn [test... |
[
{
"context": "www.fillmurray.com/300/200\"\n :alt \"Bill Murray is great!\"})\n(def img {:tag :img\n :attrs",
"end": 9404,
"score": 0.9985469579696655,
"start": 9393,
"tag": "NAME",
"value": "Bill Murray"
}
] | rss-saver-tests.clj | adam-james-v/rss-saver | 4 | (ns rss-saver.main-test
(:require [clojure.string :as str]
[clojure.data.xml :as xml]
[clojure.java.io :as io]
[clojure.zip :as zip]
[clojure.java.shell :as sh :refer [sh]]
[clojure.tools.cli :as cli]
[clojure.test :as t :refer [deftest is]]
... | 99923 | (ns rss-saver.main-test
(:require [clojure.string :as str]
[clojure.data.xml :as xml]
[clojure.java.io :as io]
[clojure.zip :as zip]
[clojure.java.shell :as sh :refer [sh]]
[clojure.tools.cli :as cli]
[clojure.test :as t :refer [deftest is]]
... | true | (ns rss-saver.main-test
(:require [clojure.string :as str]
[clojure.data.xml :as xml]
[clojure.java.io :as io]
[clojure.zip :as zip]
[clojure.java.shell :as sh :refer [sh]]
[clojure.tools.cli :as cli]
[clojure.test :as t :refer [deftest is]]
... |
[
{
"context": "rapper for Mithril.js\"\n :url \"https://github.com/owengalenjones/moria\"\n :signing {:gpg-key \"owengalenjones@gmail",
"end": 114,
"score": 0.9991634488105774,
"start": 100,
"tag": "USERNAME",
"value": "owengalenjones"
},
{
"context": "b.com/owengalenjones/moria\"\n... | project.clj | chr15m/moria | 25 | (defproject moria "1.0.1-0"
:description "CLJS Wrapper for Mithril.js"
:url "https://github.com/owengalenjones/moria"
:signing {:gpg-key "owengalenjones@gmail.com"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.8.51"]
[cljsjs/mithril "1.0.1-0"]]
:... | 115309 | (defproject moria "1.0.1-0"
:description "CLJS Wrapper for Mithril.js"
:url "https://github.com/owengalenjones/moria"
:signing {:gpg-key "<EMAIL>"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.8.51"]
[cljsjs/mithril "1.0.1-0"]]
:jvm-opts ^:replac... | true | (defproject moria "1.0.1-0"
:description "CLJS Wrapper for Mithril.js"
:url "https://github.com/owengalenjones/moria"
:signing {:gpg-key "PI:EMAIL:<EMAIL>END_PI"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.8.51"]
[cljsjs/mithril "1.0.1-0"]]
:jv... |
[
{
"context": " (:use cloki))\n\n(def test-wiki \"http://localhost/~steve/mediawiki/api.php\")\n(def test-user \"Admin\")\n(def ",
"end": 93,
"score": 0.9990675449371338,
"start": 88,
"tag": "USERNAME",
"value": "steve"
},
{
"context": "alhost/~steve/mediawiki/api.php\")\n(def test-us... | test/cloki_test.clj | stevemolitor/cloki | 3 | (ns cloki-test
(:use clojure.test)
(:use cloki))
(def test-wiki "http://localhost/~steve/mediawiki/api.php")
(def test-user "Admin")
(def test-password "password")
(deftest test-login
(let [session (login test-wiki test-user test-password)]
(is (not (nil? (:cookies @(:state session)))))
(is (= test-wiki... | 72229 | (ns cloki-test
(:use clojure.test)
(:use cloki))
(def test-wiki "http://localhost/~steve/mediawiki/api.php")
(def test-user "Admin")
(def test-password "<PASSWORD>")
(deftest test-login
(let [session (login test-wiki test-user test-password)]
(is (not (nil? (:cookies @(:state session)))))
(is (= test-wi... | true | (ns cloki-test
(:use clojure.test)
(:use cloki))
(def test-wiki "http://localhost/~steve/mediawiki/api.php")
(def test-user "Admin")
(def test-password "PI:PASSWORD:<PASSWORD>END_PI")
(deftest test-login
(let [session (login test-wiki test-user test-password)]
(is (not (nil? (:cookies @(:state session)))))
... |
[
{
"context": "d-username\n (let [short-id \"st\"\n long-id \"485879@vho-switchaai.chhttps://aai-logon.vho-switch",
"end": 625,
"score": 0.6634045839309692,
"start": 624,
"tag": "EMAIL",
"value": "4"
},
{
"context": "rname\n (let [short-id \"st\"\n long-id \"485879@vho... | cimi/test/com/sixsq/slipstream/auth/utils/db_test.clj | slipstream/SlipStreamServer | 6 | (ns com.sixsq.slipstream.auth.utils.db-test
(:refer-clojure :exclude [update])
(:require
[clojure.test :refer :all]
[com.sixsq.slipstream.auth.internal :as ia]
[com.sixsq.slipstream.auth.test-helper :as th]
[com.sixsq.slipstream.auth.utils.db :as db]
[com.sixsq.slipstream.ssclj.resources.common.... | 94266 | (ns com.sixsq.slipstream.auth.utils.db-test
(:refer-clojure :exclude [update])
(:require
[clojure.test :refer :all]
[com.sixsq.slipstream.auth.internal :as ia]
[com.sixsq.slipstream.auth.test-helper :as th]
[com.sixsq.slipstream.auth.utils.db :as db]
[com.sixsq.slipstream.ssclj.resources.common.... | true | (ns com.sixsq.slipstream.auth.utils.db-test
(:refer-clojure :exclude [update])
(:require
[clojure.test :refer :all]
[com.sixsq.slipstream.auth.internal :as ia]
[com.sixsq.slipstream.auth.test-helper :as th]
[com.sixsq.slipstream.auth.utils.db :as db]
[com.sixsq.slipstream.ssclj.resources.common.... |
[
{
"context": "ort-value :last-name}}\n item {:first-name \"Aku\" :last-name \"Ankka\"}]\n (testing \"no filters\"\n ",
"end": 1443,
"score": 0.9995077848434448,
"start": 1440,
"tag": "NAME",
"value": "Aku"
},
{
"context": "ame}}\n item {:first-name \"Aku\" :last-name... | test/cljs/rems/test/table.cljs | secureb2share/secureb2share-rems | 0 | (ns rems.test.table
(:require [cljs.test :refer-macros [deftest is testing]]
[rems.table :refer [matches-filter matches-filters apply-filtering]]))
(deftest matches-filter-test
(let [column-definitions {:string-col {:sort-value :string}
:numeric-col {:sort-value :numeric}}]... | 77797 | (ns rems.test.table
(:require [cljs.test :refer-macros [deftest is testing]]
[rems.table :refer [matches-filter matches-filters apply-filtering]]))
(deftest matches-filter-test
(let [column-definitions {:string-col {:sort-value :string}
:numeric-col {:sort-value :numeric}}]... | true | (ns rems.test.table
(:require [cljs.test :refer-macros [deftest is testing]]
[rems.table :refer [matches-filter matches-filters apply-filtering]]))
(deftest matches-filter-test
(let [column-definitions {:string-col {:sort-value :string}
:numeric-col {:sort-value :numeric}}]... |
[
{
"context": "mplementations of reduce-map-filter.\"\n :author \"palisades dot lakes at gmail dot com\"\n :version \"20",
"end": 253,
"score": 0.8178306221961975,
"start": 250,
"tag": "EMAIL",
"value": "pal"
},
{
"context": "ementations of reduce-map-filter.\"\n :author \"palis... | src/main/clojure/palisades/lakes/collex/transduce.clj | palisades-lakes/collection-experiments | 0 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.collex.transduce
{:doc "Alternate implementations of reduce-map-filter."
:author "palisades dot lakes at gmail dot com"
:version "2017-12-18"}
(:re... | 91254 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.collex.transduce
{:doc "Alternate implementations of reduce-map-filter."
:author "<EMAIL> <NAME> <EMAIL> at <EMAIL>"
:version "2017-12-18"}
(:requi... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.collex.transduce
{:doc "Alternate implementations of reduce-map-filter."
:author "PI:EMAIL:<EMAIL>END_PI PI:NAME:<NAME>END_PI PI:EMAIL:<EMAIL>END_PI at ... |
[
{
"context": "[1 2 3]\n(get [1 2 3] 0)\n(get [1 {:first-name \"Leandro\" :last-name \"TK\"} 2] 1)\n(vector \"a\" \"new\" \"vector",
"end": 53,
"score": 0.9996168613433838,
"start": 46,
"tag": "NAME",
"value": "Leandro"
},
{
"context": " 3] 0)\n(get [1 {:first-name \"Leandro\" :last-n... | clojure/vectors.clj | galanggg/learning-functional-programming | 1 | [1 2 3]
(get [1 2 3] 0)
(get [1 {:first-name "Leandro" :last-name "TK"} 2] 1)
(vector "a" "new" "vector" "of" "strings")
(conj [1 2 3] 4)
| 52919 | [1 2 3]
(get [1 2 3] 0)
(get [1 {:first-name "<NAME>" :last-name "<NAME>"} 2] 1)
(vector "a" "new" "vector" "of" "strings")
(conj [1 2 3] 4)
| true | [1 2 3]
(get [1 2 3] 0)
(get [1 {:first-name "PI:NAME:<NAME>END_PI" :last-name "PI:NAME:<NAME>END_PI"} 2] 1)
(vector "a" "new" "vector" "of" "strings")
(conj [1 2 3] 4)
|
[
{
"context": "ps://\" s3-host))\n\n(def my-cloud-creds {:key \"key\"\n :secret \"secret\"\n ",
"end": 389,
"score": 0.7133228778839111,
"start": 386,
"tag": "KEY",
"value": "key"
},
{
"context": " {:key \"key\"\n :secret \"... | code/test/sixsq/nuvla/server/resources/data_object_test.clj | nuvla/server | 6 | (ns sixsq.nuvla.server.resources.data-object-test
(:require
[clojure.string :as str]
[clojure.test :refer [deftest is]]
[sixsq.nuvla.server.resources.data-object :as eo]
[sixsq.nuvla.server.resources.data.utils :as s3])
(:import (clojure.lang ExceptionInfo)))
(def s3-host "s3.cloud.com")
(def s3-en... | 44967 | (ns sixsq.nuvla.server.resources.data-object-test
(:require
[clojure.string :as str]
[clojure.test :refer [deftest is]]
[sixsq.nuvla.server.resources.data-object :as eo]
[sixsq.nuvla.server.resources.data.utils :as s3])
(:import (clojure.lang ExceptionInfo)))
(def s3-host "s3.cloud.com")
(def s3-en... | true | (ns sixsq.nuvla.server.resources.data-object-test
(:require
[clojure.string :as str]
[clojure.test :refer [deftest is]]
[sixsq.nuvla.server.resources.data-object :as eo]
[sixsq.nuvla.server.resources.data.utils :as s3])
(:import (clojure.lang ExceptionInfo)))
(def s3-host "s3.cloud.com")
(def s3-en... |
[
{
"context": "er [app-handler]]))\n\n(def auth-config {:username \"admin\" :password \"hunter2\"})\n\n(defn -main\n [& args]\n ",
"end": 172,
"score": 0.9958750605583191,
"start": 167,
"tag": "USERNAME",
"value": "admin"
},
{
"context": ")\n\n(def auth-config {:username \"admin\" :... | src/http_server/core.clj | andrewMacmurray/clojure-http | 2 | (ns http-server.core
(:gen-class)
(:require [http-server.server :as server]
[http-server.cob-app :refer [app-handler]]))
(def auth-config {:username "admin" :password "hunter2"})
(defn -main
[& args]
(println "starting server")
(server/serve 5000 (app-handler "public" auth-config)))
| 74126 | (ns http-server.core
(:gen-class)
(:require [http-server.server :as server]
[http-server.cob-app :refer [app-handler]]))
(def auth-config {:username "admin" :password "<PASSWORD>"})
(defn -main
[& args]
(println "starting server")
(server/serve 5000 (app-handler "public" auth-config)))
| true | (ns http-server.core
(:gen-class)
(:require [http-server.server :as server]
[http-server.cob-app :refer [app-handler]]))
(def auth-config {:username "admin" :password "PI:PASSWORD:<PASSWORD>END_PI"})
(defn -main
[& args]
(println "starting server")
(server/serve 5000 (app-handler "public" auth-c... |
[
{
"context": "; Copyright (c) Rich Hickey. All rights reserved.\n; The use and distributio",
"end": 29,
"score": 0.9998700618743896,
"start": 18,
"tag": "NAME",
"value": "Rich Hickey"
},
{
"context": " lazy trees and\n emit these as text.\"\n :author \"Chris Houser\"}\n clojur... | clojure/data/xml.clj | prapisarda/Scripts | 0 | ; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any ... | 30631 | ; Copyright (c) <NAME>. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashi... | true | ; Copyright (c) PI:NAME:<NAME>END_PI. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this softwar... |
[
{
"context": "nch\n \n {:doc \"Benchmarks for sums.\"\n :author \"palisades dot lakes at gmail dot com\"\n :since \"2017-04-06\"\n :version \"2019-10-17\"}",
"end": 276,
"score": 0.9513103365898132,
"start": 240,
"tag": "EMAIL",
"value": "palisades dot lakes at gmail dot com"
}
] | src/scripts/clojure/palisades/lakes/elements/scripts/numbers/sum/bench.clj | palisades-lakes/les-elemens | 0 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.elements.scripts.numbers.sum.bench
{:doc "Benchmarks for sums."
:author "palisades dot lakes at gmail dot com"
:since "2017-04-06"
:version "2019-1... | 43601 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.elements.scripts.numbers.sum.bench
{:doc "Benchmarks for sums."
:author "<EMAIL>"
:since "2017-04-06"
:version "2019-10-17"}
(:require [clojur... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.elements.scripts.numbers.sum.bench
{:doc "Benchmarks for sums."
:author "PI:EMAIL:<EMAIL>END_PI"
:since "2017-04-06"
:version "2019-10-17"}
(:... |
[
{
"context": ";; Copyright (C) 2018, 2019 by Vlad Kozin\n\n(ns proc\n (:require\n [medley.core :refer :all",
"end": 41,
"score": 0.9998089671134949,
"start": 31,
"tag": "NAME",
"value": "Vlad Kozin"
}
] | src/proc.clj | vkz/bot | 1 | ;; Copyright (C) 2018, 2019 by Vlad Kozin
(ns proc
(:require
[medley.core :refer :all]
[clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
;; aleph HTTPS client is broken for some HTTPS pages e.g. for GDAX
;; REST API
[aleph.http :as http]
;; so we use clj-http instead
[clj-http.cl... | 99863 | ;; Copyright (C) 2018, 2019 by <NAME>
(ns proc
(:require
[medley.core :refer :all]
[clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
;; aleph HTTPS client is broken for some HTTPS pages e.g. for GDAX
;; REST API
[aleph.http :as http]
;; so we use clj-http instead
[clj-http.client... | true | ;; Copyright (C) 2018, 2019 by PI:NAME:<NAME>END_PI
(ns proc
(:require
[medley.core :refer :all]
[clojure.spec.alpha :as spec]
[clojure.spec.gen.alpha :as gen]
;; aleph HTTPS client is broken for some HTTPS pages e.g. for GDAX
;; REST API
[aleph.http :as http]
;; so we use clj-http instead
[c... |
[
{
"context": "nt] ...) \n \n (dofut [[user-id] (create-user \\\"Brandon\\\" \\\"Bickford\\\")\n [business-id] (crea",
"end": 2877,
"score": 0.9997693300247192,
"start": 2870,
"tag": "NAME",
"value": "Brandon"
},
{
"context": "\n (dofut [[user-id] (create-user \\\"... | src/peloton/fut.clj | bickfordb/Peloton | 1 | (ns peloton.fut
"Fancy asynchronous future library
This is named \"fut\" instead of \"future\" to avoid conflicting with the built-in future blocking/synchronous future support
"
(:require clojure.walk)
(:use peloton.cell)
(:use peloton.util)
)
; a cell which only fires once.
(deftype Fut
[^:volat... | 35127 | (ns peloton.fut
"Fancy asynchronous future library
This is named \"fut\" instead of \"future\" to avoid conflicting with the built-in future blocking/synchronous future support
"
(:require clojure.walk)
(:use peloton.cell)
(:use peloton.util)
)
; a cell which only fires once.
(deftype Fut
[^:volat... | true | (ns peloton.fut
"Fancy asynchronous future library
This is named \"fut\" instead of \"future\" to avoid conflicting with the built-in future blocking/synchronous future support
"
(:require clojure.walk)
(:use peloton.cell)
(:use peloton.util)
)
; a cell which only fires once.
(deftype Fut
[^:volat... |
[
{
"context": "2003-12-13T18:30:02Z</updated>\n <author>\n <name>John Doe</name>\n <email>johndoe@example.com</email>\n </a",
"end": 1264,
"score": 0.9996744394302368,
"start": 1256,
"tag": "NAME",
"value": "John Doe"
},
{
"context": "ted>\n <author>\n <name>John Doe</name>\n ... | webjure/src/webjure/xml/feeds.clj | tatut/Webjure | 15 |
;; Working with XML-based feed formats
(ns webjure.xml.feeds
(:refer-clojure)
(:use webjure.xml))
(defn parse-atom1-link [link-node]
(parse link-node
{}
(attr "href" (collect-as :url #(.getValue %)))
(attr "rel" (collect-as :rel #(.getValue %)))))
(defn parse-atom1-entry [entry-node]
(parse entry-... | 111245 |
;; Working with XML-based feed formats
(ns webjure.xml.feeds
(:refer-clojure)
(:use webjure.xml))
(defn parse-atom1-link [link-node]
(parse link-node
{}
(attr "href" (collect-as :url #(.getValue %)))
(attr "rel" (collect-as :rel #(.getValue %)))))
(defn parse-atom1-entry [entry-node]
(parse entry-... | true |
;; Working with XML-based feed formats
(ns webjure.xml.feeds
(:refer-clojure)
(:use webjure.xml))
(defn parse-atom1-link [link-node]
(parse link-node
{}
(attr "href" (collect-as :url #(.getValue %)))
(attr "rel" (collect-as :rel #(.getValue %)))))
(defn parse-atom1-entry [entry-node]
(parse entry-... |
[
{
"context": ";; Copyright 2014-2020 King\n;; Copyright 2009-2014 Ragnar Svensson, Christian Murray\n;; Licensed under the Defold Li",
"end": 111,
"score": 0.9998305439949036,
"start": 96,
"tag": "NAME",
"value": "Ragnar Svensson"
},
{
"context": "-2020 King\n;; Copyright 2009-2014 R... | editor/test/internal/cache_test.clj | cmarincia/defold | 0 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 Ragnar Svensson, Christian Murray
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together wi... | 50023 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 <NAME>, <NAME>
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together with FAQs at
;; https... | true | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, to... |
[
{
"context": "; Overtone Translation of Vi Hart's Sound Braid by Roger Allen\n;; http://www.youtube.com/watch?v=VB6a4nI0BPA\n(ns",
"end": 63,
"score": 0.9998766183853149,
"start": 52,
"tag": "NAME",
"value": "Roger Allen"
}
] | examples/vihart_braid.clj | baskeboler/shadertone | 304 | ;; Overtone Translation of Vi Hart's Sound Braid by Roger Allen
;; http://www.youtube.com/watch?v=VB6a4nI0BPA
(ns vihart-braid
(:require [overtone.live :as o]
[overtone.synth.stringed :as strings]
[shadertone.tone :as t]
[leipzig.canon :as lc]
... | 122508 | ;; Overtone Translation of Vi Hart's Sound Braid by <NAME>
;; http://www.youtube.com/watch?v=VB6a4nI0BPA
(ns vihart-braid
(:require [overtone.live :as o]
[overtone.synth.stringed :as strings]
[shadertone.tone :as t]
[leipzig.canon :as lc]
[le... | true | ;; Overtone Translation of Vi Hart's Sound Braid by PI:NAME:<NAME>END_PI
;; http://www.youtube.com/watch?v=VB6a4nI0BPA
(ns vihart-braid
(:require [overtone.live :as o]
[overtone.synth.stringed :as strings]
[shadertone.tone :as t]
[leipzig.canon :as lc]
... |
[
{
"context": "))))\n\n(let [particular (->PacienteParticular 15, \"Marco\", \"18052001\")\n plano (->PacienteComPlano 15,",
"end": 1003,
"score": 0.9996390342712402,
"start": 998,
"tag": "NAME",
"value": "Marco"
},
{
"context": " \"18052001\")\n plano (->PacienteComPlano 15... | curso4/src/hospital/aula2.clj | Caporiccii/Clojure-Class | 0 | (ns hospital.aula2
(:use clojure.pprint))
(defrecord PacienteParticular [id, nome, nascimento])
(defrecord PacienteComPlano [id, nome, nascimento, plano])
;vantagem esta tudo em um bloco só
;Desvantagem concentração de tipos
;(defn deve-assinar-pre-autorizacao? [paciente procedimento valor]
; (if (= PacienteParti... | 55994 | (ns hospital.aula2
(:use clojure.pprint))
(defrecord PacienteParticular [id, nome, nascimento])
(defrecord PacienteComPlano [id, nome, nascimento, plano])
;vantagem esta tudo em um bloco só
;Desvantagem concentração de tipos
;(defn deve-assinar-pre-autorizacao? [paciente procedimento valor]
; (if (= PacienteParti... | true | (ns hospital.aula2
(:use clojure.pprint))
(defrecord PacienteParticular [id, nome, nascimento])
(defrecord PacienteComPlano [id, nome, nascimento, plano])
;vantagem esta tudo em um bloco só
;Desvantagem concentração de tipos
;(defn deve-assinar-pre-autorizacao? [paciente procedimento valor]
; (if (= PacienteParti... |
[
{
"context": ";\n; Copyright © 2013 Sebastian Hoß <mail@shoss.de>\n; This work is free. You can redi",
"end": 34,
"score": 0.9998724460601807,
"start": 21,
"tag": "NAME",
"value": "Sebastian Hoß"
},
{
"context": ";\n; Copyright © 2013 Sebastian Hoß <mail@shoss.de>\n; This work is fre... | src/main/clojure/finj/compound_interest.clj | sebhoss/finj | 30 | ;
; Copyright © 2013 Sebastian Hoß <mail@shoss.de>
; This work is free. You can redistribute it and/or modify it under the
; terms of the Do What The Fuck You Want To Public License, Version 2,
; as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
;
(ns finj.compound-interest
"Compound interest ... | 69664 | ;
; Copyright © 2013 <NAME> <<EMAIL>>
; This work is free. You can redistribute it and/or modify it under the
; terms of the Do What The Fuck You Want To Public License, Version 2,
; as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
;
(ns finj.compound-interest
"Compound interest arises when i... | true | ;
; Copyright © 2013 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
; This work is free. You can redistribute it and/or modify it under the
; terms of the Do What The Fuck You Want To Public License, Version 2,
; as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
;
(ns finj.compound-interest
"Co... |
[
{
"context": "st test-insert-all!\n (let [example-data [{:name \"John\", :surname \"Doe\", :phone \"123-45-67\"}\n ",
"end": 276,
"score": 0.9998165965080261,
"start": 272,
"tag": "NAME",
"value": "John"
},
{
"context": "l!\n (let [example-data [{:name \"John\", :surname ... | test/skyscraper/db_test.clj | nathell/skyscraper | 356 | (ns skyscraper.db-test
(:require
[clojure.java.jdbc :as jdbc]
[clojure.test :as test :refer [deftest is testing]]
[skyscraper.db :as db]
[skyscraper.test-utils :refer [with-temporary-sqlite-db]]))
(deftest test-insert-all!
(let [example-data [{:name "John", :surname "Doe", :phone "123-45-67"}
... | 101631 | (ns skyscraper.db-test
(:require
[clojure.java.jdbc :as jdbc]
[clojure.test :as test :refer [deftest is testing]]
[skyscraper.db :as db]
[skyscraper.test-utils :refer [with-temporary-sqlite-db]]))
(deftest test-insert-all!
(let [example-data [{:name "<NAME>", :surname "<NAME>", :phone "123-45-67"}
... | true | (ns skyscraper.db-test
(:require
[clojure.java.jdbc :as jdbc]
[clojure.test :as test :refer [deftest is testing]]
[skyscraper.db :as db]
[skyscraper.test-utils :refer [with-temporary-sqlite-db]]))
(deftest test-insert-all!
(let [example-data [{:name "PI:NAME:<NAME>END_PI", :surname "PI:NAME:<NAME>E... |
[
{
"context": "n [s] (apply str (take (count s) (repeat \"@\")))) \"Amsterdam Aardvarks\") \"@msterd@m @@rdv@rks\"))\n (is (= (select [(s/re",
"end": 45740,
"score": 0.996465265750885,
"start": 45721,
"tag": "NAME",
"value": "Amsterdam Aardvarks"
},
{
"context": "e (count s) (repeat ... | test/com/rpl/specter/core_test.cljc | IGJoshua/specter | 0 | (ns com.rpl.specter.core-test
#?(:cljs (:require-macros
[cljs.test :refer [is deftest testing]]
[clojure.test.check.clojure-test :refer [defspec]]
[com.rpl.specter.cljs-test-helpers :refer [for-all+]]
[com.rpl.specter.test-helpers :refer [ic-test]]
[com.rpl.... | 81638 | (ns com.rpl.specter.core-test
#?(:cljs (:require-macros
[cljs.test :refer [is deftest testing]]
[clojure.test.check.clojure-test :refer [defspec]]
[com.rpl.specter.cljs-test-helpers :refer [for-all+]]
[com.rpl.specter.test-helpers :refer [ic-test]]
[com.rpl.... | true | (ns com.rpl.specter.core-test
#?(:cljs (:require-macros
[cljs.test :refer [is deftest testing]]
[clojure.test.check.clojure-test :refer [defspec]]
[com.rpl.specter.cljs-test-helpers :refer [for-all+]]
[com.rpl.specter.test-helpers :refer [ic-test]]
[com.rpl.... |
[
{
"context": " company-iban {:iban \"NL66OPEN0000000000\" :token \"00000000000000000000\"})\n(def ah \"Albert Heijn BV\")\n(def cash-amounts (",
"end": 885,
"score": 0.8413799405097961,
"start": 865,
"tag": "PASSWORD",
"value": "00000000000000000000"
},
{
"context": "0000000\" :token... | command-generator/src/nl/openweb/command_generator/core.clj | gklijs/obm_confluent_blog | 2 | (ns nl.openweb.command-generator.core
(:require [clj-time.local :as time-local]
[nl.openweb.topology.clients :as clients]
[nl.openweb.topology.value-generator :as vg])
(:import (java.util UUID)
(org.apache.kafka.clients.consumer ConsumerRecord)
(nl.openweb.data AccountC... | 26982 | (ns nl.openweb.command-generator.core
(:require [clj-time.local :as time-local]
[nl.openweb.topology.clients :as clients]
[nl.openweb.topology.value-generator :as vg])
(:import (java.util UUID)
(org.apache.kafka.clients.consumer ConsumerRecord)
(nl.openweb.data AccountC... | true | (ns nl.openweb.command-generator.core
(:require [clj-time.local :as time-local]
[nl.openweb.topology.clients :as clients]
[nl.openweb.topology.value-generator :as vg])
(:import (java.util UUID)
(org.apache.kafka.clients.consumer ConsumerRecord)
(nl.openweb.data AccountC... |
[
{
"context": " :type \"text\"\n :placeholder \"Your Name\"\n :on-change #(do\n ",
"end": 7610,
"score": 0.9982984066009521,
"start": 7601,
"tag": "NAME",
"value": "Your Name"
},
{
"context": " :object-fit \"cover\"}... | src/cljs/cocdan/modals/stage_find.cljs | chaomi1998/cocdan | 3 | (ns cocdan.modals.stage-find
(:require
[reagent.core :as r]
[clojure.string :as str]
[cljs-http.client :as http]
[clojure.core.async :refer [go <!]]
[markdown.core :refer [md->html]]
[re-frame.core :as rf]
[cats.monad.either :as either]
[cats.core :as m]
[cocdan.core.stage :refer [posh-stag... | 78893 | (ns cocdan.modals.stage-find
(:require
[reagent.core :as r]
[clojure.string :as str]
[cljs-http.client :as http]
[clojure.core.async :refer [go <!]]
[markdown.core :refer [md->html]]
[re-frame.core :as rf]
[cats.monad.either :as either]
[cats.core :as m]
[cocdan.core.stage :refer [posh-stag... | true | (ns cocdan.modals.stage-find
(:require
[reagent.core :as r]
[clojure.string :as str]
[cljs-http.client :as http]
[clojure.core.async :refer [go <!]]
[markdown.core :refer [md->html]]
[re-frame.core :as rf]
[cats.monad.either :as either]
[cats.core :as m]
[cocdan.core.stage :refer [posh-stag... |
[
{
"context": "ses/MIT\"\n :year 2017\n :key \"mit\"}\n :plugins [[lein-gorilla \"0.4.0\"]]\n :depende",
"end": 262,
"score": 0.9877372980117798,
"start": 259,
"tag": "KEY",
"value": "mit"
}
] | project.clj | findmyway/Explorations-in-Monte-Carlo-Methods | 2 | (defproject emcm "0.1.0-SNAPSHOT"
:description "Clojure code of examples and problems in EMCM"
:url "http://example.com/FIXME"
:license {:name "MIT License"
:url "https://opensource.org/licenses/MIT"
:year 2017
:key "mit"}
:plugins [[lein-gorilla "0.4.0"]]
:dependencies [[... | 86454 | (defproject emcm "0.1.0-SNAPSHOT"
:description "Clojure code of examples and problems in EMCM"
:url "http://example.com/FIXME"
:license {:name "MIT License"
:url "https://opensource.org/licenses/MIT"
:year 2017
:key "<KEY>"}
:plugins [[lein-gorilla "0.4.0"]]
:dependencies ... | true | (defproject emcm "0.1.0-SNAPSHOT"
:description "Clojure code of examples and problems in EMCM"
:url "http://example.com/FIXME"
:license {:name "MIT License"
:url "https://opensource.org/licenses/MIT"
:year 2017
:key "PI:KEY:<KEY>END_PI"}
:plugins [[lein-gorilla "0.4.0"]]
:... |
[
{
"context": "nd therefore\n more CPU.\n\n These UGens are by Alex McLean (c) 2008.\"}\n\n {:name \"MembraneHexagon\"\n :sum",
"end": 1003,
"score": 0.9997401833534241,
"start": 992,
"tag": "NAME",
"value": "Alex McLean"
},
{
"context": " out of triangular meshes.\n\n T... | src/overtone/sc/machinery/ugen/metadata/extras/membrane.clj | ABaldwinHunter/overtone | 3,870 | (ns overtone.sc.machinery.ugen.metadata.extras.membrane
(:use [overtone.sc.machinery.ugen common check]))
(def specs
[
{:name "MembraneCircle"
:summary "Waveguide mesh physical models of circular drum membrane."
:args [{:name "excitation"
:doc "sound in"}
{:name "tension"
... | 110219 | (ns overtone.sc.machinery.ugen.metadata.extras.membrane
(:use [overtone.sc.machinery.ugen common check]))
(def specs
[
{:name "MembraneCircle"
:summary "Waveguide mesh physical models of circular drum membrane."
:args [{:name "excitation"
:doc "sound in"}
{:name "tension"
... | true | (ns overtone.sc.machinery.ugen.metadata.extras.membrane
(:use [overtone.sc.machinery.ugen common check]))
(def specs
[
{:name "MembraneCircle"
:summary "Waveguide mesh physical models of circular drum membrane."
:args [{:name "excitation"
:doc "sound in"}
{:name "tension"
... |
[
{
"context": "rl)]\n (:scientificName (first occurrences)) => \"Justicia scheidweileri\"\n (:recordedBy (last occurrences)) => \"Miranda,",
"end": 1049,
"score": 0.999843418598175,
"start": 1027,
"tag": "NAME",
"value": "Justicia scheidweileri"
}
] | test/dwc_io/archive_test.clj | biodivdev/dwc | 0 | (ns dwc-io.archive-test
(:use dwc-io.archive)
(:use midje.sweet))
(def test-url (clojure.java.io/resource "dwca-redlist_2013_occs.zip"))
(def test-url2 "http://ipt.jbrj.gov.br/jbrj/archive.do?r=redlist_2013_taxons")
(fact "Can find core tag, config of csv and fields."
(let [zip (java.util.zip.ZipFile. ^java... | 44632 | (ns dwc-io.archive-test
(:use dwc-io.archive)
(:use midje.sweet))
(def test-url (clojure.java.io/resource "dwca-redlist_2013_occs.zip"))
(def test-url2 "http://ipt.jbrj.gov.br/jbrj/archive.do?r=redlist_2013_taxons")
(fact "Can find core tag, config of csv and fields."
(let [zip (java.util.zip.ZipFile. ^java... | true | (ns dwc-io.archive-test
(:use dwc-io.archive)
(:use midje.sweet))
(def test-url (clojure.java.io/resource "dwca-redlist_2013_occs.zip"))
(def test-url2 "http://ipt.jbrj.gov.br/jbrj/archive.do?r=redlist_2013_taxons")
(fact "Can find core tag, config of csv and fields."
(let [zip (java.util.zip.ZipFile. ^java... |
[
{
"context": ";;\n;;\n;; Copyright 2013-2015 Netflix, Inc.\n;;\n;; Licensed under the Apache Lic",
"end": 33,
"score": 0.9633407592773438,
"start": 30,
"tag": "NAME",
"value": "Net"
},
{
"context": " :id group0\n :keys [r0/a r1/b]\n ... | pigpen-pig/src/test/clojure/pigpen/pig/script_test.clj | ombagus/Netflix | 327 | ;;
;;
;; Copyright 2013-2015 Netflix, Inc.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required ... | 121001 | ;;
;;
;; Copyright 2013-2015 <NAME>flix, Inc.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless requir... | true | ;;
;;
;; Copyright 2013-2015 PI:NAME:<NAME>END_PIflix, Inc.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; ... |
[
{
"context": "tr-replace, reverse str-reverse}])\n\n(def users #{\"mr_paul smith\" \"dr_john blake\" \"miss_katie hudson\"})\n\n(deftest ",
"end": 169,
"score": 0.9921085238456726,
"start": 156,
"tag": "USERNAME",
"value": "mr_paul smith"
},
{
"context": "rse str-reverse}])\n\n(def u... | Chapter08/tests/Activity8.01/repl.clj | transducer/The-Clojure-Workshop | 55 | (clojure.core/refer 'clojure.test :only '(deftest is run-tests))
(use '[clojure.string :rename {replace str-replace, reverse str-reverse}])
(def users #{"mr_paul smith" "dr_john blake" "miss_katie hudson"})
(deftest string-replace-test
(is (= (map #(str-replace % #"_" " ") users)
["mr paul s... | 28678 | (clojure.core/refer 'clojure.test :only '(deftest is run-tests))
(use '[clojure.string :rename {replace str-replace, reverse str-reverse}])
(def users #{"mr_paul smith" "dr_john bl<NAME>" "miss_kat<NAME>"})
(deftest string-replace-test
(is (= (map #(str-replace % #"_" " ") users)
["<NAME>" "... | true | (clojure.core/refer 'clojure.test :only '(deftest is run-tests))
(use '[clojure.string :rename {replace str-replace, reverse str-reverse}])
(def users #{"mr_paul smith" "dr_john blPI:NAME:<NAME>END_PI" "miss_katPI:NAME:<NAME>END_PI"})
(deftest string-replace-test
(is (= (map #(str-replace % #"_" " ") users)... |
[
{
"context": "ne using samples from freesound.org\"\n :author \"Karsten Schmidt\"}\n overtone.examples.workshops.resonate2013.ex04",
"end": 153,
"score": 0.9998682141304016,
"start": 138,
"tag": "NAME",
"value": "Karsten Schmidt"
}
] | src/overtone/examples/workshops/resonate2013/ex04_midi.clj | ABaldwinHunter/overtone | 3,870 | (ns
^{:doc "Mini example of using MIDI events to construct
a baby drum machine using samples from freesound.org"
:author "Karsten Schmidt"}
overtone.examples.workshops.resonate2013.ex04_midi
(:use [overtone.live]))
;; Here we define a map of MIDI notes to samples
;; You can use any freesound.org sa... | 77067 | (ns
^{:doc "Mini example of using MIDI events to construct
a baby drum machine using samples from freesound.org"
:author "<NAME>"}
overtone.examples.workshops.resonate2013.ex04_midi
(:use [overtone.live]))
;; Here we define a map of MIDI notes to samples
;; You can use any freesound.org sample you ... | true | (ns
^{:doc "Mini example of using MIDI events to construct
a baby drum machine using samples from freesound.org"
:author "PI:NAME:<NAME>END_PI"}
overtone.examples.workshops.resonate2013.ex04_midi
(:use [overtone.live]))
;; Here we define a map of MIDI notes to samples
;; You can use any freesound.o... |
[
{
"context": "birds take over, I'll have friends!\"\n \"As usual, Bob's gonna do a big tree.\"\n ;; Series 9, Episode 6",
"end": 8396,
"score": 0.9988999962806702,
"start": 8393,
"tag": "NAME",
"value": "Bob"
}
] | src/bobrosslipsum/quotes.cljs | rusty-software/bobrosslipsum | 3 | (ns bobrosslipsum.quotes)
(def lines
[;; Series 1, Episode 1
"I think each of us, at some point during our life, has wanted to paint a picture."
"We start with a vision in our heart, and we put it on canvas."
"These little son-of-a-guns hide in your brush, and you just have to push them out."
"You can do... | 17553 | (ns bobrosslipsum.quotes)
(def lines
[;; Series 1, Episode 1
"I think each of us, at some point during our life, has wanted to paint a picture."
"We start with a vision in our heart, and we put it on canvas."
"These little son-of-a-guns hide in your brush, and you just have to push them out."
"You can do... | true | (ns bobrosslipsum.quotes)
(def lines
[;; Series 1, Episode 1
"I think each of us, at some point during our life, has wanted to paint a picture."
"We start with a vision in our heart, and we put it on canvas."
"These little son-of-a-guns hide in your brush, and you just have to push them out."
"You can do... |
[
{
"context": "helper :as h]))\n\n(def ^:private message\n {:from \"alice@example.com\"\n :to \"bob@example.com\"\n :subject \"hello\"\n ",
"end": 199,
"score": 0.9999240040779114,
"start": 182,
"tag": "EMAIL",
"value": "alice@example.com"
},
{
"context": "vate message\n {:fro... | dev/src/benchmark.clj | toyokumo/tarayo | 34 | (ns benchmark
(:require
[criterium.core :as criterium]
[postal.core :as postal]
[tarayo.core :as tarayo]
[tarayo.test-helper :as h]))
(def ^:private message
{:from "alice@example.com"
:to "bob@example.com"
:subject "hello"
:body "world"})
(defn -main
[]
(h/with-test-smtp-server [_ port]
... | 95482 | (ns benchmark
(:require
[criterium.core :as criterium]
[postal.core :as postal]
[tarayo.core :as tarayo]
[tarayo.test-helper :as h]))
(def ^:private message
{:from "<EMAIL>"
:to "<EMAIL>"
:subject "hello"
:body "world"})
(defn -main
[]
(h/with-test-smtp-server [_ port]
(println "POSTA... | true | (ns benchmark
(:require
[criterium.core :as criterium]
[postal.core :as postal]
[tarayo.core :as tarayo]
[tarayo.test-helper :as h]))
(def ^:private message
{:from "PI:EMAIL:<EMAIL>END_PI"
:to "PI:EMAIL:<EMAIL>END_PI"
:subject "hello"
:body "world"})
(defn -main
[]
(h/with-test-smtp-serve... |
[
{
"context": "(ns ^{:author \"Leeor Engel\"}\n chapter-4.chapter-4-q5-test\n (:require [cloj",
"end": 26,
"score": 0.9998915791511536,
"start": 15,
"tag": "NAME",
"value": "Leeor Engel"
}
] | Clojure/test/chapter_4/chapter_4_q5_test.clj | Kiandr/crackingcodinginterview | 0 | (ns ^{:author "Leeor Engel"}
chapter-4.chapter-4-q5-test
(:require [clojure.test :refer :all]
[data-structures.tree :refer :all]
[chapter-4.chapter-4-q5 :refer :all]))
(deftest valid-bst-test
(testing "single node"
(let [tree (create-tree [1])]
(is (valid-bst? tree))))
(testi... | 2153 | (ns ^{:author "<NAME>"}
chapter-4.chapter-4-q5-test
(:require [clojure.test :refer :all]
[data-structures.tree :refer :all]
[chapter-4.chapter-4-q5 :refer :all]))
(deftest valid-bst-test
(testing "single node"
(let [tree (create-tree [1])]
(is (valid-bst? tree))))
(testing "t... | true | (ns ^{:author "PI:NAME:<NAME>END_PI"}
chapter-4.chapter-4-q5-test
(:require [clojure.test :refer :all]
[data-structures.tree :refer :all]
[chapter-4.chapter-4-q5 :refer :all]))
(deftest valid-bst-test
(testing "single node"
(let [tree (create-tree [1])]
(is (valid-bst? tree))))
... |
[
{
"context": "\" \n :port 5432\n :user \"myapp\"\n :password \"myapppw\"\n ;; :ssl true\n ;; :sslfactory \"org.postgresq",
"end": 201,
"score": 0.999239444732666,
"start": 194,
"tag": "PASSWORD",
"value": "myapppw"
}
] | src/myapp/core.clj | davidneu/docker-clojure-postgresql-example | 6 | (ns myapp.core
(:require [clojure.java.jdbc :as jdbc])
(:gen-class))
(def db
{:dbtype "postgresql"
:dbname "myapp"
:host "db-dev"
:port 5432
:user "myapp"
:password "myapppw"
;; :ssl true
;; :sslfactory "org.postgresql.ssl.NonValidatingFactory"
})
(defn sample-create [db n]
(dot... | 60685 | (ns myapp.core
(:require [clojure.java.jdbc :as jdbc])
(:gen-class))
(def db
{:dbtype "postgresql"
:dbname "myapp"
:host "db-dev"
:port 5432
:user "myapp"
:password "<PASSWORD>"
;; :ssl true
;; :sslfactory "org.postgresql.ssl.NonValidatingFactory"
})
(defn sample-create [db n]
(... | true | (ns myapp.core
(:require [clojure.java.jdbc :as jdbc])
(:gen-class))
(def db
{:dbtype "postgresql"
:dbname "myapp"
:host "db-dev"
:port 5432
:user "myapp"
:password "PI:PASSWORD:<PASSWORD>END_PI"
;; :ssl true
;; :sslfactory "org.postgresql.ssl.NonValidatingFactory"
})
(defn sample... |
[
{
"context": "normal data-structure\"\n :url \"https://github.com/AvramRobert/nemesis\"\n :license {:name \"MIT\"\n :url",
"end": 177,
"score": 0.9985662698745728,
"start": 166,
"tag": "USERNAME",
"value": "AvramRobert"
},
{
"context": "s [\"-target\" \"1.8\" \"-source\"... | project.clj | AvramRobert/nemesis | 4 | (defproject com.ravram/nemesis "0.2.1-SNAPSHOT"
:description "A library for working with JSON as one would with a normal data-structure"
:url "https://github.com/AvramRobert/nemesis"
:license {:name "MIT"
:url "https://opensource.org/licenses/MIT"}
:java-source-paths ["src"]
:dependencies [[io.lac... | 99346 | (defproject com.ravram/nemesis "0.2.1-SNAPSHOT"
:description "A library for working with JSON as one would with a normal data-structure"
:url "https://github.com/AvramRobert/nemesis"
:license {:name "MIT"
:url "https://opensource.org/licenses/MIT"}
:java-source-paths ["src"]
:dependencies [[io.lac... | true | (defproject com.ravram/nemesis "0.2.1-SNAPSHOT"
:description "A library for working with JSON as one would with a normal data-structure"
:url "https://github.com/AvramRobert/nemesis"
:license {:name "MIT"
:url "https://opensource.org/licenses/MIT"}
:java-source-paths ["src"]
:dependencies [[io.lac... |
[
{
"context": "ensso.timbre :as log]))\n\n(defonce login-user-key \"login-user\")\n(defonce auth-token-key \"auth-token\")\n\n(defn se",
"end": 104,
"score": 0.9801790714263916,
"start": 94,
"tag": "KEY",
"value": "login-user"
},
{
"context": "n-user-key \"login-user\")\n(defonce auth... | src/soul_talk/local_storage.cljs | neromous/Re_Frame_template_of_FamiliyCost | 0 | (ns soul-talk.local-storage
(:require [taoensso.timbre :as log]))
(defonce login-user-key "login-user")
(defonce auth-token-key "auth-token")
(defn set-item!
[key val]
(->> val
(clj->js)
(js/JSON.stringify)
(.setItem (.-localStorage js/window) key)))
(defn get-item
[key]
(js->clj
(-... | 86814 | (ns soul-talk.local-storage
(:require [taoensso.timbre :as log]))
(defonce login-user-key "<KEY>")
(defonce auth-token-key "<KEY>")
(defn set-item!
[key val]
(->> val
(clj->js)
(js/JSON.stringify)
(.setItem (.-localStorage js/window) key)))
(defn get-item
[key]
(js->clj
(->> key
... | true | (ns soul-talk.local-storage
(:require [taoensso.timbre :as log]))
(defonce login-user-key "PI:KEY:<KEY>END_PI")
(defonce auth-token-key "PI:KEY:<KEY>END_PI")
(defn set-item!
[key val]
(->> val
(clj->js)
(js/JSON.stringify)
(.setItem (.-localStorage js/window) key)))
(defn get-item
[key]
... |
[
{
"context": "operties))\n (:gen-class))\n\n(def kpow-secure-key \"KPOW_SECURE_KEY\")\n(def kpow-secure-key-location \"KPOW_SECURE_K",
"end": 513,
"score": 0.6568205952644348,
"start": 501,
"tag": "KEY",
"value": "KPOW_SECURE_"
}
] | src/kpow/secure.clj | operatr-io/kpow-secure | 3 | (ns kpow.secure
(:require [clojure.string :as str]
[clojure.tools.cli :as cli]
[clojure.tools.logging :as log]
[kpow.secure.key :as key])
(:import (java.io StringReader)
(java.nio ByteBuffer)
(java.nio.charset StandardCharsets)
(java.security Secu... | 56717 | (ns kpow.secure
(:require [clojure.string :as str]
[clojure.tools.cli :as cli]
[clojure.tools.logging :as log]
[kpow.secure.key :as key])
(:import (java.io StringReader)
(java.nio ByteBuffer)
(java.nio.charset StandardCharsets)
(java.security Secu... | true | (ns kpow.secure
(:require [clojure.string :as str]
[clojure.tools.cli :as cli]
[clojure.tools.logging :as log]
[kpow.secure.key :as key])
(:import (java.io StringReader)
(java.nio ByteBuffer)
(java.nio.charset StandardCharsets)
(java.security Secu... |
[
{
"context": " audio samples (wav or aif files).\"\n :author \"Jeff Rose\"}\n overtone.sc.sample\n (:use [clojure.java.io :",
"end": 104,
"score": 0.9998739957809448,
"start": 95,
"tag": "NAME",
"value": "Jeff Rose"
}
] | src/overtone/sc/sample.clj | namin/overtone | 2 | (ns
^{:doc "Making it easy to load and play audio samples (wav or aif files)."
:author "Jeff Rose"}
overtone.sc.sample
(:use [clojure.java.io :only [file]]
[overtone.helpers lib synth]
[overtone.libs event deps]
[overtone.sc server synth ugens buffer foundation-groups node]
[o... | 91938 | (ns
^{:doc "Making it easy to load and play audio samples (wav or aif files)."
:author "<NAME>"}
overtone.sc.sample
(:use [clojure.java.io :only [file]]
[overtone.helpers lib synth]
[overtone.libs event deps]
[overtone.sc server synth ugens buffer foundation-groups node]
[over... | true | (ns
^{:doc "Making it easy to load and play audio samples (wav or aif files)."
:author "PI:NAME:<NAME>END_PI"}
overtone.sc.sample
(:use [clojure.java.io :only [file]]
[overtone.helpers lib synth]
[overtone.libs event deps]
[overtone.sc server synth ugens buffer foundation-groups node]... |
[
{
"context": ";;;; Copyright 2015 Peter Stephens. All Rights Reserved.\r\n;;;;\r\n;;;; Licensed unde",
"end": 36,
"score": 0.9997021555900574,
"start": 22,
"tag": "NAME",
"value": "Peter Stephens"
},
{
"context": "= false (contains? (get-in m [:subtitle]) 1132)) \"Phil is not sub... | src/test/node/common/bible/iotests.cljs | pstephens/kingjames.bible | 23 | ;;;; Copyright 2015 Peter Stephens. All Rights Reserved.
;;;;
;;;; Licensed under the Apache License, Version 2.0 (the "License");
;;;; you may not use this file except in compliance with the License.
;;;; You may obtain a copy of the License at
;;;;
;;;; http://www.apache.org/licenses/LICENSE-2.0
... | 103665 | ;;;; Copyright 2015 <NAME>. All Rights Reserved.
;;;;
;;;; Licensed under the Apache License, Version 2.0 (the "License");
;;;; you may not use this file except in compliance with the License.
;;;; You may obtain a copy of the License at
;;;;
;;;; http://www.apache.org/licenses/LICENSE-2.0
;;;;
;;... | true | ;;;; Copyright 2015 PI:NAME:<NAME>END_PI. All Rights Reserved.
;;;;
;;;; Licensed under the Apache License, Version 2.0 (the "License");
;;;; you may not use this file except in compliance with the License.
;;;; You may obtain a copy of the License at
;;;;
;;;; http://www.apache.org/licenses/LICENSE... |
[
{
"context": " option pricing model GUI\n;;\n;; Copyright (C) 2010 Paul Legato. All rights reserved.\n;; Licensed under the New B",
"end": 81,
"score": 0.9998524188995361,
"start": 70,
"tag": "NAME",
"value": "Paul Legato"
}
] | src/clojure_options/gui/black_scholes_gui.clj | pjlegato/clojure_options | 3 | ;;
;; Black-Scholes option pricing model GUI
;;
;; Copyright (C) 2010 Paul Legato. All rights reserved.
;; Licensed under the New BSD License. See the README file for details.
;;
;; Disclaimer: This code comes with NO WARRANTY, express or implied.
;; There may be any number of bugs. Use at your own risk.
;;
;; With tha... | 69864 | ;;
;; Black-Scholes option pricing model GUI
;;
;; Copyright (C) 2010 <NAME>. All rights reserved.
;; Licensed under the New BSD License. See the README file for details.
;;
;; Disclaimer: This code comes with NO WARRANTY, express or implied.
;; There may be any number of bugs. Use at your own risk.
;;
;; With thanks t... | true | ;;
;; Black-Scholes option pricing model GUI
;;
;; Copyright (C) 2010 PI:NAME:<NAME>END_PI. All rights reserved.
;; Licensed under the New BSD License. See the README file for details.
;;
;; Disclaimer: This code comes with NO WARRANTY, express or implied.
;; There may be any number of bugs. Use at your own risk.
;;
;;... |
[
{
"context": "just hand code a few\n {:items [(make-person 1 \"Tony\")\n (make-thing 2 \"Toaster\")\n ",
"end": 4734,
"score": 0.9971314668655396,
"start": 4730,
"tag": "NAME",
"value": "Tony"
},
{
"context": "-place 3 \"New York\")\n (make-person 4... | src/demos/recipes/defrouter_for_type_selection.cljs | weirp/fulcrodev | 0 | (ns recipes.defrouter-for-type-selection
(:require
[om.dom :as dom]
[fulcro.client.routing :as r :refer [defrouter]]
[om.next :as om :refer [defui]]
[fulcro.client.core :as fc]
[fulcro.ui.bootstrap3 :as b]
[fulcro.ui.elements :as ele]))
(defn item-ident
"Generate an ident from a person, pla... | 14529 | (ns recipes.defrouter-for-type-selection
(:require
[om.dom :as dom]
[fulcro.client.routing :as r :refer [defrouter]]
[om.next :as om :refer [defui]]
[fulcro.client.core :as fc]
[fulcro.ui.bootstrap3 :as b]
[fulcro.ui.elements :as ele]))
(defn item-ident
"Generate an ident from a person, pla... | true | (ns recipes.defrouter-for-type-selection
(:require
[om.dom :as dom]
[fulcro.client.routing :as r :refer [defrouter]]
[om.next :as om :refer [defui]]
[fulcro.client.core :as fc]
[fulcro.ui.bootstrap3 :as b]
[fulcro.ui.elements :as ele]))
(defn item-ident
"Generate an ident from a person, pla... |
[
{
"context": "! *unchecked-math* :warn-on-boxed)\n(ns ^{:author \"wahpenayo at gmail dot com\" \n :date \"2018-04-16\"\n ",
"end": 96,
"score": 0.6977638006210327,
"start": 87,
"tag": "EMAIL",
"value": "wahpenayo"
},
{
"context": "-math* :warn-on-boxed)\n(ns ^{:author \"wahp... | src/test/clojure/zana/test/optimization/math3/lp.clj | wahpenayo/zana | 2 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "wahpenayo at gmail dot com"
:date "2018-04-16"
:doc
"Tests for [[zana.optimization.math3.lp]]." }
zana.test.optimization.math3.lp
(:require [clojure.test :as test]
[zana.api :as z])
(:i... | 28207 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "<EMAIL> at <EMAIL>"
:date "2018-04-16"
:doc
"Tests for [[zana.optimization.math3.lp]]." }
zana.test.optimization.math3.lp
(:require [clojure.test :as test]
[zana.api :as z])
(:import [c... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "PI:EMAIL:<EMAIL>END_PI at PI:EMAIL:<EMAIL>END_PI"
:date "2018-04-16"
:doc
"Tests for [[zana.optimization.math3.lp]]." }
zana.test.optimization.math3.lp
(:require [clojure.test :as test]
[... |
[
{
"context": "ide Effects\n(defn wisdom\n [words]\n (str words \", Daniel-san\"))\n\n(wisdom \"Always bathe on Fridays\")\n\n;; Not a ",
"end": 138,
"score": 0.998742401599884,
"start": 128,
"tag": "NAME",
"value": "Daniel-san"
}
] | language-learning/clojure/functions/functional.clj | imteekay/programming-language-research | 627 | ;; A pure function: use only the passed parameter
;; Pure Functions Have No Side Effects
(defn wisdom
[words]
(str words ", Daniel-san"))
(wisdom "Always bathe on Fridays")
;; Not a pure function because it uses an external global object
(def PI 3.14)
(defn calculate-area
[radius]
(* radius radius PI))
(cal... | 31666 | ;; A pure function: use only the passed parameter
;; Pure Functions Have No Side Effects
(defn wisdom
[words]
(str words ", <NAME>"))
(wisdom "Always bathe on Fridays")
;; Not a pure function because it uses an external global object
(def PI 3.14)
(defn calculate-area
[radius]
(* radius radius PI))
(calcula... | true | ;; A pure function: use only the passed parameter
;; Pure Functions Have No Side Effects
(defn wisdom
[words]
(str words ", PI:NAME:<NAME>END_PI"))
(wisdom "Always bathe on Fridays")
;; Not a pure function because it uses an external global object
(def PI 3.14)
(defn calculate-area
[radius]
(* radius radius ... |
[
{
"context": "-reply tr \\\"/count\\\" [step] 42))\"\n contributor \"Sam Aaron\"))\n",
"end": 1201,
"score": 0.999756395816803,
"start": 1192,
"tag": "NAME",
"value": "Sam Aaron"
}
] | src/overtone/sc/examples/trig.clj | ABaldwinHunter/overtone | 3,870 | (ns overtone.sc.examples.trig
(:use [overtone.sc.machinery defexample]
[overtone.sc ugens]))
(defexamples send-reply
(:count
"Send back an OSC message containing a rolling count"
"Here our example consists of three parts. Firstly we create a trigger called tr which will fire trigger signal every 'rat... | 72707 | (ns overtone.sc.examples.trig
(:use [overtone.sc.machinery defexample]
[overtone.sc ugens]))
(defexamples send-reply
(:count
"Send back an OSC message containing a rolling count"
"Here our example consists of three parts. Firstly we create a trigger called tr which will fire trigger signal every 'rat... | true | (ns overtone.sc.examples.trig
(:use [overtone.sc.machinery defexample]
[overtone.sc ugens]))
(defexamples send-reply
(:count
"Send back an OSC message containing a rolling count"
"Here our example consists of three parts. Firstly we create a trigger called tr which will fire trigger signal every 'rat... |
[
{
"context": ";; Copyright (c) Andrew A. Raines\n;;\n;; Permission is hereby granted, free of charg",
"end": 33,
"score": 0.9998774528503418,
"start": 17,
"tag": "NAME",
"value": "Andrew A. Raines"
},
{
"context": "\"}\n {:from \"foo@example.com\... | test/postal/test/core.clj | poenneby/postal | 371 | ;; Copyright (c) Andrew A. Raines
;;
;; Permission is hereby granted, free of charge, to any person
;; obtaining a copy of this software and associated documentation
;; files (the "Software"), to deal in the Software without
;; restriction, including without limitation the rights to use,
;; copy, modify, merge, publish... | 8754 | ;; Copyright (c) <NAME>
;;
;; Permission is hereby granted, free of charge, to any person
;; obtaining a copy of this software and associated documentation
;; files (the "Software"), to deal in the Software without
;; restriction, including without limitation the rights to use,
;; copy, modify, merge, publish, distribu... | true | ;; Copyright (c) PI:NAME:<NAME>END_PI
;;
;; Permission is hereby granted, free of charge, to any person
;; obtaining a copy of this software and associated documentation
;; files (the "Software"), to deal in the Software without
;; restriction, including without limitation the rights to use,
;; copy, modify, merge, pub... |
[
{
"context": ";; Copyright (c) 2013, Damien JEGOU\n;; All rights reserved.\n\n;; Redistribution and us",
"end": 35,
"score": 0.9998703598976135,
"start": 23,
"tag": "NAME",
"value": "Damien JEGOU"
}
] | src/renkobricks/core.clj | LoupSolitaire/renkobricks | 1 | ;; Copyright (c) 2013, Damien JEGOU
;; All rights reserved.
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;; Redistributions of source code must retain the above copyright
;; notice, this list of conditions a... | 84273 | ;; Copyright (c) 2013, <NAME>
;; All rights reserved.
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;; Redistributions of source code must retain the above copyright
;; notice, this list of conditions and the... | true | ;; Copyright (c) 2013, PI:NAME:<NAME>END_PI
;; All rights reserved.
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;; Redistributions of source code must retain the above copyright
;; notice, this list of cond... |
[
{
"context": " :distro \"alpine\"}})\n\n(def maintainers\n \"Paul Lam <paul@quantisan.com> & Wes Morgan <wesmorgan@iclo",
"end": 1854,
"score": 0.9998741149902344,
"start": 1846,
"tag": "NAME",
"value": "Paul Lam"
},
{
"context": "o \"alpine\"}})\n\n(def maintainers\n ... | src/docker_clojure/core.clj | pelerkejepit/Quantisan | 0 | (ns docker-clojure.core
(:require
[clojure.java.shell :refer [sh with-sh-dir]]
[clojure.math.combinatorics :as combo]
[clojure.spec.alpha :as s]
[clojure.string :as str]
[docker-clojure.dockerfile :as df]))
(s/def ::non-blank-string
(s/and string? #(not (str/blank? %))))
(s/def ::jdk-version
(s/a... | 68134 | (ns docker-clojure.core
(:require
[clojure.java.shell :refer [sh with-sh-dir]]
[clojure.math.combinatorics :as combo]
[clojure.spec.alpha :as s]
[clojure.string :as str]
[docker-clojure.dockerfile :as df]))
(s/def ::non-blank-string
(s/and string? #(not (str/blank? %))))
(s/def ::jdk-version
(s/a... | true | (ns docker-clojure.core
(:require
[clojure.java.shell :refer [sh with-sh-dir]]
[clojure.math.combinatorics :as combo]
[clojure.spec.alpha :as s]
[clojure.string :as str]
[docker-clojure.dockerfile :as df]))
(s/def ::non-blank-string
(s/and string? #(not (str/blank? %))))
(s/def ::jdk-version
(s/a... |
[
{
"context": ";\n; Copyright 2015 Peter Monks\n; SPDX-License-Identifier: Apache-2.0\n;\n; License",
"end": 30,
"score": 0.9998100399971008,
"start": 19,
"tag": "NAME",
"value": "Peter Monks"
},
{
"context": "d game.\"\n :url \"https://github.com/pmonks/clj-chain-reacti... | project.clj | pmonks/clj-chain-reaction | 1 | ;
; Copyright 2015 Peter Monks
; SPDX-License-Identifier: Apache-2.0
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by ... | 11040 | ;
; Copyright 2015 <NAME>
; SPDX-License-Identifier: Apache-2.0
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by appli... | true | ;
; Copyright 2015 PI:NAME:<NAME>END_PI
; SPDX-License-Identifier: Apache-2.0
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless req... |
[
{
"context": "ns under the License.\n;;\n;; Copyright © 2013-2022, Kenneth Leung. All rights reserved.\n\n(ns czlab.flux.core\n\n \"A ",
"end": 597,
"score": 0.9998504519462585,
"start": 584,
"tag": "NAME",
"value": "Kenneth Leung"
}
] | src/main/clojure/czlab/flux/core.clj | llnek/fluxion | 0 | ;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed ... | 55498 | ;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed ... | true | ;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed ... |
[
{
"context": " Test methods\n(let [private-patient {:id 1 :name \"Victor\" :document \"123456\"}\n plan-patient {:id 2 :n",
"end": 1052,
"score": 0.9992690086364746,
"start": 1046,
"tag": "NAME",
"value": "Victor"
},
{
"context": "cument \"123456\"}\n plan-patient {:id 2 :n... | hospital_patient/src/hospital_patient/class5.clj | vgeorgo/courses-alura-clojure | 0 | (ns hospital-patient.class5
(:use clojure.pprint))
; Returns anything that will be used to identify what method should be used.
; Using :keys to defined what method it will use.
(defn type-of-authorization [request]
(let [patient (:patient request)
situation (:situation request)]
(cond (= :urgent situ... | 91690 | (ns hospital-patient.class5
(:use clojure.pprint))
; Returns anything that will be used to identify what method should be used.
; Using :keys to defined what method it will use.
(defn type-of-authorization [request]
(let [patient (:patient request)
situation (:situation request)]
(cond (= :urgent situ... | true | (ns hospital-patient.class5
(:use clojure.pprint))
; Returns anything that will be used to identify what method should be used.
; Using :keys to defined what method it will use.
(defn type-of-authorization [request]
(let [patient (:patient request)
situation (:situation request)]
(cond (= :urgent situ... |
[
{
"context": " :style {:-fx-font-size 24}\n :text (str bot-username)}\n {:fx/type :label\n :text \"Option",
"end": 3971,
"score": 0.9994063973426819,
"start": 3959,
"tag": "USERNAME",
"value": "bot-username"
},
{
"context": "ption-change\n ... | src/clj/skylobby/fx/players_table.clj | badosu/skylobby | 7 | (ns skylobby.fx.players-table
(:require
[cljfx.api :as fx]
[clojure.string :as string]
java-time
[skylobby.color :as color]
skylobby.fx
[skylobby.fx.color :as fx.color]
[skylobby.fx.ext :refer [ext-recreate-on-key-changed ext-table-column-auto-size]]
[skylobby.fx.flag-icon :as flag-ico... | 6331 | (ns skylobby.fx.players-table
(:require
[cljfx.api :as fx]
[clojure.string :as string]
java-time
[skylobby.color :as color]
skylobby.fx
[skylobby.fx.color :as fx.color]
[skylobby.fx.ext :refer [ext-recreate-on-key-changed ext-table-column-auto-size]]
[skylobby.fx.flag-icon :as flag-ico... | true | (ns skylobby.fx.players-table
(:require
[cljfx.api :as fx]
[clojure.string :as string]
java-time
[skylobby.color :as color]
skylobby.fx
[skylobby.fx.color :as fx.color]
[skylobby.fx.ext :refer [ext-recreate-on-key-changed ext-table-column-auto-size]]
[skylobby.fx.flag-icon :as flag-ico... |
[
{
"context": "ap! persons-atom assoc\n email {:first-name first-name\n :last-name last-name\n ",
"end": 188,
"score": 0.9396047592163086,
"start": 183,
"tag": "NAME",
"value": "first"
},
{
"context": "first-name first-name\n :last-name la... | fp/src/fp/db.clj | Skrzetuski/functional-programming | 0 | (ns fp.db)
(defonce persons-atom (atom {}))
(defn add-person!
[email first-name last-name city street nr-street post-code]
(swap! persons-atom assoc
email {:first-name first-name
:last-name last-name
:city city
:street street
:nr-street nr... | 72825 | (ns fp.db)
(defonce persons-atom (atom {}))
(defn add-person!
[email first-name last-name city street nr-street post-code]
(swap! persons-atom assoc
email {:first-name <NAME>-name
:last-name <NAME>-<NAME>
:city city
:street street
:nr-stre... | true | (ns fp.db)
(defonce persons-atom (atom {}))
(defn add-person!
[email first-name last-name city street nr-street post-code]
(swap! persons-atom assoc
email {:first-name PI:NAME:<NAME>END_PI-name
:last-name PI:NAME:<NAME>END_PI-PI:NAME:<NAME>END_PI
:city city
... |
[
{
"context": "/set\n :zeno/path [:zeno/crdt \"Alice\"]}\n {:zeno/arg 8\n ",
"end": 8875,
"score": 0.999101996421814,
"start": 8870,
"tag": "NAME",
"value": "Alice"
},
{
"context": "/set\n :zeno/path [:zeno/crdt \"... | test/unit/crdt_commands_test.cljc | Oncurrent/zeno | 0 | (ns unit.crdt-commands-test
(:require
[clojure.set :as set]
[clojure.test :as t :refer [deftest is]]
[deercreeklabs.lancaster :as l]
[com.oncurrent.zeno.state-providers.crdt.apply-ops :as apply-ops]
[com.oncurrent.zeno.state-providers.crdt.commands :as commands]
[com.oncurrent.zeno.state-providers.c... | 42733 | (ns unit.crdt-commands-test
(:require
[clojure.set :as set]
[clojure.test :as t :refer [deftest is]]
[deercreeklabs.lancaster :as l]
[com.oncurrent.zeno.state-providers.crdt.apply-ops :as apply-ops]
[com.oncurrent.zeno.state-providers.crdt.commands :as commands]
[com.oncurrent.zeno.state-providers.c... | true | (ns unit.crdt-commands-test
(:require
[clojure.set :as set]
[clojure.test :as t :refer [deftest is]]
[deercreeklabs.lancaster :as l]
[com.oncurrent.zeno.state-providers.crdt.apply-ops :as apply-ops]
[com.oncurrent.zeno.state-providers.crdt.commands :as commands]
[com.oncurrent.zeno.state-providers.c... |
[
{
"context": ";; Copyright 2014-2020 King\n;; Copyright 2009-2014 Ragnar Svensson, Christian Murray\n;; Licensed under the Defold Li",
"end": 111,
"score": 0.9998140335083008,
"start": 96,
"tag": "NAME",
"value": "Ragnar Svensson"
},
{
"context": "-2020 King\n;; Copyright 2009-2014 R... | editor/test/internal/value_test.clj | cmarincia/defold | 0 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 Ragnar Svensson, Christian Murray
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together wi... | 121461 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 <NAME>, <NAME>
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together with FAQs at
;; https... | true | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, to... |
[
{
"context": " \"acl\" [\"john:rwx\" \"fred:rwx\"]})}\n {:resource \"2\" :parameters nil})",
"end": 978,
"score": 0.634812593460083,
"start": 975,
"tag": "NAME",
"value": "red"
},
{
"context": ":name \"acl\" :value (db-serialize [\"john:rwx\" \"... | test/puppetlabs/puppetdb/testutils/resources.clj | DemonShi/puppetdb | 0 | (ns puppetlabs.puppetdb.testutils.resources
(:require [clojure.java.jdbc :as sql]
[clojure.test :refer :all]
[ring.mock.request :refer :all]
[clj-time.core :refer [now]]
[puppetlabs.puppetdb.fixtures :refer :all]
[puppetlabs.puppetdb.jdbc :refer [with-transa... | 116958 | (ns puppetlabs.puppetdb.testutils.resources
(:require [clojure.java.jdbc :as sql]
[clojure.test :refer :all]
[ring.mock.request :refer :all]
[clj-time.core :refer [now]]
[puppetlabs.puppetdb.fixtures :refer :all]
[puppetlabs.puppetdb.jdbc :refer [with-transa... | true | (ns puppetlabs.puppetdb.testutils.resources
(:require [clojure.java.jdbc :as sql]
[clojure.test :refer :all]
[ring.mock.request :refer :all]
[clj-time.core :refer [now]]
[puppetlabs.puppetdb.fixtures :refer :all]
[puppetlabs.puppetdb.jdbc :refer [with-transa... |
[
{
"context": "{:url \"https://repo.clojars.org/\",\n :password :gpg,\n :username :gpg}]],\n :description\n \"Various g",
"end": 602,
"score": 0.988900899887085,
"start": 599,
"tag": "PASSWORD",
"value": "gpg"
},
{
"context": "]*\\\\.(SF|RSA|DSA)$\\\"\"],\n :url \"https://github... | doc/details.clj | tisnik/cljgfx | 0 | {:aliases {"downgrade" "upgrade"},
:checkout-deps-shares
[:source-paths
:test-paths
:resource-paths
:compile-path
"#'leiningen.core.classpath/checkout-deps-paths"],
:clean-targets [:target-path],
:compile-path
"/home/ptisnovs/src/clojure/xrepos/cljgfx/target/classes",
:dependencies
([org.clojure/clojure ... | 46878 | {:aliases {"downgrade" "upgrade"},
:checkout-deps-shares
[:source-paths
:test-paths
:resource-paths
:compile-path
"#'leiningen.core.classpath/checkout-deps-paths"],
:clean-targets [:target-path],
:compile-path
"/home/ptisnovs/src/clojure/xrepos/cljgfx/target/classes",
:dependencies
([org.clojure/clojure ... | true | {:aliases {"downgrade" "upgrade"},
:checkout-deps-shares
[:source-paths
:test-paths
:resource-paths
:compile-path
"#'leiningen.core.classpath/checkout-deps-paths"],
:clean-targets [:target-path],
:compile-path
"/home/ptisnovs/src/clojure/xrepos/cljgfx/target/classes",
:dependencies
([org.clojure/clojure ... |
[
{
"context": "eanstalk Royalties\" \"Hedge Fund\" \"Project Beale\" \"Ben Musashi\"]}})\n (core/gain state :corp :click 10)\n ",
"end": 2485,
"score": 0.9997785687446594,
"start": 2474,
"tag": "NAME",
"value": "Ben Musashi"
},
{
"context": "t, zero cost\")\n (play-from-h... | test/clj/game_test/engine/costs.clj | usairman82/netrunner | 0 | (ns game-test.engine.costs
(:require [game.core :as core]
[game-test.core :refer :all]
[game-test.utils :refer :all]
[game-test.macros :refer :all]
[clojure.test :refer :all]))
(deftest merge-costs
(testing "Non-damage costs"
(testing "No defaults, already merged... | 53058 | (ns game-test.engine.costs
(:require [game.core :as core]
[game-test.core :refer :all]
[game-test.utils :refer :all]
[game-test.macros :refer :all]
[clojure.test :refer :all]))
(deftest merge-costs
(testing "Non-damage costs"
(testing "No defaults, already merged... | true | (ns game-test.engine.costs
(:require [game.core :as core]
[game-test.core :refer :all]
[game-test.utils :refer :all]
[game-test.macros :refer :all]
[clojure.test :refer :all]))
(deftest merge-costs
(testing "Non-damage costs"
(testing "No defaults, already merged... |
[
{
"context": ";; Copyright © 2015-2019 Esko Luontola\n;; This software is released under the Apache Lic",
"end": 38,
"score": 0.9998846054077148,
"start": 25,
"tag": "NAME",
"value": "Esko Luontola"
}
] | src/territory_bro/events.clj | JessRoberts/territory_assistant | 0 | ;; Copyright © 2015-2019 Esko Luontola
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.events
(:require [schema-refined.core :as refined]
[schema-tools.core :as tools]
[schema.coerce :as coerce]
... | 80474 | ;; Copyright © 2015-2019 <NAME>
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.events
(:require [schema-refined.core :as refined]
[schema-tools.core :as tools]
[schema.coerce :as coerce]
... | true | ;; Copyright © 2015-2019 PI:NAME:<NAME>END_PI
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.events
(:require [schema-refined.core :as refined]
[schema-tools.core :as tools]
[schema.coerce :as c... |
[
{
"context": "(\n ; Context map\n {}\n\n \"0\"\n \"nulla\"\n \"zero\"\n (number 0)\n\n \"1\"\n \"uno\"\n (number 1",
"end": 38,
"score": 0.9935812950134277,
"start": 33,
"tag": "NAME",
"value": "nulla"
},
{
"context": "\n\n \"0\"\n \"nulla\"\n \"zero\"\n (number 0)\n\n ... | resources/languages/it/corpus/numbers.clj | irvingflores/duckling | 0 | (
; Context map
{}
"0"
"nulla"
"zero"
(number 0)
"1"
"uno"
(number 1)
"2"
"due"
(number 2)
"3"
"tre"
(number 3)
"4"
"quattro"
(number 4)
"5"
"cinque"
(number 5)
"6"
"sei"
(number 6)
"7"
"sette"
(number 7)
"8"
"otto"
(number 8)
"9"
... | 3754 | (
; Context map
{}
"0"
"<NAME>"
"zero"
(number 0)
"1"
"<NAME>"
(number 1)
"2"
"due"
(number 2)
"3"
"<NAME>"
(number 3)
"4"
"<NAME>"
(number 4)
"5"
"<NAME>"
(number 5)
"6"
"sei"
(number 6)
"7"
"<NAME>"
(number 7)
"8"
"otto"
(number 8)
... | true | (
; Context map
{}
"0"
"PI:NAME:<NAME>END_PI"
"zero"
(number 0)
"1"
"PI:NAME:<NAME>END_PI"
(number 1)
"2"
"due"
(number 2)
"3"
"PI:NAME:<NAME>END_PI"
(number 3)
"4"
"PI:NAME:<NAME>END_PI"
(number 4)
"5"
"PI:NAME:<NAME>END_PI"
(number 5)
"6"
"sei"
(number ... |
[
{
"context": " be solved by another level of\n;; indirection.\" -- David Wheeler\n;; \n\n",
"end": 1637,
"score": 0.9993067979812622,
"start": 1624,
"tag": "NAME",
"value": "David Wheeler"
}
] | func-prog/fp-oo/solutions/pieces/class-3.clj | tannerwelsh/code-training | 0 | ;;; Exercise 3
(def my-point (make Point 1 2))
(def Point
{
:__own_symbol__ 'Point
:__instance_methods__
{
:add-instance-values (fn [this x y]
(assoc this :x x :y y))
;; vvvvv== New
:origin (fn [this] (make Point 0 0))
;; ... | 87870 | ;;; Exercise 3
(def my-point (make Point 1 2))
(def Point
{
:__own_symbol__ 'Point
:__instance_methods__
{
:add-instance-values (fn [this x y]
(assoc this :x x :y y))
;; vvvvv== New
:origin (fn [this] (make Point 0 0))
;; ... | true | ;;; Exercise 3
(def my-point (make Point 1 2))
(def Point
{
:__own_symbol__ 'Point
:__instance_methods__
{
:add-instance-values (fn [this x y]
(assoc this :x x :y y))
;; vvvvv== New
:origin (fn [this] (make Point 0 0))
;; ... |
[
{
"context": ".com/archiva/repository/internal\\\"\n :username \\\"durin\\\" :password \\\"mellon\\\"}\n\nSNAPSHOT versions will b",
"end": 2838,
"score": 0.999281644821167,
"start": 2833,
"tag": "USERNAME",
"value": "durin"
},
{
"context": "ory/internal\\\"\n :username \\\"durin... | test/conflicts/mined/leiningen-9ee9fd1784453b98b35868003ec302b6c46a2207-ed28764804af01661dd82aa967eed7eb6d7de28/M.clj | nazrhom/vcs-clojure | 3 | (ns leiningen.deploy
"Build and deploy jar to remote repository."
(:require [lancet])
(:use [leiningen.core :only [abort]]
[leiningen.jar :only [jar]]
[leiningen.pom :only [pom snapshot?]]
[leiningen.util.maven :only [make-model make-artifact]]
[leiningen.deps :only [make-repositor... | 121579 | (ns leiningen.deploy
"Build and deploy jar to remote repository."
(:require [lancet])
(:use [leiningen.core :only [abort]]
[leiningen.jar :only [jar]]
[leiningen.pom :only [pom snapshot?]]
[leiningen.util.maven :only [make-model make-artifact]]
[leiningen.deps :only [make-repositor... | true | (ns leiningen.deploy
"Build and deploy jar to remote repository."
(:require [lancet])
(:use [leiningen.core :only [abort]]
[leiningen.jar :only [jar]]
[leiningen.pom :only [pom snapshot?]]
[leiningen.util.maven :only [make-model make-artifact]]
[leiningen.deps :only [make-repositor... |
[
{
"context": "ng new validators and validator sets\"\n {:author \"Leonardo Borges\"}\n #+clj (:require [clj-time.format :as f])\n #+",
"end": 177,
"score": 0.9998838305473328,
"start": 162,
"tag": "NAME",
"value": "Leonardo Borges"
}
] | src/bouncer/validators.cljx | edgibbs/bouncer | 0 | (ns bouncer.validators
"This namespace contains all built-in validators as well as
macros for defining new validators and validator sets"
{:author "Leonardo Borges"}
#+clj (:require [clj-time.format :as f])
#+cljs (:require [cljs-time.format :as f])
#+cljs (:require-macros [bouncer.validators :refer... | 17259 | (ns bouncer.validators
"This namespace contains all built-in validators as well as
macros for defining new validators and validator sets"
{:author "<NAME>"}
#+clj (:require [clj-time.format :as f])
#+cljs (:require [cljs-time.format :as f])
#+cljs (:require-macros [bouncer.validators :refer [defvali... | true | (ns bouncer.validators
"This namespace contains all built-in validators as well as
macros for defining new validators and validator sets"
{:author "PI:NAME:<NAME>END_PI"}
#+clj (:require [clj-time.format :as f])
#+cljs (:require [cljs-time.format :as f])
#+cljs (:require-macros [bouncer.validators :... |
[
{
"context": "; Copyright (c) Rich Hickey. All rights reserved.\n; The use and distributio",
"end": 29,
"score": 0.9998077154159546,
"start": 18,
"tag": "NAME",
"value": "Rich Hickey"
}
] | ext/clojure-clojurescript-bef56a7/samples/twitterbuzz/src/twitterbuzz/dom-helpers.cljs | yokolet/clementine | 35 | ; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any ... | 47438 | ; Copyright (c) <NAME>. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashi... | true | ; Copyright (c) PI:NAME:<NAME>END_PI. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this softwar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.