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": "implementation from SICP section 2.1\"\n {:author \"Vasily Kolesnikov\"}\n (:refer-clojure :exclude [cons]))\n\n(defn car ",
"end": 98,
"score": 0.9997861981391907,
"start": 81,
"tag": "NAME",
"value": "Vasily Kolesnikov"
}
] | src/sicp/common/pairs.clj | justCxx/SICP | 90 | (ns sicp.common.pairs
"Pairs implementation from SICP section 2.1"
{:author "Vasily Kolesnikov"}
(:refer-clojure :exclude [cons]))
(defn car [[x _]] x)
(defn cdr [[_ y]] y)
(defn cons [x y] (list x y))
(defn pair?
[data]
(and (list? data)
(= (count data) 2)))
(defn inspect
[pair]
(if-not (pair?... | 6139 | (ns sicp.common.pairs
"Pairs implementation from SICP section 2.1"
{:author "<NAME>"}
(:refer-clojure :exclude [cons]))
(defn car [[x _]] x)
(defn cdr [[_ y]] y)
(defn cons [x y] (list x y))
(defn pair?
[data]
(and (list? data)
(= (count data) 2)))
(defn inspect
[pair]
(if-not (pair? pair)
... | true | (ns sicp.common.pairs
"Pairs implementation from SICP section 2.1"
{:author "PI:NAME:<NAME>END_PI"}
(:refer-clojure :exclude [cons]))
(defn car [[x _]] x)
(defn cdr [[_ y]] y)
(defn cons [x y] (list x y))
(defn pair?
[data]
(and (list? data)
(= (count data) 2)))
(defn inspect
[pair]
(if-not (pa... |
[
{
"context": ";; Copyright 2015 Ben Ashford\n;;\n;; Licensed under the Apache License, Version ",
"end": 29,
"score": 0.999870777130127,
"start": 18,
"tag": "NAME",
"value": "Ben Ashford"
}
] | src/redis_async/client.clj | benashford/redis-async | 19 | ;; Copyright 2015 Ben Ashford
;;
;; 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 ... | 109783 | ;; 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/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writi... | 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.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agre... |
[
{
"context": "as u]))\n\n\n(def battles-table-state-keys\n [:battle-password :filter-battles :now])\n\n(def battles-tabl",
"end": 385,
"score": 0.6134061813354492,
"start": 385,
"tag": "KEY",
"value": ""
},
{
"context": "ttle battle\n :battle-password battle-pas... | src/clj/skylobby/fx/battles_table.clj | MasterBel2/skylobby | 0 | (ns skylobby.fx.battles-table
(:require
[clojure.string :as string]
[cljfx.ext.table-view :as fx.ext.table-view]
java-time
[skylobby.fx.ext :refer [ext-recreate-on-key-changed ext-table-column-auto-size]]
[skylobby.fx.flag-icon :as flag-icon]
[spring-lobby.fx.font-icon :as font-icon]
[spri... | 122996 | (ns skylobby.fx.battles-table
(:require
[clojure.string :as string]
[cljfx.ext.table-view :as fx.ext.table-view]
java-time
[skylobby.fx.ext :refer [ext-recreate-on-key-changed ext-table-column-auto-size]]
[skylobby.fx.flag-icon :as flag-icon]
[spring-lobby.fx.font-icon :as font-icon]
[spri... | true | (ns skylobby.fx.battles-table
(:require
[clojure.string :as string]
[cljfx.ext.table-view :as fx.ext.table-view]
java-time
[skylobby.fx.ext :refer [ext-recreate-on-key-changed ext-table-column-auto-size]]
[skylobby.fx.flag-icon :as flag-icon]
[spring-lobby.fx.font-icon :as font-icon]
[spri... |
[
{
"context": "g)\n user (core/get-user db \"import@lipas.fi\")\n task-ks (or (not-empty (map",
"end": 689,
"score": 0.9993603825569153,
"start": 674,
"tag": "EMAIL",
"value": "import@lipas.fi"
}
] | webapp/src/clj/lipas/integrator.clj | lipas-liikuntapaikat/lipas | 49 | (ns lipas.integrator
"See also `lipas.worker` namespace."
(:require
[lipas.backend.config :as config]
[lipas.backend.core :as core]
[lipas.backend.system :as backend]
[lipas.integration.old-lipas.tasks :as integration]
[taoensso.timbre :as log]
[tea-time.core :as tt]))
(defonce tasks (atom {}))
... | 8736 | (ns lipas.integrator
"See also `lipas.worker` namespace."
(:require
[lipas.backend.config :as config]
[lipas.backend.core :as core]
[lipas.backend.system :as backend]
[lipas.integration.old-lipas.tasks :as integration]
[taoensso.timbre :as log]
[tea-time.core :as tt]))
(defonce tasks (atom {}))
... | true | (ns lipas.integrator
"See also `lipas.worker` namespace."
(:require
[lipas.backend.config :as config]
[lipas.backend.core :as core]
[lipas.backend.system :as backend]
[lipas.integration.old-lipas.tasks :as integration]
[taoensso.timbre :as log]
[tea-time.core :as tt]))
(defonce tasks (atom {}))
... |
[
{
"context": ".iota :refer [given]])\n (:import\n [com.github.benmanes.caffeine.cache Caffeine]\n [java.util.function ",
"end": 386,
"score": 0.9843387603759766,
"start": 378,
"tag": "USERNAME",
"value": "benmanes"
},
{
"context": "{:blaze.db/cache-collector nil})\n :key ... | modules/db/test/blaze/db/cache_collector_test.clj | samply/blaze | 50 | (ns blaze.db.cache-collector-test
(:require
[blaze.db.cache-collector]
[blaze.metrics.core :as metrics]
[blaze.test-util :refer [given-thrown with-system]]
[clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as st]
[clojure.test :as test :refer [deftest testing]]
[integrant.core :as ig]
... | 55690 | (ns blaze.db.cache-collector-test
(:require
[blaze.db.cache-collector]
[blaze.metrics.core :as metrics]
[blaze.test-util :refer [given-thrown with-system]]
[clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as st]
[clojure.test :as test :refer [deftest testing]]
[integrant.core :as ig]
... | true | (ns blaze.db.cache-collector-test
(:require
[blaze.db.cache-collector]
[blaze.metrics.core :as metrics]
[blaze.test-util :refer [given-thrown with-system]]
[clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as st]
[clojure.test :as test :refer [deftest testing]]
[integrant.core :as ig]
... |
[
{
"context": ";; Copyright (c) 2020-2021 Saidone\n\n(ns clj-ssh-keygen.core\n (:import [java.securit",
"end": 34,
"score": 0.9974021911621094,
"start": 27,
"tag": "NAME",
"value": "Saidone"
}
] | src/clj_ssh_keygen/core.clj | saidone75/clj-ssh-keygen | 17 | ;; Copyright (c) 2020-2021 Saidone
(ns clj-ssh-keygen.core
(:import [java.security SecureRandom])
(:gen-class))
(require '[clj-ssh-keygen.utils :as utils]
'[clj-ssh-keygen.oid :as oid])
;; (minimum) key length
(def key-length 2048)
;; public exponent
(def e (biginteger 65537))
;; generate a prime num... | 25056 | ;; Copyright (c) 2020-2021 <NAME>
(ns clj-ssh-keygen.core
(:import [java.security SecureRandom])
(:gen-class))
(require '[clj-ssh-keygen.utils :as utils]
'[clj-ssh-keygen.oid :as oid])
;; (minimum) key length
(def key-length 2048)
;; public exponent
(def e (biginteger 65537))
;; generate a prime numb... | true | ;; Copyright (c) 2020-2021 PI:NAME:<NAME>END_PI
(ns clj-ssh-keygen.core
(:import [java.security SecureRandom])
(:gen-class))
(require '[clj-ssh-keygen.utils :as utils]
'[clj-ssh-keygen.oid :as oid])
;; (minimum) key length
(def key-length 2048)
;; public exponent
(def e (biginteger 65537))
;; generat... |
[
{
"context": ";; Copyright © 2015-2019 Esko Luontola\n;; This software is released under the Apache Lic",
"end": 38,
"score": 0.9998800158500671,
"start": 25,
"tag": "NAME",
"value": "Esko Luontola"
}
] | src/territory_bro/congregation.clj | JessRoberts/territory_assistant | 0 | ;; Copyright © 2015-2019 Esko Luontola
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.congregation
(:require [clojure.string :as str]
[clojure.tools.logging :as log]
[territory-bro.commands :as ... | 106091 | ;; Copyright © 2015-2019 <NAME>
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.congregation
(:require [clojure.string :as str]
[clojure.tools.logging :as log]
[territory-bro.commands :as command... | true | ;; Copyright © 2015-2019 PI:NAME:<NAME>END_PI
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.congregation
(:require [clojure.string :as str]
[clojure.tools.logging :as log]
[territory-bro.comman... |
[
{
"context": "-resources/client-keystore\")\n(def client-ks-pass \"keykey\")\n(def secure-request {:request-method :get :uri ",
"end": 502,
"score": 0.7132206559181213,
"start": 496,
"tag": "PASSWORD",
"value": "keykey"
}
] | test/clj_http/test/conn_mgr_test.clj | Deraen/clj-http | 1,240 | (ns clj-http.test.conn-mgr-test
(:require [clj-http.conn-mgr :as conn-mgr]
[clj-http.core :as core]
[clj-http.test.core-test :refer [run-server]]
[clojure.test :refer :all]
[ring.adapter.jetty :as ring])
(:import java.security.KeyStore
[javax.net.ssl KeyMan... | 7435 | (ns clj-http.test.conn-mgr-test
(:require [clj-http.conn-mgr :as conn-mgr]
[clj-http.core :as core]
[clj-http.test.core-test :refer [run-server]]
[clojure.test :refer :all]
[ring.adapter.jetty :as ring])
(:import java.security.KeyStore
[javax.net.ssl KeyMan... | true | (ns clj-http.test.conn-mgr-test
(:require [clj-http.conn-mgr :as conn-mgr]
[clj-http.core :as core]
[clj-http.test.core-test :refer [run-server]]
[clojure.test :refer :all]
[ring.adapter.jetty :as ring])
(:import java.security.KeyStore
[javax.net.ssl KeyMan... |
[
{
"context": "entiment words).\n; Copied from https://github.com/redmonk/bluebird\n;\n; This file and the papers can all be ",
"end": 1858,
"score": 0.9986345171928406,
"start": 1851,
"tag": "USERNAME",
"value": "redmonk"
},
{
"context": ", please cite one of the following two papers... | src/plugh/util/sent_analysis.clj | projectplugh/plugh | 2 | (ns plugh.util.sent-analysis
(:require [clojure.string :as str]
[clojure.core.async :as async]))
(declare pos neg)
(defn calc-sentiment [line]
(let [splits (str/split
(str/lower-case
(str/replace
(str/replace line #"\p{Punct}" " ")
... | 46595 | (ns plugh.util.sent-analysis
(:require [clojure.string :as str]
[clojure.core.async :as async]))
(declare pos neg)
(defn calc-sentiment [line]
(let [splits (str/split
(str/lower-case
(str/replace
(str/replace line #"\p{Punct}" " ")
... | true | (ns plugh.util.sent-analysis
(:require [clojure.string :as str]
[clojure.core.async :as async]))
(declare pos neg)
(defn calc-sentiment [line]
(let [splits (str/split
(str/lower-case
(str/replace
(str/replace line #"\p{Punct}" " ")
... |
[
{
"context": "ole group subgroup idx opts)\n :password \"password\"}))\n\n(defn init!\n \"Create a structure of keycloa",
"end": 1441,
"score": 0.9992846846580505,
"start": 1433,
"tag": "PASSWORD",
"value": "password"
},
{
"context": "\" Add user \\\"%s\\\" to group \\... | src/keycloak/starter.clj | emilaasa/keycloak-clojure | 0 | (ns keycloak.starter
(:require [keycloak.admin :refer :all]
[keycloak.user :as user]
[keycloak.deployment :as deployment :refer [keycloak-client client-conf]]
[talltale.core :as talltale :refer :all]
[me.raynes.fs :as fs]))
(defn export-secret! [keycloak-client realm-n... | 57485 | (ns keycloak.starter
(:require [keycloak.admin :refer :all]
[keycloak.user :as user]
[keycloak.deployment :as deployment :refer [keycloak-client client-conf]]
[talltale.core :as talltale :refer :all]
[me.raynes.fs :as fs]))
(defn export-secret! [keycloak-client realm-n... | true | (ns keycloak.starter
(:require [keycloak.admin :refer :all]
[keycloak.user :as user]
[keycloak.deployment :as deployment :refer [keycloak-client client-conf]]
[talltale.core :as talltale :refer :all]
[me.raynes.fs :as fs]))
(defn export-secret! [keycloak-client realm-n... |
[
{
"context": ";;\n;; Copyright © 2020 Sam Ritchie.\n;; This work is based on the Scmutils system of ",
"end": 34,
"score": 0.9997925162315369,
"start": 23,
"tag": "NAME",
"value": "Sam Ritchie"
}
] | test/numerical/quadrature/infinite_test.cljc | dynamic-notebook/functional-numerics | 4 | ;;
;; Copyright © 2020 Sam Ritchie.
;; This work is based on the Scmutils system of MIT/GNU Scheme:
;; Copyright © 2002 Massachusetts Institute of Technology
;;
;; This is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software F... | 14235 | ;;
;; Copyright © 2020 <NAME>.
;; This work is based on the Scmutils system of MIT/GNU Scheme:
;; Copyright © 2002 Massachusetts Institute of Technology
;;
;; This is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Founda... | true | ;;
;; Copyright © 2020 PI:NAME:<NAME>END_PI.
;; This work is based on the Scmutils system of MIT/GNU Scheme:
;; Copyright © 2002 Massachusetts Institute of Technology
;;
;; This is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free S... |
[
{
"context": ";;\n;;\n;; Copyright 2013 Netflix, Inc.\n;;\n;; Licensed under the Apache License",
"end": 32,
"score": 0.7390389442443848,
"start": 25,
"tag": "NAME",
"value": "Netflix"
}
] | src/test/clojure/pigpen/script_test.clj | magomimmo/PigPen | 1 | ;;
;;
;; Copyright 2013 Netflix, Inc.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by ap... | 101717 | ;;
;;
;; Copyright 2013 <NAME>, Inc.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by app... | true | ;;
;;
;; Copyright 2013 PI:NAME:<NAME>END_PI, Inc.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless r... |
[
{
"context": "plication\"\n :platform :GCM}))\n\n(def gcm-token \"XYZ\")\n\n(defn create-platform-endpoint! [creds arn]\n ",
"end": 1753,
"score": 0.4650286138057709,
"start": 1750,
"tag": "KEY",
"value": "XYZ"
}
] | test/eulalie/test/sns.cljc | nervous-systems/eulalie | 93 | (ns eulalie.test.sns
(:require [eulalie.core :as eulalie]
[eulalie.sns]
[eulalie.util.xml :as x]
[glossop.core #? (:clj :refer :cljs :refer-macros) [go-catching <?]]
[eulalie.test.common :as test.common
#? (:clj :refer :cljs :refer-macros) [deftest is]]))
... | 80949 | (ns eulalie.test.sns
(:require [eulalie.core :as eulalie]
[eulalie.sns]
[eulalie.util.xml :as x]
[glossop.core #? (:clj :refer :cljs :refer-macros) [go-catching <?]]
[eulalie.test.common :as test.common
#? (:clj :refer :cljs :refer-macros) [deftest is]]))
... | true | (ns eulalie.test.sns
(:require [eulalie.core :as eulalie]
[eulalie.sns]
[eulalie.util.xml :as x]
[glossop.core #? (:clj :refer :cljs :refer-macros) [go-catching <?]]
[eulalie.test.common :as test.common
#? (:clj :refer :cljs :refer-macros) [deftest is]]))
... |
[
{
"context": "n.company.com/.*\\\" {:username \\\"abc\\\" :password \\\"xyz\\\"}}\n\n would be applied to all repositories with ",
"end": 3853,
"score": 0.6737359166145325,
"start": 3850,
"tag": "PASSWORD",
"value": "xyz"
},
{
"context": " :port (.getPort url)\n :u... | test/conflicts/mined/leiningen-74b0dc5b660434a54c64e161f7d4396087af3763-092ccd7b37288e306aab0563bc69bbb1a10e525/O.clj | nazrhom/vcs-clojure | 3 | (ns leiningen.core.classpath
"Calculate project classpaths by resolving dependencies via Aether."
(:require [cemerick.pomegranate.aether :as aether]
[cemerick.pomegranate :as pomegranate]
[clojure.java.io :as io]
[clojure.string :as str]
[leiningen.core.user :as user]... | 109103 | (ns leiningen.core.classpath
"Calculate project classpaths by resolving dependencies via Aether."
(:require [cemerick.pomegranate.aether :as aether]
[cemerick.pomegranate :as pomegranate]
[clojure.java.io :as io]
[clojure.string :as str]
[leiningen.core.user :as user]... | true | (ns leiningen.core.classpath
"Calculate project classpaths by resolving dependencies via Aether."
(:require [cemerick.pomegranate.aether :as aether]
[cemerick.pomegranate :as pomegranate]
[clojure.java.io :as io]
[clojure.string :as str]
[leiningen.core.user :as user]... |
[
{
"context": "\"signing-key\"\n (it \"example\"\n (should=\n \"c4afb1cc5771d871763a393e44b703571b55cc28424d1a5e86da6ed3c154a4b9\"\n (let [secret-access-key \"wJalrXUtnFEMI/K7M",
"end": 1036,
"score": 0.9996761679649353,
"start": 972,
"tag": "KEY",
"value": "c4afb1cc5771d871763a... | spec/http_kit_aws4/core_spec.clj | Yleisradio/http-kit-aws4 | 10 | (ns http-kit-aws4.core-spec
(:require [speclj.core :refer :all]
[http-kit-aws4.core :refer [string-to-sign signing-key signature authorization request-date]]
[buddy.core.codecs :as codecs]
[clj-time.core :as t]))
(describe "string-to-sign"
(it "post-x-www-form-urlencoded"
(l... | 7642 | (ns http-kit-aws4.core-spec
(:require [speclj.core :refer :all]
[http-kit-aws4.core :refer [string-to-sign signing-key signature authorization request-date]]
[buddy.core.codecs :as codecs]
[clj-time.core :as t]))
(describe "string-to-sign"
(it "post-x-www-form-urlencoded"
(l... | true | (ns http-kit-aws4.core-spec
(:require [speclj.core :refer :all]
[http-kit-aws4.core :refer [string-to-sign signing-key signature authorization request-date]]
[buddy.core.codecs :as codecs]
[clj-time.core :as t]))
(describe "string-to-sign"
(it "post-x-www-form-urlencoded"
(l... |
[
{
"context": "q] (fresh [x] (is-smth q x \"swimmer\"))) => (just \"aardvark\")\n (run* [q] (is-smth \"cheetah\" \"fastest\" \"lan",
"end": 1880,
"score": 0.9676877856254578,
"start": 1872,
"tag": "NAME",
"value": "aardvark"
}
] | test/ai_zootson/core_test.clj | Deraen/ai-zootson | 1 | (ns ai-zootson.core-test
(:refer-clojure :exclude [==])
(:require [midje.sweet :refer :all]
[clojure.core.logic :refer :all]
[clojure.core.logic.pldb :as pldb]
[ai-zootson.core :refer :all]
[ai-zootson.domain :refer :all]
[ai-zootson.questions :refer :all]... | 33629 | (ns ai-zootson.core-test
(:refer-clojure :exclude [==])
(:require [midje.sweet :refer :all]
[clojure.core.logic :refer :all]
[clojure.core.logic.pldb :as pldb]
[ai-zootson.core :refer :all]
[ai-zootson.domain :refer :all]
[ai-zootson.questions :refer :all]... | true | (ns ai-zootson.core-test
(:refer-clojure :exclude [==])
(:require [midje.sweet :refer :all]
[clojure.core.logic :refer :all]
[clojure.core.logic.pldb :as pldb]
[ai-zootson.core :refer :all]
[ai-zootson.domain :refer :all]
[ai-zootson.questions :refer :all]... |
[
{
"context": "t xit]]))\n\n(def cy js/cy)\n\n(def DEFAULT-USERNAME \"admin\")\n(def DEFAULT-PASSWORD \"hunter2\")\n\n(defn login\n ",
"end": 137,
"score": 0.9961984753608704,
"start": 132,
"tag": "USERNAME",
"value": "admin"
},
{
"context": " DEFAULT-USERNAME \"admin\")\n(def DEFAULT... | cypress/integration/dinsro/login_page.cljs | duck1123/dinsro | 2 | (ns dinsro.login-page
(:require-macros [latte.core :refer [describe beforeEach it xit]]))
(def cy js/cy)
(def DEFAULT-USERNAME "admin")
(def DEFAULT-PASSWORD "hunter2")
(defn login
([]
(login DEFAULT-USERNAME DEFAULT-PASSWORD))
([username password]
(.. cy (log "logging in"))
(.. cy (get ":nth-child(1)... | 101327 | (ns dinsro.login-page
(:require-macros [latte.core :refer [describe beforeEach it xit]]))
(def cy js/cy)
(def DEFAULT-USERNAME "admin")
(def DEFAULT-PASSWORD "<PASSWORD>")
(defn login
([]
(login DEFAULT-USERNAME DEFAULT-PASSWORD))
([username password]
(.. cy (log "logging in"))
(.. cy (get ":nth-child... | true | (ns dinsro.login-page
(:require-macros [latte.core :refer [describe beforeEach it xit]]))
(def cy js/cy)
(def DEFAULT-USERNAME "admin")
(def DEFAULT-PASSWORD "PI:PASSWORD:<PASSWORD>END_PI")
(defn login
([]
(login DEFAULT-USERNAME DEFAULT-PASSWORD))
([username password]
(.. cy (log "logging in"))
(.. c... |
[
{
"context": "ontext))\n user-token (e/login (s/context) \"user1\" [\"group-guid2\" \"group-guid3\"])\n admin-rea",
"end": 1932,
"score": 0.8391693830490112,
"start": 1927,
"tag": "USERNAME",
"value": "user1"
},
{
"context": "])\n admin-read-token (e/login (s/con... | system-int-test/test/cmr/system_int_test/admin/admin_permissions_test.clj | sxu123/Common-Metadata-Repository | 0 | (ns cmr.system-int-test.admin.admin-permissions-test
"Verifies the correct administrative permissions are enforced admin only apis"
(:require [clojure.test :refer :all]
[cmr.system-int-test.utils.ingest-util :as ingest]
[cmr.system-int-test.utils.search-util :as search]
[cmr.syst... | 47170 | (ns cmr.system-int-test.admin.admin-permissions-test
"Verifies the correct administrative permissions are enforced admin only apis"
(:require [clojure.test :refer :all]
[cmr.system-int-test.utils.ingest-util :as ingest]
[cmr.system-int-test.utils.search-util :as search]
[cmr.syst... | true | (ns cmr.system-int-test.admin.admin-permissions-test
"Verifies the correct administrative permissions are enforced admin only apis"
(:require [clojure.test :refer :all]
[cmr.system-int-test.utils.ingest-util :as ingest]
[cmr.system-int-test.utils.search-util :as search]
[cmr.syst... |
[
{
"context": "any other, from this software.\n\n(ns\n #^{:author \"Konrad Hinsen\"\n :doc \"Various small macros\"}\n clojure.cont",
"end": 529,
"score": 0.9998847842216492,
"start": 516,
"tag": "NAME",
"value": "Konrad Hinsen"
},
{
"context": "us small macros\"}\n clojure.con... | ThirdParty/clojure-contrib-1.1.0/src/clojure/contrib/macros.clj | allertonm/Couverjure | 3 | ;; Various useful macros
;;
;; Everybody is invited to add their own little macros here!
;;
;; 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
;; distribu... | 49526 | ;; Various useful macros
;;
;; Everybody is invited to add their own little macros here!
;;
;; 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
;; distribu... | true | ;; Various useful macros
;;
;; Everybody is invited to add their own little macros here!
;;
;; 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
;; distribu... |
[
{
"context": "\n [:li \"Flocking Behaviors\"]\n [:li \"Based on Craig Reynold's Flocking Algorithms\"]\n [:li \"Stateless*\"]\n ",
"end": 2613,
"score": 0.9987009167671204,
"start": 2600,
"tag": "NAME",
"value": "Craig Reynold"
}
] | data/train/clojure/222169d5f4a2fd53f29dc5e9526674506583c194stuff.cljc | harshp8l/deep-learning-lang-detection | 84 | (ns state.stuff
(:require [reveal.clj.code-sample :as c]))
(def concerns
[:section
[:h2 "Separation of Concerns"]
[:ul
[:li "Data"]
[:li "Functions"]
[:li "State Management"]
[:li "UI/UX"]]])
(def atomic-bridges
[:section
[:h2 "Atomic Bridges"]
[:ul
[:li "Clojure atoms, agents, ... | 97237 | (ns state.stuff
(:require [reveal.clj.code-sample :as c]))
(def concerns
[:section
[:h2 "Separation of Concerns"]
[:ul
[:li "Data"]
[:li "Functions"]
[:li "State Management"]
[:li "UI/UX"]]])
(def atomic-bridges
[:section
[:h2 "Atomic Bridges"]
[:ul
[:li "Clojure atoms, agents, ... | true | (ns state.stuff
(:require [reveal.clj.code-sample :as c]))
(def concerns
[:section
[:h2 "Separation of Concerns"]
[:ul
[:li "Data"]
[:li "Functions"]
[:li "State Management"]
[:li "UI/UX"]]])
(def atomic-bridges
[:section
[:h2 "Atomic Bridges"]
[:ul
[:li "Clojure atoms, agents, ... |
[
{
"context": " {\n :error-message \"I'm sorry Dave,\\nI'm afraid I can't do that.\"\n })\n ",
"end": 849,
"score": 0.9962844848632812,
"start": 845,
"tag": "NAME",
"value": "Dave"
}
] | desktop/src-common/brain_gain_or_drain/screens/error.clj | RAMart/brain-gain-or-drain | 0 | (ns brain-gain-or-drain.screens.error
(:refer-clojure :exclude [bound?])
(:require [play-clj.core :refer :all]
[brain-gain-or-drain.entity :refer :all]))
(defn- layout
[screen-width screen-height entities]
(for [entity entities]
(case (:type entity)
:error-message (assoc entity
... | 51896 | (ns brain-gain-or-drain.screens.error
(:refer-clojure :exclude [bound?])
(:require [play-clj.core :refer :all]
[brain-gain-or-drain.entity :refer :all]))
(defn- layout
[screen-width screen-height entities]
(for [entity entities]
(case (:type entity)
:error-message (assoc entity
... | true | (ns brain-gain-or-drain.screens.error
(:refer-clojure :exclude [bound?])
(:require [play-clj.core :refer :all]
[brain-gain-or-drain.entity :refer :all]))
(defn- layout
[screen-width screen-height entities]
(for [entity entities]
(case (:type entity)
:error-message (assoc entity
... |
[
{
"context": "ent position (for a movement check)\n; \n; HIVE - by John Yianni\n; \"A Game Buzzing With Possibilities\"\n; http:",
"end": 586,
"score": 0.9998430013656616,
"start": 575,
"tag": "NAME",
"value": "John Yianni"
},
{
"context": "mobile by another Pillbug.\n\n; Clari... | src/hive/core/domain/rules.clj | Trylobot/hive-clj | 2 | (ns hive.core.domain.rules)
(require '[clojure.set :as set])
(use 'hive.core.util)
(require '[hive.core.domain.position :as position])
(require '[hive.core.domain.piece :as piece])
(require '[hive.core.domain.range :as range])
(require '[hive.core.domain.board :as board])
(require '[hive.core.domain.turn :as turn])
; ... | 24830 | (ns hive.core.domain.rules)
(require '[clojure.set :as set])
(use 'hive.core.util)
(require '[hive.core.domain.position :as position])
(require '[hive.core.domain.piece :as piece])
(require '[hive.core.domain.range :as range])
(require '[hive.core.domain.board :as board])
(require '[hive.core.domain.turn :as turn])
; ... | true | (ns hive.core.domain.rules)
(require '[clojure.set :as set])
(use 'hive.core.util)
(require '[hive.core.domain.position :as position])
(require '[hive.core.domain.piece :as piece])
(require '[hive.core.domain.range :as range])
(require '[hive.core.domain.board :as board])
(require '[hive.core.domain.turn :as turn])
; ... |
[
{
"context": "est;MVCC=true\"})\n (db/create-user! {:username \"newuser\"\n :password \"pass\"\n ",
"end": 542,
"score": 0.9987598061561584,
"start": 535,
"tag": "USERNAME",
"value": "newuser"
},
{
"context": "ername \"newuser\"\n ... | test/copa/test/db/recipes.clj | hjrnunes/copa | 2 | (ns copa.test.db.recipes
(:require [copa.db.core :refer [*db*] :as db]
[luminus-migrations.core :as migrations]
[clojure.test :refer :all]
[clojure.java.jdbc :as jdbc]
[copa.config :refer [env]]
[mount.core :as mount])
(:import (java.sql SQLException)))
(... | 41135 | (ns copa.test.db.recipes
(:require [copa.db.core :refer [*db*] :as db]
[luminus-migrations.core :as migrations]
[clojure.test :refer :all]
[clojure.java.jdbc :as jdbc]
[copa.config :refer [env]]
[mount.core :as mount])
(:import (java.sql SQLException)))
(... | true | (ns copa.test.db.recipes
(:require [copa.db.core :refer [*db*] :as db]
[luminus-migrations.core :as migrations]
[clojure.test :refer :all]
[clojure.java.jdbc :as jdbc]
[copa.config :refer [env]]
[mount.core :as mount])
(:import (java.sql SQLException)))
(... |
[
{
"context": "pos 0\n :remote-cursors [{:name \"Alice\"\n :pos [3 2 9",
"end": 3911,
"score": 0.9998406171798706,
"start": 3906,
"tag": "NAME",
"value": "Alice"
},
{
"context": "een\"}\n {:name \... | src/thingy/core.cljs | acobster/live-proto | 0 | (ns thingy.core
(:require
[clojure.datafy :refer [datafy]]
[reagent.core :as r]
[thingy.dom :as dom]
[thingy.events :as events]
[thingy.util :refer [vconj inject-at]]))
(defprotocol EditablePath
(path [this root]))
(extend-protocol EditablePath
js/Element
(path [this root] (dom/path this root)... | 35475 | (ns thingy.core
(:require
[clojure.datafy :refer [datafy]]
[reagent.core :as r]
[thingy.dom :as dom]
[thingy.events :as events]
[thingy.util :refer [vconj inject-at]]))
(defprotocol EditablePath
(path [this root]))
(extend-protocol EditablePath
js/Element
(path [this root] (dom/path this root)... | true | (ns thingy.core
(:require
[clojure.datafy :refer [datafy]]
[reagent.core :as r]
[thingy.dom :as dom]
[thingy.events :as events]
[thingy.util :refer [vconj inject-at]]))
(defprotocol EditablePath
(path [this root]))
(extend-protocol EditablePath
js/Element
(path [this root] (dom/path this root)... |
[
{
"context": "; Copyright (c) Rich Hickey. All rights reserved.\n; The use and distributio",
"end": 30,
"score": 0.9998143911361694,
"start": 19,
"tag": "NAME",
"value": "Rich Hickey"
},
{
"context": "ice, or any other, from this software.\n;\n;\tAuthor: David Miller\n\n; Test o... | Clojure/clojure/samples/attributes/testattribute.clj | AydarLukmanov/ArcadiaGodot | 328 | ; 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... | 109562 | ; 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": "org\\\"\n :api-key \\\"EDC33DA4D977CFDF7B90545565E07324\\\"\n :app-id \\\"admi",
"end": 650,
"score": 0.9996482729911804,
"start": 618,
"tag": "KEY",
"value": "EDC33DA4D977CFDF7B90545565E07324"
},
{
"contex... | src/clj_osf/sparql.clj | structureddynamics/clj-osf | 4 | (ns clj-osf.sparql
"Send a SPARQL Query to a OSF SPARQL web service endpoint
The SPARQL Web service is used to send custom SPARQL queries against the
OSF data structure. This is a general purpose querying Web service.
To use the SPARQL code, you have to:
```
;; Use/require the namespace
(requi... | 16147 | (ns clj-osf.sparql
"Send a SPARQL Query to a OSF SPARQL web service endpoint
The SPARQL Web service is used to send custom SPARQL queries against the
OSF data structure. This is a general purpose querying Web service.
To use the SPARQL code, you have to:
```
;; Use/require the namespace
(requi... | true | (ns clj-osf.sparql
"Send a SPARQL Query to a OSF SPARQL web service endpoint
The SPARQL Web service is used to send custom SPARQL queries against the
OSF data structure. This is a general purpose querying Web service.
To use the SPARQL code, you have to:
```
;; Use/require the namespace
(requi... |
[
{
"context": "({\\\"username\\\": \\\"\"\n (:username user)\n \"\\\"});});\")))])\n\n (if (=",
"end": 1932,
"score": 0.7022519707679749,
"start": 1928,
"tag": "USERNAME",
"value": "user"
},
{
"context": " (str \"ga('set', '&uid', ... | src/clj/web/pages.clj | MNeMoNiCuZ/netrunner | 0 | (ns web.pages
(:require [clj-time.core :as t]
[clj-time.coerce :as c]
[cheshire.core :as json]
[hiccup.page :as hiccup]
[monger.collection :as mc]
[monger.operators :refer :all]
[monger.result :refer [acknowledged?]]
[web.db :refer [d... | 4350 | (ns web.pages
(:require [clj-time.core :as t]
[clj-time.coerce :as c]
[cheshire.core :as json]
[hiccup.page :as hiccup]
[monger.collection :as mc]
[monger.operators :refer :all]
[monger.result :refer [acknowledged?]]
[web.db :refer [d... | true | (ns web.pages
(:require [clj-time.core :as t]
[clj-time.coerce :as c]
[cheshire.core :as json]
[hiccup.page :as hiccup]
[monger.collection :as mc]
[monger.operators :refer :all]
[monger.result :refer [acknowledged?]]
[web.db :refer [d... |
[
{
"context": "iberator + Compojure\"\n\n :url \"https://github.com/ertugrulcetin/patika\"\n\n :author \"Ertuğrul Çetin\"\n\n :license {",
"end": 162,
"score": 0.9947991967201233,
"start": 149,
"tag": "USERNAME",
"value": "ertugrulcetin"
},
{
"context": "ps://github.com/ertugrulcet... | project.clj | ertugrulcetin/patika | 14 | (defproject patika "0.1.11"
:description "Clojure routing library which is an abstraction over Liberator + Compojure"
:url "https://github.com/ertugrulcetin/patika"
:author "Ertuğrul Çetin"
:license {:name "MIT License" :url "https://opensource.org/licenses/MIT"}
:deploy-repositories [["clojars" {:sign-r... | 69266 | (defproject patika "0.1.11"
:description "Clojure routing library which is an abstraction over Liberator + Compojure"
:url "https://github.com/ertugrulcetin/patika"
:author "<NAME>"
:license {:name "MIT License" :url "https://opensource.org/licenses/MIT"}
:deploy-repositories [["clojars" {:sign-releases ... | true | (defproject patika "0.1.11"
:description "Clojure routing library which is an abstraction over Liberator + Compojure"
:url "https://github.com/ertugrulcetin/patika"
:author "PI:NAME:<NAME>END_PI"
:license {:name "MIT License" :url "https://opensource.org/licenses/MIT"}
:deploy-repositories [["clojars" {:... |
[
{
"context": "; Copyright (c) 2017-present Walmart, Inc.\n;\n; Licensed under the Apache License",
"end": 30,
"score": 0.5376325249671936,
"start": 29,
"tag": "NAME",
"value": "W"
}
] | src/com/walmartlabs/lacinia/trace.clj | jeffp42ker/lacinia | 0 | ; Copyright (c) 2017-present Walmart, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to... | 98391 | ; Copyright (c) 2017-present <NAME>almart, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agre... | true | ; Copyright (c) 2017-present PI:NAME:<NAME>END_PIalmart, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicab... |
[
{
"context": "ogic WorkBench -- Combinatory logic, Examples from Raymond Smullyan: How to Mock a Mockingbird\n\n; Copyright ",
"end": 65,
"score": 0.6860241889953613,
"start": 58,
"tag": "NAME",
"value": "Raymond"
},
{
"context": ": How to Mock a Mockingbird\n\n; Copyright (c) 2019 ... | src/lwb/cl/examples/smullyan.clj | esb-lwb/lwb | 22 | ; lwb Logic WorkBench -- Combinatory logic, Examples from Raymond Smullyan: How to Mock a Mockingbird
; Copyright (c) 2019 Burkhardt Renz, THM. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php).
; By... | 17590 | ; lwb Logic WorkBench -- Combinatory logic, Examples from <NAME> Smullyan: How to Mock a Mockingbird
; Copyright (c) 2019 <NAME>, THM. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php).
; By using th... | true | ; lwb Logic WorkBench -- Combinatory logic, Examples from PI:NAME:<NAME>END_PI Smullyan: How to Mock a Mockingbird
; Copyright (c) 2019 PI:NAME:<NAME>END_PI, THM. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/ecl... |
[
{
"context": "ider\n scsynth DSP engine.\"\n :author \"Jeff Rose\"}\n overtone.core.sc\n (:import\n (java.net Ine",
"end": 191,
"score": 0.9998770952224731,
"start": 182,
"tag": "NAME",
"value": "Jeff Rose"
},
{
"context": "ork, at least on my laptopt\n(defonce SERV... | data/clojure/c970c64bc07c2e5c4fba80207793d684_sc.clj | maxim5/code-inspector | 5 | (ns
^{:doc "An interface to the SuperCollider synthesis server.
This is at heart an OSC client library for the SuperCollider
scsynth DSP engine."
:author "Jeff Rose"}
overtone.core.sc
(:import
(java.net InetSocketAddress)
(java.util.regex Pattern)
(java.util.concurrent TimeUni... | 73132 | (ns
^{:doc "An interface to the SuperCollider synthesis server.
This is at heart an OSC client library for the SuperCollider
scsynth DSP engine."
:author "<NAME>"}
overtone.core.sc
(:import
(java.net InetSocketAddress)
(java.util.regex Pattern)
(java.util.concurrent TimeUnit T... | true | (ns
^{:doc "An interface to the SuperCollider synthesis server.
This is at heart an OSC client library for the SuperCollider
scsynth DSP engine."
:author "PI:NAME:<NAME>END_PI"}
overtone.core.sc
(:import
(java.net InetSocketAddress)
(java.util.regex Pattern)
(java.util.concurr... |
[
{
"context": "! *unchecked-math* :warn-on-boxed)\n(ns ^{:author \"John Alan McDonald\" :date \"2016-11-10\"\n :doc \"Artificial data f",
"end": 105,
"score": 0.999872088432312,
"start": 87,
"tag": "NAME",
"value": "John Alan McDonald"
}
] | src/test/clojure/zana/test/functions/record.clj | wahpenayo/zana | 2 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "John Alan McDonald" :date "2016-11-10"
:doc "Artificial data for unit tests." }
zana.test.functions.record
(:require [clojure.string :as s]
[clojure.test :as test]
[clojure.repl :as repl]
... | 9128 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "<NAME>" :date "2016-11-10"
:doc "Artificial data for unit tests." }
zana.test.functions.record
(:require [clojure.string :as s]
[clojure.test :as test]
[clojure.repl :as repl]
[... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "PI:NAME:<NAME>END_PI" :date "2016-11-10"
:doc "Artificial data for unit tests." }
zana.test.functions.record
(:require [clojure.string :as s]
[clojure.test :as test]
[clojure.repl :as repl]... |
[
{
"context": "h an ID\"\n (t/is (= {:data {:attributes {:name \"foo\", :id 1}, :type \"bars\", :id \"1\"}}\n (j",
"end": 1668,
"score": 0.8978468179702759,
"start": 1665,
"tag": "NAME",
"value": "foo"
},
{
"context": " (jsonapi/decorate-request \"bars\" {:name ... | test/jsonapi/core_test.clj | scij/ring.middleware.jsonapi | 0 | (ns jsonapi.core-test
(:require [clojure.test :as t]
[jsonapi.core :as jsonapi]))
(t/deftest decorate-response-test
(t/testing "should work with custom options"
(t/are [expected response opts] (= expected (jsonapi/decorate-response response opts))
{:body {:data {:attributes {:name "foo", :id ... | 101693 | (ns jsonapi.core-test
(:require [clojure.test :as t]
[jsonapi.core :as jsonapi]))
(t/deftest decorate-response-test
(t/testing "should work with custom options"
(t/are [expected response opts] (= expected (jsonapi/decorate-response response opts))
{:body {:data {:attributes {:name "foo", :id ... | true | (ns jsonapi.core-test
(:require [clojure.test :as t]
[jsonapi.core :as jsonapi]))
(t/deftest decorate-response-test
(t/testing "should work with custom options"
(t/are [expected response opts] (= expected (jsonapi/decorate-response response opts))
{:body {:data {:attributes {:name "foo", :id ... |
[
{
"context": "ment)))\n\n(defn add-default-person [seg]\n (if (#{\"praet\" \"winien\"} (:pos seg))\n (assoc seg :person \"te",
"end": 3977,
"score": 0.7650370001792908,
"start": 3972,
"tag": "NAME",
"value": "praet"
},
{
"context": "\n(defn add-default-person [seg]\n (if (#{\"pr... | src/clj_nkjp/polimorf.clj | nathell/clj-nkjp | 3 | (ns clj-nkjp.polimorf
(:require [clojure.math.combinatorics :as combinatorics]
[clojure.string :as string]
[clojure.java.io :as io]
[clj-nkjp.tags :as tags]
[clj-nkjp.tagset :as tagset])
(:import [morfologik.stemming PolishStemmer WordData]))
(let [stemmer (PolishSt... | 83688 | (ns clj-nkjp.polimorf
(:require [clojure.math.combinatorics :as combinatorics]
[clojure.string :as string]
[clojure.java.io :as io]
[clj-nkjp.tags :as tags]
[clj-nkjp.tagset :as tagset])
(:import [morfologik.stemming PolishStemmer WordData]))
(let [stemmer (PolishSt... | true | (ns clj-nkjp.polimorf
(:require [clojure.math.combinatorics :as combinatorics]
[clojure.string :as string]
[clojure.java.io :as io]
[clj-nkjp.tags :as tags]
[clj-nkjp.tagset :as tagset])
(:import [morfologik.stemming PolishStemmer WordData]))
(let [stemmer (PolishSt... |
[
{
"context": "N \"/authcb/facebook\")\n :profile-fields [\"id\" \"displayName\" \"photos\" \"email\" \"name\"]\n :enableProof true}",
"end": 3139,
"score": 0.22734728455543518,
"start": 3128,
"tag": "KEY",
"value": "displayName"
}
] | example/common/src/common/config.cljs | daigotanaka/mern-cljs | 9 | (ns common.config
(:require
[cljs.nodejs :as nodejs]
[mern-utils.backend-lib :refer [local-ip create-logger]]))
(def WWW-SITE-TITLE "MERN-cljs Example")
(def PROD-WWW-DOMAIN "your-domain.com")
(def DEFAULT-LOGIN-PAGE "me")
; "mongodb" or "dynamodb"
(def DATABASE "mongodb")
(def MONGODB-DOMAIN "localhost")
... | 87748 | (ns common.config
(:require
[cljs.nodejs :as nodejs]
[mern-utils.backend-lib :refer [local-ip create-logger]]))
(def WWW-SITE-TITLE "MERN-cljs Example")
(def PROD-WWW-DOMAIN "your-domain.com")
(def DEFAULT-LOGIN-PAGE "me")
; "mongodb" or "dynamodb"
(def DATABASE "mongodb")
(def MONGODB-DOMAIN "localhost")
... | true | (ns common.config
(:require
[cljs.nodejs :as nodejs]
[mern-utils.backend-lib :refer [local-ip create-logger]]))
(def WWW-SITE-TITLE "MERN-cljs Example")
(def PROD-WWW-DOMAIN "your-domain.com")
(def DEFAULT-LOGIN-PAGE "me")
; "mongodb" or "dynamodb"
(def DATABASE "mongodb")
(def MONGODB-DOMAIN "localhost")
... |
[
{
"context": "onDomain]))))}])\n\n(def ^:private persistence-key \"workspace-table-types\")\n(def ^:private VERSION 2)\n\n\n(defn- union-tags [",
"end": 7967,
"score": 0.921136736869812,
"start": 7946,
"tag": "KEY",
"value": "workspace-table-types"
}
] | src/cljs/main/broadfcui/page/workspaces_list.cljs | epam/firecloud-ui | 0 | (ns broadfcui.page.workspaces-list
(:require
[dmohs.react :as react]
[clojure.string :as string]
[broadfcui.common :as common]
[broadfcui.common.components :as comps]
[broadfcui.common.filter :as filter]
[broadfcui.common.flex-utils :as flex]
[broadfcui.common.icons :as icons]
[broadfcui.commo... | 3713 | (ns broadfcui.page.workspaces-list
(:require
[dmohs.react :as react]
[clojure.string :as string]
[broadfcui.common :as common]
[broadfcui.common.components :as comps]
[broadfcui.common.filter :as filter]
[broadfcui.common.flex-utils :as flex]
[broadfcui.common.icons :as icons]
[broadfcui.commo... | true | (ns broadfcui.page.workspaces-list
(:require
[dmohs.react :as react]
[clojure.string :as string]
[broadfcui.common :as common]
[broadfcui.common.components :as comps]
[broadfcui.common.filter :as filter]
[broadfcui.common.flex-utils :as flex]
[broadfcui.common.icons :as icons]
[broadfcui.commo... |
[
{
"context": "m.com/v2/feeds/80428.csv\") {:headers {\"X-ApiKey\" \"MBhfc52ZUaa-DGD3cFtgcB1bmtSSAKwwWmRPR0RjRkJnND0g\"} :body (str stream_id \",\" value) :throw-exceptio",
"end": 302,
"score": 0.999743640422821,
"start": 254,
"tag": "KEY",
"value": "MBhfc52ZUaa-DGD3cFtgcB1bmtSSAKwwWmRPR0RjRk... | data/train/clojure/8f75d6ef0e45805d93f3c38468d8483265e741a7core.clj | harshp8l/deep-learning-lang-detection | 84 | (ns cosm-overtone.core
(:use overtone.live)
(:require [clj-http.client :as client]))
(defn- put-cosm
"Update cosm feed"
[stream_id value]
(if-not (empty? value) (client/put (str "http://api.cosm.com/v2/feeds/80428.csv") {:headers {"X-ApiKey" "MBhfc52ZUaa-DGD3cFtgcB1bmtSSAKwwWmRPR0RjRkJnND0g"} :body (str stre... | 100777 | (ns cosm-overtone.core
(:use overtone.live)
(:require [clj-http.client :as client]))
(defn- put-cosm
"Update cosm feed"
[stream_id value]
(if-not (empty? value) (client/put (str "http://api.cosm.com/v2/feeds/80428.csv") {:headers {"X-ApiKey" "<KEY>"} :body (str stream_id "," value) :throw-exceptions false}))... | true | (ns cosm-overtone.core
(:use overtone.live)
(:require [clj-http.client :as client]))
(defn- put-cosm
"Update cosm feed"
[stream_id value]
(if-not (empty? value) (client/put (str "http://api.cosm.com/v2/feeds/80428.csv") {:headers {"X-ApiKey" "PI:KEY:<KEY>END_PI"} :body (str stream_id "," value) :throw-except... |
[
{
"context": "ve-example\n {:disabled false\n :first-name \"John\"\n :invalid false\n :likes #{:apples :banan",
"end": 156,
"score": 0.9998542070388794,
"start": 152,
"tag": "NAME",
"value": "John"
}
] | packages/reagent/src/cljs/nebula_widgets/kitchen_sink/panels/form_widget/db.cljs | mt0erfztxt/nebula-widgets | 0 | (ns nebula-widgets.kitchen-sink.panels.form-widget.db)
(def default-db
{:form-widget
{:interactive-example
{:disabled false
:first-name "John"
:invalid false
:likes #{:apples :bananas}}}})
| 2932 | (ns nebula-widgets.kitchen-sink.panels.form-widget.db)
(def default-db
{:form-widget
{:interactive-example
{:disabled false
:first-name "<NAME>"
:invalid false
:likes #{:apples :bananas}}}})
| true | (ns nebula-widgets.kitchen-sink.panels.form-widget.db)
(def default-db
{:form-widget
{:interactive-example
{:disabled false
:first-name "PI:NAME:<NAME>END_PI"
:invalid false
:likes #{:apples :bananas}}}})
|
[
{
"context": " {:form-params {:username username\n :passwo",
"end": 743,
"score": 0.9948983788490295,
"start": 735,
"tag": "USERNAME",
"value": "username"
},
{
"context": " :pass... | src/simple_autogoals/core.clj | bi1yeu/simple-autogoals | 4 | (ns simple-autogoals.core
(:require [clj-http.client :as client]
[clj-http.cookies :as cookies]
[cheshire.core :as json]
[clojure.walk :refer [keywordize-keys]])
(:gen-class))
(def ^:const ^:private auto-amount-pattern #"auto_transfer=([0-9|.]*)")
(defn- sign-in [username passw... | 15489 | (ns simple-autogoals.core
(:require [clj-http.client :as client]
[clj-http.cookies :as cookies]
[cheshire.core :as json]
[clojure.walk :refer [keywordize-keys]])
(:gen-class))
(def ^:const ^:private auto-amount-pattern #"auto_transfer=([0-9|.]*)")
(defn- sign-in [username passw... | true | (ns simple-autogoals.core
(:require [clj-http.client :as client]
[clj-http.cookies :as cookies]
[cheshire.core :as json]
[clojure.walk :refer [keywordize-keys]])
(:gen-class))
(def ^:const ^:private auto-amount-pattern #"auto_transfer=([0-9|.]*)")
(defn- sign-in [username passw... |
[
{
"context": "omparison for Clojure\"\n :url \"https://github.com/xsc/version-clj\"\n :license {:name \"MIT\"\n ",
"end": 132,
"score": 0.9995870590209961,
"start": 129,
"tag": "USERNAME",
"value": "xsc"
},
{
"context": "ses/mit\"\n :year 2013\n :ke... | project.clj | xsc/version-clj | 24 | (defproject version-clj "2.0.3-SNAPSHOT"
:description "Version Analysis and Comparison for Clojure"
:url "https://github.com/xsc/version-clj"
:license {:name "MIT"
:url "https://choosealicense.com/licenses/mit"
:year 2013
:key "mit"
:comment "MIT License"}
:depend... | 71437 | (defproject version-clj "2.0.3-SNAPSHOT"
:description "Version Analysis and Comparison for Clojure"
:url "https://github.com/xsc/version-clj"
:license {:name "MIT"
:url "https://choosealicense.com/licenses/mit"
:year 2013
:key "<KEY>"
:comment "MIT License"}
:depe... | true | (defproject version-clj "2.0.3-SNAPSHOT"
:description "Version Analysis and Comparison for Clojure"
:url "https://github.com/xsc/version-clj"
:license {:name "MIT"
:url "https://choosealicense.com/licenses/mit"
:year 2013
:key "PI:KEY:<KEY>END_PI"
:comment "MIT Lice... |
[
{
"context": ";; Copyright 2014-2020 King\n;; Copyright 2009-2014 Ragnar Svensson, Christian Murray\n;; Licensed under the Defold Li",
"end": 111,
"score": 0.9998166561126709,
"start": 96,
"tag": "NAME",
"value": "Ragnar Svensson"
},
{
"context": "-2020 King\n;; Copyright 2009-2014 R... | editor/src/clj/editor/hot_reload.clj | cmarincia/defold | 0 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 Ragnar Svensson, Christian Murray
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together wi... | 67705 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 <NAME>, <NAME>
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together with FAQs at
;; https... | true | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, to... |
[
{
"context": "e {:id \"2000\"\n :given_name \"Louis\"\n :family_name \"Wu\"\n ",
"end": 1009,
"score": 0.9996280670166016,
"start": 1004,
"tag": "NAME",
"value": "Louis"
},
{
"context": "name \"Louis\"\n :family_... | test/com/walmartlabs/lacinia/unions_test.clj | gusbicalho/lacinia | 0 | (ns com.walmartlabs.lacinia.unions-test
(:refer-clojure :exclude [compile])
(:require
[clojure.test :refer [deftest is testing]]
[com.walmartlabs.lacinia.schema :refer [compile tag-with-type]]
[com.walmartlabs.lacinia :as ql]
[com.walmartlabs.test-utils :refer [is-thrown]]
[com.walmartlabs.test-... | 54487 | (ns com.walmartlabs.lacinia.unions-test
(:refer-clojure :exclude [compile])
(:require
[clojure.test :refer [deftest is testing]]
[com.walmartlabs.lacinia.schema :refer [compile tag-with-type]]
[com.walmartlabs.lacinia :as ql]
[com.walmartlabs.test-utils :refer [is-thrown]]
[com.walmartlabs.test-... | true | (ns com.walmartlabs.lacinia.unions-test
(:refer-clojure :exclude [compile])
(:require
[clojure.test :refer [deftest is testing]]
[com.walmartlabs.lacinia.schema :refer [compile tag-with-type]]
[com.walmartlabs.lacinia :as ql]
[com.walmartlabs.test-utils :refer [is-thrown]]
[com.walmartlabs.test-... |
[
{
"context": " (= (:text token) (:val token))))\n \n \"alex@wit.ai\"\n \"alex.lebrun@mail.wit.com\"\n (fn [token _] (and ",
"end": 622,
"score": 0.9999312162399292,
"start": 611,
"tag": "EMAIL",
"value": "alex@wit.ai"
},
{
"context": " (:text token) (:val token))))\n \n \... | resources/languages/ro/corpus/communication.clj | guivn/duckling | 922 | (
{}
"0743115099"
"0743 115 099"
"074 31 15 099"
"0743 11 50 99"
"+4 0743115099"
"004 0743115099"
"0743115099 int 897"
"650-283-4757"
"+1 6502834757"
"+33 4 76095663"
"06 2070 2220"
"(650)-283-4757 ext 897"
(fn [token _] (and (= :phone-number (:dim token))
(= (:text token) (:val token)))... | 124209 | (
{}
"0743115099"
"0743 115 099"
"074 31 15 099"
"0743 11 50 99"
"+4 0743115099"
"004 0743115099"
"0743115099 int 897"
"650-283-4757"
"+1 6502834757"
"+33 4 76095663"
"06 2070 2220"
"(650)-283-4757 ext 897"
(fn [token _] (and (= :phone-number (:dim token))
(= (:text token) (:val token)))... | true | (
{}
"0743115099"
"0743 115 099"
"074 31 15 099"
"0743 11 50 99"
"+4 0743115099"
"004 0743115099"
"0743115099 int 897"
"650-283-4757"
"+1 6502834757"
"+33 4 76095663"
"06 2070 2220"
"(650)-283-4757 ext 897"
(fn [token _] (and (= :phone-number (:dim token))
(= (:text token) (:val token)))... |
[
{
"context": "ual, well, corpora.\r\n(def my-corpora \r\n [{:name \"Shakespeare's Sonnets\", :location \"res/corpora/sonnets/\"} \r\n ",
"end": 250,
"score": 0.7502783536911011,
"start": 237,
"tag": "NAME",
"value": "Shakespeare's"
}
] | wysitutwyg/src-clj/wysitutwyg/routes/landing.clj | MoyTW/clojure-toys | 1 | (ns wysitutwyg.routes.landing
(:require [net.cgrand.enlive-html :as html]
[compojure.core :as compojure])
(:use ring.util.response))
;; This should correspond to actual, well, corpora.
(def my-corpora
[{:name "Shakespeare's Sonnets", :location "res/corpora/sonnets/"}
{:name "Translation ... | 65149 | (ns wysitutwyg.routes.landing
(:require [net.cgrand.enlive-html :as html]
[compojure.core :as compojure])
(:use ring.util.response))
;; This should correspond to actual, well, corpora.
(def my-corpora
[{:name "<NAME> Sonnets", :location "res/corpora/sonnets/"}
{:name "Translation of Lore... | true | (ns wysitutwyg.routes.landing
(:require [net.cgrand.enlive-html :as html]
[compojure.core :as compojure])
(:use ring.util.response))
;; This should correspond to actual, well, corpora.
(def my-corpora
[{:name "PI:NAME:<NAME>END_PI Sonnets", :location "res/corpora/sonnets/"}
{:name "Trans... |
[
{
"context": ";; Copyright 2014-2020 King\n;; Copyright 2009-2014 Ragnar Svensson, Christian Murray\n;; Licensed under the Defold Li",
"end": 111,
"score": 0.9998183250427246,
"start": 96,
"tag": "NAME",
"value": "Ragnar Svensson"
},
{
"context": "-2020 King\n;; Copyright 2009-2014 R... | editor/test/editor/script_api_test.clj | cmarincia/defold | 0 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 Ragnar Svensson, Christian Murray
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together wi... | 26703 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 <NAME>, <NAME>
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together with FAQs at
;; https... | true | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, to... |
[
{
"context": "bmitTx n [[:crux.tx/put {:crux.db/id :ivan :name \"Ivan\"} valid-time]])]\n (t/is (= submitted-tx (.",
"end": 3835,
"score": 0.9895452260971069,
"start": 3831,
"tag": "NAME",
"value": "Ivan"
},
{
"context": " :where [[e :name \"Ivan... | crux-test/test/crux/node_test.clj | tolitius/crux | 0 | (ns crux.node-test
(:require [clojure.test :as t]
[crux.config :as cc]
[crux.io :as cio]
crux.jdbc
crux.kv.memdb
crux.kv.rocksdb
[crux.node :as n]
[clojure.spec.alpha :as s]
[crux.fixtures :as f]
[clojure.java.... | 63621 | (ns crux.node-test
(:require [clojure.test :as t]
[crux.config :as cc]
[crux.io :as cio]
crux.jdbc
crux.kv.memdb
crux.kv.rocksdb
[crux.node :as n]
[clojure.spec.alpha :as s]
[crux.fixtures :as f]
[clojure.java.... | true | (ns crux.node-test
(:require [clojure.test :as t]
[crux.config :as cc]
[crux.io :as cio]
crux.jdbc
crux.kv.memdb
crux.kv.rocksdb
[crux.node :as n]
[clojure.spec.alpha :as s]
[crux.fixtures :as f]
[clojure.java.... |
[
{
"context": "rn \"SET\" (sph/set-value! env \"accounts\" \"user1\" \"John\"))\n (prn \"GET\" (sph/get-value env \"accounts\"",
"end": 388,
"score": 0.997865617275238,
"start": 384,
"tag": "NAME",
"value": "John"
}
] | clj-sophia/src/simple/main.clj | piotr-yuxuan/graalvm-clojure2 | 361 | (ns simple.main
(:require [com.brunobonacci.sophia :as sph])
(:gen-class))
(defn -main []
(let [env (sph/sophia
{;; where to store the files on disk
:sophia.path "/tmp/sophia-test"
;; which logical databases to create
:dbs ["accounts", {:name "transaction... | 119777 | (ns simple.main
(:require [com.brunobonacci.sophia :as sph])
(:gen-class))
(defn -main []
(let [env (sph/sophia
{;; where to store the files on disk
:sophia.path "/tmp/sophia-test"
;; which logical databases to create
:dbs ["accounts", {:name "transaction... | true | (ns simple.main
(:require [com.brunobonacci.sophia :as sph])
(:gen-class))
(defn -main []
(let [env (sph/sophia
{;; where to store the files on disk
:sophia.path "/tmp/sophia-test"
;; which logical databases to create
:dbs ["accounts", {:name "transaction... |
[
{
"context": "; Copyright 2020 Mark Wardle and Eldrix Ltd\n;\n; Licensed under the Apache Li",
"end": 28,
"score": 0.9998583793640137,
"start": 17,
"tag": "NAME",
"value": "Mark Wardle"
},
{
"context": "pe :jetty\n ::http/port 8081\n ::http/host \"0.0.0.0\"\n })\n\n(defn ... | src/com/eldrix/hermes/server.clj | sidharthramesh/hermes | 0 | ; Copyright 2020 Mark Wardle and Eldrix Ltd
;
; 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 ... | 62655 | ; Copyright 2020 <NAME> and Eldrix Ltd
;
; 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 ag... | true | ; Copyright 2020 PI:NAME:<NAME>END_PI and Eldrix Ltd
;
; 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 applic... |
[
{
"context": "; Copyright (c) Chris Houser, Jan 2009. All rights reserved.\n; The use and d",
"end": 30,
"score": 0.9998304843902588,
"start": 18,
"tag": "NAME",
"value": "Chris Houser"
},
{
"context": "; Copyright (c) Chris Houser, Jan 2009. All rights reserved.\n; The use a... | ThirdParty/clojure-contrib-1.1.0/clojurescript/src/clojure/contrib/clojurescript/applet.clj | allertonm/Couverjure | 3 | ; Copyright (c) Chris Houser, Jan 2009. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this softw... | 55020 | ; Copyright (c) <NAME>, <NAME> 2009. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software... | true | ; Copyright (c) PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI 2009. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution... |
[
{
"context": "-09\" :to #inst \"2014-09\" :type :talk}\n {:title \"Bezalel\" :from #inst \"2011-04\" :to #inst \"2011",
"end": 2800,
"score": 0.9982798099517822,
"start": 2793,
"tag": "NAME",
"value": "Bezalel"
}
] | examples/viz/timeline.clj | gaybro8777/geom | 803 | (require '[thi.ng.geom.viz.core :as viz] :reload)
(require '[thi.ng.geom.svg.core :as svg])
(require '[thi.ng.geom.vector :as v])
(require '[thi.ng.color.core :as col])
(require '[thi.ng.math.core :as m :refer [PI TWO_PI]])
(require '[thi.ng.color.core :as col])
(import '[java.util Calendar GregorianCalendar])
(def it... | 65996 | (require '[thi.ng.geom.viz.core :as viz] :reload)
(require '[thi.ng.geom.svg.core :as svg])
(require '[thi.ng.geom.vector :as v])
(require '[thi.ng.color.core :as col])
(require '[thi.ng.math.core :as m :refer [PI TWO_PI]])
(require '[thi.ng.color.core :as col])
(import '[java.util Calendar GregorianCalendar])
(def it... | true | (require '[thi.ng.geom.viz.core :as viz] :reload)
(require '[thi.ng.geom.svg.core :as svg])
(require '[thi.ng.geom.vector :as v])
(require '[thi.ng.color.core :as col])
(require '[thi.ng.math.core :as m :refer [PI TWO_PI]])
(require '[thi.ng.color.core :as col])
(import '[java.util Calendar GregorianCalendar])
(def it... |
[
{
"context": "ng utility functions.\"\n :url \"https://github.com/chartbeat-labs/cljbeat-options\"\n :license {:name \"Apache Licens",
"end": 161,
"score": 0.9976116418838501,
"start": 147,
"tag": "USERNAME",
"value": "chartbeat-labs"
},
{
"context": "ies [[\"releases\" :clojars]]\... | project.clj | chartbeat-labs/cljbeat-options | 1 | (defproject com.chartbeat.cljbeat/options "1.0.0"
:description "Chartbeat specific option parsing utility functions."
:url "https://github.com/chartbeat-labs/cljbeat-options"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/license/LICENSE-2.0.html"}
:dependencies [[org.cloj... | 78870 | (defproject com.chartbeat.cljbeat/options "1.0.0"
:description "Chartbeat specific option parsing utility functions."
:url "https://github.com/chartbeat-labs/cljbeat-options"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/license/LICENSE-2.0.html"}
:dependencies [[org.cloj... | true | (defproject com.chartbeat.cljbeat/options "1.0.0"
:description "Chartbeat specific option parsing utility functions."
:url "https://github.com/chartbeat-labs/cljbeat-options"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/license/LICENSE-2.0.html"}
:dependencies [[org.cloj... |
[
{
"context": "n test-add-patients []\n (let [patients {}\n victor {:id 1 :name \"Victor\"}\n leo {:id 1 :n",
"end": 361,
"score": 0.833908200263977,
"start": 360,
"tag": "NAME",
"value": "v"
},
{
"context": "test-add-patients []\n (let [patients {}\n victor {:i... | hospital_patient/src/hospital_patient/class1.clj | vgeorgo/courses-alura-clojure | 0 | (ns hospital-patient.class1
(:use clojure.pprint))
(defn add-patient
"Add a patient to a list of patients. Throw exception if :id id not provided"
[patients patient]
(if-let [id (:id patient)]
(assoc patients id patient)
(throw (ex-info "Patient :id not provided" {:patient patient}))))
(defn test-add-... | 79236 | (ns hospital-patient.class1
(:use clojure.pprint))
(defn add-patient
"Add a patient to a list of patients. Throw exception if :id id not provided"
[patients patient]
(if-let [id (:id patient)]
(assoc patients id patient)
(throw (ex-info "Patient :id not provided" {:patient patient}))))
(defn test-add-... | true | (ns hospital-patient.class1
(:use clojure.pprint))
(defn add-patient
"Add a patient to a list of patients. Throw exception if :id id not provided"
[patients patient]
(if-let [id (:id patient)]
(assoc patients id patient)
(throw (ex-info "Patient :id not provided" {:patient patient}))))
(defn test-add-... |
[
{
"context": " \"I'm Daniel\"\n ",
"end": 1100,
"score": 0.9994242191314697,
"start": 1094,
"tag": "NAME",
"value": "Daniel"
},
{
"context": " \"I'... | src/cljs/portfolio/home.cljs | DanielRS/portfolio-clojure | 0 | (ns portfolio.home
(:require [cljs.core.async :refer [<! chan close!]]
[goog.dom :as dom]
[goog.dom.classes :as classes]
[goog.events :as events]
[garden.color :refer [as-hex]]
[portfolio.util :refer [event->chan]]
[portfolio.settings :as setting... | 7293 | (ns portfolio.home
(:require [cljs.core.async :refer [<! chan close!]]
[goog.dom :as dom]
[goog.dom.classes :as classes]
[goog.events :as events]
[garden.color :refer [as-hex]]
[portfolio.util :refer [event->chan]]
[portfolio.settings :as setting... | true | (ns portfolio.home
(:require [cljs.core.async :refer [<! chan close!]]
[goog.dom :as dom]
[goog.dom.classes :as classes]
[goog.events :as events]
[garden.color :refer [as-hex]]
[portfolio.util :refer [event->chan]]
[portfolio.settings :as setting... |
[
{
"context": "le \"Documentation\"}\n {:href \"https://github.com/zetawar/zetawar/issues\" :title \"Roadmap\"}\n {:href (sit",
"end": 2241,
"score": 0.999409019947052,
"start": 2234,
"tag": "USERNAME",
"value": "zetawar"
},
{
"context": " \"Follow \"\n [:a {:href \"https:/... | src/cljc/zetawar/views/common.cljc | Zetawar/zetawar | 164 | (ns zetawar.views.common
#?@(:clj
[(:require
[clojure.java.io :as io]
[hiccup.page :refer [html5 include-css include-js]]
[zetawar.site :as site])]
:cljs
[(:require
[cljsjs.react-bootstrap]
[zetawar.site :as site])]))
#?(:clj
(do
(defn ga [tracking-i... | 117179 | (ns zetawar.views.common
#?@(:clj
[(:require
[clojure.java.io :as io]
[hiccup.page :refer [html5 include-css include-js]]
[zetawar.site :as site])]
:cljs
[(:require
[cljsjs.react-bootstrap]
[zetawar.site :as site])]))
#?(:clj
(do
(defn ga [tracking-i... | true | (ns zetawar.views.common
#?@(:clj
[(:require
[clojure.java.io :as io]
[hiccup.page :refer [html5 include-css include-js]]
[zetawar.site :as site])]
:cljs
[(:require
[cljsjs.react-bootstrap]
[zetawar.site :as site])]))
#?(:clj
(do
(defn ga [tracking-i... |
[
{
"context": " ((get roots' target))))\n (let [watch-key (gensym)\n state (if (satisfies? IAtom value)\n ",
"end": 34917,
"score": 0.9402400255203247,
"start": 34911,
"tag": "KEY",
"value": "gensym"
}
] | resources/public/js/compiled/out/om/core.cljs | imaximix/om-tutorials | 1 | (ns om.core
(:require-macros om.core)
(:require [cljsjs.react]
[om.dom :as dom :include-macros true]
[goog.object :as gobj]
[goog.dom :as gdom]
[goog.dom.dataset :as gdomdata])
(:import [goog.ui IdGenerator]))
(def ^{:dynamic true :private true} *parent* nil)
(def ... | 108217 | (ns om.core
(:require-macros om.core)
(:require [cljsjs.react]
[om.dom :as dom :include-macros true]
[goog.object :as gobj]
[goog.dom :as gdom]
[goog.dom.dataset :as gdomdata])
(:import [goog.ui IdGenerator]))
(def ^{:dynamic true :private true} *parent* nil)
(def ... | true | (ns om.core
(:require-macros om.core)
(:require [cljsjs.react]
[om.dom :as dom :include-macros true]
[goog.object :as gobj]
[goog.dom :as gdom]
[goog.dom.dataset :as gdomdata])
(:import [goog.ui IdGenerator]))
(def ^{:dynamic true :private true} *parent* nil)
(def ... |
[
{
"context": "(is (= 7 (count users)))\n (is (= {:id 1 :name \"Albin Jaye\"}\n (first users))))\n (let [playlists (",
"end": 295,
"score": 0.9998838305473328,
"start": 285,
"tag": "NAME",
"value": "Albin Jaye"
},
{
"context": " songs)))\n (is (= {:id 15\n ... | test/scaudill/mixtape/parse_test.clj | voxdolo/mixtape | 0 | (ns scaudill.mixtape.parse-test
(:require [clojure.test :refer :all]
[scaudill.mixtape.parse :as parse]))
(def json (parse/parse "resources/mixtape.json"))
(deftest general-parsing-test
(let [users (:users json)]
(is (= 7 (count users)))
(is (= {:id 1 :name "Albin Jaye"}
(first user... | 98138 | (ns scaudill.mixtape.parse-test
(:require [clojure.test :refer :all]
[scaudill.mixtape.parse :as parse]))
(def json (parse/parse "resources/mixtape.json"))
(deftest general-parsing-test
(let [users (:users json)]
(is (= 7 (count users)))
(is (= {:id 1 :name "<NAME>"}
(first users)))... | true | (ns scaudill.mixtape.parse-test
(:require [clojure.test :refer :all]
[scaudill.mixtape.parse :as parse]))
(def json (parse/parse "resources/mixtape.json"))
(deftest general-parsing-test
(let [users (:users json)]
(is (= 7 (count users)))
(is (= {:id 1 :name "PI:NAME:<NAME>END_PI"}
(... |
[
{
"context": "odified from potemkin, v0.4.3 (https://github.com/ztellman/potemkin), MIT licnensed, Copyright Zachary Tellm",
"end": 73,
"score": 0.9958565831184387,
"start": 65,
"tag": "USERNAME",
"value": "ztellman"
},
{
"context": "b.com/ztellman/potemkin), MIT licnensed, Copyright... | web/src/from/potemkin.clj | Elknar/immutant | 275 | ;; Copied and modified from potemkin, v0.4.3 (https://github.com/ztellman/potemkin), MIT licnensed, Copyright Zachary Tellman
;; Changes:
;; - fast-memoize removed
(ns ^:no-doc from.potemkin
(:require
[from.potemkin namespaces types collections macros utils]))
(from.potemkin.namespaces/import-vars from.potemkin... | 3885 | ;; Copied and modified from potemkin, v0.4.3 (https://github.com/ztellman/potemkin), MIT licnensed, Copyright <NAME>
;; Changes:
;; - fast-memoize removed
(ns ^:no-doc from.potemkin
(:require
[from.potemkin namespaces types collections macros utils]))
(from.potemkin.namespaces/import-vars from.potemkin.namespac... | true | ;; Copied and modified from potemkin, v0.4.3 (https://github.com/ztellman/potemkin), MIT licnensed, Copyright PI:NAME:<NAME>END_PI
;; Changes:
;; - fast-memoize removed
(ns ^:no-doc from.potemkin
(:require
[from.potemkin namespaces types collections macros utils]))
(from.potemkin.namespaces/import-vars from.pot... |
[
{
"context": "! *unchecked-math* :warn-on-boxed)\n(ns ^{:author \"Kristina Lisa Klinkner, John Alan McDonald\" :date \"2016-12-22\"\n :do",
"end": 109,
"score": 0.9998852014541626,
"start": 87,
"tag": "NAME",
"value": "Kristina Lisa Klinkner"
},
{
"context": "n-on-boxed)\n(ns ^{... | src/test/clojure/taiga/test/classify/iris/tree.clj | wahpenayo/taiga | 4 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "Kristina Lisa Klinkner, John Alan McDonald" :date "2016-12-22"
:doc "Iris data classification 1-tree forest example." }
taiga.test.classify.iris.tree
(:require [clojure.test :as test]
[zana.api :as z]
... | 70089 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "<NAME>, <NAME>" :date "2016-12-22"
:doc "Iris data classification 1-tree forest example." }
taiga.test.classify.iris.tree
(:require [clojure.test :as test]
[zana.api :as z]
[taiga.api :as t... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI" :date "2016-12-22"
:doc "Iris data classification 1-tree forest example." }
taiga.test.classify.iris.tree
(:require [clojure.test :as test]
[zana.api :as z]
... |
[
{
"context": "il was actually sent\"))]\n (let [manager-email \"manager@bar.com\"\n manager-password \"manager\"\n m",
"end": 5495,
"score": 0.9999130964279175,
"start": 5480,
"tag": "EMAIL",
"value": "manager@bar.com"
},
{
"context": "ail \"manager@bar.com\"\n ... | test/portal/functional/test/accounts.clj | Purple-Services/portal-service | 4 | (ns portal.functional.test.accounts
(:require [crypto.password.bcrypt :as bcrypt]
[clj-time.format :as t]
[clj-webdriver.taxi :refer :all]
[clojure.edn :as edn]
[clojure.string :as string]
[clojure.test :refer [deftest is testing use-fixtures]]
[... | 114449 | (ns portal.functional.test.accounts
(:require [crypto.password.bcrypt :as bcrypt]
[clj-time.format :as t]
[clj-webdriver.taxi :refer :all]
[clojure.edn :as edn]
[clojure.string :as string]
[clojure.test :refer [deftest is testing use-fixtures]]
[... | true | (ns portal.functional.test.accounts
(:require [crypto.password.bcrypt :as bcrypt]
[clj-time.format :as t]
[clj-webdriver.taxi :refer :all]
[clojure.edn :as edn]
[clojure.string :as string]
[clojure.test :refer [deftest is testing use-fixtures]]
[... |
[
{
"context": "e [overtone.live]))\n\n;; First let's use a tweet by Juan A. Romero\n;; (http://soundcloud.com/rukano)\n;; This code is",
"end": 216,
"score": 0.9998854398727417,
"start": 202,
"tag": "NAME",
"value": "Juan A. Romero"
},
{
"context": "tweet by Juan A. Romero\n;; (http:/... | src/resonate2013/ex05_synthesis.clj | howthebodyworks/resonate-2013 | 0 | (ns
^{:doc "A few examples of more complex audio synthesis,
ported from SuperCollider to Overtone"}
resonate2013.ex05_synthesis
(:use [overtone.live]))
;; First let's use a tweet by Juan A. Romero
;; (http://soundcloud.com/rukano)
;; This code is written in Supercollider's Smalltalk dialect:
;;
;; p... | 83613 | (ns
^{:doc "A few examples of more complex audio synthesis,
ported from SuperCollider to Overtone"}
resonate2013.ex05_synthesis
(:use [overtone.live]))
;; First let's use a tweet by <NAME>
;; (http://soundcloud.com/rukano)
;; This code is written in Supercollider's Smalltalk dialect:
;;
;; play{d=Du... | true | (ns
^{:doc "A few examples of more complex audio synthesis,
ported from SuperCollider to Overtone"}
resonate2013.ex05_synthesis
(:use [overtone.live]))
;; First let's use a tweet by PI:NAME:<NAME>END_PI
;; (http://soundcloud.com/rukano)
;; This code is written in Supercollider's Smalltalk dialect:
;... |
[
{
"context": "iles and adhoc Clojure functions.\"\n :author \"Paul Landes\"}\n zensols.cisql.export\n (:require [clojure",
"end": 188,
"score": 0.9998844861984253,
"start": 177,
"tag": "NAME",
"value": "Paul Landes"
}
] | src/clojure/zensols/cisql/export.clj | plandes/cisql | 12 | (ns ^{:doc "This library contains functions that allow for exporting of table data.
This includes functions to export to CSV files and adhoc Clojure functions."
:author "Paul Landes"}
zensols.cisql.export
(:require [clojure.tools.logging :as log]
[clojure.java.io :as io]
[cloj... | 75868 | (ns ^{:doc "This library contains functions that allow for exporting of table data.
This includes functions to export to CSV files and adhoc Clojure functions."
:author "<NAME>"}
zensols.cisql.export
(:require [clojure.tools.logging :as log]
[clojure.java.io :as io]
[clojure.d... | true | (ns ^{:doc "This library contains functions that allow for exporting of table data.
This includes functions to export to CSV files and adhoc Clojure functions."
:author "PI:NAME:<NAME>END_PI"}
zensols.cisql.export
(:require [clojure.tools.logging :as log]
[clojure.java.io :as io]
... |
[
{
"context": "(vswap! next-eid inc))\n ::name (rand-nth [\"Ivan\" \"Petr\" \"Sergei\" \"Oleg\" \"Yuri\" \"Dmitry\" \"Fedor\" \"",
"end": 141,
"score": 0.9998352527618408,
"start": 137,
"tag": "NAME",
"value": "Ivan"
},
{
"context": " next-eid inc))\n ::name (rand-nth [\... | bench-src/people/core.cljc | davesann/odoyle-rules | 0 | (ns people.core)
(def next-eid (volatile! 0))
(defn random-man []
{:db/id (str (vswap! next-eid inc))
::name (rand-nth ["Ivan" "Petr" "Sergei" "Oleg" "Yuri" "Dmitry" "Fedor" "Denis"])
::last-name (rand-nth ["Ivanov" "Petrov" "Sidorov" "Kovalev" "Kuznetsov" "Voronoi"])
::alias (vec
... | 28375 | (ns people.core)
(def next-eid (volatile! 0))
(defn random-man []
{:db/id (str (vswap! next-eid inc))
::name (rand-nth ["<NAME>" "<NAME>" "<NAME>" "<NAME>" "<NAME>" "<NAME>" "<NAME>" "<NAME>"])
::last-name (rand-nth ["<NAME>" "<NAME>" "<NAME>" "<NAME>" "<NAME>" "<NAME>"])
::alias (vec
... | true | (ns people.core)
(def next-eid (volatile! 0))
(defn random-man []
{:db/id (str (vswap! next-eid inc))
::name (rand-nth ["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"]... |
[
{
"context": ".native\n\n \"Building native iamges.\"\n\n {:author \"Adam Helinski\"}\n\n (:refer-clojure :exclude [agent])\n (:requir",
"end": 73,
"score": 0.9993374943733215,
"start": 60,
"tag": "NAME",
"value": "Adam Helinski"
},
{
"context": "reparation.\"\n\n ;; Inspired by... | script/script/native.clj | rosejn/convex.cljc | 30 | (ns script.native
"Building native iamges."
{:author "Adam Helinski"}
(:refer-clojure :exclude [agent])
(:require [babashka.tasks :as bb.task]
[cheshire.core :as cheshire]
[clojure.java.io]
[clojure.string]))
;;;;;;;;;;
(defn agent
"Starts the native-image-... | 77891 | (ns script.native
"Building native iamges."
{:author "<NAME>"}
(:refer-clojure :exclude [agent])
(:require [babashka.tasks :as bb.task]
[cheshire.core :as cheshire]
[clojure.java.io]
[clojure.string]))
;;;;;;;;;;
(defn agent
"Starts the native-image-agent f... | true | (ns script.native
"Building native iamges."
{:author "PI:NAME:<NAME>END_PI"}
(:refer-clojure :exclude [agent])
(:require [babashka.tasks :as bb.task]
[cheshire.core :as cheshire]
[clojure.java.io]
[clojure.string]))
;;;;;;;;;;
(defn agent
"Starts the native... |
[
{
"context": ".01Z\"\n last {:m0 {:key \"m0\"\n :value 50.0\n",
"end": 577,
"score": 0.9717007875442505,
"start": 575,
"tag": "KEY",
"value": "m0"
},
{
"context": "tion}\n :m1 {:key \"m1\"\n ... | server/test/com/sixsq/slipstream/ssclj/resources/spec/sla_assessment_test.cljc | mF2C/cimi | 0 | (ns com.sixsq.slipstream.ssclj.resources.spec.sla-assessment-test
(:require [clojure.spec.alpha :as s]
[clojure.test :refer [are deftest is]]
[com.sixsq.slipstream.ssclj.resources.common.schema :as schema]
[com.sixsq.slipstream.ssclj.resources.common.utils :as u]
[com.s... | 83969 | (ns com.sixsq.slipstream.ssclj.resources.spec.sla-assessment-test
(:require [clojure.spec.alpha :as s]
[clojure.test :refer [are deftest is]]
[com.sixsq.slipstream.ssclj.resources.common.schema :as schema]
[com.sixsq.slipstream.ssclj.resources.common.utils :as u]
[com.s... | true | (ns com.sixsq.slipstream.ssclj.resources.spec.sla-assessment-test
(:require [clojure.spec.alpha :as s]
[clojure.test :refer [are deftest is]]
[com.sixsq.slipstream.ssclj.resources.common.schema :as schema]
[com.sixsq.slipstream.ssclj.resources.common.utils :as u]
[com.s... |
[
{
"context": "getResponse \"{\\\"method\\\":\\\"login\\\",\\\"userName\\\":\\\"Pavel\\\",\\\"password\\\":\\\"1\\\"}\" 1)) \"Failed! Incorrect use",
"end": 485,
"score": 0.9995958209037781,
"start": 480,
"tag": "USERNAME",
"value": "Pavel"
},
{
"context": "\":\\\"login\\\",\\\"userNa... | Labs/FP/test/chat/logic_test.clj | VerkhovtsovPavel/BSUIR_Labs | 1 | (ns chat.logic-test
(:require [clojure.test :refer :all]
[chat.model.dispatcher :refer :all]
[chat.data.persistance :as pers]
[monger.core :as mcore]))
(defn use-db [f]
(binding [pers/db (mcore/get-db pers/conn "chat-test")]
(f)
(mcore/drop-db pers/conn "chat-test")))
... | 79485 | (ns chat.logic-test
(:require [clojure.test :refer :all]
[chat.model.dispatcher :refer :all]
[chat.data.persistance :as pers]
[monger.core :as mcore]))
(defn use-db [f]
(binding [pers/db (mcore/get-db pers/conn "chat-test")]
(f)
(mcore/drop-db pers/conn "chat-test")))
... | true | (ns chat.logic-test
(:require [clojure.test :refer :all]
[chat.model.dispatcher :refer :all]
[chat.data.persistance :as pers]
[monger.core :as mcore]))
(defn use-db [f]
(binding [pers/db (mcore/get-db pers/conn "chat-test")]
(f)
(mcore/drop-db pers/conn "chat-test")))
... |
[
{
"context": "> empty-state\n (add-player \"tim\" \"sharon\" \"louise\")\n (add-c",
"end": 171,
"score": 0.9986152648925781,
"start": 168,
"tag": "NAME",
"value": "tim"
},
{
"context": "y-state\n (add-player \"tim\" \"... | test/bidpitch/test/scenarios.clj | tlicata/bidpitch | 1 | (ns bidpitch.test.scenarios
(:use clojure.test
bidpitch.cards
bidpitch.game))
(def dont-make-bid (-> empty-state
(add-player "tim" "sharon" "louise")
(add-cards "tim" ["AC" "KC" "JC"])
(add-cards "sharon" ["2D" "4D" "6D"])
... | 4613 | (ns bidpitch.test.scenarios
(:use clojure.test
bidpitch.cards
bidpitch.game))
(def dont-make-bid (-> empty-state
(add-player "<NAME>" "<NAME>" "<NAME>")
(add-cards "<NAME>" ["AC" "KC" "JC"])
(add-cards "<NAME>" ["2D" "4D" "6D"])
... | true | (ns bidpitch.test.scenarios
(:use clojure.test
bidpitch.cards
bidpitch.game))
(def dont-make-bid (-> empty-state
(add-player "PI:NAME:<NAME>END_PI" "PI:NAME:<NAME>END_PI" "PI:NAME:<NAME>END_PI")
(add-cards "PI:NAME:<NAME>END_PI" ["AC" "KC" "JC"])
... |
[
{
"context": " :hits \"Ergebnisse\"}\n :login {:nickname \"Benutzername\"\n :password \"Passwort\"\n ",
"end": 3018,
"score": 0.9994852542877197,
"start": 3006,
"tag": "USERNAME",
"value": "Benutzername"
},
{
"context": "ickname \"Benutzername\"\n ... | src/discuss/translations.cljs | hhucn/discuss | 4 | (ns discuss.translations
(:require [discuss.utils.common :as lib]
[cljs.spec.alpha :as s]))
(def available [[:de "deutsch"]
[:en "english"]])
(def translations
{:de {:common {:and "und"
:argue/con "denkt nicht, dass"
:argue/that "denkt, dass"
... | 12112 | (ns discuss.translations
(:require [discuss.utils.common :as lib]
[cljs.spec.alpha :as s]))
(def available [[:de "deutsch"]
[:en "english"]])
(def translations
{:de {:common {:and "und"
:argue/con "denkt nicht, dass"
:argue/that "denkt, dass"
... | true | (ns discuss.translations
(:require [discuss.utils.common :as lib]
[cljs.spec.alpha :as s]))
(def available [[:de "deutsch"]
[:en "english"]])
(def translations
{:de {:common {:and "und"
:argue/con "denkt nicht, dass"
:argue/that "denkt, dass"
... |
[
{
"context": "; Copyright (c) Anna Shchiptsova, IIASA. All rights reserved.\r\n; The use and dis",
"end": 34,
"score": 0.9998927712440491,
"start": 18,
"tag": "NAME",
"value": "Anna Shchiptsova"
},
{
"context": "ides some I/O utility functions.\"\r\n :author \"Anna Shchiptso... | src/utilities_clj/file.clj | shchipts/utilities-clj | 0 | ; Copyright (c) Anna Shchiptsova, IIASA. All rights reserved.
; The use and distribution terms for this software are covered by the
; MIT License (http://opensource.org/licenses/MIT)
; which can be found in the file LICENSE at the root of this distribution.
; By using this software in any fashion, you are... | 114562 | ; Copyright (c) <NAME>, IIASA. All rights reserved.
; The use and distribution terms for this software are covered by the
; MIT License (http://opensource.org/licenses/MIT)
; which can be found in the file LICENSE at the root of this distribution.
; By using this software in any fashion, you are agreeing ... | true | ; Copyright (c) PI:NAME:<NAME>END_PI, IIASA. All rights reserved.
; The use and distribution terms for this software are covered by the
; MIT License (http://opensource.org/licenses/MIT)
; which can be found in the file LICENSE at the root of this distribution.
; By using this software in any fashion, you... |
[
{
"context": "\n; Copyright 2013 Anthony Campbell (anthonycampbell.co.uk)\n;\n; Licensed under the Ap",
"end": 34,
"score": 0.9998769760131836,
"start": 18,
"tag": "NAME",
"value": "Anthony Campbell"
},
{
"context": "\n; Copyright 2013 Anthony Campbell (anthonycampbell.co.uk)\n;\n; L... | src/uk/co/anthonycampbell/imdb/log.clj | acampbell3000/clojure-imdb-parser | 1 |
; Copyright 2013 Anthony Campbell (anthonycampbell.co.uk)
;
; 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 applicabl... | 120287 |
; Copyright 2013 <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/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in wr... | true |
; Copyright 2013 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 the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by appl... |
[
{
"context": " of their house.\",\n :director \"Tim Burton\",\n :genres [\"Comedy\" \"Fantas",
"end": 548,
"score": 0.9998945593833923,
"start": 538,
"tag": "NAME",
"value": "Tim Burton"
},
{
"context": " :year \"1988\",\n ... | workspace/hello-web-compojure-sweet-part-3/src/hello_web_compojure_sweet/movies.clj | muthuishere/clojure-web-fundamentals | 0 | (ns hello-web-compojure-sweet.movies
(:require
[compojure.api.sweet :as sw]
[ring.middleware.defaults :refer [wrap-defaults site-defaults api-defaults]]
[ring.util.http-response :as http-response]
)
(:use [org.httpkit.server :only [run-server]])
)
(def movies (... | 73684 | (ns hello-web-compojure-sweet.movies
(:require
[compojure.api.sweet :as sw]
[ring.middleware.defaults :refer [wrap-defaults site-defaults api-defaults]]
[ring.util.http-response :as http-response]
)
(:use [org.httpkit.server :only [run-server]])
)
(def movies (... | true | (ns hello-web-compojure-sweet.movies
(:require
[compojure.api.sweet :as sw]
[ring.middleware.defaults :refer [wrap-defaults site-defaults api-defaults]]
[ring.util.http-response :as http-response]
)
(:use [org.httpkit.server :only [run-server]])
)
(def movies (... |
[
{
"context": "! *unchecked-math* :warn-on-boxed)\n(ns ^{:author \"John Alan McDonald\" :date \"2016-07-08\"\n :doc \"Profile pyramid f",
"end": 105,
"score": 0.9998689889907837,
"start": 87,
"tag": "NAME",
"value": "John Alan McDonald"
}
] | src/scripts/clojure/taiga/scripts/profile/pyramid.clj | wahpenayo/taiga | 4 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "John Alan McDonald" :date "2016-07-08"
:doc "Profile pyramid function probability forest example." }
taiga.scripts.profile.pyramid
(:require [clojure.test :as test]
[zana.api :as z]
[taiga.... | 5071 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "<NAME>" :date "2016-07-08"
:doc "Profile pyramid function probability forest example." }
taiga.scripts.profile.pyramid
(:require [clojure.test :as test]
[zana.api :as z]
[taiga.test.classif... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "PI:NAME:<NAME>END_PI" :date "2016-07-08"
:doc "Profile pyramid function probability forest example." }
taiga.scripts.profile.pyramid
(:require [clojure.test :as test]
[zana.api :as z]
[taig... |
[
{
"context": ";; Copyright (c) Nicola Mometto, Rich Hickey & contributors.\n;; The use and dis",
"end": 33,
"score": 0.9998559951782227,
"start": 19,
"tag": "NAME",
"value": "Nicola Mometto"
},
{
"context": ";; Copyright (c) Nicola Mometto, Rich Hickey & contributors.\n;; The... | tools.emitter/clojureRB/resources/tools.emitter.jvm-tools.emitter.jvm-0.1.0-beta5/src/main/clojure/clojure/tools/emitter/jvm/intrinsics.clj | abhi18av/ClojureToolsOCaml | 0 | ;; Copyright (c) Nicola Mometto, Rich Hickey & contributors.
;; 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 s... | 77 | ;; Copyright (c) <NAME>, <NAME> & contributors.
;; 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 an... | true | ;; Copyright (c) PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI & contributors.
;; 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.
;; ... |
[
{
"context": "e :challenger {:card kate-choice})))\n akiko \"Akiko Nisei: Head Case\"\n kate \"Kate \\\"Mac\\\" McCaffrey: D",
"end": 571,
"score": 0.9976896047592163,
"start": 560,
"tag": "NAME",
"value": "Akiko Nisei"
},
{
"context": "\n akiko \"Akiko Nisei: Head Cas... | test/clj/game_test/cards/events.clj | rezwits/carncode | 15 | (ns game-test.cards.events
(:require [game.core :as core]
[game-test.core :refer :all]
[game-test.utils :refer :all]
[game-test.macros :refer :all]
[clojure.test :refer :all]))
(use-fixtures :once load-all-cards (partial reset-card-defs "events"))
;; Rebirth
(let [cho... | 104276 | (ns game-test.cards.events
(:require [game.core :as core]
[game-test.core :refer :all]
[game-test.utils :refer :all]
[game-test.macros :refer :all]
[clojure.test :refer :all]))
(use-fixtures :once load-all-cards (partial reset-card-defs "events"))
;; Rebirth
(let [cho... | true | (ns game-test.cards.events
(:require [game.core :as core]
[game-test.core :refer :all]
[game-test.utils :refer :all]
[game-test.macros :refer :all]
[clojure.test :refer :all]))
(use-fixtures :once load-all-cards (partial reset-card-defs "events"))
;; Rebirth
(let [cho... |
[
{
"context": "dant.com/tagalong_dispatch\")\n :username \"ftedictiontiverstrustrin\"\n :password \"20c9f6fee4da63003649f0b1d6b",
"end": 259,
"score": 0.9993930459022522,
"start": 235,
"tag": "USERNAME",
"value": "ftedictiontiverstrustrin"
},
{
"context": "e \"ftedic... | data/train/clojure/d7c365dcb3e6bad061caa054d5d64b729564edfbcore.clj | harshp8l/deep-learning-lang-detection | 84 | (ns tagalong-middle.core
(:gen-class)
(:require [com.ashafa.clutch :as c]
[clojure.core.async :as a]))
(def dispatch-db (assoc (cemerick.url/url "https://dwoodlock.cloudant.com/tagalong_dispatch")
:username "ftedictiontiverstrustrin"
:password "20c9f6fee4da63003649f0b1d6b6ee2fbb6fe3... | 28912 | (ns tagalong-middle.core
(:gen-class)
(:require [com.ashafa.clutch :as c]
[clojure.core.async :as a]))
(def dispatch-db (assoc (cemerick.url/url "https://dwoodlock.cloudant.com/tagalong_dispatch")
:username "ftedictiontiverstrustrin"
:password "<PASSWORD>"))
(def main-db (assoc (ce... | true | (ns tagalong-middle.core
(:gen-class)
(:require [com.ashafa.clutch :as c]
[clojure.core.async :as a]))
(def dispatch-db (assoc (cemerick.url/url "https://dwoodlock.cloudant.com/tagalong_dispatch")
:username "ftedictiontiverstrustrin"
:password "PI:PASSWORD:<PASSWORD>END_PI"))
(def ... |
[
{
"context": "lename fan-out part-limit n]\n (let [field-keys #{:a :b :c :d :e :f}\n families {:bc #{:b :c}, :de #{:d :e}}\n ",
"end": 3174,
"score": 0.9914588928222656,
"start": 3158,
"tag": "KEY",
"value": "a :b :c :d :e :f"
}
] | dev/user.clj | greglook/merkle-db | 47 | (ns user
"Custom repl customization for local development."
(:require
[blocks.core :as block]
[blocks.store.file :refer [file-block-store]]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[clojure.repl :refer :all]
[clojure.set :as set]
[clojure.stacktrace :refer [print-cause-trace]]... | 12540 | (ns user
"Custom repl customization for local development."
(:require
[blocks.core :as block]
[blocks.store.file :refer [file-block-store]]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[clojure.repl :refer :all]
[clojure.set :as set]
[clojure.stacktrace :refer [print-cause-trace]]... | true | (ns user
"Custom repl customization for local development."
(:require
[blocks.core :as block]
[blocks.store.file :refer [file-block-store]]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[clojure.repl :refer :all]
[clojure.set :as set]
[clojure.stacktrace :refer [print-cause-trace]]... |
[
{
"context": "defn mapify\n \"Return a seq of maps like {:name \\\"Edward Cullen\\\" :glitter-index 10}\"\n [rows]\n (map (fn [unmapp",
"end": 593,
"score": 0.9998323321342468,
"start": 580,
"tag": "NAME",
"value": "Edward Cullen"
}
] | ch4/fwpd/src/fwpd/core.clj | jeyoor/brave-clojure-notes | 0 | (ns fwpd.core)
(def filename "suspects.csv")
(defn reload
"reload this file"
[]
(do
(load-file "src/fwpd/core.clj")
(use 'fwpd.core)))
(def vamp-keys [:name :glitter-index])
(defn str->int
[str]
(Integer. str))
(def conversions {:name identity
:glitter-index str->int})
(defn con... | 119006 | (ns fwpd.core)
(def filename "suspects.csv")
(defn reload
"reload this file"
[]
(do
(load-file "src/fwpd/core.clj")
(use 'fwpd.core)))
(def vamp-keys [:name :glitter-index])
(defn str->int
[str]
(Integer. str))
(def conversions {:name identity
:glitter-index str->int})
(defn con... | true | (ns fwpd.core)
(def filename "suspects.csv")
(defn reload
"reload this file"
[]
(do
(load-file "src/fwpd/core.clj")
(use 'fwpd.core)))
(def vamp-keys [:name :glitter-index])
(defn str->int
[str]
(Integer. str))
(def conversions {:name identity
:glitter-index str->int})
(defn con... |
[
{
"context": "ho-brings answers)\n [\"Miles McInnis\"] unpopular-date)}\n (sut/who-brings u",
"end": 631,
"score": 0.9992643594741821,
"start": 618,
"tag": "NAME",
"value": "Miles McInnis"
}
] | test/breakfastbot/handlers/who_brings_test.clj | studer-l/breakfastbot | 0 | (ns breakfastbot.handlers.who-brings-test
(:require [breakfastbot.handlers.who-brings :as sut]
[clojure.test :as t]
[breakfastbot.handlers.common :refer [answers]]
[breakfastbot.db-test :refer [prepare-mock-db unpopular-date
random-date]]))... | 55144 | (ns breakfastbot.handlers.who-brings-test
(:require [breakfastbot.handlers.who-brings :as sut]
[clojure.test :as t]
[breakfastbot.handlers.common :refer [answers]]
[breakfastbot.db-test :refer [prepare-mock-db unpopular-date
random-date]]))... | true | (ns breakfastbot.handlers.who-brings-test
(:require [breakfastbot.handlers.who-brings :as sut]
[clojure.test :as t]
[breakfastbot.handlers.common :refer [answers]]
[breakfastbot.db-test :refer [prepare-mock-db unpopular-date
random-date]]))... |
[
{
"context": "s a value that looks like a list\n;; \n(seq {:name \"Billy\" :age 43})\n;; => ([:name \"Billy\"] [:age 43])\n;; W",
"end": 1506,
"score": 0.9996615648269653,
"start": 1501,
"tag": "NAME",
"value": "Billy"
},
{
"context": "\n;; \n(seq {:name \"Billy\" :age 43})\n;; => ([... | code/clojure-noob/src/clojure_noob/ch4.clj | itsrainingmani/learn-clojure-in-public | 7 | (ns clojure-noob.ch4
(:gen-class))
;; If you can perform all of an abstraction’s operations on an object, then that object is an instance of the abstraction
;;
;; A sequence is a collection of elements organized in linear order vs an unordered collection or a graph without a before-after
;; relationship between its... | 11092 | (ns clojure-noob.ch4
(:gen-class))
;; If you can perform all of an abstraction’s operations on an object, then that object is an instance of the abstraction
;;
;; A sequence is a collection of elements organized in linear order vs an unordered collection or a graph without a before-after
;; relationship between its... | true | (ns clojure-noob.ch4
(:gen-class))
;; If you can perform all of an abstraction’s operations on an object, then that object is an instance of the abstraction
;;
;; A sequence is a collection of elements organized in linear order vs an unordered collection or a graph without a before-after
;; relationship between its... |
[
{
"context": "\n :dialog-password, \"dialog-password\"\n :dialog-question, ",
"end": 15763,
"score": 0.9974222183227539,
"start": 15748,
"tag": "PASSWORD",
"value": "dialog-password"
}
] | src/notify_send/icons.clj | willGuimont/interval | 0 | (ns notify-send.icons)
(def icons {:address-book-new, "address-book-new"
:application-exit, "application-exit"
:appointment-new, "appointment-new"
:call-start, "call-start"
:call-stop, ... | 13068 | (ns notify-send.icons)
(def icons {:address-book-new, "address-book-new"
:application-exit, "application-exit"
:appointment-new, "appointment-new"
:call-start, "call-start"
:call-stop, ... | true | (ns notify-send.icons)
(def icons {:address-book-new, "address-book-new"
:application-exit, "application-exit"
:appointment-new, "appointment-new"
:call-start, "call-start"
:call-stop, ... |
[
{
"context": "; Copyright (c) 2017-present Walmart, Inc.\n;\n; Licensed under the Apache License, Vers",
"end": 36,
"score": 0.9919411540031433,
"start": 29,
"tag": "NAME",
"value": "Walmart"
}
] | src/com/walmartlabs/lacinia/immutant/subscriptions.clj | dissoc/lacinia-immutant | 0 | ; Copyright (c) 2017-present Walmart, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to... | 15175 | ; Copyright (c) 2017-present <NAME>, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to ... | true | ; Copyright (c) 2017-present PI:NAME:<NAME>END_PI, Inc.
;
; Licensed under the Apache License, Version 2.0 (the "License")
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law... |
[
{
"context": "])\n\n(defn deep-merge\n {:license \"Copyright © 2019 James Reeves\n\nDistributed under the Eclipse Public License eit",
"end": 99,
"score": 0.9998618364334106,
"start": 87,
"tag": "NAME",
"value": "James Reeves"
},
{
"context": "\n ... | project.clj | rksm/clj-runtime-completion | 83 | (require '[clojure.string :as string])
(defn deep-merge
{:license "Copyright © 2019 James Reeves
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version."}
([])
([a] a)
([a b]
(when (or a b)
(letfn [(merge-entry [m e]
(let [k (key e)
... | 12792 | (require '[clojure.string :as string])
(defn deep-merge
{:license "Copyright © 2019 <NAME>
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version."}
([])
([a] a)
([a b]
(when (or a b)
(letfn [(merge-entry [m e]
(let [k (key e)
... | true | (require '[clojure.string :as string])
(defn deep-merge
{:license "Copyright © 2019 PI:NAME:<NAME>END_PI
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version."}
([])
([a] a)
([a b]
(when (or a b)
(letfn [(merge-entry [m e]
(let [k (key e... |
[
{
"context": "lution for 125. Infix Calculator\n\n\n;;; Your friend Joe is always whining about Lisps using the prefix no",
"end": 61,
"score": 0.9993175268173218,
"start": 58,
"tag": "NAME",
"value": "Joe"
}
] | solutions/easy/135.clj | realead/my4clojure | 0 | ;;;; Solution for 125. Infix Calculator
;;; Your friend Joe is always whining about Lisps using the prefix notation for math. Show him how you could easily write a function that does math using the infix notation. Is your favorite language that flexible, Joe? Write a function that accepts a variable length mathematic... | 122362 | ;;;; Solution for 125. Infix Calculator
;;; Your friend <NAME> is always whining about Lisps using the prefix notation for math. Show him how you could easily write a function that does math using the infix notation. Is your favorite language that flexible, Joe? Write a function that accepts a variable length mathema... | true | ;;;; Solution for 125. Infix Calculator
;;; Your friend PI:NAME:<NAME>END_PI is always whining about Lisps using the prefix notation for math. Show him how you could easily write a function that does math using the infix notation. Is your favorite language that flexible, Joe? Write a function that accepts a variable ... |
[
{
"context": "isode :NEWHOPE)\n {:id 1000\n :name \"Luke\"\n :home_planet \"Tatooine\"\n :appea",
"end": 270,
"score": 0.9996055960655212,
"start": 266,
"tag": "NAME",
"value": "Luke"
},
{
"context": "MPIRE\" \"JEDI\"]}\n {:id 2000\n :nam... | examples/starwars/src/starwars/resolver/human.clj | eunmin/duct-lacinia | 37 | (ns starwars.resolver.human
(:require [integrant.core :as ig]))
(defmethod ig/init-key :starwars.resolver.human/get-hero [_ _]
(fn [context arguments value]
(let [{:keys [episode]} arguments]
(if (= episode :NEWHOPE)
{:id 1000
:name "Luke"
:home_planet "Tatooine"
:appea... | 52970 | (ns starwars.resolver.human
(:require [integrant.core :as ig]))
(defmethod ig/init-key :starwars.resolver.human/get-hero [_ _]
(fn [context arguments value]
(let [{:keys [episode]} arguments]
(if (= episode :NEWHOPE)
{:id 1000
:name "<NAME>"
:home_planet "Tatooine"
:app... | true | (ns starwars.resolver.human
(:require [integrant.core :as ig]))
(defmethod ig/init-key :starwars.resolver.human/get-hero [_ _]
(fn [context arguments value]
(let [{:keys [episode]} arguments]
(if (= episode :NEWHOPE)
{:id 1000
:name "PI:NAME:<NAME>END_PI"
:home_planet "Tatooine"... |
[
{
"context": "l License Management.\"\n :url \"https://github.com/brianide/lein-license\"\n :license {:name \"MIT License\"\n ",
"end": 150,
"score": 0.9983143210411072,
"start": 142,
"tag": "USERNAME",
"value": "brianide"
},
{
"context": "://opensource.org/licenses/MIT\"\n ... | project.clj | brianide/lein-license | 0 | (defproject org.clojars.brianide/lein-license "0.1.10-SNAPSHOT"
:description "Project-Level License Management."
:url "https://github.com/brianide/lein-license"
:license {:name "MIT License"
:url "https://opensource.org/licenses/MIT"
:key "mit"
:year 2015}
:dependencies [^:so... | 95368 | (defproject org.clojars.brianide/lein-license "0.1.10-SNAPSHOT"
:description "Project-Level License Management."
:url "https://github.com/brianide/lein-license"
:license {:name "MIT License"
:url "https://opensource.org/licenses/MIT"
:key "<KEY>"
:year 2015}
:dependencies [^:... | true | (defproject org.clojars.brianide/lein-license "0.1.10-SNAPSHOT"
:description "Project-Level License Management."
:url "https://github.com/brianide/lein-license"
:license {:name "MIT License"
:url "https://opensource.org/licenses/MIT"
:key "PI:KEY:<KEY>END_PI"
:year 2015}
:dep... |
[
{
"context": "ne-id])))))))\n\n(defsc PersonForm [this {:keys [:db/id ::phone-numbers]}]\n {:query [:db/id ::pers",
"end": 6378,
"score": 0.6015798449516296,
"start": 6376,
"tag": "KEY",
"value": "id"
}
] | src/book/book/forms/form_state_demo_2.cljs | d4hines/fulcro | 0 | (ns book.forms.form-state-demo-2
(:require [devcards.core]
[fulcro.ui.elements :as ele]
[fulcro.server :as server]
[fulcro.client.mutations :as m :refer [defmutation]]
[fulcro.ui.bootstrap3 :as bs]
[fulcro.client.primitives :as prim :refer [defsc]]
... | 120177 | (ns book.forms.form-state-demo-2
(:require [devcards.core]
[fulcro.ui.elements :as ele]
[fulcro.server :as server]
[fulcro.client.mutations :as m :refer [defmutation]]
[fulcro.ui.bootstrap3 :as bs]
[fulcro.client.primitives :as prim :refer [defsc]]
... | true | (ns book.forms.form-state-demo-2
(:require [devcards.core]
[fulcro.ui.elements :as ele]
[fulcro.server :as server]
[fulcro.client.mutations :as m :refer [defmutation]]
[fulcro.ui.bootstrap3 :as bs]
[fulcro.client.primitives :as prim :refer [defsc]]
... |
[
{
"context": "))\n ([file new-name cred]\n (let [key (str (UUID/randomUUID) \"/\" new-name)\n ;resized (resize file 640",
"end": 1102,
"score": 0.8212102055549622,
"start": 1092,
"tag": "KEY",
"value": "randomUUID"
}
] | src/where_was_that_photo_taken/helpers/filehelpers.clj | itmeze/where-was-that-photo-taken | 0 | (ns where-was-that-photo-taken.helpers.filehelpers
(:require [clojure.java.io :as io]
[aws.sdk.s3 :as s3]
[noir.io :as noir-io])
(:import [java.io File ByteArrayOutputStream ByteArrayInputStream]
(main.java JpegGeoTagReader)
(java.util UUID)
(java.net URLDeco... | 27553 | (ns where-was-that-photo-taken.helpers.filehelpers
(:require [clojure.java.io :as io]
[aws.sdk.s3 :as s3]
[noir.io :as noir-io])
(:import [java.io File ByteArrayOutputStream ByteArrayInputStream]
(main.java JpegGeoTagReader)
(java.util UUID)
(java.net URLDeco... | true | (ns where-was-that-photo-taken.helpers.filehelpers
(:require [clojure.java.io :as io]
[aws.sdk.s3 :as s3]
[noir.io :as noir-io])
(:import [java.io File ByteArrayOutputStream ByteArrayInputStream]
(main.java JpegGeoTagReader)
(java.util UUID)
(java.net URLDeco... |
[
{
"context": " {:key :data}]\n [{:name \\\"Chris\\\"\n :data \\\"1\\\"}\n ",
"end": 3750,
"score": 0.9831365346908569,
"start": 3745,
"tag": "NAME",
"value": "Chris"
},
{
"context": " :data \\\"1\\\"}\n ... | src/hara/function/task/bulk.clj | zcaudate/hara | 309 | (ns hara.function.task.bulk
(:require [hara.print :as print]
[hara.core.base.result :as result]
[hara.string :as string]
[hara.data.base.map :as map])
(:refer-clojure :exclude [format]))
(defn bulk-items
"processes each item given a input"
{:added "3.0"}
[task f inputs {:k... | 3295 | (ns hara.function.task.bulk
(:require [hara.print :as print]
[hara.core.base.result :as result]
[hara.string :as string]
[hara.data.base.map :as map])
(:refer-clojure :exclude [format]))
(defn bulk-items
"processes each item given a input"
{:added "3.0"}
[task f inputs {:k... | true | (ns hara.function.task.bulk
(:require [hara.print :as print]
[hara.core.base.result :as result]
[hara.string :as string]
[hara.data.base.map :as map])
(:refer-clojure :exclude [format]))
(defn bulk-items
"processes each item given a input"
{:added "3.0"}
[task f inputs {:k... |
[
{
"context": "y-seq (even-numbers (+ n 2))))))\n\n\n(def csv-data \"Edward Cullen,10\\nBella Swan,0\\nCharlie Swan,0\\nJacob Black,3\\n",
"end": 787,
"score": 0.9998146295547485,
"start": 774,
"tag": "NAME",
"value": "Edward Cullen"
},
{
"context": "rs (+ n 2))))))\n\n\n(def csv-data... | fonclojure/src/com/matija/vampire_data.clj | matija94/show-me-the-code | 1 | (ns com.matija.vampire-data)
(defn my-reduce
[f acc s]
(loop [s (seq s) res acc]
(if s
(let [[part & remaining] s]
(recur remaining (f res part)))
res)))
(defn my-reduce-v2
[f acc s]
(loop [res acc s (seq s)]
(if s
(recur (f res (first s)) (next s))
res)))
(println (m... | 39709 | (ns com.matija.vampire-data)
(defn my-reduce
[f acc s]
(loop [s (seq s) res acc]
(if s
(let [[part & remaining] s]
(recur remaining (f res part)))
res)))
(defn my-reduce-v2
[f acc s]
(loop [res acc s (seq s)]
(if s
(recur (f res (first s)) (next s))
res)))
(println (m... | true | (ns com.matija.vampire-data)
(defn my-reduce
[f acc s]
(loop [s (seq s) res acc]
(if s
(let [[part & remaining] s]
(recur remaining (f res part)))
res)))
(defn my-reduce-v2
[f acc s]
(loop [res acc s (seq s)]
(if s
(recur (f res (first s)) (next s))
res)))
(println (m... |
[
{
"context": "est.example.com\"\n :prefix \"/\"\n :access-key \"key\"\n :secret-key \"secret\"}\n\n :java\n {}\n\n :p",
"end": 963,
"score": 0.9385035037994385,
"start": 960,
"tag": "KEY",
"value": "key"
},
{
"context": "prefix \"/\"\n :access-key \"key\"\n :secr... | src/clj/runbld/opts.clj | ddillinger/runbld | 6 | (ns runbld.opts
(:require
[clj-yaml.core :as yaml]
[clojure.string :as str]
[clojure.tools.cli :as cli]
[environ.core :as environ]
[runbld.env :as env]
[runbld.io :as io]
[runbld.java :as java]
[runbld.schema :refer :all]
[runbld.store :as store]
[runbld.util.data :refer [deep-merge-with... | 120321 | (ns runbld.opts
(:require
[clj-yaml.core :as yaml]
[clojure.string :as str]
[clojure.tools.cli :as cli]
[environ.core :as environ]
[runbld.env :as env]
[runbld.io :as io]
[runbld.java :as java]
[runbld.schema :refer :all]
[runbld.store :as store]
[runbld.util.data :refer [deep-merge-with... | true | (ns runbld.opts
(:require
[clj-yaml.core :as yaml]
[clojure.string :as str]
[clojure.tools.cli :as cli]
[environ.core :as environ]
[runbld.env :as env]
[runbld.io :as io]
[runbld.java :as java]
[runbld.schema :refer :all]
[runbld.store :as store]
[runbld.util.data :refer [deep-merge-with... |
[
{
"context": "\n (keyword \"/users\") {:displayName \"Users\"\n (keyword \"/it",
"end": 3089,
"score": 0.9859931468963623,
"start": 3084,
"tag": "NAME",
"value": "Users"
},
{
"context": "\n (let [input {(keyword \"/users\") {:displayNa... | test/api_modeling_framework/generators/domain/raml_test.cljc | raml-org/api-modeling-framework | 28 | (ns api-modeling-framework.generators.domain.raml-test
#?(:cljs (:require-macros [cljs.test :refer [deftest is async]]))
(:require #?(:clj [clojure.test :refer :all])
[api-modeling-framework.model.vocabulary :as v]
[api-modeling-framework.model.document :as document]
[api-modelin... | 52787 | (ns api-modeling-framework.generators.domain.raml-test
#?(:cljs (:require-macros [cljs.test :refer [deftest is async]]))
(:require #?(:clj [clojure.test :refer :all])
[api-modeling-framework.model.vocabulary :as v]
[api-modeling-framework.model.document :as document]
[api-modelin... | true | (ns api-modeling-framework.generators.domain.raml-test
#?(:cljs (:require-macros [cljs.test :refer [deftest is async]]))
(:require #?(:clj [clojure.test :refer :all])
[api-modeling-framework.model.vocabulary :as v]
[api-modeling-framework.model.document :as document]
[api-modelin... |
[
{
"context": " :source-paths [\"src\"]\n :url \"https://github.com/rm-hull/photosphere\"\n :license {:name \"The MIT License (",
"end": 216,
"score": 0.9984366297721863,
"start": 209,
"tag": "USERNAME",
"value": "rm-hull"
},
{
"context": "ttp://opensource.org/licenses/MIT\"}\n :sc... | project.clj | rm-hull/photosphere | 0 | (defproject rm-hull/photosphere "0.0.1-SNAPSHOT"
:clojurescript? true
:description "A ClojureScript library for reading and displaying 360° photospheres"
:source-paths ["src"]
:url "https://github.com/rm-hull/photosphere"
:license {:name "The MIT License (MIT)"
:url "http://opensource.org/licenses... | 64242 | (defproject rm-hull/photosphere "0.0.1-SNAPSHOT"
:clojurescript? true
:description "A ClojureScript library for reading and displaying 360° photospheres"
:source-paths ["src"]
:url "https://github.com/rm-hull/photosphere"
:license {:name "The MIT License (MIT)"
:url "http://opensource.org/licenses... | true | (defproject rm-hull/photosphere "0.0.1-SNAPSHOT"
:clojurescript? true
:description "A ClojureScript library for reading and displaying 360° photospheres"
:source-paths ["src"]
:url "https://github.com/rm-hull/photosphere"
:license {:name "The MIT License (MIT)"
:url "http://opensource.org/licenses... |
[
{
"context": ";; Copyright (c) 2014-2016 Andrey Antukh <niwi@niwi.nz>\n;;\n;; Licensed under the Apache Li",
"end": 40,
"score": 0.9998810887336731,
"start": 27,
"tag": "NAME",
"value": "Andrey Antukh"
},
{
"context": ";; Copyright (c) 2014-2016 Andrey Antukh <niwi@niwi.nz>\n;;\n;; L... | src/buddy/sign/jwe/cek.clj | FieryCod/buddy-sign | 0 | ;; Copyright (c) 2014-2016 Andrey Antukh <niwi@niwi.nz>
;;
;; 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 applic... | 76118 | ;; Copyright (c) 2014-2016 <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/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or ... | true | ;; Copyright (c) 2014-2016 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 the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless r... |
[
{
"context": " \"bill-to\" {\"given\" \"Chris\"\n ",
"end": 2119,
"score": 0.9990214109420776,
"start": 2114,
"tag": "NAME",
"value": "Chris"
},
{
"context": "e\" 34843\n \"bill-to\" {\"giv... | test/com/lmc/monkey/config/config_monkey_test.clj | lmchoi/configmonkey | 0 | (ns com.lmc.monkey.config.config-monkey-test
(:use midje.sweet)
(:require [com.lmc.monkey.config.config-monkey :as monkey]
[com.lmc.monkey.config.template-reader :as template]))
(facts "about finding required attributes based on erb subs"
(fact "top-level values"
(let [all-entries {... | 92897 | (ns com.lmc.monkey.config.config-monkey-test
(:use midje.sweet)
(:require [com.lmc.monkey.config.config-monkey :as monkey]
[com.lmc.monkey.config.template-reader :as template]))
(facts "about finding required attributes based on erb subs"
(fact "top-level values"
(let [all-entries {... | true | (ns com.lmc.monkey.config.config-monkey-test
(:use midje.sweet)
(:require [com.lmc.monkey.config.config-monkey :as monkey]
[com.lmc.monkey.config.template-reader :as template]))
(facts "about finding required attributes based on erb subs"
(fact "top-level values"
(let [all-entries {... |
[
{
"context": "ngled is meant to be as simple as possible, but as Rich Hickey would tell you:\n simple does not mean easy. Fort",
"end": 5477,
"score": 0.9995341300964355,
"start": 5466,
"tag": "NAME",
"value": "Rich Hickey"
}
] | src/devguide/untangled_devguide/A_Quick_Tour.cljs | goodbobk/untangled | 1 | (ns untangled-devguide.A-Quick-Tour
(:require-macros [cljs.test :refer [is]]
[untangled-devguide.tutmacros :refer [untangled-app]])
(:require [om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[untangled.client.core :as uc]
[untangled.client.network :as un... | 95018 | (ns untangled-devguide.A-Quick-Tour
(:require-macros [cljs.test :refer [is]]
[untangled-devguide.tutmacros :refer [untangled-app]])
(:require [om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[untangled.client.core :as uc]
[untangled.client.network :as un... | true | (ns untangled-devguide.A-Quick-Tour
(:require-macros [cljs.test :refer [is]]
[untangled-devguide.tutmacros :refer [untangled-app]])
(:require [om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[untangled.client.core :as uc]
[untangled.client.network :as un... |
[
{
"context": "ns under the License.\n;;\n;; Copyright © 2013-2022, Kenneth Leung. All rights reserved.\n\n(ns ^{:doc \"\"\n :autho",
"end": 597,
"score": 0.9998722076416016,
"start": 584,
"tag": "NAME",
"value": "Kenneth Leung"
},
{
"context": "ll rights reserved.\n\n(ns ^{:doc ... | src/main/clojure/czlab/loki/game/arena.clj | llnek/loki | 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 ... | 121665 | ;; 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": ";;; Iterative fibonacci.\n;;;\n;;; Eli Bendersky [http://eli.thegreenplace.net]\n;;; This code is i",
"end": 46,
"score": 0.999189019203186,
"start": 33,
"tag": "NAME",
"value": "Eli Bendersky"
}
] | 2017/continuations-trampolines/clojure-samples/src/clojure_samples/fib_loop.clj | mikiec84/code-for-blog | 1,199 | ;;; Iterative fibonacci.
;;;
;;; Eli Bendersky [http://eli.thegreenplace.net]
;;; This code is in the public domain.
(ns clojure-samples.fib-loop)
(defn fib_iterative
[n]
(loop [n n
accum1 1
accum2 1]
(if (< n 2)
accum1
(recur (- n 1) (+ accum1 accum2) accum1))))
(fib_tail 10)
| 20717 | ;;; Iterative fibonacci.
;;;
;;; <NAME> [http://eli.thegreenplace.net]
;;; This code is in the public domain.
(ns clojure-samples.fib-loop)
(defn fib_iterative
[n]
(loop [n n
accum1 1
accum2 1]
(if (< n 2)
accum1
(recur (- n 1) (+ accum1 accum2) accum1))))
(fib_tail 10)
| true | ;;; Iterative fibonacci.
;;;
;;; PI:NAME:<NAME>END_PI [http://eli.thegreenplace.net]
;;; This code is in the public domain.
(ns clojure-samples.fib-loop)
(defn fib_iterative
[n]
(loop [n n
accum1 1
accum2 1]
(if (< n 2)
accum1
(recur (- n 1) (+ accum1 accum2) accum1))))
(fib_tail... |
[
{
"context": "; Copyright (c) Christian von Essen. All rights reserved.\n; The use and distributio",
"end": 37,
"score": 0.9998696446418762,
"start": 18,
"tag": "NAME",
"value": "Christian von Essen"
},
{
"context": "efaults\nto 10. The returned socket will listen on 127.0.0.1.\"... | src/clojure_server/server.clj | Neronus/clj-server | 3 | ; Copyright (c) Christian von Essen. 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... | 27614 | ; 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": "googleapis.com/nextjournal-cas-eu/data/8VujAQ3bHzgNYiC3C61DJwUmXP7xW6bB8tT92xAKhDyu5vXReakaHVSrqJfurggZdCJVuAf3B7AujNBvkJAcz974uH\"})\n\n(defn ->html [{:keys [conn-ws? live-js?] :or ",
"end": 3454,
"score": 0.9971385598182678,
"start": 3375,
"tag": "KEY",
"value": "NYiC3C61DJwU... | src/nextjournal/clerk/view.clj | ivanpierre/clerk | 1 | (ns nextjournal.clerk.view
(:require [nextjournal.clerk.viewer :as v]
[hiccup.page :as hiccup]
[clojure.pprint :as pprint]
[clojure.string :as str]
[clojure.walk :as w]))
(defn ex->viewer [e]
(v/exception (Throwable->map e)))
#_(doc->viewer (nextjournal.clerk/eval-... | 68781 | (ns nextjournal.clerk.view
(:require [nextjournal.clerk.viewer :as v]
[hiccup.page :as hiccup]
[clojure.pprint :as pprint]
[clojure.string :as str]
[clojure.walk :as w]))
(defn ex->viewer [e]
(v/exception (Throwable->map e)))
#_(doc->viewer (nextjournal.clerk/eval-... | true | (ns nextjournal.clerk.view
(:require [nextjournal.clerk.viewer :as v]
[hiccup.page :as hiccup]
[clojure.pprint :as pprint]
[clojure.string :as str]
[clojure.walk :as w]))
(defn ex->viewer [e]
(v/exception (Throwable->map e)))
#_(doc->viewer (nextjournal.clerk/eval-... |
[
{
"context": "TODO use the helpers here:\n;;; https://github.com/fulcrologic/fulcro-rad/blob/develop/src/main/com/fulcrologic/",
"end": 2614,
"score": 0.9944445490837097,
"start": 2603,
"tag": "USERNAME",
"value": "fulcrologic"
},
{
"context": "-keys resp))\n resp))))\n\n(def ... | src/main/dv/pathom.clj | callum-herries/my-clj-utils | 0 | (ns dv.pathom
(:require
[clojure.pprint :refer [pprint]]
[com.wsscode.pathom.connect :as pc]
[com.wsscode.pathom.core :as p]
[com.wsscode.pathom.viz.ws-connector.core :as pathom-viz]
[io.pedestal.interceptor.chain :as chain]
[io.pedestal.interceptor.helpers :as ih]
[edn-query-language.core... | 94640 | (ns dv.pathom
(:require
[clojure.pprint :refer [pprint]]
[com.wsscode.pathom.connect :as pc]
[com.wsscode.pathom.core :as p]
[com.wsscode.pathom.viz.ws-connector.core :as pathom-viz]
[io.pedestal.interceptor.chain :as chain]
[io.pedestal.interceptor.helpers :as ih]
[edn-query-language.core... | true | (ns dv.pathom
(:require
[clojure.pprint :refer [pprint]]
[com.wsscode.pathom.connect :as pc]
[com.wsscode.pathom.core :as p]
[com.wsscode.pathom.viz.ws-connector.core :as pathom-viz]
[io.pedestal.interceptor.chain :as chain]
[io.pedestal.interceptor.helpers :as ih]
[edn-query-language.core... |
[
{
"context": ";; Copyright (c) Stephen C. Gilardi. All rights reserved. The use and\n;; distributi",
"end": 36,
"score": 0.9998669624328613,
"start": 18,
"tag": "NAME",
"value": "Stephen C. Gilardi"
},
{
"context": "ib.condition to implement a \"Throwable map\"\n;;\n;; scgilardi ... | ThirdParty/clojure-contrib-1.1.0/src/clojure/contrib/condition/Condition.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... | 68615 | ;; 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.