commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
7d0f14b82fe0f06998a6d008b5efd15983116897 | project.clj | project.clj | (defproject org.onyxplatform/onyx-kafka "0.7.3-SNAPSHOT"
:description "Onyx plugin for Kafka"
:url "https://github.com/MichaelDrogalis/onyx-kafka"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
... | (defproject org.onyxplatform/onyx-kafka "0.7.3-SNAPSHOT"
:description "Onyx plugin for Kafka"
:url "https://github.com/MichaelDrogalis/onyx-kafka"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
... | Update dependency org.onyxplatform/onyx to version 0.7.3-20150828_160954-g51b5cf8. | Update dependency org.onyxplatform/onyx to version 0.7.3-20150828_160954-g51b5cf8.
Automatic commit by lein-traffic-control.
| Clojure | epl-1.0 | onyx-platform/onyx-kafka,mccraigmccraig/onyx-kafka |
bf5c171762d356c1c2d97c1ef9a21045fbc4f80a | project.clj | project.clj | (defproject net.uncontended/beehive "0.6.0-SNAPSHOT"
:description "Beehive is a Clojure facade for the Precipice library."
:url "https://github.com/tbrooks8/Beehive"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:signing {:gpg-key "tim@uncontended.n... | (defproject net.uncontended/beehive "0.7.0-SNAPSHOT"
:description "Beehive is a Clojure facade for the Precipice library."
:url "https://github.com/tbrooks8/Beehive"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:signing {:gpg-key "tim@uncontended.n... | Update to be inline with Precipice | Update to be inline with Precipice
| Clojure | apache-2.0 | tbrooks8/Beehive |
2cc54b095f135763beaf017562857e879e828ca8 | src/main/app_macros/util/string.cljc | src/main/app_macros/util/string.cljc | (ns app-macros.util.string
(:require [clojure.string :as str]))
(defn camel->kebab
"Converts from camel case (e.g. Foo or FooBar) to kebab case
(e.g. foo or foo-bar)."
[s]
(str/lower-case (str/replace s #"(.+)([A-Z])" "$1-$2")))
| (ns app-macros.util.string
(:require [clojure.string :as str]))
(defn camel->kebab
"Converts from camel case (e.g. Foo or FooBar) to kebab case
(e.g. foo or foo-bar)."
[s]
(->> s
(re-seq #"[A-Z][a-z0-9_-]*")
(str/join "-")
(str/lower-case)))
| Use re-seq to fix splitting up words in camel->kebab converter | Use re-seq to fix splitting up words in camel->kebab converter
| Clojure | mit | workfloapp/app-macros,workfloapp/macros,workfloapp/macros |
33fb043a80ec583d51e56fe031a0b869fe17507e | src/braid/server/events.clj | src/braid/server/events.clj | (ns braid.server.events
(:require
[braid.server.db :as db]
[braid.server.db.group :as group]
[braid.server.db.thread :as thread]
[braid.server.db.user :as user]
[braid.server.sync-helpers :as sync-helpers]))
(defn user-join-group!
[user-id group-id]
(db/run-txns! (group/user-join-group-txn us... | (ns braid.server.events
(:require
[braid.server.db :as db]
[braid.server.db.group :as group]
[braid.server.db.thread :as thread]
[braid.server.db.user :as user]
[braid.server.sync-helpers :as sync-helpers]))
(defn user-join-group!
[user-id group-id]
(db/run-txns! (group/user-join-group-txn us... | Fix broadcast of new users | Fix broadcast of new users
| Clojure | agpl-3.0 | rafd/braid,rafd/braid,braidchat/braid,braidchat/braid |
56ec9a93e53959396f148c0c33ca68da59ab8071 | dev-src/clj/comic_reader/site_dev.clj | dev-src/clj/comic_reader/site_dev.clj | (ns comic-reader.site-dev
(:require [clojure.java.io :refer [as-file resource]]
[clojure.test :refer [run-tests]]
[clojure.tools.namespace.repl :refer [refresh]]))
(defn run-site-tests* []
(require 'comic-reader.sites-test)
(run-tests (find-ns 'comic-reader.sites-test)))
(defn touch-file... | (ns comic-reader.site-dev
(:require [clojure.java.io :refer [as-file resource]]
[clojure.test :refer [run-tests]]
[clojure.tools.namespace.repl :refer [refresh]]))
(defn- after-run-site-tests [network?]
(require 'comic-reader.sites-test)
(let [test-ns (find-ns 'comic-reader.sites-test)]
... | Rework site-dev to allow running network tests | Rework site-dev to allow running network tests
| Clojure | epl-1.0 | RadicalZephyr/comic-reader,RadicalZephyr/comic-reader |
88dd06051ea71aff56185aa4aa54e3384f6c01f2 | src/clj_chrome_devtools/protocol_definitions.clj | src/clj_chrome_devtools/protocol_definitions.clj | (ns clj-chrome-devtools.protocol-definitions
"Loads CDP protocol definition JSON files for consumption by def macros."
(:require [cheshire.core :as cheshire]))
(defn- load-json [json-file]
(as-> json-file it
(str "resources/devtools-protocol/json/" it)
(slurp it)
(cheshire/parse-string it tr... | (ns clj-chrome-devtools.protocol-definitions
"Loads CDP protocol definition JSON files for consumption by def macros."
(:require [cheshire.core :as cheshire]
[clojure.java.io :as io]))
(defn- load-json [json-file]
(as-> json-file it
(str "devtools-protocol/json/" it)
(io/resource it)
(slu... | Load protocol specs as needed from resources | Load protocol specs as needed from resources
Don't keep protocol specs in memory all the time. Load them when
needed from resources.
| Clojure | mit | tatut/clj-chrome-devtools,tatut/clj-chrome-devtools |
ae412343755864abd8f4af03e79aed44adbe99b1 | day-06/src/solver/core.clj | day-06/src/solver/core.clj | (ns solver.core
(:gen-class))
(defn -main
"I don't do a whole lot ... yet."
[& args]
(println "Hello, World!"))
| (ns solver.core
(:gen-class))
(defn create-grid
([] (create-grid 1000))
([w] (create-grid w w))
([w h] (let [row (vec (map (fn [x] false) (range w)))
grid (vec (map (fn [x] row) (range h)))]
grid)))
(defn -main
"I don't do a whole lot ... yet."
[& args]
(println "Hello, World!... | Create a grid of lights | Create a grid of lights
| Clojure | mit | dvberkel/advent-of-code |
b53e0697452b50e4a5e6713df6b529f90ccbca1a | src/leiningen/new/cljskel/web_unit.clj | src/leiningen/new/cljskel/web_unit.clj | (ns {{name}}.web_unit
(:use [{{name}}.web])
(:use [clojure.test])
(:use midje.sweet))
(defn request [method resource]
(routes {:request-method method
:uri resource } ))
(deftest ^:unit tests
(fact "Ping returns a pong"
(:body (request :get "/1.x/ping")) => "pong" )
)
| (ns {{name}}.web_unit
(:use [{{name}}.web]
[clojure.test]
[midje.sweet]))
(defn request [method resource]
(routes {:request-method method
:uri resource } ))
(deftest ^:unit tests
(fact "Ping returns a pong"
(:body (request :get "/1.x/ping")) => "pong" )
)
| Tidy using statements in unit tests | Tidy using statements in unit tests
Rather than (:use [a]) (:use [b]) use (:use [a] [b])
| Clojure | bsd-3-clause | calumlean/mr-clojure,mixradio/mr-clojure |
e245809fc2ce5ba6a1ff8fabfc2979f8e437216c | src/dsbdp/experiment_helper.clj | src/dsbdp/experiment_helper.clj | ;;;
;;; Copyright 2015 Ruediger Gad
;;;
;;; This software is released under the terms of the Eclipse Public License
;;; (EPL) 1.0. You can find a copy of the EPL at:
;;; http://opensource.org/licenses/eclipse-1.0.php
;;;
(ns
^{:author "Ruediger Gad",
:doc "Helper that are primarily used during experime... | ;;;
;;; Copyright 2015 Ruediger Gad
;;;
;;; This software is released under the terms of the Eclipse Public License
;;; (EPL) 1.0. You can find a copy of the EPL at:
;;; http://opensource.org/licenses/eclipse-1.0.php
;;;
(ns
^{:author "Ruediger Gad",
:doc "Helper that are primarily used during experime... | Use a macro for generating proc-fns and print the resulting output. | Use a macro for generating proc-fns and print the resulting output.
| Clojure | epl-1.0 | ruedigergad/dsbdp,ruedigergad/dsbdp,ruedigergad/dsbdp,ruedigergad/dsbdp |
d9f0b9a9e426ffaaecd9ed81b4d63ee25f2398a3 | src/test/discuss/tests.cljs | src/test/discuss/tests.cljs | (ns discuss.tests
"Test runner to execute all tests."
(:require [doo.runner :refer-macros [doo-tests]]
[discuss.components.clipboard-test]
[discuss.references.lib-test]
[discuss.utils.common-test]
[discuss.translations-test]))
(enable-console-print!)
(doo-tests 'dis... | (ns discuss.tests
"Test runner to execute all tests."
(:require [doo.runner :refer-macros [doo-tests]]
[discuss.components.clipboard-test]
[discuss.references.lib-test]
[discuss.utils.common-test]
[discuss.translations-test]))
(enable-console-print!)
#_(doo-tests 'd... | Comment runner to verify circle ci errors | Comment runner to verify circle ci errors
| Clojure | mit | hhucn/discuss,hhucn/discuss |
dd05180460a0c3ca5cb063bf0d39c32f01e58ccf | src/isla/library.clj | src/isla/library.clj | (ns isla.library
(:use [clojure.pprint])
(:require [clojure.string :as str])
(:require [isla.utils :as utils]))
(defn get-initial-env []
{
:ret nil
:ctx {
"write" (fn [env str]
(utils/output str) ;; print out
str) ;; add to context
}
}) | (ns isla.library
(:use [clojure.pprint])
(:require [clojure.string :as str])
(:require [isla.user :as user])
(:require [isla.utils :as utils]))
(defn get-initial-env [& args]
(def extra-types (first args))
{
:ret nil
:ctx {
"write" (fn [env str]
(utils/output str) ;; print... | Allow addition of defrecords to Isla env. | Allow addition of defrecords to Isla env.
* These define 'types' that may be instantiated with `thing is a thingy`.
* This instantiation creates the record for that type (which has slots and maybe methods). | Clojure | mit | maryrosecook/islaclj |
c9a59202cdf9fa2c518313ffea04876f44282ad1 | backend/src/circle/init.clj | backend/src/circle/init.clj | (ns circle.init
(:require circle.env) ;; env needs to be loaded before any circle source files containing tests
(:require circle.swank)
(:require circle.db)
(:require circle.repl)
(:require circle.logging)
(:require circle.util.chdir)
(:require fs))
(defn maybe-change-dir
"Change the current working d... | (ns circle.init
(:require circle.env) ;; env needs to be loaded before any circle source files containing tests
(:require circle.swank)
(:require circle.db)
(:require circle.repl)
(:require circle.logging)
(:require circle.util.chdir)
(:require fs))
(defn maybe-change-dir
"Change the current working d... | Revert to starting swank conditionally, when the CIRCLE_SWANK env variable is set | Revert to starting swank conditionally, when the CIRCLE_SWANK env variable is set
| Clojure | epl-1.0 | circleci/frontend,RayRutjes/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,prathamesh-sonpatki/frontend |
cd1e66b6b43733ad55686663227f409d533643e4 | src/github_changelog/util.clj | src/github_changelog/util.clj | (ns github-changelog.util
(:require [clojure.string :refer [ends-with?]]))
(defn str-map [f & sqs] (apply str (apply map f sqs)))
(defn extract-params [query-string]
(into {} (for [[_ k v] (re-seq #"([^&=]+)=([^&]+)" query-string)]
[(keyword k) v])))
(defn strip-trailing
([s] (strip-trailing s "/"... | (ns github-changelog.util
(:require [clojure.string :refer [join ends-with?]]))
(defn str-map [f & sqs] (join (apply map f sqs)))
(defn extract-params [query-string]
(into {} (for [[_ k v] (re-seq #"([^&=]+)=([^&]+)" query-string)]
[(keyword k) v])))
(defn strip-trailing
([s] (strip-trailing s "/"... | Revert "Use apply str instead of join" | Revert "Use apply str instead of join"
This reverts commit 25517ae46d3f370137f1bcc871d646f8a02c743c.
| Clojure | mit | whitepages/github-changelog |
9e31cb1df794ab6edc6f12df0819b549668cea2f | server/src/main/clojure/vimclojure/core.clj | server/src/main/clojure/vimclojure/core.clj | ;-
; Copyright 2011 (c) Meikel Brandmeyer.
; All rights reserved.
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy... | ;-
; Copyright 2011 (c) Meikel Brandmeyer.
; All rights reserved.
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy... | Load user.clj if present on classpath | Load user.clj if present on classpath
| Clojure | mit | guns/vimclojure,guns/vimclojure,guns/vimclojure |
b6a0d5bd77962a3bc2b7ba0ac19c725d52ddad18 | src/kixi/event/producer.clj | src/kixi/event/producer.clj | (ns kixi.event.producer
(:require [clj-kafka.core :as kafka]
[clj-kafka.producer :as p]
[kixi.event.zookeeper :as zk]
[clojure.tools.logging :as log]
[com.stuartsierra.component :as component]
[clojure.tools.logging :as log])
(:import [kafka.admin AdminUtils]))
... | (ns kixi.event.producer
(:require [clj-kafka.core :as kafka]
[clj-kafka.producer :as p]
[kixi.event.zookeeper :as zk]
[clojure.tools.logging :as log]
[com.stuartsierra.component :as component]
[clojure.tools.logging :as log])
(:import [kafka.admin AdminUtils]))
... | Add some logging to startup. | Add some logging to startup.
| Clojure | epl-1.0 | MastodonC/kixi.eventlog,MastodonC/kixi.eventlog |
4bba826642cb5a853afd155e9db3630f5300287a | src/clojure/clojure_walkthrough/cjia/ch07_xx.clj | src/clojure/clojure_walkthrough/cjia/ch07_xx.clj | (ns clojure-walkthrough.cjia.ch07-xx)
; 7.1: Macro basic
; 7.1.1: Textual substitution
(def a-ref (ref 0))
(dosync
(ref-set a-ref 1)) ; 1
;; You could implement this using the macros like
; (syn-set a-ref 1)
(defmacro sync-set [r v]
(list 'dosync
(list 'ref-set r v)))
(sync-set a-ref 1) ;; 1
| (ns clojure-walkthrough.cjia.ch07-xx)
; 7.1: Macro basic
; 7.1.1: Textual substitution
(def a-ref (ref 0))
(dosync
(ref-set a-ref 1)) ; 1
;; You could implement this using the macros like
; (syn-set a-ref 1)
(defmacro sync-set [r v]
(list 'dosync
(list 'ref-set r v)))
(sync-set a-ref 1) ;; 1
;; 7.1.2:... | Add unless macro examples (7.1.2) | Add unless macro examples (7.1.2)
| Clojure | epl-1.0 | agilecreativity/clojure-walkthrough |
500ed35fb5e3447f51d444d56aa7033a2a3e10c7 | project.clj | project.clj | (defproject metosin/spec-tools "0.1.0-SNAPSHOT"
:description "Common utilities for clojure.spec"
:url "https://github.com/metosin/spec-tools"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"
:distribution :repo
:comments "same as Clojure... | (defproject metosin/spec-tools "0.1.0-SNAPSHOT"
:description "Common utilities for clojure.spec"
:url "https://github.com/metosin/spec-tools"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"
:distribution :repo
:comments "same as Clojure... | Add Schema to dev def. Perf profile | Add Schema to dev def. Perf profile
| Clojure | epl-1.0 | milankinen/future-spec-tools |
f549a0c25ebd977dd660b9ca2e8bd23a908ea5ef | project.clj | project.clj | (defproject stencil "0.3.0"
:description "Mustache in Clojure"
:dependencies [[org.clojure/clojure "1.3.0"]
[scout "0.1.0"]
[quoin "0.1.0"]
[slingshot "0.8.0"]
[org.clojure/core.cache "0.6.1"]]
:profiles {:dev {:dependencies [[org.clojure/data.js... | (defproject stencil "0.3.0"
:description "Mustache in Clojure"
:dependencies [[org.clojure/clojure "1.3.0"]
[scout "0.1.0"]
[quoin "0.1.0"]
[slingshot "0.8.0"]
[org.clojure/core.cache "0.6.1"]]
:profiles {:dev {:dependencies [[org.clojure/data.js... | Add Clojure 1.5 profile and repositories. | Add Clojure 1.5 profile and repositories.
| Clojure | epl-1.0 | caribou/antlers |
b170629f0348c28ad4d2257a2edb6aa364d4677c | project.clj | project.clj | (defproject cider-ci_storage "2.0.0"
:description "Cider-CI Storage"
:license {:name "GNU AFFERO GENERAL PUBLIC LICENSE Version 3"
:url "http://www.gnu.org/licenses/agpl-3.0.html"}
:dependencies [
[cider-ci/clj-auth "2.0.0"]
[cider-ci/clj-utils "2.0.0"]
... | (defproject cider-ci_storage "2.0.1"
:description "Cider-CI Storage"
:license {:name "GNU AFFERO GENERAL PUBLIC LICENSE Version 3"
:url "http://www.gnu.org/licenses/agpl-3.0.html"}
:dependencies [
[cider-ci/clj-auth "2.0.1"]
[cider-ci/clj-utils "2.0.0"]
... | Upgrade clj-auth to 2.0.1, fixes basic auth for user | Upgrade clj-auth to 2.0.1, fixes basic auth for user
| Clojure | agpl-3.0 | cider-ci/cider-ci_storage,cider-ci/cider-ci_server,cider-ci/cider-ci_server,cider-ci/cider-ci_server |
2bd16b22a6946353e63bab5c01d020fe83c12574 | project.clj | project.clj | (defproject org.onyxplatform/onyx-metrics "0.8.1.0-alpha9"
:description "Instrument Onyx workflows"
:url "https://github.com/MichaelDrogalis/onyx"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject org.onyxplatform/onyx-metrics "0.8.1.0-SNAPSHOT"
:description "Instrument Onyx workflows"
:url "https://github.com/MichaelDrogalis/onyx"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | epl-1.0 | onyx-platform/onyx-metrics |
d007d660256285089ba4c39e8e5e2fc192b448ec | test/uxbox/tests/test_txlog.clj | test/uxbox/tests/test_txlog.clj | (ns uxbox.tests.test-txlog
"A txlog and services abstraction generic tests."
(:require [clojure.test :as t]
[uxbox.tests.helpers :as th]))
(t/use-fixtures :each th/database-reset)
(t/deftest experiment-spec1
(t/is (= 1 1)))
(t/deftest experiment-spec2
(t/is (= 1 1)))
| (ns uxbox.tests.test-txlog
"A txlog and services abstraction generic tests."
(:require [clojure.test :as t]
[promesa.core :as p]
[uxbox.services.core :as usc]
[uxbox.services :as usv]
[uxbox.tests.helpers :as th]))
(t/use-fixtures :each th/database-reset)
(defmethod... | Add first test for services and transaction log. | Add first test for services and transaction log.
| Clojure | mpl-2.0 | uxbox/uxbox-backend,uxbox/uxbox-backend |
3b07e343fbd584d2217fa88401935e38d255712e | src/braid/server/events.clj | src/braid/server/events.clj | (ns braid.server.events
(:require
[braid.server.db :as db]
[braid.server.db.group :as group]
[braid.server.db.thread :as thread]
[braid.server.db.user :as user]
[braid.server.sync-helpers :as sync-helpers]))
(defn add-user-to-recent-threads-in-group!
[user-id group-id]
(->> (thread/recent-thr... | (ns braid.server.events
(:require
[braid.server.db :as db]
[braid.server.db.group :as group]
[braid.server.db.thread :as thread]
[braid.server.db.user :as user]
[braid.server.sync-helpers :as sync-helpers]))
(defn user-join-group!
[user-id group-id]
(db/run-txns! (group/user-join-group-txn us... | Refactor user-join-group! event to just user user-join-group-txn | Refactor user-join-group! event to just user user-join-group-txn
| Clojure | agpl-3.0 | rafd/braid,braidchat/braid,rafd/braid,braidchat/braid |
65062fb2ef4ccd37be0b78d5a41175b0d905fbd7 | src/madouc/handlers/api.clj | src/madouc/handlers/api.clj | (ns madouc.handlers.api
(:require [ring.util.http-response :as http-resp]
[compojure.api.sweet :refer :all]
[madouc.db :as db]))
(defapi handler-old
(context "/api" []
(GET "/status" [] (http-resp/ok {:api-status "ok"}))))
(def handler
(api
{:swagger {:ui "/api-docs/"
... | (ns madouc.handlers.api
(:require [ring.util.http-response :as http-resp]
[compojure.api.sweet :refer :all]
[schema.core :as s]
[madouc.db :as db]
[madouc.controllers :refer :all]))
(defapi handler-old
(context "/api" []
(GET "/status" [] (http-resp/ok {:api-stat... | Add login operation to API | Add login operation to API
| Clojure | epl-1.0 | c-garcia/madouc |
4998baaf8499f34e26e8b6b7df4fe898be08a485 | ring-core/project.clj | ring-core/project.clj | (defproject ring/ring-core "1.9.0"
:description "Ring core libraries."
:url "https://github.com/ring-clojure/ring"
:scm {:dir ".."}
:license {:name "The MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.7.0"]
[ring/ring-codec "1.1.2"]
... | (defproject ring/ring-core "1.9.0"
:description "Ring core libraries."
:url "https://github.com/ring-clojure/ring"
:scm {:dir ".."}
:license {:name "The MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.7.0"]
[ring/ring-codec "1.1.3"]
... | Update Ring-Codec dependency to 1.1.3 | Update Ring-Codec dependency to 1.1.3
| Clojure | mit | ring-clojure/ring,ring-clojure/ring |
94e9bc352601f617234fe3a467011e03297c90d3 | project.clj | project.clj | (defproject rm-hull/wireframes "0.0.1"
:description "A lightweight 3D wireframe renderer for both Clojure and ClojureScript"
:url "https://github.com/rm_hull/wireframes"
:license {:name "The MIT License (MIT)"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.5.1"]
... | (defproject rm-hull/wireframes "0.0.1"
:description "A lightweight 3D wireframe renderer for both Clojure and ClojureScript"
:url "https://github.com/rm_hull/wireframes"
:license {:name "The MIT License (MIT)"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.5.1"]
... | Add sonartype snapshot repo, as [org.clojure/core.rrb-vector "0.0.9"] throws ArrayOutOfBoundsException whereas 0.0.10-SNAPSHOT doesn't | Add sonartype snapshot repo, as [org.clojure/core.rrb-vector "0.0.9"] throws ArrayOutOfBoundsException whereas 0.0.10-SNAPSHOT doesn't | Clojure | mit | rm-hull/wireframes |
38480e9dfba90a3f634c4874631ebfa46d836f2f | clstreams/src/clstreams/webapi.clj | clstreams/src/clstreams/webapi.clj | (ns clstreams.webapi
(:require [bidi.ring :as bidi]
[clstreams.webapi.component :refer [new-aleph]]
[ring.middleware.json :refer [wrap-json-body wrap-json-response]]
[ring.util.response :refer [response]])
(:import org.apache.kafka.streams.state.QueryableStoreTypes))
(defn make-... | (ns clstreams.webapi
(:require [bidi.ring :as bidi]
[clojure.core.async :refer [<! go timeout]]
[clstreams.webapi.component :refer [new-aleph]]
[manifold.stream :as stream]
[ring.middleware.json :refer [wrap-json-body wrap-json-response]]
[ring.util.response... | Handle web requests asynchronously using Aleph and core.async | Handle web requests asynchronously using Aleph and core.async
| Clojure | apache-2.0 | MartinSoto/clojure-streams |
4741ee6529425c9020ebefbfbbbaf2bb02563750 | src/cljs/my_money/components/tab_bar.cljs | src/cljs/my_money/components/tab_bar.cljs | (ns my-money.components.tab-bar
(:require [clojure.string :as string]
[my-money.app.controller.events :as ec]))
(defn tab [e! active-value value type]
[:label.btn.btn-primary
(when (= value active-value)
{:class "active"})
(string/capitalize value)
[:input {:type "radio"
:valu... | (ns my-money.components.tab-bar
(:require [clojure.string :as string]
[my-money.app.controller.events :as ec]))
(defn tab [e! active-value value type]
[:label.btn.btn-primary
{:role "tab"
:class [(when (= value active-value)
"active")]}
(string/capitalize value)
[:input {:typ... | Add proper roles for tab elements | Add proper roles for tab elements
| Clojure | mit | Juholei/my-money,Juholei/my-money |
23f01f215509d622975aae9150f2b254c2cef0b2 | src/server/chatom/parser.clj | src/server/chatom/parser.clj | (ns chatom.parser
(:require [om.next.server :as om])
(:refer-clojure :exclude [read]))
(defn dispatch [_ k _] k)
(defmulti read dispatch)
(defmulti mutate dispatch)
(defmethod read :default
[{:keys [db query]} key params]
(println "default read called")
{:value "not-found"})
(defmethod mutate :default
... | (ns chatom.parser
(:require [om.next.server :as om])
(:refer-clojure :exclude [read]))
(defn dispatch [_ k _] k)
(defmulti read dispatch)
(defmulti mutate dispatch)
(defmethod read :default
[{:keys [db query]} key params]
(println "default read called")
{})
(defmethod mutate :default
[{:keys [db query]... | Fix error from remote read when key not found | Fix error from remote read when key not found
| Clojure | mit | noonian/chatom |
0bd935cc55f72baa3fe0a668db599b3e1e760322 | src/hu/ssh/github_changelog/dependencies/bundler.clj | src/hu/ssh/github_changelog/dependencies/bundler.clj | (ns hu.ssh.github-changelog.dependencies.bundler
(:require
[clojure.string :refer [split-lines]]
[clojure.java.io :as io]))
(defn- get-specs [reader]
(->> (line-seq reader)
(drop-while #(not= % " specs:"))
(drop 1)
(take-while seq)
doall))
(defn- parse-spec [spec]
{:name (se... | (ns hu.ssh.github-changelog.dependencies.bundler
(:require
[clojure.string :refer [split-lines]]
[clojure.java.io :as io]))
(defn- get-specs [reader]
(->> (line-seq reader)
(drop-while #(not= % " specs:"))
(drop 1)
(take-while seq)))
(defn- parse-spec [spec]
{:name (second spec) :v... | Move sequence realization to with-open | Move sequence realization to with-open
| Clojure | mit | whitepages/github-changelog |
94a8cf63a91f371314fd6a8e93d97b3ef266ceff | src/clj/aspire/templates.clj | src/clj/aspire/templates.clj | (ns aspire.templates
(:require [net.cgrand.enlive-html :as en]
[hiccup.core :as hc]))
(en/deftemplate index "public/index.html"
[user-display-name]
[:script] nil
[:body] (en/append
{:tag "script"
:attrs {:type "text/javascript"
:src "js/aspire.js"}}))
| (ns aspire.templates
(:require [net.cgrand.enlive-html :as en]
[hiccup.core :as hc]))
(defn render [template]
(reduce str template))
(en/deftemplate index "public/index.html"
[user-display-name]
[:script] nil
[:body] (en/append
{:tag "script"
:attrs {:type "text/javascript... | Add a 'render fn for deftemplate --> strings. | Add a 'render fn for deftemplate --> strings.
This keeps liberator happier.
| Clojure | epl-1.0 | vlacs/navigator-archive |
8c2f3aaf13903c538c87835558065434f441ffd0 | src/decl_ui/reader_tags.cljs | src/decl_ui/reader_tags.cljs | (ns decl-ui.reader-tags
(:require [decl-ui.callbacks :as callbacks]
[decl-ui.bindings :refer [IUnresolvedBinding]]
[reagent.ratom :refer [cursor]])
(:require-macros [reagent.ratom :refer [reaction]]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | (ns decl-ui.reader-tags
(:require [decl-ui.callbacks :as callbacks]
[decl-ui.bindings :refer [IUnresolvedBinding]]
[reagent.ratom :refer [cursor]])
(:require-macros [reagent.ratom :refer [reaction]]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | Remove obsolete condition, already guarded by an assert. | Remove obsolete condition, already guarded by an assert. | Clojure | epl-1.0 | bilus/decl-ui,bilus/decl-ui |
35266889fa044784911ba7559d0cf31e3e233447 | build.boot | build.boot | (set-env!
:source-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.6.0" :scope "provided"]
[boot/core "2.0.0-rc12" :scope "provided"]
[junit "4.12" :scope "provided"]])
(require '[radicalzephyr.boot-junit :refer [junit]])
(def +version+ "... | (set-env!
:source-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.6.0" :scope "provided"]
[boot/core "2.1.0" :scope "provided"]
[junit "4.12" :scope "provided"]
[org.reflections/reflections "0.9.10"
:scope "provide... | Add reflections as a dependency | Add reflections as a dependency
And update boot dep
| Clojure | epl-1.0 | RadicalZephyr/boot-junit |
b99eb3d5eac8d4c29041a489e23c91b142e158e4 | src/hu/ssh/github_changelog.clj | src/hu/ssh/github_changelog.clj | (ns hu.ssh.github-changelog
(:require
[environ.core :refer [env]]
[tentacles.core :as core]
[tentacles.repos :as repos]
[tentacles.pulls :as pulls]
[clj-semver.core :as semver]))
(defn repo
"Gets the repository from its name"
[name]
(vector "pro" name))
(defn parse-semver
"Checks for sem... | (ns hu.ssh.github-changelog
(:require
[environ.core :refer [env]]
[tentacles.core :as core]
[tentacles.repos :as repos]
[tentacles.pulls :as pulls]
[clj-semver.core :as semver]))
(defn repo
"Gets the repository from its name"
([name] (repo "pro" name))
([org repo] [org repo]))
(defn parse-... | Extend repo fn with 2-arity version | Extend repo fn with 2-arity version | Clojure | mit | whitepages/github-changelog |
bf00c192bf10085b465e43dd7d9cba1ce5666ad5 | project.clj | project.clj | (defproject onyx-app/lein-template "0.9.7.0-alpha20"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.9.7.0-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
95240e7d73a4dc74766ac37357f4c09b6aebdee2 | src/main/audio_utils/web_audio.cljs | src/main/audio_utils/web_audio.cljs | (ns audio-utils.web-audio)
(defn audio-context []
(or (new js/window.AudioContext)
(new js/window.webkitAudioContext)))
| (ns audio-utils.web-audio)
(defn audio-context []
(or (new js/window.AudioContext)
(new js/window.webkitAudioContext)))
(defn create-buffer
[ctx n-channels size sample-rate]
(.createBuffer ctx n-channels size sample-rate))
(defn create-buffer-source
([ctx]
(.createBufferSource ctx))
([ctx n-channe... | Add create-buffer and create-buffer-source to audio-utils.web-audio | Add create-buffer and create-buffer-source to audio-utils.web-audio
| Clojure | mit | Jannis/cljs-audio-utils |
f63f3771a23bc8e8946f137db42e26b589d905dd | template/layouts/default.clj | template/layouts/default.clj | ; @title default title
; @format html5
[:head
[:meta {:charset (:charset site)}]
[:meta {:name "viewport"
:content "width=device-width, initiali-scale=1.0, user-scalable=yes"}]
[:title
(if (= (:title site) "home")
(:site-title site)
(str (:site-title site) " - " (:title site)))]
[:link {:r... | ; @title default title
; @format html5
[:head
[:meta {:charset (:charset site)}]
[:meta {:name "viewport"
:content "width=device-width, initiali-scale=1.0, user-scalable=yes"}]
[:title
(if (= (:title site) "home")
(:site-title site)
(str (:site-title site) " - " (:title site)))]
[:link {:r... | Add github link to footer | Add github link to footer
| Clojure | apache-2.0 | Pance/Pance_blog |
2993f3d536f4a242f5f9092c7cf01f69b50fbc29 | test/icecap/handlers/http_test.clj | test/icecap/handlers/http_test.clj | (ns icecap.handlers.http-test
(:require [clojure.core.async :as a]
[manifold.deferred :as d]
[icecap.handlers.core :refer [execute]]
[icecap.schema :refer [check-plan]]
[icecap.handlers.http]
[aleph.http :as h]
[clojure.test :refer :all]))
(def ... | (ns icecap.handlers.http-test
(:require [clojure.core.async :as a]
[manifold.deferred :as d]
[icecap.handlers.core :refer [execute]]
[icecap.schema :refer [check-plan]]
[icecap.handlers.http]
[aleph.http :as h]
[clojure.test :refer :all]))
(def ... | Add a test to see if things are URIs | Add a test to see if things are URIs
| Clojure | epl-1.0 | lvh/icecap |
f90bd7f45e10faf727a0f9481521dba1459a014e | test/carambar/cache_test.clj | test/carambar/cache_test.clj | (ns carambar.cache-test
(:require [midje.sweet :refer :all]
[carambar.cache :refer :all]))
(fact (add-entry {:name "/path/test.jar" :values []}) => (contains {:name "/path/test.jar" :values []}))
;; need to run mvn clean install before...
(def jarfile-with-two-classes "/home/nchapon/opt/m2_repo/org/car... | (ns carambar.cache-test
(:require [midje.sweet :refer :all]
[carambar.cache :refer :all]))
(fact (add-entry {:name "/path/test.jar" :values []}) => (contains {:name "/path/test.jar" :values []}))
;; need to run mvn clean install before...
(def jarfile-with-two-classes "/home/nchapon/opt/m2_repo/org/car... | Test should not chekcs collection order | Test should not chekcs collection order
| Clojure | epl-1.0 | nchapon/carambar |
286d2e8e8de9819bbb6adb1b06b0c0ae6cc53c49 | test/uxbox/tests/helpers.clj | test/uxbox/tests/helpers.clj | (ns uxbox.tests.helpers
(:require [clojure.test :as t]
[mount.core :as mount]
[suricatta.core :as sc]
[uxbox.persistence :as up]
[uxbox.config :as ucfg]))
(def +config+ (ucfg/read-test-config))
(def +ds+ (up/create-datasource (:database +config+)))
(defn database-re... | (ns uxbox.tests.helpers
(:require [clojure.test :as t]
[mount.core :as mount]
[suricatta.core :as sc]
[uxbox.migrations :as umg]
[uxbox.persistence :as up]
[uxbox.config :as ucfg]))
(def +config+ (ucfg/read-test-config))
(def +ds+ (up/create-datasource (:... | Make migrations non verbose on tests. | Make migrations non verbose on tests.
| Clojure | mpl-2.0 | uxbox/uxbox-backend,uxbox/uxbox-backend |
9cb73baf1e910c6d6f6d266fe49935baa8a8a353 | evermind.core/src/evermind/domain/core.clj | evermind.core/src/evermind/domain/core.clj | (ns evermind.domain.core
(:require [clojure.spec.alpha :as s]
[clojure.spec.gen.alpha :as gen]))
(s/def ::node
(s/keys :req-un []
:opt-un [::parent ::children]))
(s/def ::parent ::node)
(s/def ::children (s/* ::node))
(defn create-node
([] {}))
(s/fdef create-node
:args (s/cat)... | (ns evermind.domain.core
(:require [clojure.spec.alpha :as s]
[clojure.spec.gen.alpha :as gen]))
(s/def ::node
(s/keys :req-un []
:opt-un [::parent ::children]))
(s/def ::parent ::node)
(s/def ::children (s/coll-of ::node :kind set?))
(defn create-node
([] {}))
(s/fdef create-node
... | Change spec for node children. | Change spec for node children.
| Clojure | epl-1.0 | d4span/evermind,d4span/evermind |
08e17bde4002be6db2453fcee8d22c2bc6c84d4e | src/com/palletops/leaven.cljx | src/com/palletops/leaven.cljx | (ns com.palletops.leaven
"A component composition library."
(:require
[com.palletops.leaven.protocols :as protocols
:refer [ILifecycle IStatus]]))
(defn start
"Start a component."
[component]
(if (satisfies? ILifecycle component)
(protocols/start component)
component))
(defn stop
"Stop a co... | (ns com.palletops.leaven
"A component composition library."
(:require
[com.palletops.leaven.protocols :as protocols
:refer [ILifecycle IStatus]]))
(defn start
"Start a component."
[component]
(if (satisfies? ILifecycle component)
(protocols/start component)
component))
(defn stop
"Stop a co... | Allow non ILifecycle components in defsystem | Allow non ILifecycle components in defsystem
| Clojure | epl-1.0 | palletops/leaven |
2db14500c3f7bfc164d3af08fc4203ce07208e0e | src/grimoire/api/fs/write.clj | src/grimoire/api/fs/write.clj | (ns grimoire.api.fs.write
"Filesystem datastore implementation of the Grimoire API."
(:refer-clojure :exclude [isa?])
(:require [grimoire.things :refer :all]
[grimoire.api :as api]
[grimoire.api.fs :refer :all]))
;; Interacting with the datastore - writing
;;------------------------------... | (ns grimoire.api.fs.write
"Filesystem datastore implementation of the Grimoire API."
(:refer-clojure :exclude [isa?])
(:require [grimoire.things :refer :all]
[grimoire.api :as api]
[grimoire.api.fs :refer :all]))
;; Interacting with the datastore - writing
;;------------------------------... | Make parent dir(s) when writing to a handle | Make parent dir(s) when writing to a handle
| Clojure | epl-1.0 | rmoehn/lib-grimoire,clojure-grimoire/lib-grimoire |
f1fad5149b567c95fb460a607ab3b5fdc01a5c69 | src/cljs/hatnik/web/client/form.cljs | src/cljs/hatnik/web/client/form.cljs | (ns hatnik.web.client.form
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[hatnik.web.client.form-components :as widget]
[hatnik.web.client.app-state :as state])
(:use [jayq.core :only [$]]))
(om/root widget/action-form-header state/app-sta... | (ns hatnik.web.client.form
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[hatnik.web.client.form-components :as widget]
[hatnik.web.client.app-state :as state])
(:use [jayq.core :only [$]]))
(om/root widget/action-form-header state/app-sta... | Hide modal by ESC pressing. | Hide modal by ESC pressing.
| Clojure | epl-1.0 | Hatnik/hatnik-1,nbeloglazov/hatnik |
d26cb369ecfc0e1774d90d967ab8f2d5a9fb1768 | wildfly/project.clj | wildfly/project.clj | ;; Copyright 2014-2015 Red Hat, Inc, and individual contributors.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by... | ;; Copyright 2014-2015 Red Hat, Inc, and individual contributors.
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by... | Allow tools.nrepl to be a transitive dep of wildfly lib | Allow tools.nrepl to be a transitive dep of wildfly lib [IMMUTANT-536]
It's in lein's :base profile, which results in its "test" scope in the
generated pom unless we remove it.
See https://github.com/technomancy/leiningen/issues/1771
| Clojure | apache-2.0 | coopsource/immutant,kbaribeau/immutant,immutant/immutant,immutant/immutant,immutant/immutant,immutant/immutant,kbaribeau/immutant,coopsource/immutant,coopsource/immutant,kbaribeau/immutant |
308414dfa6201fe45f0b60843a84f2b3f9ad8249 | src/clj/clojuredocs/main.clj | src/clj/clojuredocs/main.clj | (ns clojuredocs.main
(:require [ring.adapter.jetty :as jetty]
[aleph.http :as ah]
[clojuredocs.env :as env]
[clojuredocs.entry :as entry]
[somnium.congomongo :as mon]))
(mon/set-connection!
(mon/make-connection (env/str :mongo-url)))
(mon/add-index! :examples [:ns :... | (ns clojuredocs.main
(:require [ring.adapter.jetty :as jetty]
[aleph.http :as ah]
[somnium.congomongo :as mon]
[clojuredocs.env :as env]
[clojuredocs.entry :as entry]
[clojuredocs.config :as config]))
(mon/set-connection!
(mon/make-connection (env/str :mo... | Exit if all config vars not found | Exit if all config vars not found
| Clojure | epl-1.0 | leancloud/clojuredocs,leancloud/clojuredocs |
9913a92959ee3113b76f72b9da26ba8e4a86a23f | project.clj | project.clj | (defproject re-frame/lein-template "0.3.24-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["clojars" {:sign-releases false
... | (defproject re-frame/lein-template "1.0.0-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["clojars" {:sign-releases false
... | Bump major version due to move to shadow-cljs | Bump major version due to move to shadow-cljs
| Clojure | mit | Day8/re-frame-template,Day8/re-frame-template,Day8/re-frame-template |
d7ea43c458adae0430e16527282946dfa7c27f4d | project.clj | project.clj | (defproject onyx-app/lein-template "0.9.10.0-beta7"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.9.10.0-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
bf464790230458d08026e9fe5d9c7bd7098d5a91 | project.clj | project.clj | (defproject onyx-app/lein-template "0.10.0.0-beta7"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.10.0.0-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
0d1089f1a20fd698ea5889475b77ca2d6852ecbc | project.clj | project.clj | (defproject clj-tutorials "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/core.async "0.1.346... | (defproject clj-tutorials "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/core.async "0.1.346... | Use correct version of http-kit | Use correct version of http-kit
| Clojure | epl-1.0 | mhjort/clj-tutorials |
1702d375e7ef151ec71997818f3ba45b9cd10df8 | project.clj | project.clj | (defproject onyx-app/lein-template "0.12.0.0-beta2"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.12.0.0-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
3b2408fabb847e78ed1f2283830145c386ece811 | project.clj | project.clj | (defproject buddy/buddy-sign "0.6.0"
:description "High level message signing for Clojure"
:url "https://github.com/funcool/buddy-sign"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:dependencies [[org.clojure/clojure "1.7.0" :scope "provided"]
[com... | (defproject buddy/buddy-sign "0.6.0"
:description "High level message signing for Clojure"
:url "https://github.com/funcool/buddy-sign"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:dependencies [[org.clojure/clojure "1.7.0" :scope "provided"]
[com... | Update nippy dependency to 2.9.0 | Update nippy dependency to 2.9.0
| Clojure | apache-2.0 | funcool/buddy-sign |
69c49f33dae798ac23ec440bc1bc84acb92b36c5 | project.clj | project.clj | ;(defproject cli4clj "1.4.0"
(defproject cli4clj "1.4.1-SNAPSHOT"
:description "Create simple interactive CLIs for Clojure applications."
:url "https://github.com/ruedigergad/cli4clj"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.cloju... | (defproject cli4clj "1.5.0"
;(defproject cli4clj "1.5.1-SNAPSHOT"
:description "Create simple interactive CLIs for Clojure applications."
:url "https://github.com/ruedigergad/cli4clj"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.cloju... | Update dependencies and version info. | Update dependencies and version info.
| Clojure | epl-1.0 | ruedigergad/cli4clj |
8661cdefb1d4eb6e723ddddebdb2e5878edce1bd | project.clj | project.clj | (defproject com.farmlogs.conduit "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[com.novemberain/langohr ... | (defproject com.farmlogs.conduit "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[com.novemberain/langohr ... | Move logging dependencies to :dev profile | Move logging dependencies to :dev profile
| Clojure | mit | FarmLogs/conduit |
2f2e405084d9de55f1a16cd2deb9daf63dc4b69d | project.clj | project.clj | (defproject dependable "0.1.0-SNAPSHOT"
:description "Dependency resolution for the impatient."
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clo... | (defproject dependable "0.1.0-SNAPSHOT"
:description "Dependency resolution for the impatient."
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clo... | Update lein cloverage patch version | Update lein cloverage patch version
| Clojure | epl-1.0 | djhaskin987/dependable,djhaskin987/degasolv,djhaskin987/degasolv,djhaskin987/degasolv |
a89b5f31abd89b9f55487096e69dae5ea8e1d7f8 | project.clj | project.clj | (defproject inet.data "0.5.2-SNAPSHOT"
:description "Represent and manipulate various Internet entities as data."
:url "http://github.com/llasram/inet.data"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.4.0"]
... | (defproject inet.data "0.5.2-SNAPSHOT"
:description "Represent and manipulate various Internet entities as data."
:url "http://github.com/llasram/inet.data"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
... | Update to most recent version of Clojure. | Update to most recent version of Clojure.
| Clojure | epl-1.0 | damballa/inet.data,damballa/inet.data |
9ae98ce340f7695f695569697f5ff78dd57a4331 | src/lambda_blog/templates/tags.clj | src/lambda_blog/templates/tags.clj | (ns lambda-blog.templates.tags
(:require [lambda-blog.templates.bits :refer [panel text-centered]]
[lambda-blog.templates.page :refer [page]]
[lambda-blog.utils :refer [pathcat]]
[s-html.tags :refer [a div h1 span]]))
(defn tag-cloud [min max {:keys [entries path-to-root tags]}]
... | (ns lambda-blog.templates.tags
(:require [lambda-blog.templates.bits :refer [panel text-centered]]
[lambda-blog.templates.page :refer [page]]
[lambda-blog.utils :refer [pathcat]]
[s-html.tags :refer [a div h1 span]]))
(defn tag-cloud [min max {:keys [entries path-to-root tags]}]
... | Test stuff in REPL they said. | Test stuff in REPL they said.
| Clojure | mit | Idorobots/lambda-blog |
c1c9324e9148e019e3bdc65f041e1a2178538475 | src/leiningen/new/mies/project.clj | src/leiningen/new/mies/project.clj | (defproject {{name}} "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "0.0-3308" :classifier "aot"
:exclusion [org.clojure/data.json]]
[org.clojure/data.jso... | (defproject {{name}} "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.28" :classifier "aot"
:exclusion [org.clojure/data.json]]
[org.clojure/data.json ... | Update ClojureScript version to 1.7.28. | Update ClojureScript version to 1.7.28.
| Clojure | epl-1.0 | swannodette/mies,fdserr/mies,DjebbZ/mies,DjebbZ/mies,swannodette/mies,whamtet/cljs-server-template,fdserr/mies |
c5c4590665a8348187533cc0862847bfbb9f1b1d | src/cljam/io/sam/util/refs.clj | src/cljam/io/sam/util/refs.clj | (ns cljam.io.sam.util.refs
"Utility functions for SAM references.")
(defn make-refs
"Return a reference sequence from the sam header."
[hdr]
(for [sq (:SQ hdr)]
{:name (:SN sq), :len (:LN sq)}))
(defn- ref-id*
[refs name]
(some #(when (= name (:name (second %))) (first %))
(map-indexed vector r... | (ns cljam.io.sam.util.refs
"Utility functions for SAM references."
(:require [clojure.set :as cset]))
(defn make-refs
"Return a reference sequence from the sam header."
[hdr]
(map
#(cset/rename-keys
%
{:SN :name, :LN :len, :AH :alt, :AS :assembly,
:M5 :md5, :SP :species, :UR :uri})
(:SQ... | Add optional reference attributes for SAM. | Add optional reference attributes for SAM.
| Clojure | apache-2.0 | chrovis/cljam |
387e3276451ee7eaa3796f1a509b363371f3ca55 | src/extracter/files.clj | src/extracter/files.clj | (ns extracter.files
(:require [clojure.java.io :as io]))
(defn contains?
[^java.util.regex.Pattern re ^String s]
(boolean (re-find re s)))
(defn fact?
"Returns true if the given file appears to contain at least one fact docstring."
[^java.io.File f]
(with-open [fin (io/reader f)]
(->> fin
lin... | (ns extracter.files
(:refer-clojure :exclude [contains?])
(:require [clojure.java.io :as io]))
(defn contains?
[^java.util.regex.Pattern re ^String s]
(boolean (re-find re s)))
(defn fact?
"Returns true if the given file appears to contain at least one fact docstring."
[^java.io.File f]
(with-open [fin ... | Exclude `contains?` to avoid warnings | Exclude `contains?` to avoid warnings
| Clojure | epl-1.0 | holguinj/extracter |
a9fd0d49d92b88e190db3ca400e76d664c259f14 | test/useful/datatypes_test.clj | test/useful/datatypes_test.clj | (ns useful.datatypes-test
(:use clojure.test useful.datatypes))
(defrecord Test [a b c])
(record-accessors Test)
(deftest test-record
(let [init (Test. 1 2 3)
second (Test. 1 5 4)]
(is (= init (make-record Test :b 2 :a 1 :c 3)))
(is (= second (assoc-record init :b 5 :c 4)))
(is (= second (upda... | (ns useful.datatypes-test
(:use clojure.test useful.datatypes))
(defrecord Test [a b c])
(record-accessors Test)
(defprotocol Inline
(foo [this]))
(defprotocol Dynamic
(bar [this]))
(defrecord Implementor [x]
Inline
(foo [this] "x"))
(extend-type Implementor
Dynamic
(bar [this] "y"))
(deftest test-r... | Add tests for protocol-related stuff. | Add tests for protocol-related stuff.
Can't come up with a test that actually fails, but something in the
jiraph STM layer does fail.
| Clojure | epl-1.0 | jafingerhut/useful,flatland/useful,amalloy/useful |
2e8aa9170e8f68e0bf070f38bfc3805d8b436051 | test/clj/comic_reader/site_scraper_test.clj | test/clj/comic_reader/site_scraper_test.clj | (ns comic-reader.site-scraper-test
(:require [clojure.java.io :as io]
[clojure.test :as t]
[comic-reader.site-scraper :as sut])
(:import comic_reader.sites.MangaSite))
(t/deftest make-site-entry-test
(t/is (= (sut/make-site-entry "non-existent")
["non-existent" nil]))
(let [... | (ns comic-reader.site-scraper-test
(:require [clojure.java.io :as io]
[clojure.test :as t]
[comic-reader.site-scraper :as sut])
(:import comic_reader.sites.MangaSite))
(t/deftest make-site-entry-test
(t/is (= (sut/make-site-entry "non-existent")
["non-existent" nil]))
(let [... | Fix make-site-entry test for changed name of test site | Fix make-site-entry test for changed name of test site
| Clojure | epl-1.0 | RadicalZephyr/comic-reader,RadicalZephyr/comic-reader |
e24b200de9d1d93030e6e85ae92c1c89c44e273f | ring-core/src/ring/middleware/content_type.clj | ring-core/src/ring/middleware/content_type.clj | (ns ring.middleware.content-type
"Middleware for automatically adding a content type to response maps."
(:require [ring.util.mime-type :refer [ext-mime-type]]
[ring.util.response :refer [content-type get-header]]))
(defn content-type-response
"Adds a content-type header to response. See: wrap-content... | (ns ring.middleware.content-type
"Middleware for automatically adding a content type to response maps."
(:require [ring.util.mime-type :refer [ext-mime-type]]
[ring.util.response :refer [content-type get-header]]))
(defn content-type-response
"Adds a content-type header to response. See: wrap-content... | Fix documentation typo in content-type middleware | Fix documentation typo in content-type middleware
| Clojure | mit | ring-clojure/ring,ring-clojure/ring |
f3aeb695d7df092815b2c7034b8edd926404f1ac | src/cmr/opendap/util.clj | src/cmr/opendap/util.clj | (ns cmr.opendap.util)
(defn bool
[arg]
(if (contains? #{true :true "true" "TRUE" "t" "T" 1} arg)
true
false))
(defn remove-empty
[coll]
(remove #(or (nil? %) (empty? %)) coll))
(defn deep-merge
"Merge maps recursively."
[& maps]
(if (every? #(or (map? %) (nil? %)) maps)
(apply merge-with de... | (ns cmr.opendap.util)
(defn bool
[arg]
(if (contains? #{true :true "true" "TRUE" "t" "T" 1} arg)
true
false))
(defn remove-empty
[coll]
(remove #(or (nil? %) (empty? %)) coll))
(defn deep-merge
"Merge maps recursively."
[& maps]
(if (every? #(or (map? %) (nil? %)) maps)
(apply merge-with de... | Return time elapsed as a float. | Return time elapsed as a float.
| Clojure | apache-2.0 | nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository |
9d7e620bbf599e3d57be966426d119354c8efc71 | test/cljs/test_runner.cljs | test/cljs/test_runner.cljs | (ns test-runner
(:require [cljs.core-test :as core-test]
[cljs.reader-test :as reader-test]
[clojure.string-test :as string-test]))
(core-test/test-stuff)
(reader-test/test-reader)
(string-test/test-string)
(println "Tests completed without exception")
| (ns test-runner
(:require [cljs.core-test :as core-test]
[cljs.reader-test :as reader-test]
[clojure.string-test :as string-test]))
(set! *print-fn* js/print)
(core-test/test-stuff)
(reader-test/test-reader)
(string-test/test-string)
(println "Tests completed without exception")
| Set the default print function for tests in V8. | Set the default print function for tests in V8.
| Clojure | epl-1.0 | mstang/clojurescript,mstang/clojurescript,mstang/clojurescript |
69f8783f5fbfb74131c4d1c18d728644d1fe9ecb | src/pepa/bus.clj | src/pepa/bus.clj | (ns pepa.bus
(:require [com.stuartsierra.component :as component]
[clojure.core.async :as async :refer [>!!]]))
;;; pepa.bus is a simple application-wide notification bus. Clients
;;; can subscribe for any topic they want and will receive a value for
;;; any call of `notify!' for that topic.
(defn subsc... | (ns pepa.bus
(:require [com.stuartsierra.component :as component]
[clojure.core.async :as async :refer [>!!]]))
;;; pepa.bus is a simple application-wide notification bus. Clients
;;; can subscribe for any topic they want and will receive a value for
;;; any call of `notify!' for that topic.
(defn subsc... | Add `subscribe-all' to receive *all* messages | Bus: Add `subscribe-all' to receive *all* messages
| Clojure | agpl-3.0 | DR-YangLong/pepa,bevuta/pepa,rosund2/pepa,cswaroop/pepa |
6df32fbbdae938455b7b7732b3fdef24fd9944d5 | src/cljs/gtfve/utils/google_maps.cljs | src/cljs/gtfve/utils/google_maps.cljs | (ns gtfve.utils.google-maps
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require [cljs.core.async :as async :refer [put! chan <! close!]]))
(defonce Maps google.maps)
(defonce Data Maps.Data)
(defonce map-types (js->clj Maps.MapTypeId :keywordize-keys true))
(defonce default-map-opts {:cente... | (ns gtfve.utils.google-maps
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require [cljs.core.async :as async :refer [put! chan <! close!]]))
(defonce Maps google.maps)
(defonce Data Maps.Data)
(defonce map-types (js->clj Maps.MapTypeId :keywordize-keys true))
(defonce default-map-opts {:cente... | Extend protocols to google maps classes | Extend protocols to google maps classes | Clojure | epl-1.0 | alvinfrancis/gtfve |
7b7617fc1dd956af431ba589521f38649a8f4733 | test/clj/backtype/storm/util_test.clj | test/clj/backtype/storm/util_test.clj | (ns backtype.storm.util-test
(:import [backtype.storm Config])
(:import [backtype.storm.utils Utils])
(:import [com.netflix.curator.retry ExponentialBackoffRetry])
(:use [backtype.storm util])
(:use [clojure test])
)
(deftest test-new-curator-uses-exponential-backoff
(let [expected_interval 2400
ex... | (ns backtype.storm.util-test
(:import [backtype.storm Config])
(:import [backtype.storm.utils Utils])
(:import [com.netflix.curator.retry ExponentialBackoffRetry])
(:use [backtype.storm util])
(:use [clojure test])
)
(deftest test-new-curator-uses-exponential-backoff
(let [expected_interval 2400
ex... | Change ceiling test to be deterministic | Change ceiling test to be deterministic
| Clojure | apache-2.0 | rahulkavale/storm,taoguan/storm-1,carl34/storm,erikdw/storm,0x726d77/storm,kamleshbhatt/storm,0x726d77/storm,erikdw/storm,kamleshbhatt/storm,3manuek/storm-1,srdo/storm,rahulkavale/storm,mesosphere/storm,ferrero-zhang/storm,kamleshbhatt/storm,revans2/storm,metamx/incubator-storm,cluo512/storm,ujfjhz/storm,nathanmarz/sto... |
ae7779e6d554280c0a4da63477da26eff002aed6 | profiles.clj | profiles.clj | {:dev
{:aliases {"test-all" ["with-profile" "dev,1.7:dev,1.6:dev,1.5:dev" "test"]}
:dependencies [[com.nimbusds/nimbus-jose-jwt "4.13.1"]]
:codeina {:sources ["src"]
:reader :clojure
:target "doc/dist/latest/api"
:src-uri "http://github.com/funcool/buddy-core/blob/master/"
... | {:dev
{:aliases {"test-all" ["with-profile" "dev,1.7:dev" "test"]}
:dependencies [[com.nimbusds/nimbus-jose-jwt "4.13.1"]]
:codeina {:sources ["src"]
:reader :clojure
:target "doc/dist/latest/api"
:src-uri "http://github.com/funcool/buddy-core/blob/master/"
:src-uri-... | Remove clojure 1.5 and 1.6 proofiles from tests. | Remove clojure 1.5 and 1.6 proofiles from tests.
Because of test.check.
| Clojure | apache-2.0 | funcool/buddy-sign |
45482d8c9e540718eac6dbb18daae7a8690bd8a2 | profiles.clj | profiles.clj | {:dev
{:dependencies [[org.clojure/tools.namespace "0.2.11"]
[criterium "0.4.3"]]
:source-paths ["dev"]
:codeina {:sources ["src"]
:reader :clojure
:target "doc/dist/latest/api"
:src-uri "http://github.com/funcool/cats/blob/master/"
:src-uri-prefix "... | {:dev
{:aliases {"test-all" ["with-profile" "dev,1.8:dev" "test"]}
:dependencies [[org.clojure/tools.namespace "0.2.11"]
[criterium "0.4.3"]]
:source-paths ["dev"]
:codeina {:sources ["src"]
:reader :clojure
:target "doc/dist/latest/api"
:src-uri "http://githu... | Add test under clojure 1.8 | Add test under clojure 1.8
| Clojure | bsd-2-clause | funcool/cats |
983a60c13d0674cc685c12e1a627e5e8d39a53ed | integration-tests/apps/xa-old-jdbc/immutant.clj | integration-tests/apps/xa-old-jdbc/immutant.clj | (ns xa.init
(:require [immutant.xa :as xa]
[immutant.web :as web]
[clojure.java.jdbc :as sql]))
(defonce ds (xa/datasource "foo" {:adapter "h2" :database "mem:foo"}))
(def spec {:datasource ds})
(sql/with-connection spec
(sql/create-table :things
[:name :varchar]))
(xa... | (ns xa.init
(:require [immutant.xa :as xa]
[immutant.web :as web]
[clojure.java.jdbc :as sql]
clojure.java.jdbc.internal)) ; ensure project dep wins
(defonce ds (xa/datasource "foo" {:adapter "h2" :database "mem:foo"}))
(def spec {:datasource ds})
(sql/with-connection spec
(sql... | Make sure test fails if 1.x not available | Make sure test fails if 1.x not available
| Clojure | apache-2.0 | immutant/immutant,coopsource/immutant,immutant/immutant,coopsource/immutant,immutant/immutant,immutant/immutant,kbaribeau/immutant,coopsource/immutant,kbaribeau/immutant,kbaribeau/immutant |
7831e30edc453aee06125c27847a100314b2793e | src/cljs/engine/entities.cljs | src/cljs/engine/entities.cljs | (ns chocolatier.engine.entities
;; NOTE to use protocols from another ns, import them explicitely by
;; name and not their methods
;; Use them in this ns by refering to the name
(:require [chocolatier.engine.components :refer [Entity Renderable
Attackable TestC... | (ns chocolatier.engine.entities
;; NOTE to use protocols from another ns, import them explicitely by
;; name and not their methods
;; Use them in this ns by refering to the name
(:require [chocolatier.engine.components :refer [Entity Renderable
Attackable TestC... | Fix movement of test entity | Fix movement of test entity
| Clojure | epl-1.0 | phelanm/chocolatier,alexkehayias/chocolatier,alexkehayias/chocolatier |
4b470c0dced1901a6e8972b9207f23c02a1be42c | frontend/src-cljs/pp_client/util.cljs | frontend/src-cljs/pp_client/util.cljs | (ns pp-client.util)
;;------------------------------------------------------------------------------
;; Util Functions
;;------------------------------------------------------------------------------
(defn log
"Log a Clojure thing."
[thing]
(js/console.log (pr-str thing)))
(defn js-log
"Log a JavaScript thin... | (ns pp-client.util)
(def $ js/jQuery)
;;------------------------------------------------------------------------------
;; Util Functions
;;------------------------------------------------------------------------------
(defn log
"Log a Clojure thing."
[thing]
(js/console.log (pr-str thing)))
(defn js-log
"Lo... | Add some ajax functions that need to be tested. | Add some ajax functions that need to be tested.
| Clojure | mit | oakmac/pretty-print.net,comamitc/pretty-print.net,oakmac/pretty-print.net,oakmac/pretty-print.net,comamitc/pretty-print.net |
f0e08f92a41ab95c8738389bfb784a93ae378efe | src/demo/web.clj | src/demo/web.clj | (ns demo.web
(:require [clojure.pprint :refer [pprint]]
[immutant.web :as web]
[immutant.web.javax :as javax]
[ring.middleware.resource :as ring-resource]
[ring.util.response :as ring-util]))
(defn echo-request
"Echoes the request ba... | (ns demo.web
(:require [clojure.pprint :refer [pprint]]
[immutant.web :as web]
[ring.util.response :as ring-util]))
(defn echo-request
"Echoes the request back as a string."
[request]
(ring-util/response (with-out-str (pprint request))))
(defn -main
[& {:a... | Remove session counter example for now. | Remove session counter example for now.
| Clojure | apache-2.0 | jkutner/feature-demo,jkutner/feature-demo,immutant/feature-demo,immutant/feature-demo,coopsource/feature-demo,jkutner/feature-demo,immutant/feature-demo,coopsource/feature-demo,FalseProtagonist/graphagora,FalseProtagonist/graphagora,FalseProtagonist/graphagora,coopsource/feature-demo |
10c41e502369888a532f9a16be88c2db9a93f627 | src-docs/com/wsscode/pathom/book/connect/getting_started.cljs | src-docs/com/wsscode/pathom/book/connect/getting_started.cljs | (ns com.wsscode.pathom.book.connect.getting-started
(:require [com.wsscode.pathom.core :as p]
[com.wsscode.pathom.connect :as pc]
[com.wsscode.pathom.profile :as pp]))
; initialize a dispatch function
(defmulti resolver-fn pc/resolver-dispatch)
; initialize indexes
(def indexes (atom {}))
; ... | (ns com.wsscode.pathom.book.connect.getting-started
(:require [com.wsscode.pathom.core :as p]
[com.wsscode.pathom.connect :as pc]
[com.wsscode.pathom.profile :as pp]))
; creating our first resolver
(pc/defresolver latest-product [_ _]
{::pc/output [{::latest-product [:product/id :product/ti... | Update getting started example to use map resolvers | Update getting started example to use map resolvers
| Clojure | mit | wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom |
095933bbe4b7cdcb86702927007c1fbe2d320bc3 | src/clj/comic_reader/server.clj | src/clj/comic_reader/server.clj | (ns comic-reader.server
(:gen-class)
(:require [comic-reader.sites :as sites]
[comic-reader.scrape :as scrape]
[ring.util.response :as response]
[ring.middleware.params :refer [wrap-params]]
[compojure.core :as c]
[compojure.route :as route]
[... | (ns comic-reader.server
(:gen-class)
(:require [comic-reader.sites :as sites]
[comic-reader.scrape :as scrape]
[ring.util.response :as response]
[ring.middleware.params :refer [wrap-params]]
[compojure.core :as c]
[compojure.route :as route]
[... | Make the base page hiccup template better | Make the base page hiccup template better
| Clojure | epl-1.0 | RadicalZephyr/comic-reader,RadicalZephyr/comic-reader |
bffaa88303a548431ae0e8fba15dbc0dd7d4d9b0 | src/web/components/state_chooser.cljs | src/web/components/state_chooser.cljs | (ns web.components.state-chooser
(:require [clojure.string :as str]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]))
(defui StateChooserItem
static om/Ident
(ident [this props]
[:state (:id props)])
static om/IQuery
(query [this]
[:id :name :type])
Object
(render ... | (ns web.components.state-chooser
(:require [clojure.string :as str]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom]))
(defui StateChooserItem
static om/Ident
(ident [this props]
[:state (:id props)])
static om/IQuery
(query [this]
[:id :name :type])
Object
(render ... | Improve the state chooser item code ever so slightly | Improve the state chooser item code ever so slightly
| Clojure | agpl-3.0 | Jannis/custard |
38d742bd4c3f6eab0d5a3d773aac8c114bc3ec35 | src/cljs/my_money/views/login.cljs | src/cljs/my_money/views/login.cljs | (ns my-money.views.login
(:require [my-money.components.common :as c]
[my-money.components.button :refer [button]]
[my-money.app.controller.authentication :as ac]
[reagent.core :as r]))
(defn- buttons [e! data close-fn]
[:div
[:input.btn.btn-primary.ml-1 {:type "submit"
... | (ns my-money.views.login
(:require [my-money.components.common :as c]
[my-money.app.controller.authentication :as ac]
[reagent.core :as r]))
(defn- buttons [e! data close-fn]
[:div
[:input.btn.btn-primary.ml-1 {:type "submit"
:form "login"
... | Revert previous cancel button component changes as they were not ready yet | Revert previous cancel button component changes as they were not ready yet
| Clojure | mit | Juholei/my-money,Juholei/my-money |
3c3759436d5b5d0af5d45b5cadabbd6a3ed193f2 | src/cljs/hacker_agent/utils.cljs | src/cljs/hacker_agent/utils.cljs | (ns hacker-agent.utils)
(defn dissoc-in [data path]
(let [prefix (butlast path)
key (last path)]
(if prefix
(update-in data prefix dissoc key)
(dissoc data key))))
(defn log-clj [o]
(.log js/console (clj->js o)))
| (ns hacker-agent.utils)
(defn dissoc-in [data path]
(let [prefix (butlast path)
key (last path)]
(if prefix
(update-in data prefix dissoc key)
(dissoc data key))))
(defn log-clj [o]
(.log js/console (clj->js o)))
(defn domain [url]
(let [re (new js/RegExp "^https?\\:\\/\\/(www\\.)?([^\\... | Add a domain extractor utility | Add a domain extractor utility | Clojure | epl-1.0 | alvinfrancis/hacker-agent |
9e2809869f111fcdf41da3f8df9c64660a5d1916 | test/tttclj/t_core.clj | test/tttclj/t_core.clj | (ns tttclj.t-core
(:use midje.sweet)
(:use [tttclj.core]))
(facts "about `create-game'"
(fact "x always starts"
(->> (repeat 100 (create-game))
(map :player)
(frequencies)) => { :x 100 })
(fact "no tiles are set to start with"
(frequencies (... | (ns tttclj.t-core
(:use midje.sweet)
(:use [tttclj.core]))
(facts "about `create-game'"
(fact "x always starts"
(->> (repeat 100 (create-game))
(map :player)
(frequencies)) => { :x 100 })
(fact "no tiles are set to start with"
(frequencies (... | Add another test for `possible-moves' | Add another test for `possible-moves'
| Clojure | mit | stig/tttclj |
5d0bc4bb1c4126eeb4048a79e06307c0f9e37eee | src/desdemona/lifecycles/logging.clj | src/desdemona/lifecycles/logging.clj | (ns desdemona.lifecycles.logging
(:require [taoensso.timbre :refer [info]]))
(defn log-batch
[event lifecycle]
(let [task-name (-> event
:onyx.core/task-map
:onyx/name)]
(doseq [m (->> event
:onyx.core/results
:tree
... | (ns desdemona.lifecycles.logging
(:require [taoensso.timbre :refer [info]]))
(defn log-batch
[event lifecycle]
(let [task-name (-> event
:onyx.core/task-map
:onyx/name)]
(doseq [m (->> event
:onyx.core/results
:tree
... | Use update to make the impl more legible | Use update to make the impl more legible
| Clojure | epl-1.0 | RackSec/desdemona |
0b1172355fa0d43985f9418c2054e8804c27076c | src/instaskip/actions/routes.clj | src/instaskip/actions/routes.clj | (in-ns 'instaskip.actions)
(defn list-routes [filters innkeeper-config]
(let [routes (m/match filters
{:team team}
(ik/get-routes {:owned-by-team team} innkeeper-config)
:else
(ik/get-routes innkeeper-config))
f... | (in-ns 'instaskip.actions)
(defn list-routes [filters innkeeper-config]
(let [routes (m/match filters
{:team team}
(ik/get-routes {:owned-by-team team} innkeeper-config)
:else
(ik/get-routes innkeeper-config))
f... | Add more details to list-route | Add more details to list-route
| Clojure | mit | danpersa/instaskip |
1abc0e4239259a96662a82a3da4afaf24a6a0e82 | scripts/build.clj | scripts/build.clj | (require '[cljs.build.api :as b]
'[cljs.tagged-literals])
(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))
(println "Building ...")
(let [start (System/nanoTime)]
(b/build
(b/inputs "src" "test")
{:main 'uxbox.test-runner
:o... | (require '[cljs.build.api :as b]
'[cljs.tagged-literals])
(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*
assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v)))
(println "Building ...")
(let [start (System/nanoTime)]
(b/build
(b/inputs "src" "test")
{:main 'uxbox.test-runner
:o... | Replace :whitespace optimization with :none | Replace :whitespace optimization with :none
Because :whitespace is not compatible with nodejs target.
| Clojure | mpl-2.0 | uxbox/uxbox,studiospring/uxbox,studiospring/uxbox,uxbox/uxbox,uxbox/uxbox,studiospring/uxbox |
b82332ae9f403b34f2a04213c5f6c4122baf06aa | dev/user.clj | dev/user.clj | (ns user
(:require [clojure.tools.namespace.repl :as repl]
[clojure.walk :refer [macroexpand-all]]
[clojure.pprint :refer [pprint]]
[clojure.test :as test]))
(defonce ^:dynamic
*namespaces*
['cats.core-spec
'cats.builtin-spec
'cats.applicative.validation-spec
'cats.mo... | (ns user
(:require [clojure.tools.namespace.repl :as repl]
[clojure.walk :refer [macroexpand-all]]
[clojure.pprint :refer [pprint]]
[clojure.test :as test]))
(defonce ^:dynamic
*namespaces*
['cats.core-spec
'cats.builtin-spec
'cats.applicative.validation-spec
'cats.la... | Add cats.labs.channel-spec to testing namespaces. | Add cats.labs.channel-spec to testing namespaces.
| Clojure | bsd-2-clause | tcsavage/cats,OlegTheCat/cats,funcool/cats,mccraigmccraig/cats,alesguzik/cats,yurrriq/cats |
69e7e90a7f35298d23a9069988aa2a8954fe07db | build.boot | build.boot | #!/usr/bin/env boot
(set-env!
:source-paths #{"less" "src"}
:resource-paths #{"html" "resources"}
:dependencies '[; Boot setup
[adzerk/boot-cljs "1.7.48-6"]
[adzerk/boot-reload "0.4.1"]
[deraen/boot-less "0.4.2"]
[pandeiro/boot-http "0.7.0-S... | #!/usr/bin/env boot
(set-env!
:source-paths #{"less" "src"}
:resource-paths #{"html" "resources"}
:dependencies '[; Boot setup
[adzerk/boot-cljs "1.7.170-1"]
[adzerk/boot-reload "0.4.1"]
[deraen/boot-less "0.4.2"]
[pandeiro/boot-http "0.7.0-... | Update to latest ClojureScript, boot-cljs and Om | Update to latest ClojureScript, boot-cljs and Om
| Clojure | agpl-3.0 | Jannis/om-next-kanban-demo,Jannis/om-next-kanban-demo |
957473ebeef7da5a4a3f2fce421f18be7b76a6b9 | project.clj | project.clj | (defproject compojure "1.3.3"
:description "A concise routing library for Ring"
:url "https://github.com/weavejester/compojure"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/tools.... | (defproject compojure "1.3.3"
:description "A concise routing library for Ring"
:url "https://github.com/weavejester/compojure"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/tools.... | Update Clojure 1.7 test profile to 1.7.0-beta2 | Update Clojure 1.7 test profile to 1.7.0-beta2
| Clojure | epl-1.0 | ezy023/compojure,Christopher-Bui/compojure,sidcarter/compojure,weavejester/compojure |
6680d99ba77bee90f9291264a11de971985e95a7 | src/tttclj/web.clj | src/tttclj/web.clj | (ns tttclj.web
(:require [chord.http-kit :refer [wrap-websocket-handler]]
[clojure.core.async :refer [<! >! put! close! go go-loop timeout]]
[compojure.core :refer [defroutes GET]]
[compojure.route :refer [resources]]
[org.httpkit.server :refer [run-server]]))
(defn in... | (ns tttclj.web
(:require [chord.http-kit :refer [wrap-websocket-handler]]
[clojure.core.async :refer [<! >! put! close! go go-loop timeout]]
[compojure.core :refer [defroutes GET]]
[compojure.route :refer [resources]]
[org.httpkit.server :refer [run-server]]))
(defn in... | Print less information on startup | Print less information on startup
| Clojure | mit | stig/tttclj |
f4e4d80e37743d3061ab2962c7ee89b932c18ab2 | src/ansel/session.clj | src/ansel/session.clj | (ns ansel.session
(:import java.util.UUID)
(:require [ring.middleware.session.store :refer :all]
[ansel.util :refer [when-slurp]]))
(defn new-key []
(str (UUID/randomUUID)))
(deftype FileSystemSessionStore [session-filename]
SessionStore
(read-session [s session-key]
(let [session-text (whe... | (ns ansel.session
(:import java.util.UUID)
(:require [ring.middleware.session.store :refer :all]
[clojure.edn :as e]
[ansel.util :refer [when-slurp]]))
(defn new-key []
(str (UUID/randomUUID)))
(deftype FileSystemSessionStore [session-filename]
SessionStore
(read-session [s session-... | Use edn for reading strings | Use edn for reading strings
| Clojure | bsd-2-clause | honza/ansel,honza/ansel,honza/ansel |
39c82b0a6186847485c2c431d71dfa5a13cbbe39 | src/storemi/js.clj | src/storemi/js.clj | (ns storemi.js
(:require
[clj-rhino :as js]
[clojure.walk :refer [keywordize-keys]]))
(def parser-scope
(doto (js/new-safe-scope)
(js/eval (slurp "resources/public/js/underscore-min.js"))
(js/eval (slurp "resources/public/js/parser.js"))))
(defn parse-script [script]
(let [sc (js/new-scope nil... | (ns storemi.js
(:require
[clj-rhino :as js]
[clojure.walk :refer [keywordize-keys]]))
(def parser-scope
(doto (js/new-safe-scope)
(js/eval (slurp "resources/public/js/underscore-min.js"))
(js/eval (slurp "resources/public/js/parser.js"))))
(defn parse-script [script]
(let [sc (js/new-scope nil... | Add paths paremeter on story-component | Add paths paremeter on story-component
| Clojure | apache-2.0 | nvlled/storemi,nvlled/storemi |
57ec9c21ced5aaf0b1ebf3dd0640ca16ccfe2f24 | src/mdr2/dtb.clj | src/mdr2/dtb.clj | (ns mdr2.dtb
"Functions to query DAISY Talking Books"
(:require [clojure.data.xml :as xml]
[clojure.java.io :refer [file]]
[clojure.java.shell :refer [sh]]
[clojure.string :refer [trim-newline]])
(:import javax.sound.sampled.AudioSystem))
(defn file-audio-length
"Get the len... | (ns mdr2.dtb
"Functions to query DAISY Talking Books"
(:require [clojure.data.xml :as xml]
[clojure.java.io :refer [file]])
(:import javax.sound.sampled.AudioSystem))
(defn file-audio-length
"Get the length of the audio in seconds for a given audio file"
[file]
;; see http://stackoverflow.com/q... | Remove the shell based duration detection | Remove the shell based duration detection
| Clojure | agpl-3.0 | sbsdev/mdr2 |
1a10b037da8716acda22161db036a99bd0d2c3fa | src/clj/saapas/server.clj | src/clj/saapas/server.clj | (ns saapas.server
(:require [clojure.java.io :as io]
[compojure.core :refer [GET defroutes]]
[compojure.route :refer [resources]]
[compojure.handler :refer [api]]
[ring.util.response :refer [redirect]]
[ring.util.http-response :refer :all]
[ring.... | (ns saapas.server
(:require [clojure.java.io :as io]
[compojure.core :refer [GET defroutes]]
[compojure.route :refer [resources]]
[compojure.handler :refer [api]]
[ring.util.response :refer [redirect]]
[ring.util.http-response :refer :all]
[ring.... | Set content-type for index. Note about serving index.html from classpath | Set content-type for index. Note about serving index.html from classpath
| Clojure | mit | Deraen/saapas |
17549d18aaa79278d157f4cab6d68c13b7267920 | src/clojournal/layout.clj | src/clojournal/layout.clj | (ns clojournal.layout
(:require [selmer.parser :as parser]
[clojure.string :as s]
[ring.util.response :refer [content-type response]]
[compojure.response :refer [Renderable]]
[environ.core :refer [env]]
[clojournal.models.article :as article]
[cl... | (ns clojournal.layout
(:require [selmer.parser :as parser]
[clojure.string :as s]
[ring.util.response :refer [content-type response]]
[compojure.response :refer [Renderable]]
[environ.core :refer [env]]
[clojournal.models.article :as article]
[cl... | Remove a blank line before EOF. | Remove a blank line before EOF.
| Clojure | epl-1.0 | nyampass/clojournal,nyampass/clojournal |
12c5e9e69391f8f842a30d0642fe627e976c6d3f | project.clj | project.clj | (defproject lspector/clojush "1.2.27"
:description "The Push programming language and the PushGP genetic programming
system implemented in Clojure.
See http://hampshire.edu/lspector/push.html"
:dependencies [[org.clojure/clojure "1.3.0"]
... | (defproject lspector/clojush "1.2.28"
:description "The Push programming language and the PushGP genetic programming
system implemented in Clojure.
See http://hampshire.edu/lspector/push.html"
:dependencies [[org.clojure/clojure "1.3.0"]
... | Return tagging actions from environments. | Return tagging actions from environments.
| Clojure | epl-1.0 | lspector/Clojush,NicMcPhee/Clojush,Vaguery/Clojush,saulshanabrook/Clojush,thelmuth/Clojush,NicMcPhee/Clojush,lspector/Clojush,saulshanabrook/Clojush,thelmuth/Clojush,Vaguery/Clojush |
69ba5c37d438200f71d7b501b2b29bdd9f31213d | test/bide/core_tests.cljs | test/bide/core_tests.cljs | (ns bide.core-tests
(:require [cljs.test :as t]
[bide.core :as r]))
(t/deftest router-tests
(t/testing "Simple match"
(let [r (r/build [["/a/b" :r1]
["/b/:c" :r2]
["/d/:e/f" :r3]])]
(t/is (= [:r1 nil] (r/match r "/a/b")))
(t/is (= [:r2 {:c "1"... | (ns bide.core-tests
(:require [cljs.test :as t]
[bide.core :as r]))
(t/deftest match-tests
(let [r (r/build [["/a/b" :r1]
["/b/:c" :r2]
["/d/:e/f" :r3]])]
(t/is (= [:r1 nil] (r/match r "/a/b")))
(t/is (= [:r2 {:c "1"}] (r/match r "/b/1")))
(t/is (= [:... | Add tests for resolve operation. | Add tests for resolve operation.
| Clojure | bsd-2-clause | funcool/bide,funcool/bide |
4e52f3fc76dc934decc27aa216014acd96545b13 | project.clj | project.clj | (defproject org.onyxplatform/onyx-bookkeeper "0.8.0.0-alpha5"
:description "Onyx plugin for BookKeeper"
:url "https://github.com/onyx-platform/onyx-bookkeeper"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars... | (defproject org.onyxplatform/onyx-bookkeeper "0.8.0.0-SNAPSHOT"
:description "Onyx plugin for BookKeeper"
:url "https://github.com/onyx-platform/onyx-bookkeeper"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://cloja... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | epl-1.0 | onyx-platform/onyx-bookkeeper |
2994f1e48d745a02d6b4f3a6760bb38bc04be2e8 | project.clj | project.clj | (defproject seathree "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/tools.nrepl "0.2.3"]
... | (defproject seathree "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/tools.nrepl "0.2.3"]
... | Upgrade twitter api as twitter broke it with https | Upgrade twitter api as twitter broke it with https
| Clojure | agpl-3.0 | nathanielksmith/seathree,nathanielksmith/seathree |
7d8026467e2da2cc87eaa1cd75e2bfbfe8370f0c | project.clj | project.clj | (defproject railway-oriented-programming "0.1.1"
:description "An implementation of railway oriented programming"
:url "https://github.com/HughPowell/railway-oriented-programming"
:license {:name "Mozilla Public License v2.0"
:url "https://www.mozilla.org/en-US/MPL/2.0/"}
:dependencies [[org.clojure... | (defproject railway-oriented-programming "0.1.2-SNAPSHOT"
:description "An implementation of railway oriented programming"
:url "https://github.com/HughPowell/railway-oriented-programming"
:license {:name "Mozilla Public License v2.0"
:url "https://www.mozilla.org/en-US/MPL/2.0/"}
:dependencies [[or... | Move version to next SNAPSHOT | Move version to next SNAPSHOT
| Clojure | mpl-2.0 | HughPowell/railway-oriented-programming |
8baef50f05e01d17711e09e4edc9c2ac0b488111 | project.clj | project.clj | (defproject nhl-score-api "0.24.0"
:description "A JSON API that returns the scores and goals from the latest finished NHL games."
:license {:name "MIT"
:url "https://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/data.json "0.2.6"]
... | (defproject nhl-score-api "0.24.0"
:description "A JSON API that returns the scores and goals from the latest finished NHL games."
:license {:name "MIT"
:url "https://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/data.json "0.2.6"]
... | Update Clojure version 1.7.0 -> 1.10.0 | Update Clojure version 1.7.0 -> 1.10.0
This also requires updating com.taoensso/carmine version 2.12.0 -> 2.19.1.
| Clojure | mit | peruukki/nhl-score-api |
fcddaa1511e02fd628ba6f50d3193313163b107d | project.clj | project.clj | (defproject mvxcvi/vault "0.3.0-SNAPSHOT"
:description "Content-addressible datastore."
:url "https://github.com/greglook/vault"
:license {:name "Public Domain"
:url "http://unlicense.org/"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/data.codec "0.1.0"]
... | (defproject mvxcvi/vault "0.3.0-SNAPSHOT"
:description "Content-addressible datastore."
:url "https://github.com/greglook/vault"
:license {:name "Public Domain"
:url "http://unlicense.org/"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/data.codec "0.1.0"]
... | Use snapshot version of puget. | Use snapshot version of puget.
| Clojure | unlicense | greglook/vault |
d6a9b8f6af4cd6498bdd4d7a0921b6db3ab12f8c | src/clj/whatishistory/handler.clj | src/clj/whatishistory/handler.clj | (ns whatishistory.handler
(:require [compojure.core :refer [GET defroutes]]
[compojure.route :refer [not-found resources]]
[ring.middleware.defaults :refer [site-defaults wrap-defaults]]
[hiccup.core :refer [html]]
[hiccup.page :refer [include-js include-css]]
... | (ns whatishistory.handler
(:require [compojure.core :refer [GET defroutes]]
[compojure.route :refer [not-found resources]]
[ring.middleware.defaults :refer [site-defaults wrap-defaults]]
[hiccup.core :refer [html]]
[hiccup.page :refer [include-js include-css]]
... | Include parse library on page | Include parse library on page
| Clojure | epl-1.0 | ezmiller/whatishistory |
229c59e69cf1fb25ead3ed228713b450baf60d32 | server/project.clj | server/project.clj | (defproject nightweb-server/Nightweb "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Public Domain"
:url "http://unlicense.org/UNLICENSE"}
:dependencies [[org.clojure/clojure "1.4.0"]]
:main nightweb-server.core
:source-paths ["src" "../c... | (defproject nightweb-server/Nightweb "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Public Domain"
:url "http://unlicense.org/UNLICENSE"}
:dependencies [[org.clojure/clojure "1.5.0"]]
:main nightweb-server.core
:source-paths ["src" "../c... | Update server to clojure 1.5 | Update server to clojure 1.5
| Clojure | unlicense | oakes/Nightweb,oakes/Nightweb |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.