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 |
|---|---|---|---|---|---|---|---|---|---|
65101519fde1ecf1cdab5117a3ea048abc621fa4 | project.clj | project.clj | (defproject brute "0.4.0-SNAPSHOT"
:description "A simple and lightweight Entity Component System library for writing games with Clojure"
:url "http://www.github.com/markmandel/brute"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.cloj... | (defproject brute "0.4.0-SNAPSHOT"
:description "A simple and lightweight Entity Component System library for writing games with Clojure"
:url "http://www.github.com/markmandel/brute"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.cloj... | Make it a map, easier to look at. | Make it a map, easier to look at.
| Clojure | epl-1.0 | markmandel/brute |
dc03ca51694d9dcb7bd170b84aeb152f33a2ba20 | project.clj | project.clj | (defproject pomo "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.170"]
[sablono "0.3.6"]]
:plugins [[lein-figwheel "0.5.0-1"]]
:clean-targets [:target-path "out" "resources/public/cljs"]
:cljsbuild {
:builds [{:id "dev... | (defproject pomo "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.170"]
[sablono "0.3.6"]]
:plugins [[lein-figwheel "0.5.0-1"]
[lein-cljsbuild "1.1.2"]]
:clean-targets [:target-path "out" "resources/public/cljs"]
:cljsbui... | Add lein-cljsbuild and a "prod" config | Add lein-cljsbuild and a "prod" config
| Clojure | mit | riwsky/mo-pomo,riwsky/mo-pomo |
24fbc74409fc965cbf97d4b26a6aa67570d1ef95 | project.clj | project.clj | (defproject com.draines/postal "1.10.0"
:repositories {"java.net" "http://download.java.net/maven/2"}
:dependencies [[org.clojure/clojure "1.4.0"]
[commons-codec "1.7"]
[javax.mail/mail "1.4.4"
:exclusions [javax.activation/activation]]])
| (defproject com.draines/postal "1.10.0"
:repositories {"java.net" "http://download.java.net/maven/2"}
:dependencies [[commons-codec "1.7"]
[javax.mail/mail "1.4.4"
:exclusions [javax.activation/activation]]]
:profiles {:dev {:dependencies [[org.clojure/clojure "1.5.1"]]}
... | Move clojure out of proper deps. | Move clojure out of proper deps.
| Clojure | mit | bo-chen/postal,drewr/postal |
dc595e286e66f6675071a1ddce023f63cb808ba2 | test/isla/test/interpreter.clj | test/isla/test/interpreter.clj | (ns isla.test.interpreter
(:use [isla.interpreter])
(:use [isla.parser])
(:use [clojure.test])
(:use [clojure.pprint]))
(deftest integer-assignment
(let [result (interpret (parse "isla is 1"))]
(is (= (get (:ctx result) "isla")
1))))
(deftest test-single-invoke-returns-return-value
(let [r... | (ns isla.test.interpreter
(:use [isla.interpreter])
(:use [isla.parser])
(:use [clojure.test])
(:use [clojure.pprint]))
(deftest integer-assignment
(let [result (interpret (parse "isla is 1"))]
(is (= (get (:ctx result) "isla")
1))))
(deftest test-single-invoke-returns-return-value
(let [r... | Add test for writing out assigned value. | Add test for writing out assigned value. | Clojure | mit | maryrosecook/islaclj |
7de0ba2969545670672bb0df41bbe20f3772a5c1 | lein/.lein/profiles.clj | lein/.lein/profiles.clj | {:repl {:plugins [[cider/cider-nrepl "0.18.0-SNAPSHOT"]
[refactor-nrepl "2.4.0-SNAPSHOT"]]
:dependencies
[[acyclic/squiggly-clojure "0.1.9-SNAPSHOT" :exclusions [org.clojure/tools.reader]]
[compliment "0.3.5"]]}
:env {:squiggly
"{:checkers [:eastwood]
:eastwoo... | {:repl {:plugins [[refactor-nrepl "2.4.0-SNAPSHOT"]
[cider/cider-nrepl "0.20.0"]]
:dependencies
[[org.clojure/tools.nrepl "0.2.13"]
[acyclic/squiggly-clojure "0.1.9-SNAPSHOT" :exclusions [org.clojure/tools.reader]]
[compliment "0.3.5"]]}
:env {:squiggly
"{:che... | Update to latest cider version. | Update to latest cider version.
| Clojure | bsd-2-clause | mgrbyte/dot-files,mgrbyte/dot-files,mgrbyte/dot-files |
90c3142f33438d557d362ee3caf9a250faa2fccd | dev/user.clj | dev/user.clj | (ns user
(:require [dashboard-clj.system :as s]
[figwheel-sidecar.repl-api :as figwheel]
[com.stuartsierra.component :as component]
[clojure.tools.namespace.repl :as repl-tools]
[environ.core :refer [env]]))
;; Let Clojure warn you when it needs to reflect on types, or... | (ns user
(:require [dashboard-clj.core :as dashboard]
[figwheel-sidecar.repl-api :as figwheel]
[com.stuartsierra.component :as component]
[clojure.tools.namespace.repl :as repl-tools]
[environ.core :refer [env]]))
;; Let Clojure warn you when it needs to reflect on typ... | Add helper method to reload namespaces after stopping the system | Add helper method to reload namespaces after stopping the system
| Clojure | mit | multunus/dashboard-clj |
86499487f8ff7ed1a5a132ed174620ba052dfead | clojure/lein.symlink/profiles.clj | clojure/lein.symlink/profiles.clj | {:user {:dependencies [[slamhound "1.3.1"]
[org.clojure/tools.namespace "0.2.4"]
[clj-stacktrace "0.2.7"]]
:plugins [[lein-pprint "1.1.1"]
[lein-difftest "2.0.0"]
[lein-cloverage "1.0.2"]
[lein-marginalia "0.7.1... | {:user {:dependencies [[slamhound "1.3.1"]
[org.clojure/tools.namespace "0.2.4"]
[clj-stacktrace "0.2.7"]]
:plugins [[lein-pprint "1.1.1"]
[lein-difftest "2.0.0"]
[lein-cloverage "1.0.2"]
[lein-marginalia "0.7.1... | Add Eastwood to Clojure plugins | Add Eastwood to Clojure plugins
| Clojure | mit | jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles |
772cc184c3d5d0c562b210ecd311a2ba27806fe0 | src/holston/dataimport.clj | src/holston/dataimport.clj | ;; Used for CSV-import of a very special file-format
(ns holston.dataimport
(:require [clojure-csv.core :as csv]
[holston.repository :as repo])
(:use [clojure.java.io :only [reader]]))
(defn take-csv [file-name]
(with-open [file (reader file-name)]
(csv/parse-csv (slurp file))))
(defn parse-row... | ;; Used for CSV-import of a very special file-format
;; Example usage:
;; lein run -m holston.dataimport/import-data "/Users/auramo/Downloads/olusia.csv"
(ns holston.dataimport
(:require [clojure-csv.core :as csv]
[holston.repository :as repo])
(:use [clojure.java.io :only [reader]]))
(defn take-csv [... | Add example usage comment which was tried and tested | Add example usage comment which was tried and tested
| Clojure | epl-1.0 | auramo/holston |
471a288dec831cd22733a2728fbef80dc32a3333 | 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 some failing schema tests | Add some failing schema tests
Refs #14.
| Clojure | epl-1.0 | lvh/icecap |
c314d01bcc12bb663c50f9e874f688717b72d1a5 | frontend/src/cruncher/utils/status.cljs | frontend/src/cruncher/utils/status.cljs | (ns cruncher.utils.status
(:require [om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[cljs.core.async :refer [<!]]
[cruncher.communication.main :as com]
[cruncher.config :as config]
[cruncher.utils.extensions]
[cruncher.utils.views :as vli... | (ns cruncher.utils.status
(:require [om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[cljs.core.async :refer [<!]]
[cruncher.communication.main :as com]
[cruncher.config :as config]
[cruncher.utils.extensions]
[cruncher.utils.views :as vli... | Move ajax call to top | Move ajax call to top
| Clojure | mit | Phaetec/pogo-cruncher,Phaetec/pogo-cruncher,Phaetec/pogo-cruncher |
114f705fe9fe24a3cf2fc4898c654d73c8fe0e34 | test/cljs/lean_map/test/core.cljs | test/cljs/lean_map/test/core.cljs | (ns cljs.lean-map.test.core
(:require
[cljs.test :refer-macros [deftest]]
[collection-check.core :as cc]
[clojure.test.check.generators :as gen]
[cljs.lean-map.core :as lean-map.core]))
(def gen-element
(gen/tuple gen/int))
(deftest assert-lean-map-core-map-like
(cc/assert-map-like 100 (.-EMPTY ... | (ns cljs.lean-map.test.core
(:require
[cljs.test :refer-macros [deftest]]
[collection-check.core :as cc]
[clojure.test.check.generators :as gen]
[cljs.lean-map.core :as lean-map.core]))
(defrecord BadHashNumber [num])
(extend-protocol IHash
BadHashNumber
(-hash [_]
1))
(def gen-bad-hash
(... | Create keys that have hash collision | Create keys that have hash collision
Previously lean-map used keys that had no hash collisions. No a datatype is used that hash only a single hashcode
| Clojure | epl-1.0 | mfikes/lean-map,mfikes/lean-map,bendyworks/lean-map,bendyworks/lean-map,bendyworks/lean-map |
a1b8bfd773eddca803a14ab72d4785cdaf8e2f0c | src/sleuth/handler.clj | src/sleuth/handler.clj | (ns sleuth.handler
(:use compojure.core
ring.middleware.edn
ring.middleware.json
sleuth.util
[ring.adapter.jetty :only [run-jetty]])
(:require [compojure.handler :as handler]
[compojure.route :as route]
[sleuth.auth :as auth]
[sleuth.users :as use... | (ns sleuth.handler
(:use compojure.core
ring.middleware.edn
ring.middleware.json
sleuth.util
[ring.adapter.jetty :only [run-jetty]])
(:require [compojure.handler :as handler]
[compojure.route :as route]
[sleuth.auth :as auth]
[sleuth.users :as use... | Add connection to mongohq database | Add connection to mongohq database
| Clojure | agpl-3.0 | edpaget/sleuth |
1095f712b0baaa4883ec437998ecf84d6332b9e0 | src/clj/attendance/server.clj | src/clj/attendance/server.clj | (ns attendance.server
(:require [clojure.java.io :as io]
[compojure.core :refer [GET defroutes]]
[compojure.route :refer [resources]]
[ring.middleware.defaults :refer [wrap-defaults api-defaults]]
[ring.middleware.gzip :refer [wrap-gzip]]
[ring.middleware.js... | (ns attendance.server
(:require [clojure.java.io :as io]
[compojure.core :refer [GET defroutes]]
[compojure.route :refer [resources]]
[ring.middleware.defaults :refer [wrap-defaults api-defaults]]
[ring.middleware.gzip :refer [wrap-gzip]]
[ring.middleware.js... | Make sure the JSON gets the correct content type | Make sure the JSON gets the correct content type
| Clojure | epl-1.0 | plexus/attendance,plexus/attendance |
4d5c47c8cfcfb5fe9ef67f2000d8ff3e1f855499 | manual/code/example/spec/integration_spec.clj | manual/code/example/spec/integration_spec.clj | (ns integration-spec
(:use speclj.core)
(:require
[org.example.server :as server]
[clj-http.client :as client]))
(describe "integration"
(with-all server (server/start-server 8080))
(it "can start the server"
(should-not-be-nil @server))
(after-all
;; start-server returns a function to st... | (ns integration-spec
(:use speclj.core)
(:require
[org.example.server :as server]
[clj-http.client :as client]))
(describe "integration"
(with-all server (server/start-server 8080))
;; Force the server to start up
(before-all @server)
;; And shut it down at the very end
(after-all
;; start-... | Fix the test case to request the response as application/edn | Fix the test case to request the response as application/edn
| Clojure | apache-2.0 | roblally/rook,bmabey/rook,clyfe/rook |
9acc4c34187bbcbcf0011799d022a54fab7f4806 | src/core.cljs | src/core.cljs | (ns cljs.core)
(def defmacro (fn [name & fdecl]
`(do
(def ~name (fn ~@fdecl))
(set! (. ~name macro) true))))
(set! (. defmacro macro) true)
(defmacro defn [name & fdecl]
`(def ~name (fn ~@fdecl))
)
(defn second [x] (first (next x)))
(defn ffirst [x] (first (first x)))
(defn nfi... | (ns cljs.core)
(def defmacro (fn [name & fdecl]
`(do
(def ~name (fn ~@fdecl))
(set! (. ~name macro) true))))
(set! (. defmacro macro) true)
(defmacro defn [name & fdecl]
`(def ~name (fn ~@fdecl))
)
(defn second [x] (first (next x)))
(defn ffirst [x] (first (first x)))
(defn nfi... | Refactor println to use .log on js/console | Refactor println to use .log on js/console
| Clojure | mit | ajlopez/ClojJS |
37d5ba8ed3b93c9a3084f064b2ff5e71b55ae5b8 | project.clj | project.clj | ;(defproject cli4clj "1.6.3"
(defproject cli4clj "1.6.4-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.7.0"
;(defproject cli4clj "1.7.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 version info and deploy to clojars. | Update version info and deploy to clojars.
| Clojure | epl-1.0 | ruedigergad/cli4clj |
78f1c782372c682a571c19464be665c8578a6c11 | src/main/cljc/mikron/compiler/util_macros.cljc | src/main/cljc/mikron/compiler/util_macros.cljc | (ns mikron.compiler.util-macros
#?(:cljs [:require-macros mikron.compiler.util-macros]))
(defmacro compile-time
"Emits the body only at compile time."
[& body]
(when #?(:clj (not (:ns &env))
:cljs (re-matches #".*\$macros" (name (ns-name *ns*))))
`(do ~@body)))
| (ns mikron.compiler.util-macros
#?(:cljs [:require-macros mikron.compiler.util-macros]))
(defmacro compile-time
"Emits the body only at compile time."
[& body]
(when #?(:clj (not (:ns &env)))
`(do ~@body)))
| Change compile-time to always emit in self hosted cljs | Change compile-time to always emit in self hosted cljs
| Clojure | epl-1.0 | moxaj/mikron,moxaj/mikron |
94ed6f9a0ba9dc65ab05f228e7353692f58d66d5 | src/cljs/app/analysis.cljs | src/cljs/app/analysis.cljs | (ns app.analysis
"GitHub releases URL analysis"
(:require
[taoensso.timbre :as timbre :refer-macros [info]]))
(defn get-os
[url]
(cond
(boolean (re-find #"windows" url)) "Windows"
(boolean (re-find #"linux" url)) "Linux"
(boolean (re-find #"mac|.dmg" url)) "Mac OS X"
:else "Other"))
(defn ... | (ns app.analysis
"GitHub releases URL analysis"
(:require
[taoensso.timbre :as timbre :refer-macros [info]]))
(defn get-os
[url]
(cond
(boolean (re-find #"windows" url)) "Windows"
(boolean (re-find #"linux" url)) "Linux"
(boolean (re-find #"mac|.dmg" url)) "macOS"
:else "Other"))
(defn get... | Update Mac OS name and file types | Update Mac OS name and file types
| Clojure | mit | adolby/AndrewDolby.com,adolby/AndrewDolby.com |
dc29f38214bf3e846e7734884d06ffdc2181e0c8 | build.boot | build.boot | #!/usr/bin/env boot
#tailrecursion.boot.core/version "2.0.0"
(set-env!
:dependencies [['tailrecursion/boot.core "2.0.0"]
['tailrecursion/boot.task "2.0.0"]
['tailrecursion/hoplon "5.0.0"]
['markdown-clj "0.9.38"]
['org.cl... | #!/usr/bin/env boot
#tailrecursion.boot.core/version "2.3.1"
(set-env!
:dependencies [['tailrecursion/boot.task "2.1.2"]
['tailrecursion/hoplon "5.7.0"]
['markdown-clj "0.9.41"]
['org.clojure/clojurescript "0.0-2156"]]
:src-paths #{"sr... | Update dependencies to the latest hoplon... | Update dependencies to the latest hoplon...
...boot.task and boot.core
| Clojure | epl-1.0 | tailrecursion/hoplon.io |
38dace907c57deda15e79c876cbdd88370f474c2 | clojure/profiles.clj | clojure/profiles.clj | ;; See: https://github.com/kumarshantanu/lein-localrepo
{:user {:plugins [[lein-localrepo "0.5.4"]
[lein-try "0.4.3"]
;; Convert pom.xml to project.clj
;; Note: from https://github.com/thickey/lein-nevam
[lein-nevam "0.1.2"]]}}
| ;; See: https://github.com/kumarshantanu/lein-localrepo
{:user {:plugins [[lein-localrepo "0.5.4"]
[lein-try "0.4.3"]
;; Convert pom.xml to project.clj
;; Note: from https://github.com/thickey/lein-nevam
[lein-nevam "0.1.2"]
;; ht... | Update and use some cool leiningen plugins | Update and use some cool leiningen plugins
| Clojure | mit | agilecreativity/dotfiles,agilecreativity/dotfiles,agilecreativity/dotfiles |
3aeef0913164357f022ad04a8acbc6ce8c48a3f0 | src/om_chat/components/message_composer.cljs | src/om_chat/components/message_composer.cljs | (ns om-chat.components.message-composer
(:require [om.next :as om :refer-macros [defui]]
[om.dom :as dom]
))
(def ESCAPE_KEY 27)
(def ENTER_KEY 13)
(defn change [c e]
(om/update-state! c assoc
:edit-text (.. e -target -value)))
(defn key-down [c id e on-new-msg]
(con... | (ns om-chat.components.message-composer
(:require [om.next :as om :refer-macros [defui]]
[om.dom :as dom]
))
(def ESCAPE_KEY 27)
(def ENTER_KEY 13)
(defn change [c e]
(om/update-state! c assoc
:edit-text (.. e -target -value)))
(defn key-down [c id e on-new-msg]
(con... | Reset textarea after message posted | Reset textarea after message posted
| Clojure | mit | colinf/om-chat |
59370b49c1116686d26ed8128c3f54e65da2c937 | router/src/router/core.clj | router/src/router/core.clj | (ns router.core
(:require [compojure.core :refer :all]
[compojure.route :as route]
[ring.middleware.defaults :refer [wrap-defaults api-defaults]]
[ring.middleware.json :refer [wrap-json-body wrap-json-response]]
[ring.util.response :refer [response]]
[router... | (ns router.core
(:require [compojure.core :refer :all]
[compojure.route :as route]
[ring.middleware.defaults :refer [wrap-defaults api-defaults]]
[ring.middleware.json :refer [wrap-json-body wrap-json-response]]
[ring.util.response :refer [response]]
[router... | Add handler to start load balancer | Add handler to start load balancer
| Clojure | mit | jhn/generic,jhn/generic,jhn/generic,jhn/generic |
ad10659103577c591f506cba2666f09aab3094c3 | project.clj | project.clj | (defproject degasolv/degasolv "1.1.1-SNAPSHOT"
:description "Dependency resolver with an eye toward building software."
:url "http://github.com/djhaskin987/degasolv"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:main degasolv.cli
:dependencies [
... | (defproject degasolv/degasolv "1.2.0"
:description "Dependency tracker with an eye toward building and shipping software."
:url "http://github.com/djhaskin987/degasolv"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:main degasolv.cli
:dependencies [
... | Bump version number, improve description | Bump version number, improve description
| Clojure | epl-1.0 | djhaskin987/degasolv,djhaskin987/degasolv,djhaskin987/degasolv,djhaskin987/dependable |
4ff0f74558322a9d19518c4863cfcb2a7cd9bfb0 | src/clj/zetawar/devcards/scenarios.cljs | src/clj/zetawar/devcards/scenarios.cljs | (ns zetawar.devcards.scenarios
(:require
[datascript.core :as d]
[devcards.core :as dc :include-macros true]
[integrant.core :as ig]
[posh.core :as posh]
[reagent.core :as r]
[zetawar.app :as app]
[zetawar.system :as system]
[zetawar.views :as views])
(:require-macros
[devcards.core :refe... | (ns zetawar.devcards.scenarios
(:require
[datascript.core :as d]
[devcards.core :as dc :include-macros true]
[integrant.core :as ig]
[posh.core :as posh]
[reagent.core :as r]
[zetawar.app :as app]
[zetawar.system :as system]
[zetawar.views :as views])
(:require-macros
[devcards.core :refe... | Fix a couple devcard typos | Fix a couple devcard typos
| Clojure | mit | tbeddy/zetawar,Zetawar/zetawar,Zetawar/zetawar,tbeddy/zetawar,Zetawar/zetawar,tbeddy/zetawar |
4360a08a0aef0b09e0db9d1b57fdf5428787b366 | src/clojush/ns.clj | src/clojush/ns.clj | (ns clojush.ns) ;; provides a macro that uses all clojush namespaces except for examples/* and experimental/*
(defmacro use-clojush
[]
'(do
(use '(clojush core evaluate globals individual interpreter pushstate random simplification util))
(use '(clojush.instructions boolean code common numbers random-... | (ns clojush.ns) ;; provides a macro that uses all clojush namespaces except for examples/* and experimental/*
(defmacro use-clojush
[]
'(do
(use '(clojush.core :exclude (-main)))
(use '(clojush evaluate globals individual interpreter pushstate random simplification util))
(use '(clojush.instructio... | Exclude -main when doing use-clojush. | Exclude -main when doing use-clojush.
| Clojure | epl-1.0 | NicMcPhee/Clojush,saulshanabrook/Clojush,lspector/Clojush,Vaguery/Clojush,Vaguery/Clojush,lspector/Clojush,NicMcPhee/Clojush,saulshanabrook/Clojush,thelmuth/Clojush,thelmuth/Clojush |
c7b91c233e21ef19113ee7dacf9d22ac3c3efe45 | .lein/profiles.clj | .lein/profiles.clj | {:user {:plugins [[lein-exec "0.3.0"]
[lein-depgraph "0.1.0"]
[lein-deps-tree "0.1.2"]
[jonase/eastwood "0.1.2"]]
:dependencies [[org.clojure/tools.namespace "0.2.4"]
[criterium "0.4.2"]
[slamhound "1.5.5"]]
... | {:user {:plugins [[lein-exec "0.3.0"]
[lein-depgraph "0.1.0"]
[lein-deps-tree "0.1.2"]]
:dependencies [[org.clojure/tools.namespace "0.2.4"]
[criterium "0.4.2"]
[slamhound "1.5.5"]]
:aliases {"slamhound" ["run" "-m" "slam.... | Remove eastwood; it's breaking 'lein new' | [.lein] Remove eastwood; it's breaking 'lein new'
| Clojure | mit | cespare/dotfiles |
6a29a5e4fc90fcb8f3dfe7d49543d45be0c277c6 | src/runbld/build.clj | src/runbld/build.clj | (ns runbld.build
(:require [runbld.util.date :as date]))
(defn make-rand-uuid []
(.replaceAll (str (java.util.UUID/randomUUID)) "-" ""))
(defn make-id []
(format "%s-%s"
(date/yyyymmdd-hhmmss)
(make-rand-uuid)))
(defn wrap-build-meta [proc]
(fn [opts]
(proc (assoc opts :id (make-id)))... | (ns runbld.build
(:require [runbld.util.date :as date]))
(defn make-rand-uuid []
(.replaceAll (str (java.util.UUID/randomUUID)) "-" ""))
(defn make-id []
(format "%s-%s"
(date/yyyymmdd-hhmmss)
(make-rand-uuid)))
(defn split-jenkins-name [s]
(let [[_ org project branch] (re-find #"^([^,]+)... | Break out project org, name, branch | Break out project org, name, branch
| Clojure | apache-2.0 | elastic/runbld,elastic/runbld,elastic/runbld,elastic/runbld,elastic/runbld |
4f27489f719758a70264e5c48b7cd7d3745b7a49 | src/clojure/leiningen/new/game_clojure/core.clj | src/clojure/leiningen/new/game_clojure/core.clj | (ns {{namespace}}
(:import [com.badlogic.gdx Game Gdx Graphics Screen]
[com.badlogic.gdx.graphics Color GL20]
[com.badlogic.gdx.graphics.g2d BitmapFont]
[com.badlogic.gdx.scenes.scene2d Stage]
[com.badlogic.gdx.scenes.scene2d.ui Label Label$LabelStyle]))
(def main-screen
... | (ns {{namespace}}
(:import [com.badlogic.gdx Game Gdx Graphics Screen]
[com.badlogic.gdx.graphics Color GL20]
[com.badlogic.gdx.graphics.g2d BitmapFont]
[com.badlogic.gdx.scenes.scene2d Stage]
[com.badlogic.gdx.scenes.scene2d.ui Label Label$LabelStyle]))
(defn show
[stag... | Break out the show/render methods into funtions so Refresh redefines them | Break out the show/render methods into funtions so Refresh redefines them
| Clojure | unlicense | Immortalin/Nightcode,bsmr-clojure/Nightcode,oakes/Nightcode,bsmr-clojure/Nightcode,bsmr-clojure/Nightcode,oakes/Nightcode,Immortalin/Nightcode,Immortalin/Nightcode |
dfca90c5e210e0914ab96b1547a96f0a70591e8d | clojure/src/leftpad/handler.clj | clojure/src/leftpad/handler.clj | (ns leftpad.handler
(:require [compojure.core :refer :all]
[compojure.route :as route]
[ring.middleware.json :refer [wrap-json-response]]
[ring.util.response :refer [response]]
[ring.middleware.defaults :refer [wrap-defaults site-defaults]]))
(defroutes app-routes
(G... | (ns leftpad.handler
(:require [compojure.core :refer :all]
[compojure.route :as route]
[compojure.handler :as handler]
[ring.middleware.json :refer [wrap-json-response]]
[ring.middleware.params :refer [wrap-params]]
[ring.util.response :refer [response]]
... | Add working query parameter reading | Add working query parameter reading
| Clojure | mit | melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services |
22164a6a380fd1d7f81c545f2b4a16924f1c93ed | test/io/aviso/launch.clj | test/io/aviso/launch.clj | (ns io.aviso.launch
(use io.aviso.twixt
[io.aviso.twixt exceptions tracker]
ring.adapter.jetty)
(import [java.sql SQLException]))
(defn handler [request]
(trace "Invoking handler (that throws exceptions)"
(throw
(->>
(SQLException. "Inner Exception" "SQL-ST... | (ns io.aviso.launch
(use io.aviso.twixt
[io.aviso.twixt exceptions tracker]
ring.adapter.jetty))
(defn make-handler [twixt]
(fn [request]
(trace "Invoking handler (that throws exceptions)"
;; This will fail at some depth:
(get-asset-uri twixt "invalid-coffeescript.c... | Change the demo page for excepton reporting to be more involved | Change the demo page for excepton reporting to be more involved
| Clojure | apache-2.0 | AvisoNovate/twixt,clyfe/twixt,clyfe/twixt,clyfe/twixt,AvisoNovate/twixt,AvisoNovate/twixt |
1644f623cd76647e2d81d9d16e6506725d1147b0 | src/clojure/fault/core.clj | src/clojure/fault/core.clj | (ns fault.core
(:require [fault.future :as f]
[fault.service :as s])
(:import (fault ServiceExecutor ResilientAction ResilientFuture)))
(set! *warn-on-reflection* true)
(defn service [pool-size]
(s/service-executor pool-size))
(defn submit-action [^ServiceExecutor service f time-out-ms]
(f/->CLJR... | (ns fault.core
(:require [fault.future :as f]
[fault.service :as s])
(:import (fault ServiceExecutor ResilientAction ResilientFuture ResilientPromise)))
(set! *warn-on-reflection* true)
(defn service [pool-size]
(s/service-executor pool-size))
(defn submit-action [^ServiceExecutor service f time-ou... | Add clojure function for perform sync action | Add clojure function for perform sync action
| Clojure | apache-2.0 | tbrooks8/Beehive |
0c855d19d076b586188e04b09a5d4c9ab06ed245 | src/clj/made_merits/service/leaderboard_users.clj | src/clj/made_merits/service/leaderboard_users.clj | (ns made-merits.service.leaderboard-users
(:require [made-merits.service.winner-calculator :as winner-calculator]
[made-merits.service.score-calculator :as score-calculator]))
(defn presentable
[db-users]
(winner-calculator/with-winner (score-calculator/with-score db-users)))
| (ns made-merits.service.leaderboard-users
(:require [made-merits.service.winner-calculator :as winner-calculator]
[made-merits.service.score-calculator :as score-calculator]))
(defn with-winner-first
[scored-users-with-merits]
(reverse (sort-by #(= "winner" (:status %)) scored-users-with-merits))... | Move the winner to the top of the list. | Move the winner to the top of the list.
| Clojure | mit | emileswarts/made-merits,emileswarts/made-merits |
12db772ed9e657c5088ee289d1cf359d7f3570bd | ring-jetty-adapter/project.clj | ring-jetty-adapter/project.clj | (defproject ring/ring-jetty-adapter "1.7.0"
:description "Ring Jetty adapter."
: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-core "1.... | (defproject ring/ring-jetty-adapter "1.7.0"
:description "Ring Jetty adapter."
: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-core "1.... | Update Jetty dependency to 9.4.12.v20180830 | Update Jetty dependency to 9.4.12.v20180830
Jetty 9.2 has reached End of Life. See the announcement:
https://www.eclipse.org/lists/jetty-announce/msg00116.html
Fixes #347.
| Clojure | mit | ring-clojure/ring,ring-clojure/ring |
56f7d763f051e616cb2eb5462bf7c777ef4cf820 | src/buildviz/main.clj | src/buildviz/main.clj | (ns buildviz.main
(:require [buildviz.build-results :as results]
[buildviz.handler :as handler]
[buildviz.storage :as storage]
[clojure.tools.logging :as log]))
(def jobs-filename "buildviz_jobs")
(def tests-filename "buildviz_tests")
(defn- wrap-log-request [handler]
(fn [req... | (ns buildviz.main
(:require [buildviz.build-results :as results]
[buildviz.handler :as handler]
[buildviz.storage :as storage]
[clojure.tools.logging :as log]))
(def jobs-filename "buildviz_jobs")
(def tests-filename "buildviz_tests")
(defn- wrap-log-request [handler]
(fn [req... | Fix logging for responses without status | Fix logging for responses without status
| Clojure | bsd-2-clause | cburgmer/buildviz,cburgmer/buildviz,cburgmer/buildviz |
faad6243a29e092fd7d384b88e6b37593778ae90 | src/circleci/init.clj | src/circleci/init.clj | (ns circleci.init
;;(:require circleci.swank)
(:require circleci.db)
(:require circleci.db.migrations)
(:require circleci.web)
(:require circleci.repl)
(:require circleci.logging))
(defn -main []
(try
;; (circleci.swank/init)
(circleci.logging/init)
(circleci.db/init)
(circleci.db.migrati... | (ns circleci.init
)
(defn -main []
(try
;;(require 'circleci.swank)
(require 'circleci.db)
(require 'circleci.db.migrations)
(require 'circleci.web)
(require 'circleci.repl)
(require 'circleci.logging)
;; (circleci.swank/init)
(circleci.logging/init)
(circleci.db/init)
(circ... | Move the requires inside the try | Move the requires inside the try
| Clojure | epl-1.0 | circleci/frontend,prathamesh-sonpatki/frontend,circleci/frontend,circleci/frontend,RayRutjes/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend |
d334fad9d5f21d56dd00de7c3dd4b733e8f5fab9 | spec/incise/parsers/impl/markdown_spec.clj | spec/incise/parsers/impl/markdown_spec.clj | (ns incise.parsers.impl.markdown-spec
(:require [speclj.core :refer :all]
[clojure.java.io :refer [file resource]]
[incise.core] ; Ensure that layouts have been loaded
(incise.parsers [core :as pc]
[markdown :refer :all]))
(:import [java.io File]))
(d... | (ns incise.parsers.impl.markdown-spec
(:require [speclj.core :refer :all]
[clojure.java.io :refer [file resource]]
[incise.core] ; Ensure that layouts have been loaded
[incise.parsers.core :as pc]
[incise.parsers.impl.markdown :refer :all])
(:import [java.io File]))
... | Fix require expression in markdown-spec. | Fix require expression in markdown-spec.
| Clojure | epl-1.0 | RyanMcG/incise-core |
0242fae6b548118b7ce1532214b4a73950cec950 | project.clj | project.clj | (defproject funcool/postal "0.1.0-SNAPSHOT"
:description "A parser, renderer and validation layer for POSTAL protocol for Clojure and ClojureScript."
:url "http://github.com/funcool/postal"
:license {:name "BSD (2-Clause)"
:url "http://opensource.org/licenses/BSD-2-Clause"}
:source-paths ["src"]
:... | (defproject funcool/postal "0.1.0-SNAPSHOT"
:description "A parser, renderer and validation layer for POSTAL protocol for Clojure and ClojureScript."
:url "http://github.com/funcool/postal"
:license {:name "BSD (2-Clause)"
:url "http://opensource.org/licenses/BSD-2-Clause"}
:source-paths ["src"]
:... | Set cljs compiler as provided scope dependency. | Set cljs compiler as provided scope dependency.
| Clojure | unlicense | funcool/postal |
e1d049fb8ac5be8a95658bc17c5145fb3af1dae6 | project.clj | project.clj | (defproject strava-activity-graphs "0.1.0-SNAPSHOT"
:description "Generate statistical charts for Strava activities"
:url "https://github.com/nicokosi/strava-activity-graphs"
:license {:name "Creative Commons Attribution 4.0"
:url "https://creativecommons.org/licenses/by/4.0/"}
:dependencies [[org.... | (defproject strava-activity-graphs "0.1.0-SNAPSHOT"
:description "Generate statistical charts for Strava activities"
:url "https://github.com/nicokosi/strava-activity-graphs"
:license {:name "Creative Commons Attribution 4.0"
:url "https://creativecommons.org/licenses/by/4.0/"}
:dependencies [[org.... | Update dependency clj-http:clj-http to v3.10.3 | Update dependency clj-http:clj-http to v3.10.3
| Clojure | unlicense | nicokosi/strava-activity-graphs |
7a5bf872679826feeee6d51ea1dff1e1cea62dee | project.clj | project.clj | (defproject onyx-app/lein-template "0.10.0.0-beta9"
: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 |
21d09e111bf4b3a2b81c2a00d4a6c4773a492ffd | project.clj | project.clj | (defproject onyx-app/lein-template "0.9.8.0"
: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.8.1-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 |
eb80483347b14f2f27595720dfe15dc137c0f987 | project.clj | project.clj | (defproject hawk "0.2.0-SNAPSHOT"
:description "Watch files with clojure (in the manner of a hawk)"
:url "https://github.com/wkf/hawk"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:test-paths ["src/test"]
:source-paths ["src/main"]
:java-source-paths... | (defproject hawk "0.2.0-SNAPSHOT"
:description "Watch files with clojure (in the manner of a hawk)"
:test-paths ["src/test"]
:source-paths ["src/main"]
:java-source-paths ["vendor/barbarywatchservice/src"]
:aot [hawk.watcher]
:dependencies [[org.clojure/clojure _]
[net.java.dev.jna/jna "3.2... | Add release tasks for gh-pages site. | Add release tasks for gh-pages site.
| Clojure | epl-1.0 | wkf/hawk,wkf/hawk,wkf/hawk |
ef6c16c56d957d771eba0c82d8248368f9b8def2 | project.clj | project.clj | (defproject cascade "0.2-SNAPSHOT"
:description "Simple, fast, easy web applications in idiomatic Clojure"
:url "http://github.com/hlship/cascade"
:source-path "src/main/clojure"
:resources-path "src/main/resources"
:test-path "src/test/clojure"
:dev-resources-path "src/test/resources"
:dependencies [[org... | (defproject cascade "0.2-SNAPSHOT"
:description "Simple, fast, easy web applications in idiomatic Clojure"
:url "http://github.com/hlship/cascade"
:source-path "src/main/clojure"
:resources-path "src/main/resources"
:test-path "src/test/clojure"
:dev-resources-path "src/test/resources"
:dependencies [[org... | Correct a typo in a dependency name | Correct a typo in a dependency name
| Clojure | apache-2.0 | hlship/cascade |
6fc9a95c8a52521480f6d07fcc32722887e7b26a | project.clj | project.clj | (defproject manners "0.1.0-SNAPSHOT"
:description "A validation library built on using predicates properly."
:url "https://github.com/RyanMcG/manners"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
... | (defproject manners "0.1.0-SNAPSHOT"
:description "A validation library built on using predicates properly."
:url "https://github.com/RyanMcG/manners"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]]
:profiles ... | Move speclj to dev dependencies. | Move speclj to dev dependencies.
| Clojure | epl-1.0 | RyanMcG/manners |
2ad471273d20235d48b2882691474df3b46034f0 | project.clj | project.clj | (defproject org.platypope/parenskit "0.1.1-SNAPSHOT"
:description "Clojure integration library for the LensKit framework."
:url "http://github.com/llasram/parenskit"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:global-vars {*warn-on-reflection* true}
... | (defproject org.platypope/parenskit "0.1.1-SNAPSHOT"
:description "Clojure integration library for the LensKit framework."
:url "http://github.com/llasram/parenskit"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:global-vars {*warn-on-reflection* true}
... | Include :java6 in :default profile. | Include :java6 in :default profile.
| Clojure | epl-1.0 | llasram/parenskit |
663616baffc21c7ac80f55265a0de030b7695e7e | project.clj | project.clj | (defproject org.onyxplatform/onyx-datomic "0.10.0.0-beta4"
:description "Onyx plugin for Datomic"
:url "https://github.com/onyx-platform/onyx-datomic"
: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-datomic "0.10.0.0-SNAPSHOT"
:description "Onyx plugin for Datomic"
:url "https://github.com/onyx-platform/onyx-datomic"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.org/r... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | epl-1.0 | onyx-platform/onyx-datomic |
ca72c7aa26a0b5f9ba34ca25319c22cdb43a14ba | project.clj | project.clj | (defproject tile-game "1.0.0-SNAPSHOT"
:description "A Tile Puzzle Game and Solver"
:min-lein-version "2.0.0"
:main tile-game.core
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.494"]
[reagent "0.6.1"]]
:plugins [[lein-figwheel "0.5.9"]]
:sourc... | (defproject tile-game "1.0.0-SNAPSHOT"
:description "A Tile Puzzle Game and Solver"
:min-lein-version "2.0.0"
:main tile-game.core
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.494"]
[reagent "0.6.1"]]
:plugins [[lein-figwheel "0.5.9"]
... | Add basic cljsbuild release build | Add basic cljsbuild release build
| Clojure | mit | dgtized/tile-game,dgtized/tile-game |
0d816fb1eaf02e41a784c1dbf6161b04a4ad4e97 | project.clj | project.clj | (defproject cli4clj "1.7.0"
;(defproject cli4clj "1.7.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.7.0"
(defproject cli4clj "1.7.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... | Revert back to snapshot version. | Revert back to snapshot version.
| Clojure | epl-1.0 | ruedigergad/cli4clj |
5757499a80c3de303f1cc964e18301e52ba2e8b9 | project.clj | project.clj | (defproject org.clojure-grimoire/lib-grimoire "0.9.0"
:description "A shared library for Grimoire infrastructure"
:url "http://github.com/clojure-grimoire/lib-grimoire"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6... | (defproject org.clojure-grimoire/lib-grimoire "0.9.0"
:description "A shared library for Grimoire infrastructure"
:url "http://github.com/clojure-grimoire/lib-grimoire"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6... | Exclude some unused deps for size | Exclude some unused deps for size
| Clojure | epl-1.0 | clojure-grimoire/lib-grimoire,rmoehn/lib-grimoire |
ee0a96f6a97a5c85b79fd4ccc6bed07a7937b693 | project.clj | project.clj | (defproject onyx-app/lein-template "0.11.0.0-alpha3"
: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.11.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 |
cd88be40f7b5da32a426ad811b7b8d7af57e2747 | project.clj | project.clj | (defproject strava-activity-graphs "0.1.0-SNAPSHOT"
:description "Generate statistical charts for Strava activities"
:url "https://github.com/nicokosi/strava-activity-graphs"
:license {:name "Creative Commons Attribution 4.0"
:url "https://creativecommons.org/licenses/by/4.0/"}
:dependencies [[org.... | (defproject strava-activity-graphs "0.1.0-SNAPSHOT"
:description "Generate statistical charts for Strava activities"
:url "https://github.com/nicokosi/strava-activity-graphs"
:license {:name "Creative Commons Attribution 4.0"
:url "https://creativecommons.org/licenses/by/4.0/"}
:dependencies [[org.... | Update dependency lein-cljfmt:lein-cljfmt to v0.8.0 | Update dependency lein-cljfmt:lein-cljfmt to v0.8.0
| Clojure | unlicense | nicokosi/strava-activity-graphs |
4164e55b0b687df2c945f1326b8b3234464d0b78 | project.clj | project.clj | (defproject cctray-clj "0.1.0"
:description "XML parser for cctray"
:url "https://github.com/cowley05/cctray-clj"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/data.json "0.2.5... | (defproject clj-cctray "0.1.0"
:description "Clojure parser for cctray.xml"
:url "https://github.com/build-canaries/clj-cctray"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/da... | Update the name to be more standard with other clojure libs | Update the name to be more standard with other clojure libs | Clojure | epl-1.0 | build-canaries/clj-cctray |
7f120b44f565a3b7ab33d0869a3011470be508d6 | project.clj | project.clj | (defproject clj-gatling "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/core.async "0.1.267.0... | (defproject clj-gatling "0.0.1"
:description ""
:url "http://github.com/mhjort/clj-gatling"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/core.async "0.1.267.0-0d7780-alpha"]
... | Add proper version number and url | Add proper version number and url
| Clojure | epl-1.0 | mhjort/clj-gatling |
58c895061b3deb15c60d931a9039b7e7c0b76dae | project.clj | project.clj | (defproject madouc "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.8.0"]
[ring/ring-core "1.5.1"]
... | (defproject madouc "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.8.0"]
[ring/ring-core "1.5.1"]
... | Enable logging and server logging via timbre | Enable logging and server logging via timbre
| Clojure | epl-1.0 | c-garcia/madouc |
63eab2719ecbeb09b20f013b044e4cf7702768b3 | clojure/src/leftpad/handler.clj | clojure/src/leftpad/handler.clj | (ns leftpad.handler
(:require [compojure.core :refer :all]
[compojure.route :as route]
[compojure.handler :as handler]
[ring.middleware.json :refer [wrap-json-response]]
[ring.middleware.params :refer [wrap-params]]
[ring.util.response :refer [response]]
... | (ns leftpad.handler
(:require [compojure.core :refer :all]
[compojure.route :as route]
[compojure.handler :as handler]
[ring.middleware.json :refer [wrap-json-response]]
[ring.middleware.params :refer [wrap-params]]
[ring.util.response :refer [response]]
... | Add initial clojure leftpad implementation | Add initial clojure leftpad implementation
| Clojure | mit | melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services |
f939cf0377a8a6b75b211f7e53a7fe8c26628fa6 | src/advent_2017/day_08.cljc | src/advent_2017/day_08.cljc | (ns advent-2017.day-08
(:refer-clojure :exclude [inc dec])
(:require
#?(:cljs [planck.core :refer [eval read]])
[#?(:clj clojure.java.io :cljs planck.io) :as io]
[clojure.string :as str]
[clojure.spec.alpha :as s])
#?(:clj (:import (java.io PushbackReader))))
(def input (->> "advent_2017/day_08/input... | (ns advent-2017.day-08
(:refer-clojure :exclude [inc dec])
(:require
#?(:cljs [planck.core :refer [eval read]])
[#?(:clj clojure.java.io :cljs planck.io) :as io]
[clojure.string :as str]
[clojure.spec.alpha :as s])
#?(:clj (:import (java.io PushbackReader))))
(def input (->> "advent_2017/day_08/input... | Fix bug if all touched registers driven negative | Fix bug if all touched registers driven negative
| Clojure | epl-1.0 | mfikes/advent-of-cljs |
85f651f1b3439e0bffd80dff6b9b5db59deee1a6 | project.clj | project.clj | (defproject io.curtis/boilerpipe-clj "0.2.0"
:description "A simple wrapper around the Boilerpipe library for extracting text from html articles/pages"
:url "http://curtis.io"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/cloju... | (defproject io.curtis/boilerpipe-clj "0.2.1-SNAPSHOT"
:description "A simple wrapper around the Boilerpipe library for extracting text from html articles/pages"
:url "http://curtis.io"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.cloj... | Use latest version of clojure | Use latest version of clojure
| Clojure | apache-2.0 | cgag/boilerpipe-clj |
357d61e31cba5f98505cb93796451713d0304cc3 | project.clj | project.clj | (defproject reply "0.1.0-SNAPSHOT"
:description "REPL-y: A fitter, happier, more productive REPL for Clojure."
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojars.trptcolin/jline "2.7-alpha2"]
[org.thnetos/cd-client "0.3.4"]
[clj-stacktrace "0.2.4"]
... | (defproject reply "0.1.0-SNAPSHOT"
:description "REPL-y: A fitter, happier, more productive REPL for Clojure."
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojars.trptcolin/jline "2.7-alpha3"]
[org.thnetos/cd-client "0.3.4"]
[clj-stacktrace "0.2.4"]
... | Bump jline version to get rid of jlinerc message | Bump jline version to get rid of jlinerc message
closes #54
| Clojure | epl-1.0 | bbatsov/reply,trptcolin/reply,trptcolin/reply,bbatsov/reply |
5a285742ddb433222699c0ef04670cbbeb5c4bae | project.clj | project.clj | (defproject incise "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"]
[speclj "2.1.2"]
[ring... | (defproject incise "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"]
[speclj "2.1.2"]
[ring... | Add watchtower, markdown and namespace deps. | Add watchtower, markdown and namespace deps.
| Clojure | epl-1.0 | RyanMcG/incise-core |
552b3c8092864b080dd558b12b9470439ce01df6 | project.clj | project.clj | (defproject onyx-app/lein-template "0.10.0.0-beta3"
: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 |
b23dd00303933deb8d854f40ba051e80f311e8c5 | test/icecap/schema_test.clj | test/icecap/schema_test.clj | (ns icecap.schema-test
(:require [icecap.schema :refer :all]
[clojure.test :refer :all]
[schema.core :as s]))
(def simple-http-request {:target "http://example.test"})
(def simple-https-request {:target "https://example.test"})
(def simple-ftp-request {:target "ftp://example.test"})
(deftest... | (ns icecap.schema-test
(:require [icecap.schema :refer :all]
[clojure.test :refer :all]
[schema.core :as s]))
(def simple-http-request {:target "http://example.test"})
(def simple-https-request {:target "https://example.test"})
(def simple-ftp-request {:target "ftp://example.test"})
(deftest... | Fix the test (in an unfortunate fashion) | Fix the test (in an unfortunate fashion)
| Clojure | epl-1.0 | Hatnik/icecap,lvh/icecap |
e0388be62b8048fb10defb69a974c7f852f899f9 | test/circle/backend/test_git.clj | test/circle/backend/test_git.clj | (ns circle.backend.test-git
(:use midje.sweet)
(:use circle.backend.git)
(:require [circle.model.project :as project])
(:require [circle.backend.build.test-utils :as test])
(:require [circle.backend.github-url :as github])
(:require fs))
(test/ensure-test-project)
(fact "clone works"
(let [test-url (-> ... | (ns circle.backend.test-git
(:use midje.sweet)
(:use circle.backend.git)
(:require [circle.model.project :as project])
(:require [circle.backend.build.test-utils :as test])
(:require [circle.backend.github-url :as github])
(:require fs))
(test/ensure-test-project)
(fact "clone works"
(let [test-url (-> ... | Make the git clone test a little more specific | Make the git clone test a little more specific
| Clojure | epl-1.0 | prathamesh-sonpatki/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,RayRutjes/frontend,circleci/frontend,circleci/frontend |
02b2f8513d973458799ee0811a86d0c2236047e8 | src/obb_rules/logger.cljc | src/obb_rules/logger.cljc | (ns ^{:added "2.0.0" :author "Pedro Santos"}
obb-rules.logger
"Specific logger that can be turned on and off"
(:require [obb-rules.simplifier :as simplify]))
(def ^:dynamic *verbose* false)
(defmacro log
"Logs the given data"
[& args]
`(when *verbose*
(println ~@args)))
(defn ai-turn
"Logs ai-turn ... | (ns ^{:added "2.0.0" :author "Pedro Santos"}
obb-rules.logger
"Specific logger that can be turned on and off"
(:require [obb-rules.simplifier :as simplify]))
(def ^:dynamic *verbose* false)
#?(:clj
(defmacro log
"Logs the given data"
[& args]
`(when *verbose*
(println ~@args))))
#?(:cljs
... | Use log fn instead of macro on cljs | Use log fn instead of macro on cljs
| Clojure | epl-1.0 | orionsbelt-battlegrounds/obb-rules,orionsbelt-battlegrounds/obb-rules,orionsbelt-battlegrounds/obb-rules |
eff6a854a078928b3534c57726000629cc644c56 | src/uxbox/data/core.cljs | src/uxbox/data/core.cljs | ;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.data.core
"Worker related api and initialization ev... | ;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.data.core
"Worker related api and initialization ev... | Initialize webworker only on browser environment. | Initialize webworker only on browser environment.
| Clojure | mpl-2.0 | studiospring/uxbox,studiospring/uxbox,studiospring/uxbox,uxbox/uxbox,uxbox/uxbox,uxbox/uxbox |
f8526617196fe546dc58f07c7503670557a6a824 | examples/todomvc/project.clj | examples/todomvc/project.clj | (defproject todomvc-re-frame "0.8.0"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.89"]
[reagent "0.6.0-rc"]
[re-frame "0.8.0-SNAPSHOT"]
[binaryage/devtools "0.7.0"]
[secretary "1.2.3"]
... | (defproject todomvc-re-frame "0.8.0"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.89"]
[reagent "0.6.0-rc"]
[re-frame "0.8.0-SNAPSHOT"]
[binaryage/devtools "0.7.0"]
[secretary "1.2.3"]
... | Update deps for Prismatic Schema in todomvs example | Update deps for Prismatic Schema in todomvs example
| Clojure | mit | daiyi/re-frame,richardharrington/re-frame,danielcompton/re-frame,martinklepsch/re-frame,richardharrington/re-frame,chpill/re-frankenstein,danielcompton/re-frame,chpill/re-frankenstein,chpill/re-frankenstein,martinklepsch/re-frame,richardharrington/re-frame,danielcompton/re-frame,daiyi/re-frame,Day8/re-frame,daiyi/re-fr... |
770e4bf345435c5e3ffdfa6c17f1e323dd3034cd | src/onyx/messaging/messenger_buffer.clj | src/onyx/messaging/messenger_buffer.clj | (ns ^:no-doc onyx.messaging.messenger-buffer
(:require [clojure.core.async :refer [chan >!! <!! thread alts!! close!]]
[com.stuartsierra.component :as component]
[taoensso.timbre :as timbre]))
(defrecord MessengerBuffer [opts]
component/Lifecycle
(start [component]
(taoensso.timbre/i... | (ns ^:no-doc onyx.messaging.messenger-buffer
(:require [clojure.core.async :refer [chan >!! <!! thread alts!! close! sliding-buffer]]
[com.stuartsierra.component :as component]
[taoensso.timbre :as timbre]))
(defrecord MessengerBuffer [opts]
component/Lifecycle
(start [component]
(ta... | Switch the messenger inbound-ch to a sliding buffer | Switch the messenger inbound-ch to a sliding buffer
| Clojure | epl-1.0 | onyx-platform/onyx,ideal-knee/onyx,mccraigmccraig/onyx,tomasu82/onyx,dignati/onyx,iperdomo/onyx,KevinGreene/onyx,intfrr/onyx,Deraen/onyx,vijaykiran/onyx |
fbbe7fe62163bf50c83eca03b556838f5f729fdd | src/clj/hyphen_keeper/db.clj | src/clj/hyphen_keeper/db.clj | (ns hyphen-keeper.db
"Persistence for the hyphenation dictionary"
(:require [yesql.core :refer [defqueries]]))
(def ^:private db {:name "java:jboss/datasources/old-productions"})
(defqueries "db/queries.sql" {:connection db})
(defn read-words
"Return a coll of words for given `spelling`"
[spelling]
(-> {:s... | (ns hyphen-keeper.db
"Persistence for the hyphenation dictionary"
(:require [yesql.core :refer [defqueries]]))
(def ^:private db {:name "java:jboss/datasources/hyphenations"})
(defqueries "db/queries.sql" {:connection db})
(defn read-words
"Return a coll of words for given `spelling`"
[spelling]
(-> {:spel... | Fix the JNDI name for the datasource | Fix the JNDI name for the datasource
| Clojure | agpl-3.0 | sbsdev/hyphen-keeper |
759b3ef1f4dd2e7fb25e7636bb67584c3a2a0deb | src/lab_notebook/core.cljs | src/lab_notebook/core.cljs | (ns lab-notebook.core
(:require [om.core :as om]
[om.dom :as dom]))
(defonce appstate (atom {}))
(defn app-container [cursor component]
(reify
om/IRender
(render [this]
(apply dom/div nil
(dom/h1 nil "Lab notebook")
nil
(for [entry (:entries cursor)]
(do... | (ns lab-notebook.core
(:require [om.core :as om]
[om.dom :as dom]))
(defonce appstate (atom {}))
(defn item-view [cursor component]
(reify
om/IRender
(render [this]
(dom/div nil
(dom/div nil (:summary cursor))
(dom/div nil (:date-time cursor))
(dom/div nil (:notes... | Move item-view into its own component. | Move item-view into its own component.
| Clojure | cc0-1.0 | abeyonalaja/lisp-cast-om,prachetasp/lispcast-lab-notebook |
0d6613a8ae07f87c24e26a1fa9edcbfc4962fa7f | test/demo/messaging_test.clj | test/demo/messaging_test.clj | (ns demo.messaging-test
(:use clojure.test
immutant.messaging))
(if (immutant.util/in-immutant?)
(deftest ^:integration listening
(start "test.topic")
(let [expected (promise)
handler (listen "test.topic" #(deliver expected %))]
(try
(publish "test.topic" :success)
(... | (ns demo.messaging-test
(:use clojure.test
immutant.messaging))
(when (immutant.util/in-immutant?)
(deftest ^:integration listening
(start "test.topic")
(let [expected (promise)
handler (listen "test.topic" #(deliver expected %))]
(try
(publish "test.topic" :success)
... | Allow for the possibility of more than one test | Allow for the possibility of more than one test
| Clojure | apache-2.0 | coopsource/feature-demo,immutant/feature-demo,immutant/feature-demo,immutant/feature-demo,FalseProtagonist/graphagora,coopsource/feature-demo,jkutner/feature-demo,jkutner/feature-demo,FalseProtagonist/graphagora,coopsource/feature-demo,jkutner/feature-demo,FalseProtagonist/graphagora |
e7db07c5a62b58c0ff11c5ae51b88f21088e72d4 | src/braid/server/search/elasticsearch.clj | src/braid/server/search/elasticsearch.clj | (ns braid.server.search.elasticsearch
(:require
[braid.server.conf :refer [config]]
[braid.server.db :as db]
[clojure.data.json :as json]
[org.httpkit.client :as http]))
(defn elasticsearch-enabled? []
(some? (config :elasticsearch-url)))
(defn search-for
[{:keys [text group-id user-id]}]
(som... | (ns braid.server.search.elasticsearch
(:require
[braid.server.conf :refer [config]]
[braid.server.db :as db]
[clojure.data.json :as json]
[datomic.api :as d]
[org.httpkit.client :as http]))
(defn elasticsearch-enabled? []
(some? (config :elasticsearch-url)))
(defn search-for
[{:keys [text gr... | Load message by entity-id from search | Load message by entity-id from search
Instead of having elasticsearch index thread-id, just get the entity id
of the messages & use pull-many to get the thread-ids
| Clojure | agpl-3.0 | rafd/braid,rafd/braid,braidchat/braid,braidchat/braid |
ca0ac6c2598ac2eb88f58f1703daac952980e3f0 | test/circle/backend/build/test_queue.clj | test/circle/backend/build/test_queue.clj | (ns circle.backend.build.test-queue
(:use circle.backend.build.queue)
(:use circle.backend.build.run)
(:use circle.backend.build.test-utils)
(:require [circle.model.build :as build])
(:use midje.sweet)
(:use [circle.util.retry :only (wait-for)]))
(fact "queuing builds works"
(let [builds (take 10 (repeat... | (ns circle.backend.build.test-queue
(:use circle.backend.build.queue)
(:use circle.backend.build.run)
(:use circle.backend.build.test-utils)
(:require [circle.model.build :as build])
(:use [circle.backend.build.test-utils])
(:use midje.sweet)
(:use [circle.util.retry :only (wait-for)]))
(test-ns-setup)
... | Add test-ns-setup to the new test file | Add test-ns-setup to the new test file
| Clojure | epl-1.0 | prathamesh-sonpatki/frontend,circleci/frontend,RayRutjes/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,circleci/frontend |
ced6762201c5ed4460522c88b151b202e6fc09fd | test/caesium/magicnonce/secretbox_test.clj | test/caesium/magicnonce/secretbox_test.clj | (ns caesium.magicnonce.secretbox-test
(:require [caesium.magicnonce.secretbox :as s]
[clojure.test :refer [deftest is]]
[caesium.util :as u]))
(deftest xor-test
(let [one (byte-array [1 0 1])
two (byte-array [0 1 0])
out (byte-array [0 0 0])]
(is (identical? (#'s/xor! ou... | (ns caesium.magicnonce.secretbox-test
(:require [caesium.magicnonce.secretbox :as ms]
[caesium.crypto.secretbox :as s]
[caesium.crypto.secretbox-test :as st]
[clojure.test :refer [deftest is]]
[caesium.util :as u]))
(deftest xor-test
(let [one (byte-array [1 0 1])
... | Add a test for secretbox-pfx | Add a test for secretbox-pfx
| Clojure | epl-1.0 | lvh/caesium |
c82b4ee07db1cc79362e607b39d10dc8c3b0f931 | src/lab_notebook/core.cljs | src/lab_notebook/core.cljs | (ns lab-notebook.core
(:require [om.core :as om]
[om.dom :as dom]))
(defonce appstate (atom {}))
(defn app-container [cursor component]
(reify
om/IRender
(render [this]
(dom/div nil
(dom/h1 nil "Lab notebook")
(:message cursor)))))
(om/root app-container appstate
{:tar... | (ns lab-notebook.core
(:require [om.core :as om]
[om.dom :as dom]))
(defonce appstate (atom {}))
(defn app-container [cursor component]
(reify
om/IRender
(render [this]
(apply dom/div nil
(dom/h1 nil "Lab notebook")
nil
(for [x (range 10)]
(str x " "))))... | Use apply and a list. | Use apply and a list.
| Clojure | cc0-1.0 | prachetasp/lispcast-lab-notebook,abeyonalaja/lisp-cast-om |
1b447c0f16c45101ef00cacd0a0c7870adc1ea25 | fulcro-todo/project.clj | fulcro-todo/project.clj | (defproject fulcro-todo "0.0.1"
:description "Fulcro Todo"
:dependencies [[org.clojure/clojure "1.9.0-alpha17"]
[org.clojure/clojurescript "1.9.908"]
[org.omcljs/om "1.0.0-beta1"]
[fulcrologic/fulcro "1.0.0-beta10"]]
:source-paths ["src/main"]
:resource-paths ... | (defproject fulcro-todo "0.0.1"
:description "Fulcro Todo"
:dependencies [[org.clojure/clojure "1.9.0-alpha17"]
[org.clojure/clojurescript "1.9.908"]
[org.omcljs/om "1.0.0-beta1"]
[fulcrologic/fulcro "1.0.0-beta10"]]
:source-paths ["src/main"]
:resource-paths ... | Add piggieback to local profile | Add piggieback to local profile
| Clojure | mit | kgxsz/todo,kgxsz/todo |
0fc515658a423131a1f7ef54d26cf9bd2ca2bece | integration-tests/apps/messaging/topics/src/immutant/init.clj | integration-tests/apps/messaging/topics/src/immutant/init.clj | (ns immutant.init
(:require [immutant.messaging :as msg]
[immutant.web :as web]))
(msg/start "/topic/gravy")
(msg/start (msg/as-topic "toddball"))
(let [p (promise)
l (msg/listen "/topic/gravy" (fn [v] (deliver p v)))]
(try
(msg/publish "/topic/gravy" :success)
(let [delivery (dere... | (ns immutant.init
(:require [immutant.messaging :as msg]
[immutant.web :as web]))
(msg/start "/topic/gravy")
(msg/start (msg/as-topic "toddball"))
(let [p (promise)
l (msg/listen "/topic/gravy" (fn [v] (deliver p v)))]
(try
(msg/publish "/topic/gravy" :success)
(let [delivery (dere... | Synchronize topic listeners to account for slow CI hardware. | Synchronize topic listeners to account for slow CI hardware.
| Clojure | apache-2.0 | immutant/immutant,coopsource/immutant,kbaribeau/immutant,immutant/immutant,immutant/immutant,coopsource/immutant,kbaribeau/immutant,coopsource/immutant,kbaribeau/immutant,immutant/immutant |
fba994320482154a4b436177f59d9b444a1a9121 | services/STAR.clj | services/STAR.clj | {
:name "STAR",
:path "STAR",
;; instructional data used in /help
:description "splice aware utility for aligning reads to reference",
}
| {
:name "STAR",
:path "STAR",
:argcard {"--outSAMunmapped" 1 ; include unmapped reads
"--runThreadN" 1 ; number of threads
"--outFileNamePrefix" 1 ; prefix for summary files
"--outFilterScoreMinOverLread" 1 ; too short fix
"--outFi... | Add command config argument cardinalities | Add command config argument cardinalities
| Clojure | mit | jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio |
36fc77db2711ca3d29c4f4a01b3efe0ac5ae041f | ring-jetty-adapter/project.clj | ring-jetty-adapter/project.clj | (defproject ring/ring-jetty-adapter "1.9.4"
:description "Ring Jetty adapter."
: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-core "1.... | (defproject ring/ring-jetty-adapter "1.9.4"
:description "Ring Jetty adapter."
: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-core "1.... | Update Jetty to version 9.4.44 | Update Jetty to version 9.4.44
CVE-2021-34429 is fixed in version 9.4.43 but it makes sense to
update to the latest 9.x series release with further fixes.
| Clojure | mit | ring-clojure/ring,ring-clojure/ring |
bc5157161dd61952cb5727f89bd5792071d40b84 | test/cmr/common/test/cache.clj | test/cmr/common/test/cache.clj | (ns cmr.common.test.cache
(:require [clojure.test :refer :all]
[cmr.common.cache :as c]))
(def counter (atom 0))
(defn increment-counter
"Increments the counter atom and returns it"
[]
(swap! counter inc))
(deftest cache-test
(testing "cache hit, miss and reset"
(let [cache-atom (c/create-c... | (ns cmr.common.test.cache
(:require [clojure.test :refer :all]
[cmr.common.cache :as c]))
(def counter (atom 0))
(defn increment-counter
"Increments the counter atom and returns it"
[]
(swap! counter inc))
(deftest cache-test
(testing "cache hit, miss and reset"
(let [cache-atom (c/create-c... | Reset counter so the test can be run multiple times in repl. | Reset counter so the test can be run multiple times in repl.
| Clojure | apache-2.0 | mschmele/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,nasa/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,nasa/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Meta... |
98eff4584da2060b4087986f0251fc4c2037a09a | ring-jetty-adapter/project.clj | ring-jetty-adapter/project.clj | (defproject ring/ring-jetty-adapter "1.4.0"
:description "Ring Jetty adapter."
: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.5.1"]
[ring/ring-core "1.... | (defproject ring/ring-jetty-adapter "1.4.0"
:description "Ring Jetty adapter."
: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.5.1"]
[ring/ring-core "1.... | Update clj-http to fix error with Clojure 1.8 | Update clj-http to fix error with Clojure 1.8
| Clojure | mit | ring-clojure/ring,ring-clojure/ring |
3354565652b3e183a9d7d1b4014f4c566531b87d | src/leiningen/bootstrap.clj | src/leiningen/bootstrap.clj | (ns leiningen.bootstrap
"Bootstrap the project by running lein deps and lein git-deps."
(:require leiningen.deps
leiningen.git-deps))
(defn bootstrap
"Bootstrap the project by running lein deps and lein git-deps."
[project]
(leiningen.deps/deps project)
(leiningen.git-deps/git-deps project))
| (ns leiningen.bootstrap
"Bootstrap the project by running lein deps and lein git-deps."
(:use [leiningen.git-deps :only [git-deps]]
[leiningen.core :only [default-repos]]
[leiningen.deps :only [deps]]
[leiningen.util.maven :only [container make-remote-artifact
... | Add a workaround for bug in Leiningen 1.6.2. | Add a workaround for bug in Leiningen 1.6.2.
| Clojure | epl-1.0 | tapn2it/one,tapn2it/one,huntfunc/huntfunc-one,nybbles/one,osbert/dv-sim,simonholgate/contour-one,jasonrudolph/one-rep-max,jasonrudolph/one-rep-max,simonholgate/contour-one,osbert/dv-sim,saolsen/jammer-old,saolsen/jammer-old |
d94c9fe937aa0d3cb2e3ca38c46d3cd6a1d626b1 | build.boot | build.boot | (set-env!
:source-paths #{"src/main/java" "src/test/java"}
:dependencies '[[radicalzephyr/boot-junit "0.1.0" :scope "test"]])
(def +version+ "0.1.0")
(require '[radicalzephyr.boot-junit :refer [junit]])
(task-options!
pom {:project 'http-server
:version +version+
:description "A Java HTTP server."
... | (set-env!
:source-paths #{"src/main/java" "src/test/java"}
:dependencies '[[radicalzephyr/boot-junit "0.1.0" :scope "test"]])
(def +version+ "0.1.0")
(require '[radicalzephyr.boot-junit :refer [junit]])
(task-options!
pom {:project 'http-server
:version +version+
:description "A Java HTTP server."
... | Configure junit task with the correct package | Configure junit task with the correct package
| Clojure | mit | RadicalZephyr/http-server |
d7c48dc416fd3cf2e7fa5a4ba8e1a111f9cf7680 | src/braid/ui/styles/body.cljs | src/braid/ui/styles/body.cljs | (ns braid.ui.styles.body)
(def body
[:body
{:margin 0
:padding 0
:font-family "\"Open Sans\", Helvetica, Arial, sans-serif"
:font-size "12px"
:background "#eee"}
[:textarea :input
{:font-family "inherit"
:font-size "1em"}]])
| (ns braid.ui.styles.body)
(def body
[:body
{:margin 0
:padding 0
:font-family "\"Open Sans\", Helvetica, Arial, sans-serif"
:font-size "12px"
:background "#F2F2F2"}
[:textarea :input
{:font-family "inherit"
:font-size "1em"}]])
| Make page background a tad lighter | Make page background a tad lighter
| Clojure | agpl-3.0 | braidchat/braid,rafd/braid,rafd/braid,braidchat/braid |
2c7dc36a022377609aff1cb624d1d1ec1e856635 | word-count/word_count_test.clj | word-count/word_count_test.clj | (ns word-count.test (:require [clojure.test :refer :all]))
(load-file "word-count.clj")
(deftest count-one-word
(is (= {"word" 1}
(phrase/word-count "word"))))
(deftest count-one-of-each
(is (= {"one" 1 "of" 1 "each" 1}
(phrase/word-count "one of each"))))
(deftest count-multiple-occurrences
... | (ns word-count.test (:require [clojure.test :refer :all]))
(load-file "word_count.clj")
(deftest count-one-word
(is (= {"word" 1}
(word-count/word-count "word"))))
(deftest count-one-of-each
(is (= {"one" 1 "of" 1 "each" 1}
(word-count/word-count "one of each"))))
(deftest count-multiple-occurr... | Replace hyphen in filename with underscore & rename ns | Replace hyphen in filename with underscore & rename ns
| Clojure | mit | exercism/xclojure,exercism/xclojure,querenker/xclojure,querenker/xclojure,wobh/xclojure,canweriotnow/xclojure,yurrriq/xclojure |
3bf875b4fd3c92f042fed4f61f5212f18032b050 | clj_record/test/validation_built_ins_test.clj | clj_record/test/validation_built_ins_test.clj | (ns clj-record.test.validation-built-ins-test
(:use clojure.contrib.test-is)
(:require [clj-record.validation.built-ins :as vfn]))
(deftest match-creates-a-matching-fn-for-the-given-pattern
(let [matches-foo? (vfn/match #"foo")]
(is (matches-foo? "yes foo does"))
(are (not (matches-foo? _1))
"no b... | (ns clj-record.test.validation-built-ins-test
(:use clojure.contrib.test-is)
(:require [clj-record.validation.built-ins :as vfn]))
(deftest match-creates-a-matching-fn-for-the-given-pattern
(let [matches-foo? (vfn/match #"foo")]
(is (matches-foo? "yes foo does"))
(are (not (matches-foo? _1))
"no b... | Handle nil values in match validations. | Handle nil values in match validations.
| Clojure | mit | duelinmarkers/clj-record |
c580eefde37dae35b1a33413c6a507372d145372 | project.clj | project.clj | (defproject org.onyxplatform/onyx-datomic "0.8.1.0-alpha3"
:description "Onyx plugin for Datomic"
:url "https://github.com/MichaelDrogalis/onyx-datomic"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.org/re... | (defproject org.onyxplatform/onyx-datomic "0.8.1.0-SNAPSHOT"
:description "Onyx plugin for Datomic"
:url "https://github.com/MichaelDrogalis/onyx-datomic"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.org/... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | epl-1.0 | onyx-platform/onyx-datomic |
8136c8f76ae0bcc0d38708c3fe2d0bec95b4394f | project.clj | project.clj | (defproject onyx-app/lein-template "0.13.3.0"
: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.13.3.1-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 |
9181aef4c7ce68027095390eb7d19a50b14f1a7c | project.clj | project.clj | ;; The Climate Corporation licenses this file to you under 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
;;
;; See the NOTICE file distributed with ... | ;; The Climate Corporation licenses this file to you under 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
;;
;; See the NOTICE file distributed with ... | Change version to snapshot again | Change version to snapshot again
| Clojure | apache-2.0 | TheClimateCorporation/claypoole |
4ae26df1d4f5d8f036f2e230af797729fad7ee3c | test/riemann/test/common.clj | test/riemann/test/common.clj | (ns riemann.test.common
(:use riemann.common)
(:use clojure.test))
| (ns riemann.test.common
(:use riemann.common)
(:use clojure.test))
(deftest subset-test
(are [a b] (subset? a b)
[] []
[] [1 2 3]
[1] [1]
[1] [2 1 3]
[1 2] [1 2 3]
[1 2] [2 3 1])
(are [a b] (no... | Revert "kill tests for funcs that do not exist anymore" | Revert "kill tests for funcs that do not exist anymore"
This reverts commit 70c3caf8b047080f759713cb4085c64af893e0c0.
| Clojure | epl-1.0 | rhysr/riemann,joerayme/riemann,ClodoCorp/riemann,vincentbernat/riemann,yeller/riemann,vixns/riemann,forter/riemann,counsyl/riemann,robashton/riemann,forter/riemann,DasAllFolks/riemann,twosigma/riemann,LubyRuffy/riemann,yeller/riemann,spazm/riemann,aphyr/riemann,twosigma/riemann,cswaroop/riemann,shokunin/riemann,counsyl... |
b16bea31f922a3d82f6332fa5fdfd2b0bc571e6a | src/uxbox/main/repo/projects.cljs | src/uxbox/main/repo/projects.cljs | ;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.main.repo.projects
"A main interface for access to ... | ;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.main.repo.projects
"A main interface for access to ... | Add fetch project by token repo functions. | Add fetch project by token repo functions.
| Clojure | mpl-2.0 | studiospring/uxbox,uxbox/uxbox,uxbox/uxbox,studiospring/uxbox,uxbox/uxbox,studiospring/uxbox |
64091dbb00d51ba6b4e96f328ab47881b908f82c | src/cljparse/core.clj | src/cljparse/core.clj | (ns cljparse.core
(:require [instaparse.core :as insta]
[clojure.java.io :as io]
[clojure.tools.cli :refer [parse-opts]]
[cljparse.config.parser :as config])
(:gen-class))
(def configname "chaincode.conf")
(def cli-options
;; An option with a required argument
[["-p" "--pat... | (ns cljparse.core
(:require [instaparse.core :as insta]
[clojure.java.io :as io]
[clojure.tools.cli :refer [parse-opts]]
[cljparse.config.parser :as config])
(:gen-class))
(def configname "chaincode.conf")
(def cli-options
;; An option with a required argument
[["-p" "--pat... | Fix dumbass mistake in string concat. Do it the easy way | Fix dumbass mistake in string concat. Do it the easy way
Signed-off-by: Eric Baur <a1c9c5f8609c68027db0779b39e5f932d4cb0053@robeybaur.org>
| Clojure | apache-2.0 | ghaskins/chaintool,ghaskins/chaintool,ghaskins/obcc,ghaskins/obcc |
b206736da9647a2a717357657b69ae2f4441e46c | src/clj/clj_json.clj | src/clj/clj_json.clj | (ns clj-json
(:import (clj_json JsonExt)
(org.codehaus.jackson JsonFactory JsonParser)
(java.io StringWriter StringReader BufferedReader))
(:use (clojure.contrib [def :only (defvar-)])))
(defvar- #^JsonFactory factory (JsonFactory.))
(defn generate-string [obj]
(let [sw (StringWrite... | (ns clj-json
(:import (clj_json JsonExt)
(org.codehaus.jackson JsonFactory JsonParser)
(java.io StringWriter StringReader BufferedReader))
(:use (clojure.contrib [def :only (defvar-)])))
(defvar- #^JsonFactory factory (JsonFactory.))
(defn generate-string
{:tag String}
[obj]
(let [sw ... | Tag generated json as a String. | Tag generated json as a String.
| Clojure | mit | mmcgrana/clj-json,weavejester/clj-json |
ba05df809d113ed341a05b93e7977d6a2f713c34 | docs-src/modules/ROOT/examples/com/wsscode/pathom/book/intro/demo.cljs | docs-src/modules/ROOT/examples/com/wsscode/pathom/book/intro/demo.cljs | (ns com.wsscode.pathom.book.intro.demo
(:require [com.wsscode.pathom.core :as p]
[com.wsscode.pathom.connect :as pc]))
(pc/defresolver answer [_ _]
{::pc/output [:answer-to-everything]}
{:answer-to-everything 42})
(pc/defresolver answer-plus-one [_ {:keys [answer-to-everything]}]
{::pc/input #{:a... | (ns com.wsscode.pathom.book.intro.demo
(:require [com.wsscode.pathom.core :as p]
[com.wsscode.pathom.connect :as pc]))
(pc/defresolver answer [_ _]
{::pc/output [:answer-to-everything]}
{:answer-to-everything 42})
(pc/defresolver answer-plus-one [_ {:keys [answer-to-everything]}]
{::pc/input #{:a... | Add error handler plugin to intro example | Add error handler plugin to intro example
| Clojure | mit | wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom |
e2653d8982b731fb750432422576e7933639bb96 | src/rule110/core.clj | src/rule110/core.clj | (ns rule110.core
(:require [rule110.midi :as midi]))
(def grid-size 1024 )
(def max-steps 100)
(def step-rule {
[1 1 1] 0,
[1 1 0] 1,
[1 0 1] 1,
[1 0 0] 0,
[0 1 1] 1,
[0 1 0] 1,
[0 0 1] 1,
... | (ns rule110.core
(:require [rule110.midi :as midi]))
(def grid-size 1024 )
(def max-steps 100)
(def step-rule {
[1 1 1] 0,
[1 1 0] 1,
[1 0 1] 1,
[1 0 0] 0,
[0 1 1] 1,
[0 1 0] 1,
[0 0 1] 1,
... | Make sure to stop the synth. This prevents it from making some garbage noise at the end of the program. | Make sure to stop the synth.
This prevents it from making some garbage noise at the end of the program.
| Clojure | epl-1.0 | zev/rule110 |
e34f3413d40848869f660675f969fd878c68f6c5 | src/cljs/chess/core.cljs | src/cljs/chess/core.cljs | (ns chess.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[chess.board :as board]))
(defonce app-state (atom {:board board/start-position}))
(defn piece [p owner]
(reify
om/IRender
(render [_]
(dom/div #js {:className (str "piece " (... | (ns chess.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[chess.board :as board]))
(defonce app-state (atom {:board board/start-position}))
(defn piece-class-name
[p]
(str "piece " (board/colour p) " " (board/pieces p)))
(defn piece [p owner]... | Break out function for calculating piece css class | Break out function for calculating piece css class
| Clojure | epl-1.0 | christinning/chess,christinning/chess |
9b3204e0256c80a2d624511c48b5a653a5596bbf | src/baustellen.clj | src/baustellen.clj | (ns baustellen)
(defn distance [p1 p2]
(Math/sqrt
(apply +
(map (fn [c1 c2] (Math/pow (- c1 c2) 2))
p1 p2))))
(defn cost
"Returns the cost for transporting cnt units of skill over a dist. The basis
cost for transporting one unit of skill over one unit of distance is taken
from s... | (ns baustellen)
(defn distance [p1 p2]
(Math/sqrt
(apply +
(map (fn [c1 c2] (Math/pow (- c1 c2) 2))
p1 p2))))
(defn cost
"Returns the cost for transporting cnt units of skill over a dist. The basis
cost for transporting one unit of skill over one unit of distance is taken
from s... | Add function for calculating value of coalition | Add function for calculating value of coalition
| Clojure | mit | rmoehn/baustellen |
1950e6ab192abdfa270fb04e229364faf49c5ed6 | lein-template/project.clj | lein-template/project.clj | ;; Copyright © 2014 JUXT LTD.
;; We call this project modular to make the invocation: lein new modular appname
(defproject modular/lein-template "0.6.13"
:description "Leiningen template for a full-featured component based app using modular extensions."
:license {:name "The MIT License"
:url "http://op... | ;; Copyright © 2014 JUXT LTD.
;; We call this project modular to make the invocation: lein new modular appname
(defproject modular/lein-template "0.6.13"
:description "Leiningen template for a full-featured component based app using modular extensions."
:url "http://modularity.org/"
:license {:name "The MIT Lice... | Add url to silence Leiningen | Add url to silence Leiningen
| Clojure | mit | pleasetrythisathome/modular,juxt/modular,pleasetrythisathome/modular,juxt/modular |
38e2770e04f177cf43c005da290df15e941b2947 | test/clj/robot_kata/server_test.clj | test/clj/robot_kata/server_test.clj | (ns robot-kata.server-test
(:require [clojure.test :refer :all]
[robot-kata.server :refer :all]))
(deftest robot-kata-routes-test
(testing "Routes work as expected"
(testing "Default route"
(let [resp (robot-kata-routes {:request-method :get :uri "/"}... | (ns robot-kata.server-test
(:require [clojure.test :refer :all]
[robot-kata.server :refer :all]))
(deftest robot-kata-routes-test
(testing "Routes work as expected"
(testing "Default route"
(let [resp (robot-kata-routes {:request-method :get :uri "/"}... | Fix bug in robot-kata-routes test | Fix bug in robot-kata-routes test
| Clojure | epl-1.0 | ideal-knee/robot-kata |
d1f96617cc7745ad9d6d1b96525bb686e72ac578 | src/time_tracker/core.clj | src/time_tracker/core.clj | (ns time-tracker.core
(:gen-class)
(:require [time-tracker.web.service :as web-service]
[time-tracker.db :as db]
[time-tracker.logging :as log]
[org.httpkit.server :as httpkit]
[time-tracker.util :as util]))
(defn init! []
(log/configure-logging!)
(db/init-db!))
... | (ns time-tracker.core
(:gen-class)
(:require [org.httpkit.server :as httpkit]
[time-tracker.migration :refer [migrate-db rollback-db]]
[time-tracker.db :as db]
[time-tracker.logging :as log]
[time-tracker.util :as util]
[time-tracker.web.service :as web-se... | Allow uberjar to run migration/rollback | Allow uberjar to run migration/rollback
| Clojure | epl-1.0 | nilenso/time-tracker,nilenso/time-tracker,nilenso/time-tracker |
7e9ced0578f658002fbb3cce8721f1a9c5264e0c | project.clj | project.clj | (defproject kukui "0.1.0-pre"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2227"]]
:profiles {:dev {:plugins [[lein-cljsbuild "1.0.3"]
[com.cemerick/clojurescript.test "0.3.1"]]
:hooks [leiningen.cljsbuild]}}
:... | (defproject kukui "0.1.0-pre"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2227"]]
:profiles {:dev {:plugins [[lein-cljsbuild "1.0.3"]
[com.cemerick/clojurescript.test "0.3.1"]]
:hooks [leiningen.cljsbuild]}}
:... | Disable advanced target to speed up "lein cljsbuild test whitespace" | Disable advanced target to speed up "lein cljsbuild test whitespace"
| Clojure | mit | cldwalker/kukui |
af131d20f7eb9f64c4e7ea0244c7dc212c078cbe | project.clj | project.clj | (defproject statuses "1.0.0-SNAPSHOT"
:description "Statuses app for innoQ"
:url "https://github.com/innoq/statuses"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"
:distribution :repo
:comments "A business-friendly OSS license"}
... | (defproject statuses "1.0.0-SNAPSHOT"
:description "Statuses app for innoQ"
:url "https://github.com/innoq/statuses"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"
:distribution :repo
:comments "A business-friendly OSS license"}
... | Update compojure from 1.3.3 to 1.4.0 | Update compojure from 1.3.3 to 1.4.0
| Clojure | apache-2.0 | innoq/statuses,mvitz/statuses |
0dc099814be5bfcce8b0ad77510051acfd05a245 | metrics-clojure-core/src/metrics/counters.clj | metrics-clojure-core/src/metrics/counters.clj | (ns metrics.counters
(:use [metrics.utils :only (metric-name)])
(:import (com.yammer.metrics Metrics))
(:import (com.yammer.metrics.core Counter)))
; Create ----------------------------------------------------------------------
(defn counter
"Create and return a new Counter metric with the given title.
Tit... | (ns metrics.counters
(:use [metrics.utils :only (metric-name)])
(:import (com.yammer.metrics Metrics))
(:import (com.yammer.metrics.core Counter)))
; Create ----------------------------------------------------------------------
(defn counter
"Create and return a new Counter metric with the given title.
Tit... | Make some indentation more Clojurey. | Make some indentation more Clojurey.
| Clojure | mit | matthiasn/metrics-clojure |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.