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": ";; Copyright (c) 2015-2016 Andrey Antukh <niwi@niwi.nz>\n;; All rights reserved.\n;;\n;; Redi",
"end": 40,
"score": 0.9998809695243835,
"start": 27,
"tag": "NAME",
"value": "Andrey Antukh"
},
{
"context": ";; Copyright (c) 2015-2016 Andrey Antukh <niwi@niwi.nz>\n;; All ... | src/clojure/catacumba/impl/context.clj | source-c/catacumba | 212 | ;; Copyright (c) 2015-2016 Andrey Antukh <niwi@niwi.nz>
;; 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
;; ... | 122533 | ;; Copyright (c) 2015-2016 <NAME> <<EMAIL>>
;; 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 con... | true | ;; Copyright (c) 2015-2016 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>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 ... |
[
{
"context": "ohnny\n :movie/title \"Johnny\"\n :movie/genre :thri",
"end": 4510,
"score": 0.9968536496162415,
"start": 4504,
"tag": "NAME",
"value": "Johnny"
},
{
"context": "x-data [[:db/retract 79164837199949 :movie/title \... | src/datomic/client_api_tutorial.clj | michelemendel/datomic-playground | 0 | (ns datomic.client-api-tutorial
(:require [datomic.client.api :as d]
[clojure.pprint :as pp]))
(defn reset-test-db
"Reset test database"
[cfg db-name schema ident-genres test-data]
(let [client (d/client cfg)
_ (d/delete-database client {:db-name db-name})
_ (d/create-database clien... | 61257 | (ns datomic.client-api-tutorial
(:require [datomic.client.api :as d]
[clojure.pprint :as pp]))
(defn reset-test-db
"Reset test database"
[cfg db-name schema ident-genres test-data]
(let [client (d/client cfg)
_ (d/delete-database client {:db-name db-name})
_ (d/create-database clien... | true | (ns datomic.client-api-tutorial
(:require [datomic.client.api :as d]
[clojure.pprint :as pp]))
(defn reset-test-db
"Reset test database"
[cfg db-name schema ident-genres test-data]
(let [client (d/client cfg)
_ (d/delete-database client {:db-name db-name})
_ (d/create-database clien... |
[
{
"context": "518c-6d3e-4e75-87f1-ff08bdc933be\"\n :user/email \"user@test.com\"\n :user/password \"123456\"\n :user/created-at (",
"end": 319,
"score": 0.999921441078186,
"start": 306,
"tag": "EMAIL",
"value": "user@test.com"
},
{
"context": " :user/email \"user@test.com\"\n... | test/gungnir/changeset_test.clj | ikitommi/gungnir | 142 | (ns gungnir.changeset-test
(:require
[clojure.test :refer :all]
[gungnir.changeset :as changeset]
[gungnir.test.util :as util]))
(use-fixtures :once util/once-fixture)
(use-fixtures :each util/each-fixture)
(def existing-user
{:user/id "e52c518c-6d3e-4e75-87f1-ff08bdc933be"
:user/email "user@test.com"... | 47272 | (ns gungnir.changeset-test
(:require
[clojure.test :refer :all]
[gungnir.changeset :as changeset]
[gungnir.test.util :as util]))
(use-fixtures :once util/once-fixture)
(use-fixtures :each util/each-fixture)
(def existing-user
{:user/id "e52c518c-6d3e-4e75-87f1-ff08bdc933be"
:user/email "<EMAIL>"
:u... | true | (ns gungnir.changeset-test
(:require
[clojure.test :refer :all]
[gungnir.changeset :as changeset]
[gungnir.test.util :as util]))
(use-fixtures :once util/once-fixture)
(use-fixtures :each util/each-fixture)
(def existing-user
{:user/id "e52c518c-6d3e-4e75-87f1-ff08bdc933be"
:user/email "PI:EMAIL:<EMAI... |
[
{
"context": "! *unchecked-math* :warn-on-boxed)\n(ns ^{:author \"wahpenayo at gmail dot com\" \n :date \"2018-04-16\"\n ",
"end": 60,
"score": 0.6935787200927734,
"start": 54,
"tag": "USERNAME",
"value": "wahpen"
},
{
"context": "hecked-math* :warn-on-boxed)\n(ns ^{:author \"w... | src/main/clojure/zana/stats/statistics.clj | wahpenayo/zana | 2 | (set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "wahpenayo at gmail dot com"
:date "2018-04-16"
:doc "Stats that don't have an obvious home." }
zana.stats.statistics
(:refer-clojure :exclude [min max])
(:require [zana.geometry.r1 :as r1]
[zana.geometry.z1 :as z1]
... | 109277 | (set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "wahpen<EMAIL> at gmail dot com"
:date "2018-04-16"
:doc "Stats that don't have an obvious home." }
zana.stats.statistics
(:refer-clojure :exclude [min max])
(:require [zana.geometry.r1 :as r1]
[zana.geometry.z1 :as z1]
... | true | (set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "wahpenPI:EMAIL:<EMAIL>END_PI at gmail dot com"
:date "2018-04-16"
:doc "Stats that don't have an obvious home." }
zana.stats.statistics
(:refer-clojure :exclude [min max])
(:require [zana.geometry.r1 :as r1]
[zana.geometry.z1... |
[
{
"context": "(ns irf.vector)\n\n;vector.cljs\n;by Kolja Wilcke in June 2017\n\n(defrecord Vector [x y])\n(def v ->V",
"end": 46,
"score": 0.999875545501709,
"start": 34,
"tag": "NAME",
"value": "Kolja Wilcke"
}
] | src/irf/vector.cljs | kolja/instant-rocket-fuel-cljs | 0 | (ns irf.vector)
;vector.cljs
;by Kolja Wilcke in June 2017
(defrecord Vector [x y])
(def v ->Vector)
(defn sqr [x] (js/Math.pow x 2))
(def abs js/Math.abs)
(def atan2 js/Math.atan2)
(def pi (.-PI js/Math))
(def tau (+ pi pi))
(def v0 (->Vector 0 0)) ;; null-vektor
(defn quadrant [{:keys [x y]}]
"which quadrant do... | 118395 | (ns irf.vector)
;vector.cljs
;by <NAME> in June 2017
(defrecord Vector [x y])
(def v ->Vector)
(defn sqr [x] (js/Math.pow x 2))
(def abs js/Math.abs)
(def atan2 js/Math.atan2)
(def pi (.-PI js/Math))
(def tau (+ pi pi))
(def v0 (->Vector 0 0)) ;; null-vektor
(defn quadrant [{:keys [x y]}]
"which quadrant does a v... | true | (ns irf.vector)
;vector.cljs
;by PI:NAME:<NAME>END_PI in June 2017
(defrecord Vector [x y])
(def v ->Vector)
(defn sqr [x] (js/Math.pow x 2))
(def abs js/Math.abs)
(def atan2 js/Math.atan2)
(def pi (.-PI js/Math))
(def tau (+ pi pi))
(def v0 (->Vector 0 0)) ;; null-vektor
(defn quadrant [{:keys [x y]}]
"which qua... |
[
{
"context": "for learning artificial neural networks?\")\r\n (a \"Ryszard Tadeusiewicz: Odkrywanie właściwości sieci neuronowych\")\r\n (m",
"end": 477,
"score": 0.9998593330383301,
"start": 457,
"tag": "NAME",
"value": "Ryszard Tadeusiewicz"
},
{
"context": "Odkrywanie właściwośc... | src/test/clojure/pl/tomaszgigiel/quizzes/packs/ann/01_ann_test.clj | tomaszgigiel/quizzes | 1 | (ns pl.tomaszgigiel.quizzes.packs.ann.01-ann-test
(:require [clojure.test :as tst])
(:require [pl.tomaszgigiel.quizzes.test-config :as test-config])
(:require [pl.tomaszgigiel.quizzes.quiz :refer [qam q a at m]])
(:require [pl.tomaszgigiel.utils.misc :as misc]))
(tst/use-fixtures :once test-config/once-fixture... | 16300 | (ns pl.tomaszgigiel.quizzes.packs.ann.01-ann-test
(:require [clojure.test :as tst])
(:require [pl.tomaszgigiel.quizzes.test-config :as test-config])
(:require [pl.tomaszgigiel.quizzes.quiz :refer [qam q a at m]])
(:require [pl.tomaszgigiel.utils.misc :as misc]))
(tst/use-fixtures :once test-config/once-fixture... | true | (ns pl.tomaszgigiel.quizzes.packs.ann.01-ann-test
(:require [clojure.test :as tst])
(:require [pl.tomaszgigiel.quizzes.test-config :as test-config])
(:require [pl.tomaszgigiel.quizzes.quiz :refer [qam q a at m]])
(:require [pl.tomaszgigiel.utils.misc :as misc]))
(tst/use-fixtures :once test-config/once-fixture... |
[
{
"context": "(ns ^{:author \"Leeor Engel\"}\nchapter-2.chapter-2-q5\n (:require [data-struct",
"end": 26,
"score": 0.9998970031738281,
"start": 15,
"tag": "NAME",
"value": "Leeor Engel"
}
] | Clojure/src/chapter_2/chapter_2_q5.clj | Kiandr/crackingcodinginterview | 0 | (ns ^{:author "Leeor Engel"}
chapter-2.chapter-2-q5
(:require [data-structures.linked-list :refer :all]))
(defn- next-sum
([n1 n2]
(next-sum n1 n2 0))
([n1 n2 carry-over]
(let [n1-data (if (nil? n1) 0 n1)
n2-data (if (nil? n2) 0 n2)]
(+ n1-data n2-data carry-over))))
(defn- get-high-digit [s... | 106089 | (ns ^{:author "<NAME>"}
chapter-2.chapter-2-q5
(:require [data-structures.linked-list :refer :all]))
(defn- next-sum
([n1 n2]
(next-sum n1 n2 0))
([n1 n2 carry-over]
(let [n1-data (if (nil? n1) 0 n1)
n2-data (if (nil? n2) 0 n2)]
(+ n1-data n2-data carry-over))))
(defn- get-high-digit [sum]
... | true | (ns ^{:author "PI:NAME:<NAME>END_PI"}
chapter-2.chapter-2-q5
(:require [data-structures.linked-list :refer :all]))
(defn- next-sum
([n1 n2]
(next-sum n1 n2 0))
([n1 n2 carry-over]
(let [n1-data (if (nil? n1) 0 n1)
n2-data (if (nil? n2) 0 n2)]
(+ n1-data n2-data carry-over))))
(defn- get-high... |
[
{
"context": "app-state\n (rc/atom\n {:contacts \n [{:first \"Ben\" :last \"Bitdiddle\" :email \"benb@mit.edu\"}\n {:",
"end": 420,
"score": 0.9998175501823425,
"start": 417,
"tag": "NAME",
"value": "Ben"
},
{
"context": "(rc/atom\n {:contacts \n [{:first \"Ben\" :last... | src/reagent_tutorial/core.cljs | mrwizard82d1/reagent-tutorial | 0 | (ns reagent-tutorial.core
(:require [reagent.core :as rc :refer [atom]]
[goog.crypt :as crypt]
[goog.crypt.base64 :as base64]
[clojure.string :as str]))
(enable-console-print!)
(println "Edits to this text should show up in your developer console.")
;; define your app data so th... | 22908 | (ns reagent-tutorial.core
(:require [reagent.core :as rc :refer [atom]]
[goog.crypt :as crypt]
[goog.crypt.base64 :as base64]
[clojure.string :as str]))
(enable-console-print!)
(println "Edits to this text should show up in your developer console.")
;; define your app data so th... | true | (ns reagent-tutorial.core
(:require [reagent.core :as rc :refer [atom]]
[goog.crypt :as crypt]
[goog.crypt.base64 :as base64]
[clojure.string :as str]))
(enable-console-print!)
(println "Edits to this text should show up in your developer console.")
;; define your app data so th... |
[
{
"context": "! *unchecked-math* :warn-on-boxed)\n(ns ^{:author \"palisades dot lakes at gmail dot com\"\n :date \"2017-12-06\"\n :doc \"Unit tests ",
"end": 123,
"score": 0.9323030114173889,
"start": 87,
"tag": "EMAIL",
"value": "palisades dot lakes at gmail dot com"
}
] | src/test/clojure/zana/test/prob/measure.clj | wahpenayo/zana | 2 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "palisades dot lakes at gmail dot com"
:date "2017-12-06"
:doc "Unit tests for zana.prob.measure."}
zana.test.prob.measure
(:require [clojure.string :as s]
[clojure.java.io :as io]
[cl... | 119293 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "<EMAIL>"
:date "2017-12-06"
:doc "Unit tests for zana.prob.measure."}
zana.test.prob.measure
(:require [clojure.string :as s]
[clojure.java.io :as io]
[clojure.test :as test]
... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "PI:EMAIL:<EMAIL>END_PI"
:date "2017-12-06"
:doc "Unit tests for zana.prob.measure."}
zana.test.prob.measure
(:require [clojure.string :as s]
[clojure.java.io :as io]
[clojure.test :as... |
[
{
"context": " {:Value \"nsidc@nsidc.org\",\n ",
"end": 2252,
"score": 0.9999035596847534,
"start": 2237,
"tag": "EMAIL",
"value": "nsidc@nsidc.org"
},
{
"context": " ... | umm-spec-lib/test/cmr/umm_spec/test/xml_to_umm_mappings/iso19115_2/data_contact.clj | daniel-zamora/Common-Metadata-Repository | 294 | (ns cmr.umm-spec.test.xml-to-umm-mappings.iso19115-2.data-contact
(:require
[clojure.java.io :as io]
[clojure.test :refer :all]
[cmr.umm-spec.xml-to-umm-mappings.iso19115-2.data-contact :as data-contact]))
(def contact-related-urls-example-result
'({:NonDataCenterAffiliation nil,
:Roles ["User Servi... | 67043 | (ns cmr.umm-spec.test.xml-to-umm-mappings.iso19115-2.data-contact
(:require
[clojure.java.io :as io]
[clojure.test :refer :all]
[cmr.umm-spec.xml-to-umm-mappings.iso19115-2.data-contact :as data-contact]))
(def contact-related-urls-example-result
'({:NonDataCenterAffiliation nil,
:Roles ["User Servi... | true | (ns cmr.umm-spec.test.xml-to-umm-mappings.iso19115-2.data-contact
(:require
[clojure.java.io :as io]
[clojure.test :refer :all]
[cmr.umm-spec.xml-to-umm-mappings.iso19115-2.data-contact :as data-contact]))
(def contact-related-urls-example-result
'({:NonDataCenterAffiliation nil,
:Roles ["User Servi... |
[
{
"context": "erson_id 1234567\n :person_name \"John Doe\"\n :image {:url \"http://focus.on/m",
"end": 2743,
"score": 0.9998283386230469,
"start": 2735,
"tag": "NAME",
"value": "John Doe"
},
{
"context": "//corporate.com/me.png\"}\n :person_short... | clj/ex/study_clojure/ex06/src/debug_functions.clj | mertnuhoglu/study | 1 | (ns debug-functions)
; Good methods:
; hashp for tracing <url:file:///~/projects/study/clj/ex/study_clojure/ex06/src/debug_functions.clj#r=g11988>
; cider debugging example <url:file:///~/projects/study/clj/ex/study_clojure/ex06/src/debug_functions.clj#r=g11970>
(comment
; hashp for tracing id=g11988
; [Clojure ... | 125066 | (ns debug-functions)
; Good methods:
; hashp for tracing <url:file:///~/projects/study/clj/ex/study_clojure/ex06/src/debug_functions.clj#r=g11988>
; cider debugging example <url:file:///~/projects/study/clj/ex/study_clojure/ex06/src/debug_functions.clj#r=g11970>
(comment
; hashp for tracing id=g11988
; [Clojure ... | true | (ns debug-functions)
; Good methods:
; hashp for tracing <url:file:///~/projects/study/clj/ex/study_clojure/ex06/src/debug_functions.clj#r=g11988>
; cider debugging example <url:file:///~/projects/study/clj/ex/study_clojure/ex06/src/debug_functions.clj#r=g11970>
(comment
; hashp for tracing id=g11988
; [Clojure ... |
[
{
"context": "re until end of turn.\"}]}))\n\n(defmethod fix-card \"Callow Jushi\"\n [card]\n (-> card\n (update-in [:rulelist]",
"end": 2428,
"score": 0.7823058366775513,
"start": 2416,
"tag": "NAME",
"value": "Callow Jushi"
},
{
"context": "st] (partial take 2))\n (asso... | src/loa/cleanup/card_adjustment.clj | karmag/loa | 4 | (ns loa.cleanup.card-adjustment)
;;--------------------------------------------------
;; internal
(defmulti fix-card :name)
(defmethod fix-card :default [card] card)
(defmethod fix-card "Forest" [card] (dissoc card :rulelist))
(defmethod fix-card "Island" [card] (dissoc card :rulelist))
(defmethod fix-card "Mou... | 23785 | (ns loa.cleanup.card-adjustment)
;;--------------------------------------------------
;; internal
(defmulti fix-card :name)
(defmethod fix-card :default [card] card)
(defmethod fix-card "Forest" [card] (dissoc card :rulelist))
(defmethod fix-card "Island" [card] (dissoc card :rulelist))
(defmethod fix-card "Mou... | true | (ns loa.cleanup.card-adjustment)
;;--------------------------------------------------
;; internal
(defmulti fix-card :name)
(defmethod fix-card :default [card] card)
(defmethod fix-card "Forest" [card] (dissoc card :rulelist))
(defmethod fix-card "Island" [card] (dissoc card :rulelist))
(defmethod fix-card "Mou... |
[
{
"context": "iple callers.\n Uses tools from the Marth lab and Erik Garrison to realign and recall given a\n set of possible ",
"end": 172,
"score": 0.9999061822891235,
"start": 159,
"tag": "NAME",
"value": "Erik Garrison"
}
] | src/bcbio/variation/ensemble/realign.clj | roryk/bcbio.variation.recall | 1 | (ns bcbio.variation.ensemble.realign
"Realignment based Ensemble calling approaches using inputs from multiple callers.
Uses tools from the Marth lab and Erik Garrison to realign and recall given a
set of possible variants in a genomic region."
(:require [bcbio.run.fsp :as fsp]
[bcbio.run.itx :as ... | 64344 | (ns bcbio.variation.ensemble.realign
"Realignment based Ensemble calling approaches using inputs from multiple callers.
Uses tools from the Marth lab and <NAME> to realign and recall given a
set of possible variants in a genomic region."
(:require [bcbio.run.fsp :as fsp]
[bcbio.run.itx :as itx]
... | true | (ns bcbio.variation.ensemble.realign
"Realignment based Ensemble calling approaches using inputs from multiple callers.
Uses tools from the Marth lab and PI:NAME:<NAME>END_PI to realign and recall given a
set of possible variants in a genomic region."
(:require [bcbio.run.fsp :as fsp]
[bcbio.run.i... |
[
{
"context": "-str (pprint status))]])])))\n\n(defn post [{:keys [name author message timestamp avatar id]\n ",
"end": 7438,
"score": 0.7092654705047607,
"start": 7434,
"tag": "NAME",
"value": "name"
},
{
"context": " (pprint status))]])])))\n\n(defn post [{:keys [name au... | src/cljs/guestbook/views/post.cljs | trevorjamesmartin/guestbook | 0 | (ns guestbook.views.post
(:require
[re-frame.core :as rf]
[reagent.core :as r]
[cljs.pprint :refer [pprint]]
[guestbook.messages :as msg]
[reagent.dom :as dom]))
(defn clear-post-keys [db]
(dissoc db ::error ::post))
(rf/reg-event-fx
::fetch-replies
(fn [{:keys [db]} [_ post-id]]
{:db (assoc-... | 59547 | (ns guestbook.views.post
(:require
[re-frame.core :as rf]
[reagent.core :as r]
[cljs.pprint :refer [pprint]]
[guestbook.messages :as msg]
[reagent.dom :as dom]))
(defn clear-post-keys [db]
(dissoc db ::error ::post))
(rf/reg-event-fx
::fetch-replies
(fn [{:keys [db]} [_ post-id]]
{:db (assoc-... | true | (ns guestbook.views.post
(:require
[re-frame.core :as rf]
[reagent.core :as r]
[cljs.pprint :refer [pprint]]
[guestbook.messages :as msg]
[reagent.dom :as dom]))
(defn clear-post-keys [db]
(dissoc db ::error ::post))
(rf/reg-event-fx
::fetch-replies
(fn [{:keys [db]} [_ post-id]]
{:db (assoc-... |
[
{
"context": "evoimistelu\" \"telinevoimisteli\"\n \"Triathlon\" \"ui, pyöräili ja juoksi\"\n ",
"end": 3422,
"score": 0.9056956171989441,
"start": 3413,
"tag": "NAME",
"value": "Triathlon"
}
] | src/ontrail/nlp.clj | jrosti/ontrail | 1 | (ns ontrail.nlp
(:import [org.tartarus.snowball.ext finnishStemmer]))
(defn stem [word]
(if (and word (> (count word) 0))
(let [stemmer (finnishStemmer.)]
(.setCurrent stemmer word)
(.stem stemmer)
(.getCurrent stemmer))
""))
(def verb-map {"Beach volley" "pelasi biitsiä"
... | 41568 | (ns ontrail.nlp
(:import [org.tartarus.snowball.ext finnishStemmer]))
(defn stem [word]
(if (and word (> (count word) 0))
(let [stemmer (finnishStemmer.)]
(.setCurrent stemmer word)
(.stem stemmer)
(.getCurrent stemmer))
""))
(def verb-map {"Beach volley" "pelasi biitsiä"
... | true | (ns ontrail.nlp
(:import [org.tartarus.snowball.ext finnishStemmer]))
(defn stem [word]
(if (and word (> (count word) 0))
(let [stemmer (finnishStemmer.)]
(.setCurrent stemmer word)
(.stem stemmer)
(.getCurrent stemmer))
""))
(def verb-map {"Beach volley" "pelasi biitsiä"
... |
[
{
"context": "; -------------------------\n\n(def p (read-string \"0xffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc20... | test/set5/dh_negotiated_groups_test.clj | milapsheth/Crypto-Challenges | 3 | (ns set5.dh-negotiated-groups-test
(:require [set5.dh-negotiated-groups :as sut]
[clojure.test :refer :all]
[set5.dh-mitm-attack :as dh]
[util.random :as rand]))
;; -------------------------
;; Utilities
;; -------------------------
(def p (read-string "0xffffffffffffffffc90fdaa... | 56719 | (ns set5.dh-negotiated-groups-test
(:require [set5.dh-negotiated-groups :as sut]
[clojure.test :refer :all]
[set5.dh-mitm-attack :as dh]
[util.random :as rand]))
;; -------------------------
;; Utilities
;; -------------------------
(def p (read-string "<KEY>"))
(def g 2)
(de... | true | (ns set5.dh-negotiated-groups-test
(:require [set5.dh-negotiated-groups :as sut]
[clojure.test :refer :all]
[set5.dh-mitm-attack :as dh]
[util.random :as rand]))
;; -------------------------
;; Utilities
;; -------------------------
(def p (read-string "PI:KEY:<KEY>END_PI"))
(d... |
[
{
"context": ";;\n;; Author:: Adam Jacob (<adam@opscode.com>)\n;; Copyright:: Copyright (c)",
"end": 25,
"score": 0.999845027923584,
"start": 15,
"tag": "NAME",
"value": "Adam Jacob"
},
{
"context": ";;\n;; Author:: Adam Jacob (<adam@opscode.com>)\n;; Copyright:: Copyright (c) 2011 O... | config/software/runit.clj | racker/omnibus | 2 | ;;
;; Author:: Adam Jacob (<adam@opscode.com>)
;; Copyright:: Copyright (c) 2011 Opscode, Inc.
;; License:: Apache License, Version 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
;; ... | 11875 | ;;
;; Author:: <NAME> (<<EMAIL>>)
;; Copyright:: Copyright (c) 2011 Opscode, Inc.
;; License:: Apache License, Version 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:... | true | ;;
;; Author:: PI:NAME:<NAME>END_PI (<PI:EMAIL:<EMAIL>END_PI>)
;; Copyright:: Copyright (c) 2011 Opscode, Inc.
;; License:: Apache License, Version 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 th... |
[
{
"context": "ame\n :password password})\n (run-pipeline (read-channel (take* 1 (util/",
"end": 2014,
"score": 0.9987081289291382,
"start": 2006,
"tag": "PASSWORD",
"value": "password"
}
] | src/crawl.clj | flodiebold/crawl-clj | 1 | (ns crawl
(:use [lamina.core :exclude (close)])
(:require [aleph.http.websocket :as ws]
[cheshire.core :as json]
[clojure.string :as s]
[crawl.compression :as compression]
[crawl.util :as util]
crawl.lobby
crawl.game))
(defn- wrap-decompressio... | 124293 | (ns crawl
(:use [lamina.core :exclude (close)])
(:require [aleph.http.websocket :as ws]
[cheshire.core :as json]
[clojure.string :as s]
[crawl.compression :as compression]
[crawl.util :as util]
crawl.lobby
crawl.game))
(defn- wrap-decompressio... | true | (ns crawl
(:use [lamina.core :exclude (close)])
(:require [aleph.http.websocket :as ws]
[cheshire.core :as json]
[clojure.string :as s]
[crawl.compression :as compression]
[crawl.util :as util]
crawl.lobby
crawl.game))
(defn- wrap-decompressio... |
[
{
"context": "urce.org/licenses/MIT\"}\n :url \"http://github.com/cloxp/cloxp-projects\"\n :dependencies [[org.clojure/clo",
"end": 237,
"score": 0.623374342918396,
"start": 232,
"tag": "USERNAME",
"value": "cloxp"
},
{
"context": " :aot [rksm.system-files.jar.File]\n :scm {:url ... | project.clj | rksm/clj-system-files | 1 | (defproject org.rksm/system-files "0.2.1-SNAPSHOT"
:description "Accessing clojure classpath data and system files."
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
:url "http://github.com/cloxp/cloxp-projects"
:dependencies [[org.clojure/clojure "1.10.1"]
[... | 98007 | (defproject org.rksm/system-files "0.2.1-SNAPSHOT"
:description "Accessing clojure classpath data and system files."
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
:url "http://github.com/cloxp/cloxp-projects"
:dependencies [[org.clojure/clojure "1.10.1"]
[... | true | (defproject org.rksm/system-files "0.2.1-SNAPSHOT"
:description "Accessing clojure classpath data and system files."
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
:url "http://github.com/cloxp/cloxp-projects"
:dependencies [[org.clojure/clojure "1.10.1"]
[... |
[
{
"context": ":host host :port port :username username :password password})\n this (assoc this :conn conn)]\n (",
"end": 9779,
"score": 0.5057497620582581,
"start": 9771,
"tag": "PASSWORD",
"value": "password"
}
] | message-queue-lib/src/cmr/message_queue/queue/rabbit_mq.clj | sxu123/Common-Metadata-Repository | 0 | (ns cmr.message-queue.queue.rabbit-mq
"Implements index-queue functionality using rabbit mq"
(:gen-class)
(:require [cmr.common.lifecycle :as lifecycle]
[cmr.common.log :as log :refer (debug info warn error)]
[cmr.common.mime-types :as mt]
[cmr.message-queue.config :as config]
... | 71776 | (ns cmr.message-queue.queue.rabbit-mq
"Implements index-queue functionality using rabbit mq"
(:gen-class)
(:require [cmr.common.lifecycle :as lifecycle]
[cmr.common.log :as log :refer (debug info warn error)]
[cmr.common.mime-types :as mt]
[cmr.message-queue.config :as config]
... | true | (ns cmr.message-queue.queue.rabbit-mq
"Implements index-queue functionality using rabbit mq"
(:gen-class)
(:require [cmr.common.lifecycle :as lifecycle]
[cmr.common.log :as log :refer (debug info warn error)]
[cmr.common.mime-types :as mt]
[cmr.message-queue.config :as config]
... |
[
{
"context": " :user \"clj_dev\"\n :password \"password\"}\n repos (create-database mysql-db)]\n (",
"end": 327,
"score": 0.9995213747024536,
"start": 319,
"tag": "PASSWORD",
"value": "password"
}
] | src/clj_clean_todos/main/console_db.clj | shintaro4/clj-clean-todos | 0 | (ns clj-clean-todos.main.console-db
(:require [clj-clean-todos.ui.console.core :as console]
[clj-clean-todos.repos.db :refer [create-database]]))
(defn -main
[]
(let [mysql-db {:dbtype "mysql"
:dbname "clj_clean_todos"
:user "clj_dev"
:password "p... | 60166 | (ns clj-clean-todos.main.console-db
(:require [clj-clean-todos.ui.console.core :as console]
[clj-clean-todos.repos.db :refer [create-database]]))
(defn -main
[]
(let [mysql-db {:dbtype "mysql"
:dbname "clj_clean_todos"
:user "clj_dev"
:password "<... | true | (ns clj-clean-todos.main.console-db
(:require [clj-clean-todos.ui.console.core :as console]
[clj-clean-todos.repos.db :refer [create-database]]))
(defn -main
[]
(let [mysql-db {:dbtype "mysql"
:dbname "clj_clean_todos"
:user "clj_dev"
:password "P... |
[
{
"context": " for ClojureScript\"\n :url \"http://github.com/cognitect/transit-cljs\"\n\n :dependencies [[org.clojure/cloj",
"end": 139,
"score": 0.559467077255249,
"start": 134,
"tag": "USERNAME",
"value": "itect"
},
{
"context": " [codox \"0.8.9\"]]\n\n :scm {:connection \"sc... | project.clj | Day8/transit-cljs | 1 | (defproject com.cognitect/transit-cljs "0.8.202"
:description "transit-js bindings for ClojureScript"
:url "http://github.com/cognitect/transit-cljs"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2665" :scope "provided"]
[com.cognitect/transit-js "... | 107353 | (defproject com.cognitect/transit-cljs "0.8.202"
:description "transit-js bindings for ClojureScript"
:url "http://github.com/cognitect/transit-cljs"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2665" :scope "provided"]
[com.cognitect/transit-js "... | true | (defproject com.cognitect/transit-cljs "0.8.202"
:description "transit-js bindings for ClojureScript"
:url "http://github.com/cognitect/transit-cljs"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2665" :scope "provided"]
[com.cognitect/transit-js "... |
[
{
"context": ")\n;; (starts-with :author \"Zola\")\n;; (starts-with :title \"",
"end": 3114,
"score": 0.7863078117370605,
"start": 3110,
"tag": "NAME",
"value": "Zola"
},
{
"context": "cb/query (= :language \"fr\") (starts-with :author \"... | examples/examples/cupboard/gutenberg.clj | gcv/cupboard | 16 | (ns examples.cupboard.gutenberg
(:use [clojure.contrib java-utils pprint])
(:require [cupboard.core :as cb])
(:use [cupboard.utils])
(:require [clojure.xml :as xml])
(:require [clojure.contrib.lazy-xml :as lazy-xml]))
;;; ----------------------------------------------------------------------------
;;; Cupb... | 21329 | (ns examples.cupboard.gutenberg
(:use [clojure.contrib java-utils pprint])
(:require [cupboard.core :as cb])
(:use [cupboard.utils])
(:require [clojure.xml :as xml])
(:require [clojure.contrib.lazy-xml :as lazy-xml]))
;;; ----------------------------------------------------------------------------
;;; Cupb... | true | (ns examples.cupboard.gutenberg
(:use [clojure.contrib java-utils pprint])
(:require [cupboard.core :as cb])
(:use [cupboard.utils])
(:require [clojure.xml :as xml])
(:require [clojure.contrib.lazy-xml :as lazy-xml]))
;;; ----------------------------------------------------------------------------
;;; Cupb... |
[
{
"context": "(ns ^{:author \"Adam Berger\"} ulvm.mod-combinators.js.sync.ast\n \"Synchronous",
"end": 26,
"score": 0.9998593330383301,
"start": 15,
"tag": "NAME",
"value": "Adam Berger"
},
{
"context": " ; [:ref [:named-ref-arg {:sub-result :username, :result authorized-... | examples/mod-combinators/js-sync/src/ulvm/mod_combinators/js/sync/ast.clj | abrgr/ulvm | 0 | (ns ^{:author "Adam Berger"} ulvm.mod-combinators.js.sync.ast
"Synchronous Javascript Module Combinator AST Generation")
(defn- get-arg-positions
[mod]
; arg-mappings is a list of lists of args where each
; inner list represents a single overload
(let [arg-mappings (get-in mod [:ulvm.core/config
... | 51635 | (ns ^{:author "<NAME>"} ulvm.mod-combinators.js.sync.ast
"Synchronous Javascript Module Combinator AST Generation")
(defn- get-arg-positions
[mod]
; arg-mappings is a list of lists of args where each
; inner list represents a single overload
(let [arg-mappings (get-in mod [:ulvm.core/config
... | true | (ns ^{:author "PI:NAME:<NAME>END_PI"} ulvm.mod-combinators.js.sync.ast
"Synchronous Javascript Module Combinator AST Generation")
(defn- get-arg-positions
[mod]
; arg-mappings is a list of lists of args where each
; inner list represents a single overload
(let [arg-mappings (get-in mod [:ulvm.cor... |
[
{
"context": "cksDB]))\n\n(defn- db-keys [key]\n {:meta-key (str \"meta/\" key)\n :blob-key (str \"blobs/\" key)})\n\n(deftype ",
"end": 259,
"score": 0.9615601301193237,
"start": 253,
"tag": "KEY",
"value": "meta/\""
},
{
"context": " {:meta-key (str \"meta/\" key)\n :blob-key... | src/skyscraper/cache/rocksdb.clj | nathell/skyscraper-cache-rocksdb | 0 | (ns skyscraper.cache.rocksdb
(:require [skyscraper.cache :as cache]
[taoensso.nippy :as nippy])
(:import [skyscraper.cache CacheBackend]
[org.rocksdb CompressionType Options RocksDB]))
(defn- db-keys [key]
{:meta-key (str "meta/" key)
:blob-key (str "blobs/" key)})
(deftype RocksDBCach... | 109449 | (ns skyscraper.cache.rocksdb
(:require [skyscraper.cache :as cache]
[taoensso.nippy :as nippy])
(:import [skyscraper.cache CacheBackend]
[org.rocksdb CompressionType Options RocksDB]))
(defn- db-keys [key]
{:meta-key (str "<KEY> key)
:blob-key (str "<KEY> key)})
(deftype RocksDBCache
... | true | (ns skyscraper.cache.rocksdb
(:require [skyscraper.cache :as cache]
[taoensso.nippy :as nippy])
(:import [skyscraper.cache CacheBackend]
[org.rocksdb CompressionType Options RocksDB]))
(defn- db-keys [key]
{:meta-key (str "PI:KEY:<KEY>END_PI key)
:blob-key (str "PI:KEY:<KEY>END_PI key)}... |
[
{
"context": "her Mother Child)\n\n(def parents (pldb/db [father 'Vito 'Michael]\n [father 'Vito 'So",
"end": 218,
"score": 0.9996857643127441,
"start": 214,
"tag": "NAME",
"value": "Vito"
},
{
"context": "ther Child)\n\n(def parents (pldb/db [father 'Vito 'Micha... | src/core_logic_primer/relations_solutions.clj | DjebbZ/core-logic-primer | 1 | (ns relations-solutions
(:require [clojure.core.logic :as l])
(:require [clojure.core.logic.pldb :as pldb]))
(pldb/db-rel father Father Child)
(pldb/db-rel mother Mother Child)
(def parents (pldb/db [father 'Vito 'Michael]
[father 'Vito 'Sonny]
[father 'Vito 'Fredo]
... | 15650 | (ns relations-solutions
(:require [clojure.core.logic :as l])
(:require [clojure.core.logic.pldb :as pldb]))
(pldb/db-rel father Father Child)
(pldb/db-rel mother Mother Child)
(def parents (pldb/db [father '<NAME> '<NAME>]
[father '<NAME> '<NAME>]
[father '<NAME> '<NAM... | true | (ns relations-solutions
(:require [clojure.core.logic :as l])
(:require [clojure.core.logic.pldb :as pldb]))
(pldb/db-rel father Father Child)
(pldb/db-rel mother Mother Child)
(def parents (pldb/db [father 'PI:NAME:<NAME>END_PI 'PI:NAME:<NAME>END_PI]
[father 'PI:NAME:<NAME>END_PI 'PI:NAME:<... |
[
{
"context": "/certs/localhost.pem\")\n(def default-ssl-key \"test-resources/puppetserver/ssl/private_keys/localhost.pem\")\n\n(pls/defn-validated get-ssl\n \"Executes a mutu",
"end": 9328,
"score": 0.8741447329521179,
"start": 9275,
"tag": "KEY",
"value": "resources/puppetserver/ssl/privat... | test/puppetlabs/puppetdb/testutils/services.clj | Zak-Kent/puppetdb | 0 | (ns puppetlabs.puppetdb.testutils.services
(:refer-clojure :exclude [get])
(:require [clj-time.core :as t]
[clj-time.coerce :as time-coerce]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.testutils :as testutils]
[puppetlabs.puppetdb.testutils.db :... | 4942 | (ns puppetlabs.puppetdb.testutils.services
(:refer-clojure :exclude [get])
(:require [clj-time.core :as t]
[clj-time.coerce :as time-coerce]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.testutils :as testutils]
[puppetlabs.puppetdb.testutils.db :... | true | (ns puppetlabs.puppetdb.testutils.services
(:refer-clojure :exclude [get])
(:require [clj-time.core :as t]
[clj-time.coerce :as time-coerce]
[puppetlabs.kitchensink.core :as kitchensink]
[puppetlabs.puppetdb.testutils :as testutils]
[puppetlabs.puppetdb.testutils.db :... |
[
{
"context": "(holo/add-asset! \"plywood\" \"p125\" {\"producer\" \"UPM Plywood\"}\n (holo",
"end": 8305,
"score": 0.6670941710472107,
"start": 8298,
"tag": "NAME",
"value": "Plywood"
}
] | query-service/src/clj/query_service/model/ogre_db.clj | AaltoGoWood/gowood-poc | 0 | (ns query-service.model.ogre-db
(:require
[clojure.edn :as edn]
[clojure.walk :refer [keywordize-keys]]
[clojurewerkz.ogre.core :refer [open-graph traversal traverse value-map
match out has in select into-seq!
values as by V __] :as ogre]
... | 2514 | (ns query-service.model.ogre-db
(:require
[clojure.edn :as edn]
[clojure.walk :refer [keywordize-keys]]
[clojurewerkz.ogre.core :refer [open-graph traversal traverse value-map
match out has in select into-seq!
values as by V __] :as ogre]
... | true | (ns query-service.model.ogre-db
(:require
[clojure.edn :as edn]
[clojure.walk :refer [keywordize-keys]]
[clojurewerkz.ogre.core :refer [open-graph traversal traverse value-map
match out has in select into-seq!
values as by V __] :as ogre]
... |
[
{
"context": "tr-replace, reverse str-reverse}])\n\n(def users #{\"mr_paul smith\" \"dr_john blake\" \"miss_katie hudson\"})\n\n(map #(st",
"end": 103,
"score": 0.9725627899169922,
"start": 90,
"tag": "USERNAME",
"value": "mr_paul smith"
},
{
"context": "rse str-reverse}])\n\n(def us... | Chapter08/Activity8.01/repl.clj | transducer/The-Clojure-Workshop | 55 | (use '[clojure.string :rename {replace str-replace, reverse str-reverse}])
(def users #{"mr_paul smith" "dr_john blake" "miss_katie hudson"})
(map #(str-replace % #"_" " ") users)
(map #(capitalize %) users)
(def updated-users (into #{}
(map #(join " "
(... | 54850 | (use '[clojure.string :rename {replace str-replace, reverse str-reverse}])
(def users #{"mr_paul smith" "dr_john blake" "miss_katie hudson"})
(map #(str-replace % #"_" " ") users)
(map #(capitalize %) users)
(def updated-users (into #{}
(map #(join " "
(... | true | (use '[clojure.string :rename {replace str-replace, reverse str-reverse}])
(def users #{"mr_paul smith" "dr_john blake" "miss_katie hudson"})
(map #(str-replace % #"_" " ") users)
(map #(capitalize %) users)
(def updated-users (into #{}
(map #(join " "
(... |
[
{
"context": ")))\n\n(read-string \"(+ 1 2)\")\n\n(def person {:name \"John Smith\" :city \"Tardis\"})\n\n(:city person)\n\n;an example of",
"end": 292,
"score": 0.9998047351837158,
"start": 282,
"tag": "NAME",
"value": "John Smith"
},
{
"context": " named values (such as vars)\n\n(d... | Clojure/cp/src/cp/core.clj | vanonselenp/Learning | 0 | (ns cp.core)
;the point of this project is to put the code of the clojure programming
;book.
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
(defn average
[numbers]
(/ (apply + numbers) (count numbers)))
(read-string "(+ 1 2)")
(def person {:name "John Smith" :city "Tardis"})
(:city p... | 99644 | (ns cp.core)
;the point of this project is to put the code of the clojure programming
;book.
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
(defn average
[numbers]
(/ (apply + numbers) (count numbers)))
(read-string "(+ 1 2)")
(def person {:name "<NAME>" :city "Tardis"})
(:city perso... | true | (ns cp.core)
;the point of this project is to put the code of the clojure programming
;book.
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
(defn average
[numbers]
(/ (apply + numbers) (count numbers)))
(read-string "(+ 1 2)")
(def person {:name "PI:NAME:<NAME>END_PI" :city "Tardis"})... |
[
{
"context": "e to run\n\n(def unknown-string (u/base64-to-byte' \"Um9sbGluJyBpbiBteSA1LjAKV2l0aCBteSByYWctdG9wIGRvd24gc28gbXkgaGFpciBjYW4gYmxvdwpUaGUgZ2lybGllcyBvbiBzdGFuZGJ5IHdhdmluZyBqdXN0IHRvIHNheSBoaQpEaWQgeW91IHN0b3A/IE5vLCBJIGp1c3QgZHJvdmUgYnkK\"))\n\n#_\n(deftest break-ecb-simple-test\n (testing ",
... | test/set2/break_ecb_harder_test.clj | milapsheth/Crypto-Challenges | 3 | (ns set2.break-ecb-harder-test
(:require [clojure.test :refer :all]
[set2.break-ecb-harder :as sut]
[util
[aes :as aes]
[random :as rand]
[tools :as u]]))
(def random-cipher-key (rand/byte-lst 16))
(def random-prefix (rand/byte-lst (rand/rand-num 32)))
... | 83069 | (ns set2.break-ecb-harder-test
(:require [clojure.test :refer :all]
[set2.break-ecb-harder :as sut]
[util
[aes :as aes]
[random :as rand]
[tools :as u]]))
(def random-cipher-key (rand/byte-lst 16))
(def random-prefix (rand/byte-lst (rand/rand-num 32)))
... | true | (ns set2.break-ecb-harder-test
(:require [clojure.test :refer :all]
[set2.break-ecb-harder :as sut]
[util
[aes :as aes]
[random :as rand]
[tools :as u]]))
(def random-cipher-key (rand/byte-lst 16))
(def random-prefix (rand/byte-lst (rand/rand-num 32)))
... |
[
{
"context": "s :as combo]))\n\n;; data structures\n\n;; links\n;; [:Alice :Bob 54]\n;; [:Alice :Carol -79]\n\n;; neighbours\n;;",
"end": 156,
"score": 0.9509183764457703,
"start": 151,
"tag": "NAME",
"value": "Alice"
},
{
"context": "ombo]))\n\n;; data structures\n\n;; links\n;; [:A... | src/advent_of_code/day13/core.clj | bnomis/advent-of-code-2015 | 1 | (ns advent-of-code.day13.core
(:require
[clojure.string :as str]
[clojure.math.combinatorics :as combo]))
;; data structures
;; links
;; [:Alice :Bob 54]
;; [:Alice :Carol -79]
;; neighbours
;; [:Alice :Bob]
;; [:Alice :David]
;; normailised
;; {:Alice {:Bob 54, :Carol -79}, ...}
;; seating arrangements
... | 96710 | (ns advent-of-code.day13.core
(:require
[clojure.string :as str]
[clojure.math.combinatorics :as combo]))
;; data structures
;; links
;; [:<NAME> :<NAME> 54]
;; [:<NAME> :<NAME> -79]
;; neighbours
;; [:<NAME> :<NAME>]
;; [:<NAME> :<NAME>]
;; normailised
;; {:<NAME> {:<NAME> 54, :<NAME> -79}, ...}
;; seat... | true | (ns advent-of-code.day13.core
(:require
[clojure.string :as str]
[clojure.math.combinatorics :as combo]))
;; data structures
;; links
;; [:PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI 54]
;; [:PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI -79]
;; neighbours
;; [:PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI]
;; [:... |
[
{
"context": "wap! s assoc\n :title (str (:username user) \"'s game\")\n :side side\n ",
"end": 4221,
"score": 0.5370170474052429,
"start": 4217,
"tag": "USERNAME",
"value": "user"
},
{
"context": " [:div.username (get-in msg [:user... | src/cljs/nr/gamelobby.cljs | kjchiu/netrunner | 0 | (ns nr.gamelobby
(:require-macros [cljs.core.async.macros :refer [go]])
(:require
[cljs.core.async :refer [<!] :as async]
[clojure.set :refer [difference union]]
[differ.core :as differ]
[jinteki.utils :refer [str->int]]
[jinteki.validator :refer [trusted-deck-status]]
[nr.ajax :refer [GET]]... | 101856 | (ns nr.gamelobby
(:require-macros [cljs.core.async.macros :refer [go]])
(:require
[cljs.core.async :refer [<!] :as async]
[clojure.set :refer [difference union]]
[differ.core :as differ]
[jinteki.utils :refer [str->int]]
[jinteki.validator :refer [trusted-deck-status]]
[nr.ajax :refer [GET]]... | true | (ns nr.gamelobby
(:require-macros [cljs.core.async.macros :refer [go]])
(:require
[cljs.core.async :refer [<!] :as async]
[clojure.set :refer [difference union]]
[differ.core :as differ]
[jinteki.utils :refer [str->int]]
[jinteki.validator :refer [trusted-deck-status]]
[nr.ajax :refer [GET]]... |
[
{
"context": ")?nollaig (bheag|na mban)\"]\n (month-day 1 6)\n\n \"Lá Fhéile Vailintín\"\n [#\"(?i)(l[áa] )?(fh[eé]ile|'?le) vailint[íi]n\"",
"end": 2856,
"score": 0.9949370622634888,
"start": 2837,
"tag": "NAME",
"value": "Lá Fhéile Vailintín"
},
{
"context": "é]ile|'?le) vailint... | resources/languages/ga/rules/time.clj | guivn/duckling | 922 | (
;; generic
"intersect"
[(dim :time #(not (:latent %))) (dim :time #(not (:latent %)))] ; sequence of two tokens with a time dimension
(intersect %1 %2)
; FIXME
; same thing, with "of" in between like "Sunday of last week"
; "intersect by \"of\", \"from\", \"'s\""
; [(dim :time #(not (:latent %))) ... | 31482 | (
;; generic
"intersect"
[(dim :time #(not (:latent %))) (dim :time #(not (:latent %)))] ; sequence of two tokens with a time dimension
(intersect %1 %2)
; FIXME
; same thing, with "of" in between like "Sunday of last week"
; "intersect by \"of\", \"from\", \"'s\""
; [(dim :time #(not (:latent %))) ... | true | (
;; generic
"intersect"
[(dim :time #(not (:latent %))) (dim :time #(not (:latent %)))] ; sequence of two tokens with a time dimension
(intersect %1 %2)
; FIXME
; same thing, with "of" in between like "Sunday of last week"
; "intersect by \"of\", \"from\", \"'s\""
; [(dim :time #(not (:latent %))) ... |
[
{
"context": "lPort 123\n :senderUsername \"senderUsername\"\n :senderPassword \"senderPw",
"end": 613,
"score": 0.9995516538619995,
"start": 599,
"tag": "USERNAME",
"value": "senderUsername"
},
{
"context": "Username\"\n ... | test/mofficer/persistence/user_config_dao_test.clj | granpanda/mofficer | 1 | (ns mofficer.persistence.user-config-dao-test
(:use [midje.sweet])
(:require [clojure.java.jdbc :as jdbc-clj]
[mofficer.domain.entities.user-config]
[mofficer.persistence.user-config-dao :as user-config-dao])
(:import [mofficer.domain.entities.user_config UserConfig]))
(def h2-db {:subpro... | 90418 | (ns mofficer.persistence.user-config-dao-test
(:use [midje.sweet])
(:require [clojure.java.jdbc :as jdbc-clj]
[mofficer.domain.entities.user-config]
[mofficer.persistence.user-config-dao :as user-config-dao])
(:import [mofficer.domain.entities.user_config UserConfig]))
(def h2-db {:subpro... | true | (ns mofficer.persistence.user-config-dao-test
(:use [midje.sweet])
(:require [clojure.java.jdbc :as jdbc-clj]
[mofficer.domain.entities.user-config]
[mofficer.persistence.user-config-dao :as user-config-dao])
(:import [mofficer.domain.entities.user_config UserConfig]))
(def h2-db {:subpro... |
[
{
"context": " {[:user uid] {:user/email \"username@example.com\"}})\n :db-before :db-after :se",
"end": 5457,
"score": 0.9999149441719055,
"start": 5437,
"tag": "EMAIL",
"value": "username@example.com"
},
{
"context": " {:changes [{:tx-item ... | libs/tests/src/biff/crux_test.clj | jeffp42ker/biff | 273 | (ns biff.crux-test
(:require
[biff.crux :as bc]
[biff.util :as bu]
[crux.api :as crux]
[biff.misc :as misc]
[clojure.test :refer [deftest is run-tests]]))
(defn submit-await-tx [node tx]
(crux/await-tx
node
(crux/submit-tx
node
tx)))
(defn start-node [docs]
(let [node (cr... | 78317 | (ns biff.crux-test
(:require
[biff.crux :as bc]
[biff.util :as bu]
[crux.api :as crux]
[biff.misc :as misc]
[clojure.test :refer [deftest is run-tests]]))
(defn submit-await-tx [node tx]
(crux/await-tx
node
(crux/submit-tx
node
tx)))
(defn start-node [docs]
(let [node (cr... | true | (ns biff.crux-test
(:require
[biff.crux :as bc]
[biff.util :as bu]
[crux.api :as crux]
[biff.misc :as misc]
[clojure.test :refer [deftest is run-tests]]))
(defn submit-await-tx [node tx]
(crux/await-tx
node
(crux/submit-tx
node
tx)))
(defn start-node [docs]
(let [node (cr... |
[
{
"context": "ATED-AT \"2020-06-14T12:52:56.000Z\")\n\n(def AUTHOR \"fred-astaire\")\n\n(def SCORE 1)\n\n(defsc Root [_this {:keys [thre",
"end": 1131,
"score": 0.9701272249221802,
"start": 1119,
"tag": "USERNAME",
"value": "fred-astaire"
},
{
"context": " ... | src/workspaces/violit/threads/thread_item_cards.cljs | eoogbe/violit-clj | 0 | ;;; Copyright 2022 Google LLC
;;; 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 ... | 60126 | ;;; Copyright 2022 Google LLC
;;; 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 ... | true | ;;; Copyright 2022 Google LLC
;;; 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 ... |
[
{
"context": "subname subname\n :user username\n :password password}))\n\n(defn- postgres-db-spec [db]\n (connection-sp",
"end": 1391,
"score": 0.9979504346847534,
"start": 1383,
"tag": "PASSWORD",
"value": "password"
}
] | src/zanmi/component/database/postgres.clj | zonotope/zanmi | 35 | (ns zanmi.component.database.postgres
(:require [zanmi.boundary.database :as database]
[zanmi.config :as config]
[camel-snake-kebab.core :refer [->kebab-case-keyword]]
[clojure.string :refer [join]]
[clojure.set :refer [rename-keys]]
[com.stuartsierra.compon... | 95486 | (ns zanmi.component.database.postgres
(:require [zanmi.boundary.database :as database]
[zanmi.config :as config]
[camel-snake-kebab.core :refer [->kebab-case-keyword]]
[clojure.string :refer [join]]
[clojure.set :refer [rename-keys]]
[com.stuartsierra.compon... | true | (ns zanmi.component.database.postgres
(:require [zanmi.boundary.database :as database]
[zanmi.config :as config]
[camel-snake-kebab.core :refer [->kebab-case-keyword]]
[clojure.string :refer [join]]
[clojure.set :refer [rename-keys]]
[com.stuartsierra.compon... |
[
{
"context": "\"\n (let [saved (db/tx {:kind :bibelot :name \"thingy\"})]\n (should= saved (db/entity! (:id save",
"end": 1777,
"score": 0.583084762096405,
"start": 1772,
"tag": "NAME",
"value": "thing"
},
{
"context": "ingy\"})\n updated (db/tx saved :name \... | bucket/spec/cljc/c3kit/bucket/dbc_spec.cljc | cleancoders/kit | 1 | (ns c3kit.bucket.dbc-spec
(:require
[speclj.core #?(:clj :refer :cljs :refer-macros) [context describe it xit should= should-contain
should-not-contain should-throw should-be-a with
should-not= before shoul... | 41753 | (ns c3kit.bucket.dbc-spec
(:require
[speclj.core #?(:clj :refer :cljs :refer-macros) [context describe it xit should= should-contain
should-not-contain should-throw should-be-a with
should-not= before shoul... | true | (ns c3kit.bucket.dbc-spec
(:require
[speclj.core #?(:clj :refer :cljs :refer-macros) [context describe it xit should= should-contain
should-not-contain should-throw should-be-a with
should-not= before shoul... |
[
{
"context": "d :accounts add (seed/new-account (new-uuid 100) \"Tony\" \"tony@example.com\" \"letmein\"\n ",
"end": 1332,
"score": 0.9995402097702026,
"start": 1328,
"tag": "NAME",
"value": "Tony"
},
{
"context": "unts add (seed/new-account (new-uuid 100) \"Tony\" ... | src/crux/development.clj | somanythings/fulcro-rad-demo | 11 | (ns development
(:require
[clojure.tools.namespace.repl :as tools-ns :refer [set-refresh-dirs]]
[com.example.components.crux :refer [crux-nodes]]
[com.example.components.ring-middleware]
[com.example.components.server]
[com.example.model.seed :as seed]
[com.fulcrologic.rad.ids :refer [new-uuid]]
... | 101374 | (ns development
(:require
[clojure.tools.namespace.repl :as tools-ns :refer [set-refresh-dirs]]
[com.example.components.crux :refer [crux-nodes]]
[com.example.components.ring-middleware]
[com.example.components.server]
[com.example.model.seed :as seed]
[com.fulcrologic.rad.ids :refer [new-uuid]]
... | true | (ns development
(:require
[clojure.tools.namespace.repl :as tools-ns :refer [set-refresh-dirs]]
[com.example.components.crux :refer [crux-nodes]]
[com.example.components.ring-middleware]
[com.example.components.server]
[com.example.model.seed :as seed]
[com.fulcrologic.rad.ids :refer [new-uuid]]
... |
[
{
"context": "\n\n; Test-Data\n(def me {:surname \"Nachname\" :name \"Vorname\" :time 10})\n(def you {:surname \"Highly\" :name \"Sp",
"end": 711,
"score": 0.9638617038726807,
"start": 704,
"tag": "NAME",
"value": "Vorname"
}
] | src/seven_guis_cljs/task5crud.cljs | LuccaHellriegel/7guis-cljs | 1 | (ns seven-guis-cljs.task5crud
(:require [clojure.string :as string]
[reagent.core :as r]))
;; -------------------------
;; UTIL
;; -------------------------
(defn gen-key []
(gensym "key-"))
(defn event->target-value [e]
(-> e .-target .-value))
;; -------------------------
;; STATE
;; -----------... | 81316 | (ns seven-guis-cljs.task5crud
(:require [clojure.string :as string]
[reagent.core :as r]))
;; -------------------------
;; UTIL
;; -------------------------
(defn gen-key []
(gensym "key-"))
(defn event->target-value [e]
(-> e .-target .-value))
;; -------------------------
;; STATE
;; -----------... | true | (ns seven-guis-cljs.task5crud
(:require [clojure.string :as string]
[reagent.core :as r]))
;; -------------------------
;; UTIL
;; -------------------------
(defn gen-key []
(gensym "key-"))
(defn event->target-value [e]
(-> e .-target .-value))
;; -------------------------
;; STATE
;; -----------... |
[
{
"context": "lines)))\n\n(take 10 freqs)\n\n(filter #(= (first %) \"Andrew\") freqs)\n\n(take 10 (reverse (sort-by second freqs",
"end": 1144,
"score": 0.9993219375610352,
"start": 1138,
"tag": "NAME",
"value": "Andrew"
}
] | src/clj/tutorials/data_processing/reducers.clj | jocrau/clojure-meetup | 7 | ;; Basics
(range 10)
(map inc (range 10))
(take 10 (filter even? (map inc (range))))
(reduce + (filter even? (map inc (range 10))))
(->> (range 10)
(map inc)
(filter even?)
(reduce +))
;; Reducers
(require '[clojure.core.reducers :as r])
(r/reduce + (r/filter even? (r/map inc (range 10))))
(r/... | 78515 | ;; Basics
(range 10)
(map inc (range 10))
(take 10 (filter even? (map inc (range))))
(reduce + (filter even? (map inc (range 10))))
(->> (range 10)
(map inc)
(filter even?)
(reduce +))
;; Reducers
(require '[clojure.core.reducers :as r])
(r/reduce + (r/filter even? (r/map inc (range 10))))
(r/... | true | ;; Basics
(range 10)
(map inc (range 10))
(take 10 (filter even? (map inc (range))))
(reduce + (filter even? (map inc (range 10))))
(->> (range 10)
(map inc)
(filter even?)
(reduce +))
;; Reducers
(require '[clojure.core.reducers :as r])
(r/reduce + (r/filter even? (r/map inc (range 10))))
(r/... |
[
{
"context": ")))\n\n(defn repository-public-key\n [{:keys [github-repository github-api-url github-actor walter-gith",
"end": 388,
"score": 0.7227646112442017,
"start": 388,
"tag": "KEY",
"value": ""
},
{
"context": " :key_id key-id})\n\n(defn upsert-value\n [{:keys [github-repos... | src/piotr_yuxuan/walter_ci/secrets.clj | piotr-yuxuan/walter-ci | 2 | (ns piotr-yuxuan.walter-ci.secrets
(:require [byte-streams :as byte-streams]
[caesium.crypto.box :as crypto]
[clj-http.client :as http]
[clojure.string :as str]
[jsonista.core :as json]
[leiningen.change]
[safely.core :refer [safely]])
(:import... | 37863 | (ns piotr-yuxuan.walter-ci.secrets
(:require [byte-streams :as byte-streams]
[caesium.crypto.box :as crypto]
[clj-http.client :as http]
[clojure.string :as str]
[jsonista.core :as json]
[leiningen.change]
[safely.core :refer [safely]])
(:import... | true | (ns piotr-yuxuan.walter-ci.secrets
(:require [byte-streams :as byte-streams]
[caesium.crypto.box :as crypto]
[clj-http.client :as http]
[clojure.string :as str]
[jsonista.core :as json]
[leiningen.change]
[safely.core :refer [safely]])
(:import... |
[
{
"context": "\"2751ab3d678ff0277ae80f9e8a74f218cfc70fe9a9cdc7bb1c137d7e47e33d53\")\n (run anaconda)\n (run set-password)))",
"end": 1739,
"score": 0.9967526197433472,
"start": 1724,
"tag": "PASSWORD",
"value": "c137d7e47e33d53"
}
] | src/re_cipes/apps/jupyter.clj | re-ops/re-cipes | 7 | (ns re-cipes.apps.jupyter
"Setting up Jupyter notebook"
(:require
[re-cipes.hardening]
[re-cog.resources.download :refer (download)]
[re-cipes.docker.nginx]
[re-cog.resources.exec :refer (run)]
[re-cog.resources.systemd :refer (set-service)]
[re-cog.resources.nginx :refer (site-enabled)]
[re-co... | 5085 | (ns re-cipes.apps.jupyter
"Setting up Jupyter notebook"
(:require
[re-cipes.hardening]
[re-cog.resources.download :refer (download)]
[re-cipes.docker.nginx]
[re-cog.resources.exec :refer (run)]
[re-cog.resources.systemd :refer (set-service)]
[re-cog.resources.nginx :refer (site-enabled)]
[re-co... | true | (ns re-cipes.apps.jupyter
"Setting up Jupyter notebook"
(:require
[re-cipes.hardening]
[re-cog.resources.download :refer (download)]
[re-cipes.docker.nginx]
[re-cog.resources.exec :refer (run)]
[re-cog.resources.systemd :refer (set-service)]
[re-cog.resources.nginx :refer (site-enabled)]
[re-co... |
[
{
"context": "(comment \n re-core, Copyright 2012 Ronen Narkis, narkisr.com\n Licensed under the Apache License,",
"end": 48,
"score": 0.9998857378959656,
"start": 36,
"tag": "NAME",
"value": "Ronen Narkis"
}
] | src/kvm/validations.clj | celestial-ops/core | 1 | (comment
re-core, Copyright 2012 Ronen Narkis, narkisr.com
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 a... | 44731 | (comment
re-core, Copyright 2012 <NAME>, narkisr.com
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 ... | true | (comment
re-core, Copyright 2012 PI:NAME:<NAME>END_PI, narkisr.com
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 ... |
[
{
"context": "identifiers for Say-Sila\n;;;;\n;;;; @copyright 2020 Dennis Drown et l'Université du Québec à Montréal\n;;;; -------",
"end": 391,
"score": 0.9998796582221985,
"start": 379,
"tag": "NAME",
"value": "Dennis Drown"
}
] | apps/say_sila/priv/fnode/say/src/say/label.clj | dendrown/say_sila | 0 | ;;;; -------------------------------------------------------------------------
;;;;
;;;; _/_/_/ _/_/_/ _/ _/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/ _/ _/ _/_/_/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/_/ _/_/_/ _/_/_/_/ _/ _/
;;;;
;;;; Lab... | 20114 | ;;;; -------------------------------------------------------------------------
;;;;
;;;; _/_/_/ _/_/_/ _/ _/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/ _/ _/ _/_/_/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/_/ _/_/_/ _/_/_/_/ _/ _/
;;;;
;;;; Lab... | true | ;;;; -------------------------------------------------------------------------
;;;;
;;;; _/_/_/ _/_/_/ _/ _/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/ _/ _/ _/_/_/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/_/ _/_/_/ _/_/_/_/ _/ _/
;;;;
;;;; Lab... |
[
{
"context": "s for clojure:\n\n - [errorkit](https://github.com/richhickey/clojure-contrib/blob/master/src/main/clojure/cloj",
"end": 357,
"score": 0.9996984004974365,
"start": 347,
"tag": "USERNAME",
"value": "richhickey"
},
{
"context": "or this library.\n\n\n - [swell](https://... | data/train/clojure/f4c97edce346a95138392d55abaf691bba8458f1ribol_guide.clj | harshp8l/deep-learning-lang-detection | 84 | (ns midje-doc.ribol-guide
(:require [ribol.core :refer :all]
[midje.sweet :refer :all]))
[[:chapter {:title "Overview"}]]
"
This is quite a comprehensive guide to `ribol` and how conditional restart libraries may be used. There are currently three other conditional restart libraries for clojure:
- [er... | 114707 | (ns midje-doc.ribol-guide
(:require [ribol.core :refer :all]
[midje.sweet :refer :all]))
[[:chapter {:title "Overview"}]]
"
This is quite a comprehensive guide to `ribol` and how conditional restart libraries may be used. There are currently three other conditional restart libraries for clojure:
- [er... | true | (ns midje-doc.ribol-guide
(:require [ribol.core :refer :all]
[midje.sweet :refer :all]))
[[:chapter {:title "Overview"}]]
"
This is quite a comprehensive guide to `ribol` and how conditional restart libraries may be used. There are currently three other conditional restart libraries for clojure:
- [er... |
[
{
"context": "nnection\n [{:db/id :datomic.id/joe :user/name \"Joe\" :user/age 45 :user/mate :datomic.id/mary :user/f",
"end": 396,
"score": 0.9996801614761353,
"start": 393,
"tag": "NAME",
"value": "Joe"
},
{
"context": "/mary}}\n {:db/id :datomic.id/mary :user/name \"Mary\" ... | test/server/app/db_testing_spec.clj | pholas/untangled-devguide | 43 | (ns app.db-testing-spec
(:require [untangled-spec.core :refer [specification provided behavior assertions]]
[datomic.api :as d]
[untangled.datomic.protocols :as udb]
[untangled.datomic.test-helpers :as helpers :refer [with-db-fixture]]))
(defn user-seed [connection]
(helpers/lin... | 77501 | (ns app.db-testing-spec
(:require [untangled-spec.core :refer [specification provided behavior assertions]]
[datomic.api :as d]
[untangled.datomic.protocols :as udb]
[untangled.datomic.test-helpers :as helpers :refer [with-db-fixture]]))
(defn user-seed [connection]
(helpers/lin... | true | (ns app.db-testing-spec
(:require [untangled-spec.core :refer [specification provided behavior assertions]]
[datomic.api :as d]
[untangled.datomic.protocols :as udb]
[untangled.datomic.test-helpers :as helpers :refer [with-db-fixture]]))
(defn user-seed [connection]
(helpers/lin... |
[
{
"context": " [config.core :refer [env]]\n [robert.bruce :refer [try-try-again]]\n [clj-time.for",
"end": 563,
"score": 0.6313247084617615,
"start": 551,
"tag": "USERNAME",
"value": "robert.bruce"
},
{
"context": "DigestUtils])\n (:gen-class))\n\n(def... | src/event_data_hypothesis_agent/core.clj | CrossRef/event-data-hypothesis-agent | 0 | (ns event-data-hypothesis-agent.core
(:require [org.crossref.event-data-agent-framework.core :as c]
[event-data-common.status :as status]
[crossref.util.doi :as cr-doi]
[clojure.tools.logging :as log]
[clojure.java.io :refer [reader]]
[clojure.data.json :as ... | 98204 | (ns event-data-hypothesis-agent.core
(:require [org.crossref.event-data-agent-framework.core :as c]
[event-data-common.status :as status]
[crossref.util.doi :as cr-doi]
[clojure.tools.logging :as log]
[clojure.java.io :refer [reader]]
[clojure.data.json :as ... | true | (ns event-data-hypothesis-agent.core
(:require [org.crossref.event-data-agent-framework.core :as c]
[event-data-common.status :as status]
[crossref.util.doi :as cr-doi]
[clojure.tools.logging :as log]
[clojure.java.io :refer [reader]]
[clojure.data.json :as ... |
[
{
"context": "be passed with `hikari`. See\n https://github.com/tomekw/hikari-cp#configuration-options for that\n list.\"",
"end": 328,
"score": 0.9996115565299988,
"start": 322,
"tag": "USERNAME",
"value": "tomekw"
},
{
"context": "e (or host-part \"\") dbname)\n :user... | src/clj_postgresql/pool.clj | remodoy/clj-postgresql | 150 | (ns clj-postgresql.pool
"Hikari based connection pool"
(:require [hikari-cp.core :as hikari])
(:import (java.util.concurrent TimeUnit)))
(defn db-spec->pool-config
"Converts a db-spec with :host :port :dbname and :user to Hikari pool
config. Hikari options can be passed with `hikari`. See
https://github.co... | 88480 | (ns clj-postgresql.pool
"Hikari based connection pool"
(:require [hikari-cp.core :as hikari])
(:import (java.util.concurrent TimeUnit)))
(defn db-spec->pool-config
"Converts a db-spec with :host :port :dbname and :user to Hikari pool
config. Hikari options can be passed with `hikari`. See
https://github.co... | true | (ns clj-postgresql.pool
"Hikari based connection pool"
(:require [hikari-cp.core :as hikari])
(:import (java.util.concurrent TimeUnit)))
(defn db-spec->pool-config
"Converts a db-spec with :host :port :dbname and :user to Hikari pool
config. Hikari options can be passed with `hikari`. See
https://github.co... |
[
{
"context": " {:cog-client-id client-id}\n {:username canary-username\n :password canary-password})\n ",
"end": 779,
"score": 0.9993340969085693,
"start": 764,
"tag": "USERNAME",
"value": "canary-username"
},
{
"context": " {:username canary-username\n... | src/cljs-node/rx/node/box/verify_deployment.cljs | zk/rx-lib | 0 | (ns rx.node.box.verify-deployment
"Utilities for verifying a new box sync deployment"
(:require [rx.kitchen-sink :as ks
:refer-macros [go-try <?]]
[rx.res :as res]
[rx.node.box :as box]
[rx.node.aws :as aws]
[rx.jwt :as jwt]
[rx.git :refer-mac... | 72753 | (ns rx.node.box.verify-deployment
"Utilities for verifying a new box sync deployment"
(:require [rx.kitchen-sink :as ks
:refer-macros [go-try <?]]
[rx.res :as res]
[rx.node.box :as box]
[rx.node.aws :as aws]
[rx.jwt :as jwt]
[rx.git :refer-mac... | true | (ns rx.node.box.verify-deployment
"Utilities for verifying a new box sync deployment"
(:require [rx.kitchen-sink :as ks
:refer-macros [go-try <?]]
[rx.res :as res]
[rx.node.box :as box]
[rx.node.aws :as aws]
[rx.jwt :as jwt]
[rx.git :refer-mac... |
[
{
"context": " :best-for \"Merlot, Chardonnay, Chianti, Chenin Blanc, and Sauvignon",
"end": 71193,
"score": 0.9931830167770386,
"start": 71187,
"tag": "NAME",
"value": "Merlot"
},
{
"context": " :best-for \"Merlot,... | src/common_beer_format/data/yeasts/white_labs.cljc | Wall-Brew-Co/common-beer-format | 1 | (ns common-beer-format.data.yeasts.white-labs
"Data for yeasts cultivated by White Labs"
(:require [common-beer-format.data.yeasts.yeasts :as yeasts]))
(def wlp001-california-ale
(yeasts/build-yeasts :wlp001-california-ale {:min-temperature 20.0
:name "W... | 122446 | (ns common-beer-format.data.yeasts.white-labs
"Data for yeasts cultivated by White Labs"
(:require [common-beer-format.data.yeasts.yeasts :as yeasts]))
(def wlp001-california-ale
(yeasts/build-yeasts :wlp001-california-ale {:min-temperature 20.0
:name "W... | true | (ns common-beer-format.data.yeasts.white-labs
"Data for yeasts cultivated by White Labs"
(:require [common-beer-format.data.yeasts.yeasts :as yeasts]))
(def wlp001-california-ale
(yeasts/build-yeasts :wlp001-california-ale {:min-temperature 20.0
:name "W... |
[
{
"context": "/todo\"\n :user \"db_user_name_here\"\n :password \"db_user_password_here\"})\n\n\n",
"end": 158,
"score": 0.9973416924476624,
"start": 137,
"tag": "PASSWORD",
"value": "db_user_password_here"
}
] | src/todo/db/schema.clj | vyorkin-play/clojure-todo3 | 0 | (ns todo.db.schema)
(def db-spec
{:subprotocol "postgresql"
:subname "//localhost/todo"
:user "db_user_name_here"
:password "db_user_password_here"})
| 18328 | (ns todo.db.schema)
(def db-spec
{:subprotocol "postgresql"
:subname "//localhost/todo"
:user "db_user_name_here"
:password "<PASSWORD>"})
| true | (ns todo.db.schema)
(def db-spec
{:subprotocol "postgresql"
:subname "//localhost/todo"
:user "db_user_name_here"
:password "PI:PASSWORD:<PASSWORD>END_PI"})
|
[
{
"context": ";; Copyright (c) 2014 Engagor\n;;\n;; The use and distribution terms for this sof",
"end": 29,
"score": 0.9900380969047546,
"start": 22,
"tag": "NAME",
"value": "Engagor"
}
] | project.clj | ghosthamlet/dl4clj | 62 | ;; Copyright (c) 2014 Engagor
;;
;; The use and distribution terms for this software are covered by the
;; BSD License (http://opensource.org/licenses/BSD-2-Clause)
;; which can be found in the file LICENSE at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bound by
;; th... | 56363 | ;; Copyright (c) 2014 <NAME>
;;
;; The use and distribution terms for this software are covered by the
;; BSD License (http://opensource.org/licenses/BSD-2-Clause)
;; which can be found in the file LICENSE at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bound by
;; the... | true | ;; Copyright (c) 2014 PI:NAME:<NAME>END_PI
;;
;; The use and distribution terms for this software are covered by the
;; BSD License (http://opensource.org/licenses/BSD-2-Clause)
;; which can be found in the file LICENSE at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be b... |
[
{
"context": "ations from Elements of Artificial Intelligence by Steven Tanimoto\"\n :url \"https://github.com/sandersn/elements-of-",
"end": 143,
"score": 0.999893307685852,
"start": 128,
"tag": "NAME",
"value": "Steven Tanimoto"
},
{
"context": "ce by Steven Tanimoto\"\n :url \"h... | project.clj | sandersn/elements-of-ai | 5 | (defproject elements-of-ai "0.1.0-SNAPSHOT"
:description "Example implementations from Elements of Artificial Intelligence by Steven Tanimoto"
:url "https://github.com/sandersn/elements-of-ai"
:license {:name "MIT"
:url "https://github.com/sandersn/elements-of-ai/blob/master/LICENSE"}
:dependencies ... | 54622 | (defproject elements-of-ai "0.1.0-SNAPSHOT"
:description "Example implementations from Elements of Artificial Intelligence by <NAME>"
:url "https://github.com/sandersn/elements-of-ai"
:license {:name "MIT"
:url "https://github.com/sandersn/elements-of-ai/blob/master/LICENSE"}
:dependencies [[org.clo... | true | (defproject elements-of-ai "0.1.0-SNAPSHOT"
:description "Example implementations from Elements of Artificial Intelligence by PI:NAME:<NAME>END_PI"
:url "https://github.com/sandersn/elements-of-ai"
:license {:name "MIT"
:url "https://github.com/sandersn/elements-of-ai/blob/master/LICENSE"}
:dependen... |
[
{
"context": ":text \"Quote!\"\n :author \"Costin Dragoi\"}))\n\n(defn fetch-link! [state]\n (GET \"https://qu",
"end": 266,
"score": 0.9998928308486938,
"start": 253,
"tag": "NAME",
"value": "Costin Dragoi"
}
] | src/random_quote/core.cljs | stindrago/random-quote-generator | 0 | (ns random-quote.core
(:require [ajax.core :refer [GET]]
[reagent.core :as reagent :refer [atom]]))
;; define your app data so that it doesn't get over-written on reload
(defonce app-state (atom {:text "Quote!"
:author "Costin Dragoi"}))
(defn fetch-link! [state]
(GET "https://quote-... | 119018 | (ns random-quote.core
(:require [ajax.core :refer [GET]]
[reagent.core :as reagent :refer [atom]]))
;; define your app data so that it doesn't get over-written on reload
(defonce app-state (atom {:text "Quote!"
:author "<NAME>"}))
(defn fetch-link! [state]
(GET "https://quote-garden.... | true | (ns random-quote.core
(:require [ajax.core :refer [GET]]
[reagent.core :as reagent :refer [atom]]))
;; define your app data so that it doesn't get over-written on reload
(defonce app-state (atom {:text "Quote!"
:author "PI:NAME:<NAME>END_PI"}))
(defn fetch-link! [state]
(GET "https:/... |
[
{
"context": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n; Copyright 2015 Xebia B.V.\n;\n; Licensed under the Apache License, Version 2",
"end": 107,
"score": 0.89960116147995,
"start": 98,
"tag": "NAME",
"value": "Xebia B.V"
}
] | src/main/clojure/com/xebia/visualreview/resource.clj | andstepanuk/VisualReview | 290 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright 2015 Xebia B.V.
;
; 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/licen... | 8080 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright 2015 <NAME>.
;
; 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... | true | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright 2015 PI:NAME:<NAME>END_PI.
;
; 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.apach... |
[
{
"context": "pe-map\n {:string \"VARCHAR(2048)\"\n :password \"VARCHAR(512)\"\n :boolean \"BOOLEAN\"\n :int \"INTEGER\"\n ",
"end": 706,
"score": 0.9917213320732117,
"start": 695,
"tag": "PASSWORD",
"value": "VARCHAR(512"
}
] | src/main/com/fulcrologic/rad/database_adapters/sql/migration.clj | adamfeldman/fulcro-rad-sql | 4 | (ns com.fulcrologic.rad.database-adapters.sql.migration
(:require
[clojure.pprint :refer [pprint]]
[next.jdbc :as jdbc]
[clojure.string :as str]
[com.fulcrologic.rad.attributes :as attr]
[com.fulcrologic.guardrails.core :refer [>defn =>]]
[taoensso.encore :as enc]
[taoensso.timbre :as log]... | 36651 | (ns com.fulcrologic.rad.database-adapters.sql.migration
(:require
[clojure.pprint :refer [pprint]]
[next.jdbc :as jdbc]
[clojure.string :as str]
[com.fulcrologic.rad.attributes :as attr]
[com.fulcrologic.guardrails.core :refer [>defn =>]]
[taoensso.encore :as enc]
[taoensso.timbre :as log]... | true | (ns com.fulcrologic.rad.database-adapters.sql.migration
(:require
[clojure.pprint :refer [pprint]]
[next.jdbc :as jdbc]
[clojure.string :as str]
[com.fulcrologic.rad.attributes :as attr]
[com.fulcrologic.guardrails.core :refer [>defn =>]]
[taoensso.encore :as enc]
[taoensso.timbre :as log]... |
[
{
"context": "ey \"groups:\" \"\"))\n\n(def CURRENT_FREE_USER_ID_KEY \"user-id\")\n\n(defn new-user-key [redis-component]\n (if-let",
"end": 523,
"score": 0.8474028706550598,
"start": 516,
"tag": "KEY",
"value": "user-id"
}
] | src/com/github/meandor/user/repository.clj | meandor/the-queen | 1 | (ns com.github.meandor.user.repository
(:require [com.github.meandor.redis-component :as rc]
[taoensso.carmine :as car]
[clojure.walk :as w]
[clojure.string :as str]))
(defn user-id->user-key [user-id]
(str "user:" user-id))
(defn user-key->user-id [user-key]
(str/replace use... | 7569 | (ns com.github.meandor.user.repository
(:require [com.github.meandor.redis-component :as rc]
[taoensso.carmine :as car]
[clojure.walk :as w]
[clojure.string :as str]))
(defn user-id->user-key [user-id]
(str "user:" user-id))
(defn user-key->user-id [user-key]
(str/replace use... | true | (ns com.github.meandor.user.repository
(:require [com.github.meandor.redis-component :as rc]
[taoensso.carmine :as car]
[clojure.walk :as w]
[clojure.string :as str]))
(defn user-id->user-key [user-id]
(str "user:" user-id))
(defn user-key->user-id [user-key]
(str/replace use... |
[
{
"context": " (if (some #{(get-in @app-state [:user :username])} (get-in @app-state [:donators]))\n ",
"end": 49605,
"score": 0.9983797669410706,
"start": 49597,
"tag": "USERNAME",
"value": "username"
},
{
"context": " {:name... | src/cljs/meccg/deckbuilder.cljs | rezwits/carncode | 15 | (ns meccg.deckbuilder
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [om.core :as om :include-macros true]
[sablono.core :as sab :include-macros true]
[cljs.core.async :refer [chan put! <! timeout] :as async]
[clojure.string :refer [split split-lines join escape... | 42673 | (ns meccg.deckbuilder
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [om.core :as om :include-macros true]
[sablono.core :as sab :include-macros true]
[cljs.core.async :refer [chan put! <! timeout] :as async]
[clojure.string :refer [split split-lines join escape... | true | (ns meccg.deckbuilder
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [om.core :as om :include-macros true]
[sablono.core :as sab :include-macros true]
[cljs.core.async :refer [chan put! <! timeout] :as async]
[clojure.string :refer [split split-lines join escape... |
[
{
"context": " :name \"Luke Skywalker\"})}}})\n q1 \"{ human(id: \\\"1003\\\") { ",
"end": 4452,
"score": 0.9998111128807068,
"start": 4438,
"tag": "NAME",
"value": "Luke Skywalker"
}
] | test/com/walmartlabs/lacinia/custom_scalars_test.clj | gusbicalho/lacinia | 0 | (ns com.walmartlabs.lacinia.custom-scalars-test
(:require [clojure.spec.alpha :as s]
[clojure.test :refer [deftest is testing]]
[com.walmartlabs.lacinia.schema :as schema]
[com.walmartlabs.test-schema :refer [test-schema]]
[com.walmartlabs.test-utils :refer [is-thrown e... | 87187 | (ns com.walmartlabs.lacinia.custom-scalars-test
(:require [clojure.spec.alpha :as s]
[clojure.test :refer [deftest is testing]]
[com.walmartlabs.lacinia.schema :as schema]
[com.walmartlabs.test-schema :refer [test-schema]]
[com.walmartlabs.test-utils :refer [is-thrown e... | true | (ns com.walmartlabs.lacinia.custom-scalars-test
(:require [clojure.spec.alpha :as s]
[clojure.test :refer [deftest is testing]]
[com.walmartlabs.lacinia.schema :as schema]
[com.walmartlabs.test-schema :refer [test-schema]]
[com.walmartlabs.test-utils :refer [is-thrown e... |
[
{
"context": "ssword]}]\n {:grant_type \"password\"\n :username username\n :password password\n :scope \"openid pr",
"end": 176,
"score": 0.9984980821609497,
"start": 168,
"tag": "USERNAME",
"value": "username"
},
{
"context": " \"password\"\n :username username\n... | src/clj_concourse/auth.clj | JDurstberger/clj-concourse | 0 | (ns clj-concourse.auth
(:require
[clj-http.client :as http]))
(defn config->form-params
[{:keys [username password]}]
{:grant_type "password"
:username username
:password password
:scope "openid profile email federated:id groups"})
(defn create-access-token
[{:keys [url] :as config}]
(... | 97119 | (ns clj-concourse.auth
(:require
[clj-http.client :as http]))
(defn config->form-params
[{:keys [username password]}]
{:grant_type "password"
:username username
:password <PASSWORD>
:scope "openid profile email federated:id groups"})
(defn create-access-token
[{:keys [url] :as config}]
... | true | (ns clj-concourse.auth
(:require
[clj-http.client :as http]))
(defn config->form-params
[{:keys [username password]}]
{:grant_type "password"
:username username
:password PI:PASSWORD:<PASSWORD>END_PI
:scope "openid profile email federated:id groups"})
(defn create-access-token
[{:keys [u... |
[
{
"context": "ttern01.person-example-ex)\n\n(def p1 {:first-name \"Aaron\" :middle-name \"Jeffrey\" :last-name \"Smith\"})\n(def",
"end": 74,
"score": 0.9997155666351318,
"start": 69,
"tag": "NAME",
"value": "Aaron"
},
{
"context": "e-ex)\n\n(def p1 {:first-name \"Aaron\" :middle-nam... | Clojure/src/com/yourtion/Pattern01/person_example_ex.clj | yourtion/LearningFunctionalProgramming | 14 | (ns com.yourtion.Pattern01.person-example-ex)
(def p1 {:first-name "Aaron" :middle-name "Jeffrey" :last-name "Smith"})
(def p2 {:first-name "Aaron" :middle-name "Bailey" :last-name "Zanthar"})
(def p3 {:first-name "Brian" :middle-name "Adams" :last-name "Smith"})
(def people [p1 p2 p3])
(defn complicated-sort [p1 p2]
... | 18413 | (ns com.yourtion.Pattern01.person-example-ex)
(def p1 {:first-name "<NAME>" :middle-name "<NAME>" :last-name "<NAME>"})
(def p2 {:first-name "<NAME>" :middle-name "<NAME>" :last-name "<NAME>"})
(def p3 {:first-name "<NAME>" :middle-name "<NAME>" :last-name "<NAME>"})
(def people [p1 p2 p3])
(defn complicated-sort [p1 ... | true | (ns com.yourtion.Pattern01.person-example-ex)
(def p1 {:first-name "PI:NAME:<NAME>END_PI" :middle-name "PI:NAME:<NAME>END_PI" :last-name "PI:NAME:<NAME>END_PI"})
(def p2 {:first-name "PI:NAME:<NAME>END_PI" :middle-name "PI:NAME:<NAME>END_PI" :last-name "PI:NAME:<NAME>END_PI"})
(def p3 {:first-name "PI:NAME:<NAME>END_P... |
[
{
"context": "\n\n;(expect 9 (count movie-collection))\n\n;(expect \"Ben Affleck\" (:director (get-movie-object \"Argo\")))\n\n;(expect",
"end": 530,
"score": 0.9998724460601807,
"start": 519,
"tag": "NAME",
"value": "Ben Affleck"
},
{
"context": "###\n\n;(expect (helper-movie-object... | test-project/test/test_project/core_test.clj | emma-sax4/Introduction-to-LightTable | 0 | (ns test-project.core-test
(:require [expectations :refer :all]
[test-project.core :refer :all]))
;##################################################################################
;; You can use Expectations to check that two things are equal using this form: ###
;; (expect expected actual). ... | 9951 | (ns test-project.core-test
(:require [expectations :refer :all]
[test-project.core :refer :all]))
;##################################################################################
;; You can use Expectations to check that two things are equal using this form: ###
;; (expect expected actual). ... | true | (ns test-project.core-test
(:require [expectations :refer :all]
[test-project.core :refer :all]))
;##################################################################################
;; You can use Expectations to check that two things are equal using this form: ###
;; (expect expected actual). ... |
[
{
"context": " (-> (migrate-system {:db (assoc-if {} :username username :password password :database-name database)})\n ",
"end": 1593,
"score": 0.6612657308578491,
"start": 1585,
"tag": "USERNAME",
"value": "username"
},
{
"context": "tem {:db (assoc-if {} :username username :pa... | src/template/system.clj | dahlie/compojure-project-template | 0 | (ns template.system
(:require [com.stuartsierra.component :as component :refer [using]]
[taoensso.timbre :as timbre]
[potpuri.core :refer [assoc-if]]
[template.components.http-kit :refer [start-http-kit]]
[template.components.env :refer [create-env]]
[templa... | 65918 | (ns template.system
(:require [com.stuartsierra.component :as component :refer [using]]
[taoensso.timbre :as timbre]
[potpuri.core :refer [assoc-if]]
[template.components.http-kit :refer [start-http-kit]]
[template.components.env :refer [create-env]]
[templa... | true | (ns template.system
(:require [com.stuartsierra.component :as component :refer [using]]
[taoensso.timbre :as timbre]
[potpuri.core :refer [assoc-if]]
[template.components.http-kit :refer [start-http-kit]]
[template.components.env :refer [create-env]]
[templa... |
[
{
"context": "; Copyright (c) Rich Hickey. All rights reserved.\r\n; The use and distributi",
"end": 30,
"score": 0.9997777938842773,
"start": 19,
"tag": "NAME",
"value": "Rich Hickey"
}
] | Source/clojure/uuid.clj | pjago/Arcadia | 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... | 97918 | ; 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 ... | 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 so... |
[
{
"context": ".\n :user \"sysdba\"\n :password \"tiger\"})\n\n\t(with-connection db\n\t\t(with-query-results rs",
"end": 766,
"score": 0.9989653825759888,
"start": 761,
"tag": "PASSWORD",
"value": "tiger"
}
] | firebird/clojure/read/firebird_read.clj | ekzemplaro/data_base_language | 3 | ; -----------------------------------------------------------------
;
; firebird_read.clj
;
; Feb/17/2011
;
; -----------------------------------------------------------------
(load-file "/var/www/data_base/common/clojure_common/sql_manipulate.clj")
; ---------------------------------------------------------------... | 6509 | ; -----------------------------------------------------------------
;
; firebird_read.clj
;
; Feb/17/2011
;
; -----------------------------------------------------------------
(load-file "/var/www/data_base/common/clojure_common/sql_manipulate.clj")
; ---------------------------------------------------------------... | true | ; -----------------------------------------------------------------
;
; firebird_read.clj
;
; Feb/17/2011
;
; -----------------------------------------------------------------
(load-file "/var/www/data_base/common/clojure_common/sql_manipulate.clj")
; ---------------------------------------------------------------... |
[
{
"context": ";; Copyright 2021 Zane Littrell\n;;\n;; Licensed under the Apache License, Version ",
"end": 31,
"score": 0.9998735785484314,
"start": 18,
"tag": "NAME",
"value": "Zane Littrell"
}
] | src/app/stats.cljc | CapitalistLepton/nomenclature | 0 | ;; Copyright 2021 Zane Littrell
;;
;; 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 i... | 121513 | ;; Copyright 2021 <NAME>
;;
;; 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 writi... | true | ;; Copyright 2021 PI:NAME:<NAME>END_PI
;;
;; 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 agre... |
[
{
"context": "f \"Memento\"\n [:a5 :type :Person]\n [:a5 :name \"Christopher Nolan\"]\n\n ;; The movie \"The Usual Suspects\"\n [:a6 :",
"end": 668,
"score": 0.9998872876167297,
"start": 651,
"tag": "NAME",
"value": "Christopher Nolan"
},
{
"context": "l Suspects\"\n [:a8 :... | src/logic_tut/book.clj | oubiwann/hackday-logic-tutorial | 0 | (ns logic-tut.book
(:require [clojure.core.logic :as logic]
[clojure.tools.logging :as log]))
(def movie-graph
[;; The "NewMarket Films" studio
[:a1 :type :FilmStudio]
[:a1 :name "Newmarket Films"]
[:a1 :filmsCollection :a2]
;; Collection of films made by Newmarket Films
[:a2 :type :Fil... | 120877 | (ns logic-tut.book
(:require [clojure.core.logic :as logic]
[clojure.tools.logging :as log]))
(def movie-graph
[;; The "NewMarket Films" studio
[:a1 :type :FilmStudio]
[:a1 :name "Newmarket Films"]
[:a1 :filmsCollection :a2]
;; Collection of films made by Newmarket Films
[:a2 :type :Fil... | true | (ns logic-tut.book
(:require [clojure.core.logic :as logic]
[clojure.tools.logging :as log]))
(def movie-graph
[;; The "NewMarket Films" studio
[:a1 :type :FilmStudio]
[:a1 :name "Newmarket Films"]
[:a1 :filmsCollection :a2]
;; Collection of films made by Newmarket Films
[:a2 :type :Fil... |
[
{
"context": "fn add-event\n [{id :id provider \"provider\" user \"username\" target \"target-username\" keyword \"keyword\" conte",
"end": 659,
"score": 0.9933452606201172,
"start": 651,
"tag": "USERNAME",
"value": "username"
},
{
"context": " :as event}]\n (let [current-user (get... | data/test/clojure/e747af7ce49d0d1276a6233e5270e9d01fcd58b2manage.cljs | harshp8l/deep-learning-lang-detection | 84 | (ns bmihw.manage
(:require [reagent.core :as reagent :refer [atom]]
[reagent.session :as session]
[secretary.core :as secretary :include-macros true]
[goog.events :as events]
[goog.history.EventType :as EventType]
[ajax.core :refer [GET POST]]
... | 99398 | (ns bmihw.manage
(:require [reagent.core :as reagent :refer [atom]]
[reagent.session :as session]
[secretary.core :as secretary :include-macros true]
[goog.events :as events]
[goog.history.EventType :as EventType]
[ajax.core :refer [GET POST]]
... | true | (ns bmihw.manage
(:require [reagent.core :as reagent :refer [atom]]
[reagent.session :as session]
[secretary.core :as secretary :include-macros true]
[goog.events :as events]
[goog.history.EventType :as EventType]
[ajax.core :refer [GET POST]]
... |
[
{
"context": "or db namespace.\n;; Copyright 2011-2012, Vixu.com, F.M. (Filip) de Waard <fmw@vixu.com>.\n;;\n;; Licensed und",
"end": 85,
"score": 0.9978172183036804,
"start": 82,
"tag": "NAME",
"value": "F.M"
},
{
"context": "amespace.\n;; Copyright 2011-2012, Vixu.com, F.M. (Filip)... | test/clj/vix/test/db.clj | fmw/vix | 22 | ;; test/vix/test/db.clj tests for db namespace.
;; Copyright 2011-2012, Vixu.com, F.M. (Filip) de Waard <fmw@vixu.com>.
;;
;; 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.ap... | 24698 | ;; test/vix/test/db.clj tests for db namespace.
;; Copyright 2011-2012, Vixu.com, <NAME>. (<NAME> <<EMAIL>>.
;;
;; 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/li... | true | ;; test/vix/test/db.clj tests for db namespace.
;; Copyright 2011-2012, Vixu.com, PI:NAME:<NAME>END_PI. (PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>.
;;
;; 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 th... |
[
{
"context": "; Written by Raju\n; Run using following command\n; clojure memoizati",
"end": 17,
"score": 0.9998331069946289,
"start": 13,
"tag": "NAME",
"value": "Raju"
}
] | Chapter09/memoization.clj | PacktPublishing/Learning-Functional-Data-Structures-and-Algorithms | 31 | ; Written by Raju
; Run using following command
; clojure memoization.clj
;Memoization in Clojure
(defn simpleFactFun [n]
(if (or (= n 1) (= n 0)) 1
( do
(println "Calculating Factorial")
( * n (simpleFactFun (dec n))))
)
)
(println (simpleFactFun 5))
(def memoizedFactFun (memoize simpleFactFun))
... | 56108 | ; Written by <NAME>
; Run using following command
; clojure memoization.clj
;Memoization in Clojure
(defn simpleFactFun [n]
(if (or (= n 1) (= n 0)) 1
( do
(println "Calculating Factorial")
( * n (simpleFactFun (dec n))))
)
)
(println (simpleFactFun 5))
(def memoizedFactFun (memoize simpleFactFun))... | true | ; Written by PI:NAME:<NAME>END_PI
; Run using following command
; clojure memoization.clj
;Memoization in Clojure
(defn simpleFactFun [n]
(if (or (= n 1) (= n 0)) 1
( do
(println "Calculating Factorial")
( * n (simpleFactFun (dec n))))
)
)
(println (simpleFactFun 5))
(def memoizedFactFun (memoize s... |
[
{
"context": "\n(defn footer-component []\n [:div.footer\n [:p \"Chloe Wohlgemuth (cbw975@gmail.com) \\t Sung Kwak (skwak22@amherst.",
"end": 18690,
"score": 0.9998646378517151,
"start": 18674,
"tag": "NAME",
"value": "Chloe Wohlgemuth"
},
{
"context": "onent []\n [:div.footer\n ... | src/propeller_site/core.cljs | cbw975/propeller-site | 0 | (ns propeller-site.core
(:require
[reagent.core :as r]
[reagent.dom :as d]
[quil.core :as q :include-macros true]
[quil.middleware :as m]
[propeller-site.propeller :as propel]
[propeller-site.scatter :as scatter]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; STYLES & PARAMETERS ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
... | 9916 | (ns propeller-site.core
(:require
[reagent.core :as r]
[reagent.dom :as d]
[quil.core :as q :include-macros true]
[quil.middleware :as m]
[propeller-site.propeller :as propel]
[propeller-site.scatter :as scatter]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; STYLES & PARAMETERS ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
... | true | (ns propeller-site.core
(:require
[reagent.core :as r]
[reagent.dom :as d]
[quil.core :as q :include-macros true]
[quil.middleware :as m]
[propeller-site.propeller :as propel]
[propeller-site.scatter :as scatter]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; STYLES & PARAMETERS ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
... |
[
{
"context": "-encoding \"utf-8\"\n :remote-addr \"127.0.0.1\"\n :server-port 8080\n :con",
"end": 6926,
"score": 0.9997774958610535,
"start": 6917,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": " \"dev-resources/keystore.jks\"\n ... | web/test/immutant/web_test.clj | kfowler/immutant | 0 | ;; Copyright 2014-2015 Red Hat, Inc, and individual contributors.
;;
;; 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... | 21617 | ;; Copyright 2014-2015 Red Hat, Inc, and individual contributors.
;;
;; 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... | true | ;; Copyright 2014-2015 Red Hat, Inc, and individual contributors.
;;
;; 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... |
[
{
"context": "(def m ^{:createdDate \"20171226\"} {:name \"john\" :age 99})\n\n(println m)\n(meta m)\n\n;(def m (with-",
"end": 46,
"score": 0.997797429561615,
"start": 42,
"tag": "NAME",
"value": "john"
},
{
"context": "f m2 ^:private ^{:createdDate \"20171226\"} {:name \"jonny\" :... | basic_clojure_stuff/metadata.clj | travism26/random_clojure_stuff | 0 | (def m ^{:createdDate "20171226"} {:name "john" :age 99})
(println m)
(meta m)
;(def m (with-meta m {:more "info"}))
(meta m)
(def m (with-meta m (assoc (meta m) :more "info")))
(println (meta m))
(def m2 ^:private ^{:createdDate "20171226"} {:name "jonny" :age 77})
(println m2)
(meta m2)
(def m2 (with-meta m2 (... | 28161 | (def m ^{:createdDate "20171226"} {:name "<NAME>" :age 99})
(println m)
(meta m)
;(def m (with-meta m {:more "info"}))
(meta m)
(def m (with-meta m (assoc (meta m) :more "info")))
(println (meta m))
(def m2 ^:private ^{:createdDate "20171226"} {:name "<NAME>" :age 77})
(println m2)
(meta m2)
(def m2 (with-meta m... | true | (def m ^{:createdDate "20171226"} {:name "PI:NAME:<NAME>END_PI" :age 99})
(println m)
(meta m)
;(def m (with-meta m {:more "info"}))
(meta m)
(def m (with-meta m (assoc (meta m) :more "info")))
(println (meta m))
(def m2 ^:private ^{:createdDate "20171226"} {:name "PI:NAME:<NAME>END_PI" :age 77})
(println m2)
(me... |
[
{
"context": "; Copyright (c) Rich Hickey. All rights reserved.\n; The use and distributio",
"end": 30,
"score": 0.9997676610946655,
"start": 19,
"tag": "NAME",
"value": "Rich Hickey"
}
] | Neptune/bin/Debug/clojure/core/protocols.clj | yasir2000/Neptune- | 2 | ; 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... | 24222 | ; 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 fash... | 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 softwa... |
[
{
"context": " testing\n\n(def books\n [{:title \"2001\" :author \"Clarke\" :copies 21}\n {:title \"Emma\" :author \"Austen\"",
"end": 330,
"score": 0.999722957611084,
"start": 324,
"tag": "NAME",
"value": "Clarke"
},
{
"context": "\"2001\" :author \"Clarke\" :copies 21}\n ... | chapter14/inventory/test/inventory/core_test.clj | will-i-amv-books/getting-clojure | 0 | (ns inventory.core-test
(:require [clojure.test :refer :all])
(:require [inventory.core :as i])
(:require [clojure.test.check.properties :as prop])
(:require [clojure.test.check.generators :as gen])
(:require [clojure.test.check :as tc]))
;; Traditional testing
(def books
[{:title "2001" :auth... | 64100 | (ns inventory.core-test
(:require [clojure.test :refer :all])
(:require [inventory.core :as i])
(:require [clojure.test.check.properties :as prop])
(:require [clojure.test.check.generators :as gen])
(:require [clojure.test.check :as tc]))
;; Traditional testing
(def books
[{:title "2001" :auth... | true | (ns inventory.core-test
(:require [clojure.test :refer :all])
(:require [inventory.core :as i])
(:require [clojure.test.check.properties :as prop])
(:require [clojure.test.check.generators :as gen])
(:require [clojure.test.check :as tc]))
;; Traditional testing
(def books
[{:title "2001" :auth... |
[
{
"context": "nfig\n {:db {:engine :postgres\n :username \"zanmi\"\n :password \"zanmi-password\"\n :host",
"end": 86,
"score": 0.9996247291564941,
"start": 81,
"tag": "USERNAME",
"value": "zanmi"
},
{
"context": "gres\n :username \"zanmi\"\n :pass... | test/zanmi/test_config.clj | zonotope/zanmi | 35 | (ns zanmi.test-config)
(def config
{:db {:engine :postgres
:username "zanmi"
:password "zanmi-password"
:host "localhost"
:db-name "zanmi_test"}
:profile-schema {:username-length 32
:password-length 64
:password-score 1}
:secret "nobody ... | 119537 | (ns zanmi.test-config)
(def config
{:db {:engine :postgres
:username "zanmi"
:password "<PASSWORD>"
:host "localhost"
:db-name "zanmi_test"}
:profile-schema {:username-length 32
:password-length <PASSWORD>
:password-score 1}
:secret "nob... | true | (ns zanmi.test-config)
(def config
{:db {:engine :postgres
:username "zanmi"
:password "PI:PASSWORD:<PASSWORD>END_PI"
:host "localhost"
:db-name "zanmi_test"}
:profile-schema {:username-length 32
:password-length PI:PASSWORD:<PASSWORD>END_PI
... |
[
{
"context": "on\"]]\n #\"(?i).*\\balanna\\b.*\" [\"alanna\" [\"contribution\"]]\n #\"(?i).*\\b(rob(ert)?|rjb)\\",
"end": 411,
"score": 0.9896713495254517,
"start": 405,
"tag": "NAME",
"value": "alanna"
},
{
"context": "on\"]]\n #\"(?i).*\\b(rob(ert)?|rjb)\\b... | src/jjAgglomerator/classifier.clj | s5b/jjAgglomerator | 0 | (ns jjAgglomerator.classifier)
; An attempt at classifying the transactions by applying rules.
(def unknown ["-unknown-" []])
(def source-admin "admin")
(def source-bank "bank")
(def source-classic "classic")
(defn- classify-savings-credit [description]
(condp re-matches description
#"(?i)Transfer from xx218... | 118553 | (ns jjAgglomerator.classifier)
; An attempt at classifying the transactions by applying rules.
(def unknown ["-unknown-" []])
(def source-admin "admin")
(def source-bank "bank")
(def source-classic "classic")
(defn- classify-savings-credit [description]
(condp re-matches description
#"(?i)Transfer from xx218... | true | (ns jjAgglomerator.classifier)
; An attempt at classifying the transactions by applying rules.
(def unknown ["-unknown-" []])
(def source-admin "admin")
(def source-bank "bank")
(def source-classic "classic")
(defn- classify-savings-credit [description]
(condp re-matches description
#"(?i)Transfer from xx218... |
[
{
"context": " for set intersection testing.\"\n :author \"palisades dot lakes at gmail dot com\"\n :since \"2017-08-19\"\n :version \"2017-09-02\"}",
"end": 317,
"score": 0.8660796880722046,
"start": 281,
"tag": "EMAIL",
"value": "palisades dot lakes at gmail dot com"
}
] | src/main/clojure/palisades/lakes/multix/sets/dynalin.clj | palisades-lakes/multimethod-experiments | 5 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.multix.sets.dynalin
{:doc "palisades.lakes.dynalin.core/dynafun
for set intersection testing."
:author "palisades dot lakes at gmail dot com"
... | 38495 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.multix.sets.dynalin
{:doc "palisades.lakes.dynalin.core/dynafun
for set intersection testing."
:author "<EMAIL>"
:since "2017-08-19"
:ver... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
;;----------------------------------------------------------------
(ns palisades.lakes.multix.sets.dynalin
{:doc "palisades.lakes.dynalin.core/dynafun
for set intersection testing."
:author "PI:EMAIL:<EMAIL>END_PI"
:since "2017... |
[
{
"context": "merit scores\"\n (let [users '({:value 10 :name \"made tea\" :first_name \"Emile\"}\n {:value 10",
"end": 258,
"score": 0.8213878870010376,
"start": 250,
"tag": "USERNAME",
"value": "made tea"
},
{
"context": "[users '({:value 10 :name \"made tea\" :f... | test/clj/made_merits/test/service/score_calculator.clj | cob16/made-merits | 0 | (ns made-merits.test.service.score-calculator
(:require [clojure.test :refer :all]
[made-merits.service.score-calculator :refer :all]))
(deftest with-score-test
(testing "Sum up user merit scores"
(let [users '({:value 10 :name "made tea" :first_name "Emile"}
{:value 10 :name "blog... | 104164 | (ns made-merits.test.service.score-calculator
(:require [clojure.test :refer :all]
[made-merits.service.score-calculator :refer :all]))
(deftest with-score-test
(testing "Sum up user merit scores"
(let [users '({:value 10 :name "made tea" :first_name "<NAME>"}
{:value 10 :name "blo... | true | (ns made-merits.test.service.score-calculator
(:require [clojure.test :refer :all]
[made-merits.service.score-calculator :refer :all]))
(deftest with-score-test
(testing "Sum up user merit scores"
(let [users '({:value 10 :name "made tea" :first_name "PI:NAME:<NAME>END_PI"}
{:value... |
[
{
"context": " prop-testing-schema-test-check.core\n ^{:author \"Leeor Engel\"}\n (:require [schema.core :as s]))\n\n(def REST-NO",
"end": 64,
"score": 0.9998882412910461,
"start": 53,
"tag": "NAME",
"value": "Leeor Engel"
}
] | src/prop_testing_schema_test_check/core.clj | leeorengel/clojure-prop-testing-schema-test.check | 1 | (ns prop-testing-schema-test-check.core
^{:author "Leeor Engel"}
(:require [schema.core :as s]))
(def REST-NOTE-NUMBER -1)
(def MIN-NOTE 0)
(def MAX-NOTE 127)
(def Rest (s/eq REST-NOTE-NUMBER))
(def Note (s/constrained s/Int #(<= MIN-NOTE % MAX-NOTE)))
(def NoteOrRest (s/either Note Rest))
(s/defrecord Melody [no... | 67978 | (ns prop-testing-schema-test-check.core
^{:author "<NAME>"}
(:require [schema.core :as s]))
(def REST-NOTE-NUMBER -1)
(def MIN-NOTE 0)
(def MAX-NOTE 127)
(def Rest (s/eq REST-NOTE-NUMBER))
(def Note (s/constrained s/Int #(<= MIN-NOTE % MAX-NOTE)))
(def NoteOrRest (s/either Note Rest))
(s/defrecord Melody [notes :... | true | (ns prop-testing-schema-test-check.core
^{:author "PI:NAME:<NAME>END_PI"}
(:require [schema.core :as s]))
(def REST-NOTE-NUMBER -1)
(def MIN-NOTE 0)
(def MAX-NOTE 127)
(def Rest (s/eq REST-NOTE-NUMBER))
(def Note (s/constrained s/Int #(<= MIN-NOTE % MAX-NOTE)))
(def NoteOrRest (s/either Note Rest))
(s/defrecord M... |
[
{
"context": ";; Copyright (C) 2018, 2019 by Vlad Kozin\n\n(ns generic-example\n (:require [medley.core :re",
"end": 41,
"score": 0.999841034412384,
"start": 31,
"tag": "NAME",
"value": "Vlad Kozin"
}
] | src/exch/generic_example.clj | vkz/bot | 1 | ;; Copyright (C) 2018, 2019 by Vlad Kozin
(ns generic-example
(:require [medley.core :refer :all]
[manifold.stream :as s]
[aleph.http :as http]
[cheshire.core :as json]
[clojure.string :as string]
[clojure.pprint :refer [pprint]]
[clojure.core.a... | 112238 | ;; Copyright (C) 2018, 2019 by <NAME>
(ns generic-example
(:require [medley.core :refer :all]
[manifold.stream :as s]
[aleph.http :as http]
[cheshire.core :as json]
[clojure.string :as string]
[clojure.pprint :refer [pprint]]
[clojure.core.async... | true | ;; Copyright (C) 2018, 2019 by PI:NAME:<NAME>END_PI
(ns generic-example
(:require [medley.core :refer :all]
[manifold.stream :as s]
[aleph.http :as http]
[cheshire.core :as json]
[clojure.string :as string]
[clojure.pprint :refer [pprint]]
[cloj... |
[
{
"context": " (messager %1 %2)))\n data [[:ok 0] [:brian -1] [:corey 10326] [:gary -3]]]\n (critiquer da",
"end": 3337,
"score": 0.6496241092681885,
"start": 3332,
"tag": "NAME",
"value": "brian"
}
] | test/such/f_function_makers.clj | marick/suchwow | 70 | (ns such.f-function-makers
(:require [such.function-makers :as mkfn])
(:use midje.sweet))
(fact "pred:any?"
((mkfn/pred:any? odd? even?) 1) => true
((mkfn/pred:any? pos? neg?) 0) => false
((mkfn/pred:any? :key :word) {:key false}) => false
((mkfn/pred:any? :key :word) {:key false :word 3}) => true
((mkf... | 19882 | (ns such.f-function-makers
(:require [such.function-makers :as mkfn])
(:use midje.sweet))
(fact "pred:any?"
((mkfn/pred:any? odd? even?) 1) => true
((mkfn/pred:any? pos? neg?) 0) => false
((mkfn/pred:any? :key :word) {:key false}) => false
((mkfn/pred:any? :key :word) {:key false :word 3}) => true
((mkf... | true | (ns such.f-function-makers
(:require [such.function-makers :as mkfn])
(:use midje.sweet))
(fact "pred:any?"
((mkfn/pred:any? odd? even?) 1) => true
((mkfn/pred:any? pos? neg?) 0) => false
((mkfn/pred:any? :key :word) {:key false}) => false
((mkfn/pred:any? :key :word) {:key false :word 3}) => true
((mkf... |
[
{
"context": "on\n {:region \"us-west-2\"\n :access-key \"AKIAJIMN7IBTFMNRLSZA\"\n :secret-key \"0cDUzKX6WdChzPIPPaFrMzV7PUoz",
"end": 4700,
"score": 0.9996915459632874,
"start": 4680,
"tag": "KEY",
"value": "AKIAJIMN7IBTFMNRLSZA"
},
{
"context": "ss-key \"AKIAJIMN7I... | src/clj/rx/aws.clj | zk/rx-lib | 0 | (ns rx.aws
(:require [rx.kitchen-sink :as ks]
[clojure.string :as str]
[byte-streams :as bs]
[clojure.java.io :as io]
[clojure.java.data :as jd])
(:import [com.amazonaws.auth
AWSStaticCredentialsProvider
BasicAWSCredentials]
[com.am... | 77095 | (ns rx.aws
(:require [rx.kitchen-sink :as ks]
[clojure.string :as str]
[byte-streams :as bs]
[clojure.java.io :as io]
[clojure.java.data :as jd])
(:import [com.amazonaws.auth
AWSStaticCredentialsProvider
BasicAWSCredentials]
[com.am... | true | (ns rx.aws
(:require [rx.kitchen-sink :as ks]
[clojure.string :as str]
[byte-streams :as bs]
[clojure.java.io :as io]
[clojure.java.data :as jd])
(:import [com.amazonaws.auth
AWSStaticCredentialsProvider
BasicAWSCredentials]
[com.am... |
[
{
"context": "{ :doc \"Thrift Protocol Wrappers\"\n :author \"Yannick Scherer\" }\n thrift-clj.protocol.core\n (:import [org.apa",
"end": 70,
"score": 0.9998540282249451,
"start": 55,
"tag": "NAME",
"value": "Yannick Scherer"
}
] | src/thrift_clj/protocol/core.clj | ipostelnik/thrift-clj | 35 | (ns ^{ :doc "Thrift Protocol Wrappers"
:author "Yannick Scherer" }
thrift-clj.protocol.core
(:import [org.apache.thrift.protocol
TProtocol TProtocolFactory
TBinaryProtocol$Factory TCompactProtocol$Factory
TJSONProtocol$Factory TSimpleJSONProtocol$Factory TTupleProtocol$Fac... | 49340 | (ns ^{ :doc "Thrift Protocol Wrappers"
:author "<NAME>" }
thrift-clj.protocol.core
(:import [org.apache.thrift.protocol
TProtocol TProtocolFactory
TBinaryProtocol$Factory TCompactProtocol$Factory
TJSONProtocol$Factory TSimpleJSONProtocol$Factory TTupleProtocol$Factory]
... | true | (ns ^{ :doc "Thrift Protocol Wrappers"
:author "PI:NAME:<NAME>END_PI" }
thrift-clj.protocol.core
(:import [org.apache.thrift.protocol
TProtocol TProtocolFactory
TBinaryProtocol$Factory TCompactProtocol$Factory
TJSONProtocol$Factory TSimpleJSONProtocol$Factory TTupleProtoco... |
[
{
"context": "\"\n order-details-invalid\n {:name \"Mitchard Blimmons\"\n :email \"mitchard.blimmonsgmail.com\"}\n ",
"end": 331,
"score": 0.9998967051506042,
"start": 314,
"tag": "NAME",
"value": "Mitchard Blimmons"
},
{
"context": " {:name \"Mitchard Blimm... | test/clj_brave_and_true/chapter08_test.clj | artemy/clj-brave-and-true-exercises | 0 | (ns clj-brave-and-true.chapter08-test
(:require [clojure.test :refer [deftest testing is]]
[clj-brave-and-true.chapter08 :refer [when-valid custom-or defattrs]]))
(deftest when-valid-test
(testing
(let [valid-output "It's a success!\n:success\n"
order-details-invalid
{:name "Mitcha... | 91899 | (ns clj-brave-and-true.chapter08-test
(:require [clojure.test :refer [deftest testing is]]
[clj-brave-and-true.chapter08 :refer [when-valid custom-or defattrs]]))
(deftest when-valid-test
(testing
(let [valid-output "It's a success!\n:success\n"
order-details-invalid
{:name "<NAME>... | true | (ns clj-brave-and-true.chapter08-test
(:require [clojure.test :refer [deftest testing is]]
[clj-brave-and-true.chapter08 :refer [when-valid custom-or defattrs]]))
(deftest when-valid-test
(testing
(let [valid-output "It's a success!\n:success\n"
order-details-invalid
{:name "PI:NAM... |
[
{
"context": "icy.com/\n ;; See also: https://github.com/pedestal/pedestal/issues/499\n ;;::http/secure-header",
"end": 2932,
"score": 0.9996134638786316,
"start": 2924,
"tag": "USERNAME",
"value": "pedestal"
},
{
"context": "\n ::http/type :immutant\n ::htt... | src/jcpsantiago/sagemaker_multimodel_clj/service.clj | jcpsantiago/sagemaker-multimodel-clj | 4 | (ns jcpsantiago.sagemaker-multimodel-clj.service
(:require [io.pedestal.http :as http]
[io.pedestal.http.route :as route]
[io.pedestal.http.body-params :as body-params]
[io.pedestal.interceptor.helpers :as interceptor]
[ring.util.response :as ring-resp]
[jcp... | 70096 | (ns jcpsantiago.sagemaker-multimodel-clj.service
(:require [io.pedestal.http :as http]
[io.pedestal.http.route :as route]
[io.pedestal.http.body-params :as body-params]
[io.pedestal.interceptor.helpers :as interceptor]
[ring.util.response :as ring-resp]
[jcp... | true | (ns jcpsantiago.sagemaker-multimodel-clj.service
(:require [io.pedestal.http :as http]
[io.pedestal.http.route :as route]
[io.pedestal.http.body-params :as body-params]
[io.pedestal.interceptor.helpers :as interceptor]
[ring.util.response :as ring-resp]
[jcp... |
[
{
"context": "assword group-guids]\n (let [token-info {:token {:username username\n :password pa",
"end": 1493,
"score": 0.7737597823143005,
"start": 1485,
"tag": "USERNAME",
"value": "username"
},
{
"context": "group-guids]\n (let [token-info {:token {:u... | mock-echo-app/src/cmr/mock_echo/client/mock_echo_client.clj | sxu123/Common-Metadata-Repository | 0 | (ns cmr.mock-echo.client.mock-echo-client
"Contains functions for communicating with the mock echo api that aren't normal echo-rest
operations"
(:require [cmr.transmit.echo.rest :as r]
[cmr.transmit.echo.conversion :as c]))
(defn reset
"Clears out all data in mock echo"
[context]
(r/rest-post c... | 119662 | (ns cmr.mock-echo.client.mock-echo-client
"Contains functions for communicating with the mock echo api that aren't normal echo-rest
operations"
(:require [cmr.transmit.echo.rest :as r]
[cmr.transmit.echo.conversion :as c]))
(defn reset
"Clears out all data in mock echo"
[context]
(r/rest-post c... | true | (ns cmr.mock-echo.client.mock-echo-client
"Contains functions for communicating with the mock echo api that aren't normal echo-rest
operations"
(:require [cmr.transmit.echo.rest :as r]
[cmr.transmit.echo.conversion :as c]))
(defn reset
"Clears out all data in mock echo"
[context]
(r/rest-post c... |
[
{
"context": ".Driver\"\n :subprotocol \"mysql\"\n :subname \"//127.0.0.1:3306/hello_world\"\n :user \"benchmarkdbuser\"\n ",
"end": 868,
"score": 0.9990853071212769,
"start": 859,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "subname \"//127.0.0.1:3306/hello_... | frameworks/Clojure/http-kit/hello/src/hello/handler.clj | greg-hellings/FrameworkBenchmarks | 6 | (ns hello.handler
(:gen-class)
(:import com.mchange.v2.c3p0.ComboPooledDataSource)
(:use compojure.core
ring.middleware.json
org.httpkit.server
[clojure.tools.cli :only [cli]]
korma.db
korma.core
hiccup.core
hiccup.util
hiccup.page)
(:require [comp... | 80535 | (ns hello.handler
(:gen-class)
(:import com.mchange.v2.c3p0.ComboPooledDataSource)
(:use compojure.core
ring.middleware.json
org.httpkit.server
[clojure.tools.cli :only [cli]]
korma.db
korma.core
hiccup.core
hiccup.util
hiccup.page)
(:require [comp... | true | (ns hello.handler
(:gen-class)
(:import com.mchange.v2.c3p0.ComboPooledDataSource)
(:use compojure.core
ring.middleware.json
org.httpkit.server
[clojure.tools.cli :only [cli]]
korma.db
korma.core
hiccup.core
hiccup.util
hiccup.page)
(:require [comp... |
[
{
"context": "tom-positive '()}\n actual (sentiment \"Sgt Emile Cilliers charged over wife's parachute fall\")]\n (is (",
"end": 7364,
"score": 0.9219369888305664,
"start": 7350,
"tag": "NAME",
"value": "Emile Cilliers"
}
] | test/clj_subjectivity/core_test.clj | markwoodhall/clj-subjectivity | 1 | (ns clj-subjectivity.core-test
(:require [clojure.test :refer [deftest testing is]]
[clj-subjectivity.core :refer [sentiment]]))
(deftest sentiment-test
(testing "test sentiment with weak negative word as func returns correct result."
(let [expected {:difference -0.5
:negative 0... | 5855 | (ns clj-subjectivity.core-test
(:require [clojure.test :refer [deftest testing is]]
[clj-subjectivity.core :refer [sentiment]]))
(deftest sentiment-test
(testing "test sentiment with weak negative word as func returns correct result."
(let [expected {:difference -0.5
:negative 0... | true | (ns clj-subjectivity.core-test
(:require [clojure.test :refer [deftest testing is]]
[clj-subjectivity.core :refer [sentiment]]))
(deftest sentiment-test
(testing "test sentiment with weak negative word as func returns correct result."
(let [expected {:difference -0.5
:negative 0... |
[
{
"context": " is structured\n;; according to the form defined by Scott Peckham. This is: <object>_<quantity>.\n(defrecord Measure",
"end": 10675,
"score": 0.9997907876968384,
"start": 10662,
"tag": "NAME",
"value": "Scott Peckham"
}
] | umm-spec-lib/src/cmr/umm_spec/models/umm_variable_models.clj | cgokey/Common-Metadata-Repository | 0 | ;; WARNING: This file was generated from umm-var-json-schema.json. Do not manually modify.
(ns cmr.umm-spec.models.umm-variable-models
"Defines UMM-Var clojure records."
(:require [cmr.common.dev.record-pretty-printer :as record-pretty-printer]))
(defrecord UMM-Var
[
;; Valid ranges of variable data values.
... | 18917 | ;; WARNING: This file was generated from umm-var-json-schema.json. Do not manually modify.
(ns cmr.umm-spec.models.umm-variable-models
"Defines UMM-Var clojure records."
(:require [cmr.common.dev.record-pretty-printer :as record-pretty-printer]))
(defrecord UMM-Var
[
;; Valid ranges of variable data values.
... | true | ;; WARNING: This file was generated from umm-var-json-schema.json. Do not manually modify.
(ns cmr.umm-spec.models.umm-variable-models
"Defines UMM-Var clojure records."
(:require [cmr.common.dev.record-pretty-printer :as record-pretty-printer]))
(defrecord UMM-Var
[
;; Valid ranges of variable data values.
... |
[
{
"context": ";; Copyright (c) Stephen C. Gilardi. All rights reserved. The use and\n;; distributi",
"end": 36,
"score": 0.9998722076416016,
"start": 18,
"tag": "NAME",
"value": "Stephen C. Gilardi"
},
{
"context": ";;\n;; test/example for clojure.contrib.sql\n;;\n;; scgilardi (... | ThirdParty/clojure-contrib-1.1.0/src/clojure/contrib/sql/test.clj | allertonm/Couverjure | 3 | ;; Copyright (c) Stephen C. Gilardi. 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... | 39109 | ;; 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 fas... | 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 softw... |
[
{
"context": "ns under the License.\n;;\n;; Copyright © 2013-2022, Kenneth Leung. All rights reserved.\n\n(ns czlab.twisty.core\n\n \"",
"end": 597,
"score": 0.9998583793640137,
"start": 584,
"tag": "NAME",
"value": "Kenneth Leung"
}
] | src/main/clojure/czlab/twisty/core.clj | llnek/crypto | 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 ... | 104947 | ;; 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": "afire.samples)\n\n; Adapted from https://github.com/jonase/learndatalogtoday/blob/master/resources/db/data.e",
"end": 63,
"score": 0.9995688199996948,
"start": 57,
"tag": "USERNAME",
"value": "jonase"
},
{
"context": "ue}})\n(def data\n [{:db/id -100\n :person/name ... | src/test/datafire/samples.cljs | filipesilva/datascript-firebase | 53 | (ns datafire.samples)
; Adapted from https://github.com/jonase/learndatalogtoday/blob/master/resources/db/data.edn
(def schema {:movie/director {:db/valueType :db.type/ref
:db/cardinality :db.cardinality/many
:db/isComponent true}
:movie/cast {:d... | 115324 | (ns datafire.samples)
; Adapted from https://github.com/jonase/learndatalogtoday/blob/master/resources/db/data.edn
(def schema {:movie/director {:db/valueType :db.type/ref
:db/cardinality :db.cardinality/many
:db/isComponent true}
:movie/cast {:d... | true | (ns datafire.samples)
; Adapted from https://github.com/jonase/learndatalogtoday/blob/master/resources/db/data.edn
(def schema {:movie/director {:db/valueType :db.type/ref
:db/cardinality :db.cardinality/many
:db/isComponent true}
:movie/cast {:d... |
[
{
"context": "(ns kindergarten-garden)\n\n(def children [:alice :bob :charlie :david :eve :fred :ginny :harriet :",
"end": 47,
"score": 0.9964421391487122,
"start": 42,
"tag": "NAME",
"value": "alice"
},
{
"context": "(ns kindergarten-garden)\n\n(def children [:alice :bob :charlie :d... | clojure/kindergarten-garden/src/kindergarten_garden.clj | ErikSchierboom/exercism | 23 | (ns kindergarten-garden)
(def children [:alice :bob :charlie :david :eve :fred :ginny :harriet :ileana :joseph :kincaid :larry])
(def plant { \G :grass \C :clover \R :radishes \V :violets })
(defn garden [rows]
(let [plants (keep plant rows)
[first-row second-row] (partition (/ (count plants) 2) plants)]
... | 66576 | (ns kindergarten-garden)
(def children [:<NAME> :<NAME> :<NAME> :<NAME> :<NAME> :<NAME> :<NAME> :<NAME> :<NAME> :<NAME> :<NAME> :<NAME>])
(def plant { \G :grass \C :clover \R :radishes \V :violets })
(defn garden [rows]
(let [plants (keep plant rows)
[first-row second-row] (partition (/ (count plants) 2) pl... | true | (ns kindergarten-garden)
(def children [:PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI :PI:NAME:<NAME>END_PI])
(def plant { ... |
[
{
"context": " the pretty printer for Clojure\n\n; Copyright (c) Rich Hickey. All rights reserved.\n; The use and distributio",
"end": 88,
"score": 0.9998761415481567,
"start": 77,
"tag": "NAME",
"value": "Rich Hickey"
},
{
"context": "ice, or any other, from this software.\n\n;;... | src/clj/clojure/pprint/dispatch.clj | lorettahe/clojure | 1 | ;; dispatch.clj -- part of the pretty printer for Clojure
; 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 ro... | 25194 | ;; dispatch.clj -- part of the pretty printer for Clojure
; 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... | true | ;; dispatch.clj -- part of the pretty printer for Clojure
; 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 ... |
[
{
"context": "; Copyright (c) Rich Hickey. All rights reserved.\n; The use and distributio",
"end": 29,
"score": 0.9998069405555725,
"start": 18,
"tag": "NAME",
"value": "Rich Hickey"
}
] | clojure-tools/src/clojure/tools/deps/alpha/extensions/pom.clj | FundingCircle/ein.alpha | 5 | ; 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 ... | 47846 | ; 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": "ns under the License.\n;;\n;; Copyright © 2013-2022, Kenneth Leung. All rights reserved.\n\n(ns czlab.niou.webss\n\n \"A",
"end": 597,
"score": 0.999864935874939,
"start": 584,
"tag": "NAME",
"value": "Kenneth Leung"
}
] | src/main/clojure/czlab/niou/webss.clj | llnek/nettio | 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 ... | 41472 | ;; 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": " (testing \"1a. Failed\"\r\n (is (= (hello-name [\"Bob\" \"Chris\"])\r\n [\"Hello Bob\" \"Hello Chris\"",
"end": 233,
"score": 0.9996986389160156,
"start": 230,
"tag": "NAME",
"value": "Bob"
},
{
"context": "ting \"1a. Failed\"\r\n (is (= (hello-name [\... | plp-clojure/test/plp_clojure/core_test.clj | timaeudg/CSSE403-PLP | 0 | (ns plp-clojure.core-test
(:require [clojure.test :refer :all]
[plp-clojure.core :refer :all]
[clojure.set :refer :all]))
(deftest hello-name-test
(testing "1a. Failed"
(is (= (hello-name ["Bob" "Chris"])
["Hello Bob" "Hello Chris"])
(= (hello-name ["Waldo"])... | 76362 | (ns plp-clojure.core-test
(:require [clojure.test :refer :all]
[plp-clojure.core :refer :all]
[clojure.set :refer :all]))
(deftest hello-name-test
(testing "1a. Failed"
(is (= (hello-name ["<NAME>" "<NAME>"])
["Hello <NAME>" "Hello <NAME>"])
(= (hello-name ["... | true | (ns plp-clojure.core-test
(:require [clojure.test :refer :all]
[plp-clojure.core :refer :all]
[clojure.set :refer :all]))
(deftest hello-name-test
(testing "1a. Failed"
(is (= (hello-name ["PI:NAME:<NAME>END_PI" "PI:NAME:<NAME>END_PI"])
["Hello PI:NAME:<NAME>END_PI" "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.