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 |
|---|---|---|---|---|---|---|---|---|---|
71e4857dbc38819f31f85aa4813489bda53551b1 | project.clj | project.clj | (defn get-prompt
[ns]
(str "\u001B[35m[\u001B[34m"
ns
"\u001B[35m]\u001B[33m λ\u001B[m=> "))
(defproject gov.nasa.earthdata/cmr-sample-data "0.1.0-SNAPSHOT"
:description "Sample Data for the open source NASA Common Metadata Repository (CMR)"
:url "https://github.com/oubiwann/cmr-sample-data"
:l... | (defn get-prompt
[ns]
(str "\u001B[35m[\u001B[34m"
ns
"\u001B[35m]\u001B[33m λ\u001B[m=> "))
(defproject gov.nasa.earthdata/cmr-sample-data "0.1.0-SNAPSHOT"
:description "Sample Data for the open source NASA Common Metadata Repository (CMR)"
:url "https://github.com/oubiwann/cmr-sample-data"
:l... | Move deps around (for depending libs in dev mode). | Move deps around (for depending libs in dev mode).
| 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 |
c7f955c5a0111702d7a0f9a538b19bae6a77b589 | project.clj | project.clj | (defproject io.aviso/twixt "0.1.10-SNAPSHOT"
:description "An extensible asset pipeline for Clojure web applications"
:url "https://github.com/AvisoNovate/twixt"
:license {:name "Apache Sofware Licencse 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:dependencies [[org.clojure/clojure... | (defproject io.aviso/twixt "0.1.10-SNAPSHOT"
:description "An extensible asset pipeline for Clojure web applications"
:url "https://github.com/AvisoNovate/twixt"
:license {:name "Apache Sofware Licencse 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:dependencies [[org.clojure/clojure... | Update to snapshot version of io.aviso:pretty | Update to snapshot version of io.aviso:pretty
| Clojure | apache-2.0 | AvisoNovate/twixt,clyfe/twixt,clyfe/twixt,AvisoNovate/twixt,AvisoNovate/twixt,clyfe/twixt |
42f6b38a5d4d9bfb1e170f818092dee71c4e75cb | project.clj | project.clj | (defproject lein-jslint "0.1.6-SNAPSHOT"
:description "A Leiningen plugin for running JS code through JSLint."
:url "https://github.com/vbauer/lein-jslint"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[clj-glob "1.0.0" :exclusions [org.cl... | (defproject lein-jslint "0.1.6-SNAPSHOT"
:description "A Leiningen plugin for running JS code through JSLint."
:url "https://github.com/vbauer/lein-jslint"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[clj-glob "1.0.0" :exclusions [org.cl... | Update lein eastwood plugin (0.1.4 -> 0.1.5) | Update lein eastwood plugin (0.1.4 -> 0.1.5)
| Clojure | epl-1.0 | vbauer/lein-jslint |
5462230fafc90500856e415bc20834ad56d32422 | project.clj | project.clj | (defproject grafter "0.1.0-SNAPSHOT"
:description "RDFization tools"
:url "http://example.com/FIXME"
:license {:name "TODO"
:url "http://example.com/TODO"}
:dependencies [[org.clojure/clojure "1.6.0"]
;;[org.apache.jena/jena-core "2.11.1"]
[org.clojure/algo.monads "... | (defproject grafter "0.1.0"
:description "RDFization tools"
:url "http://grafter.org/"
:license {:name "TODO"
:url "http://todo.org/"}
:repositories [["swirrl-private" {:url "s3p://leiningen-private-repo/releases/"
:username :env
... | Add private repo for grafter, and bump version to 0.1.0 | Add private repo for grafter, and bump version to 0.1.0
| Clojure | epl-1.0 | Swirrl/grafter,Swirrl/grafter |
99a17fc9ba75c7b2a340800ac30f3773abf84f4d | project.clj | project.clj | (defproject shale "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.6.0"]
[ring "1.3.1"]
[compojure "1.1.9"]
[liberator "0.12.2"]
[clj-json "0.5.3"]
[c... | (defproject shale "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.6.0"]
[ring "1.3.1"]
[javax.servlet/servlet-api "2.5"]
[compojure "1.1.9"]
[liberator "0.12.2"]
... | Include the servlet API for deploys. | Include the servlet API for deploys.
| Clojure | mit | mhluongo/shale,cardforcoin/shale,mhluongo/shale,cardforcoin/shale |
3fab4d07b027ebed6be7fe8bfb59c38b2b07eb86 | project.clj | project.clj | (defproject funcool/continuo "0.1.0-SNAPSHOT"
:description "A continuous transaction log persistence for Clojure."
:url "https://github.com/funcool/continuo"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.txt"}
:javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-o... | (defproject funcool/continuo "0.1.0-SNAPSHOT"
:description "A continuous transaction log persistence for Clojure."
:url "https://github.com/funcool/continuo"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.txt"}
:javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-o... | Add h2 and postgresql dependencies. | Add h2 and postgresql dependencies.
| Clojure | apache-2.0 | niwinz/continuo |
09210c6f29c286890c97b4cbf39ec9b272ee8831 | project.clj | project.clj | (defproject mkremins/flense-nw "0.0-SNAPSHOT"
:dependencies
[[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2322"]
[org.clojure/core.async "0.1.338.0-5c5012-alpha"]
[com.facebook/react "0.11.1"]
[om "0.7.1"]
[spellhouse/phalanges "0.1.3"]
[mkremins/flense "0.0-278"]
[mkremins/fs ... | (defproject mkremins/flense-nw "0.0-SNAPSHOT"
:dependencies
[[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2322"]
[org.clojure/core.async "0.1.338.0-5c5012-alpha"]
[com.facebook/react "0.11.1"]
[om "0.7.1"]
[spellhouse/phalanges "0.1.3"]
[mkremins/flense "0.0-SNAPSHOT"]
[mkremin... | Use Flense snapshots during development | Use Flense snapshots during development
| Clojure | mit | mkremins/flense-nw,mkremins/flense-nw |
62eb45abd282395eb93e064c2683e80dccd79a36 | 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.2 to 1.3.3. | Update compojure from 1.3.2 to 1.3.3.
| Clojure | apache-2.0 | mvitz/statuses,innoq/statuses |
3f74841f2648221142d5df1500c1878c0bd55bfe | project.clj | project.clj | (defproject onyx-app/lein-template "0.12.0.0-alpha4"
: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 |
0680f4c02242e754aa04f632840868e0219680e6 | project.clj | project.clj | (defproject puppetlabs/kitchensink "0.1.1"
:description "Clojure utility functions"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
;; Logging
[org.clojure/tools.logging... | (defproject puppetlabs/kitchensink "0.1.2-SNAPSHOT"
:description "Clojure utility functions"
:license {:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
;; Logging
[org.clojure/tool... | Update version number to 0.1.2-SNAPSHOT | Update version number to 0.1.2-SNAPSHOT
| Clojure | apache-2.0 | mullr/clj-kitchensink,camlow325/clj-kitchensink |
a7ef1d5bf5ae71fab4b995f17134ffb77906a596 | project.clj | project.clj | (defproject clj-record "1.1.0"
:description "A pseudo-port of ActiveRecord to the Clojure programming language"
:url "http://github.com/duelinmarkers/clj-record"
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojure/java.jdbc "0.0.6"]]
:dev-dependencies [[lein-clojars "0.6.0"]
... | (defproject clj-record "1.1.1-SNAPSHOT"
:description "A pseudo-port of ActiveRecord to the Clojure programming language"
:url "http://github.com/duelinmarkers/clj-record"
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojure/java.jdbc "0.0.6"]]
:dev-dependencies [[lein-clojars "0.6.0"]
... | Switch back to snapshot version. | Switch back to snapshot version.
| Clojure | mit | duelinmarkers/clj-record |
c4c6e9a1749be2f519d5098962fea2927daa3f44 | project.clj | project.clj | (defproject viewer "0.1.0-SNAPSHOT"
:description "EVE Online Data Dump Viewer"
: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/java.jdbc "0.3.2"]
... | (defproject viewer "0.1.0-SNAPSHOT"
:description "EVE Online Data Dump Viewer"
: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-RC1"]
[org.clojure/java.jdbc "0.3.2"]
... | Switch to Clojure version 1.6.0-RC1. | Switch to Clojure version 1.6.0-RC1.
| Clojure | epl-1.0 | pparkkin/evemastery |
e6db583b4790a2b4a1a0aed347b828bc92c198b3 | 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 Clout dependency for Instaparse 1.4.0 | Update Clout dependency for Instaparse 1.4.0
| Clojure | epl-1.0 | ezy023/compojure,weavejester/compojure,Christopher-Bui/compojure,sidcarter/compojure |
bd4b10cb6699c8f03ae550747471f19097ac8e9c | project.clj | project.clj | (defproject onyx-app/lein-template "0.11.0.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.11.0.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 |
04dd36d73eeafbe9becb0bc52ea4c3f38fa50f10 | 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 org.clojure:data.json to v2 | Update dependency org.clojure:data.json to v2
| Clojure | unlicense | nicokosi/strava-activity-graphs |
2158f4e0c34383f7f8dcbf921be93d7ebd5136d3 | project.clj | project.clj | (defproject sqls "0.1.0-SNAPSHOT"
:description "SQLS"
:url "https://bitbucket.org/mpietrzak/sqls"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [
[org.clojure/clojure "1.6.0-beta2"]
[org.clojure/data.json "0... | (defproject sqls "0.1.0-SNAPSHOT"
:description "SQLS"
:url "https://bitbucket.org/mpietrzak/sqls"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [
[org.clojure/clojure "1.6.0"]
[org.clojure/data.json "0.2.4"]... | Update Clojure dependency to 1.6.0 | Update Clojure dependency to 1.6.0
| Clojure | epl-1.0 | mpietrzak/sqls,sqls/sqls |
803891216b8d323267afc336860bf7599649021d | project.clj | project.clj | (defproject onyx-app/lein-template "0.12.7.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.12.7.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 |
52ab2719b770bb6da40df731074cbbc75dfdfc80 | project.clj | project.clj | (defproject org.onyxplatform/onyx-peer-http-query "0.11.0.0-SNAPSHOT"
:description "An Onyx health and query HTTP server"
:url "https://github.com/onyx-platform/onyx-peer-http-query"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojur... | (defproject org.onyxplatform/onyx-peer-http-query "0.11.0.0-SNAPSHOT"
:description "An Onyx health and query HTTP server"
:url "https://github.com/onyx-platform/onyx-peer-http-query"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojur... | Update dependency org.onyxplatform/onyx to version 0.11.0-alpha4. | Update dependency org.onyxplatform/onyx to version 0.11.0-alpha4.
Automatic commit by lein-unison.
| Clojure | epl-1.0 | onyx-platform/onyx-peer-http-query |
6265f74f96539c3ed74ab4da762b484a774ca53a | project.clj | project.clj | (defproject org.onyxplatform/onyx-datomic "0.7.3-beta7"
: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/repo"... | (defproject org.onyxplatform/onyx-datomic "0.7.3-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/re... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | epl-1.0 | onyx-platform/onyx-datomic |
d886cfde9609cc0305b2b9581c82bf4b97a61134 | 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 org.clojure:data.json to v1 | Update dependency org.clojure:data.json to v1
| Clojure | unlicense | nicokosi/strava-activity-graphs |
5e7c28b5927dc44f6cbc6d139d0d11e46de5b4ae | project.clj | project.clj | (defproject oph/clj-parent "0.1.0"
:url "http://example.com/FIXME"
:license {:name "EUPL"
:url "http://www.osor.eu/eupl/"}
:plugins [[lein-modules "0.3.11"]]
:modules {:inherited {
:repositories [["oph-releases" {:url "https://artifactory.oph.ware.fi/artifactory/oph-s... | (defproject oph/clj-parent "0.1.0"
:url "http://example.com/FIXME"
:license {:name "EUPL"
:url "http://www.osor.eu/eupl/"}
:plugins [[lein-modules "0.3.11"]]
:modules {:inherited {
:repositories [["releases" {:url "https://artifactory.oph.ware.fi/artifactory/oph-sade-... | Rename oph repositories to default names | Rename oph repositories to default names
| Clojure | epl-1.0 | Opetushallitus/clj-util,Opetushallitus/clj-util |
21e3f4af4000c6bc0d74fa376b9cb33b48042425 | project.clj | project.clj | (defproject org.onyxplatform/onyx-metrics "0.8.0.1"
: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.0.2-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 |
2c6bc5308400163225d94518c5673bc4bc306345 | project.clj | project.clj | (defproject org.flatland/useful "0.11.1"
:description "A collection of generally-useful Clojure utility functions"
:license {:name "Eclipse Public License - v 1.0"
:url "http://www.eclipse.org/legal/epl-v10.html"
:distribution :repo}
:url "https://github.com/flatland/useful"
:dependencie... | (defproject org.flatland/useful "0.11.1"
:description "A collection of generally-useful Clojure utility functions"
:license {:name "Eclipse Public License - v 1.0"
:url "http://www.eclipse.org/legal/epl-v10.html"
:distribution :repo}
:url "https://github.com/flatland/useful"
:dependencie... | Put links to source in the generated docs. | Put links to source in the generated docs.
| Clojure | epl-1.0 | amalloy/useful,flatland/useful,jafingerhut/useful |
97f6a4a2c4c68d5f3046115e31af5139f05b708e | lein/profiles.clj | lein/profiles.clj | {:user
{:plugins
[[lein-midje "3.1.3"]
[com.palletops/pallet-lein "0.6.0-beta.9"]
[lein-marginalia "0.7.1"]
[lein-difftest "2.0.0"]
[cider/cider-nrepl "0.6.0"]
[lein-ancient "0.6.7"]
]
:dependencies
[[alembic "0.2.0"]]
}
}
| {:user
{:plugins
[[lein-midje "3.2"]
[lein-marginalia "0.8.0"]
[lein-ancient "0.6.8"]]}}
| Update plugins and remove unused ones | Update plugins and remove unused ones
| Clojure | mit | meggermo/dotfiles |
03a13bd3a74f44f84d424db93a1660f00261222a | src/circle/backend/build/inference/gems_map.clj | src/circle/backend/build/inference/gems_map.clj | (ns circle.backend.build.inference.gems-map)
(def gem-package-map
;; this is a map of rubygems to the ubuntu packages necessary for this gem to install. Incomplete.
{"memcached" #{"libmemcached-dev" "libsasl2-dev"}
"cdamian-geoip_city" #{"libgeoip-dev"}
"capybara-webkit" #{"libqtwebkit-dev"}
"pdfkit "#{"w... | (ns circle.backend.build.inference.gems-map)
(def gem-package-map
;; this is a map of rubygems to the ubuntu packages necessary for this gem to install. Incomplete.
{"memcached" #{"libmemcached-dev" "libsasl2-dev"}
"cdamian-geoip_city" #{"libgeoip-dev"}
"capybara-webkit" #{"libqtwebkit-dev"}
"pdfkit "#{"w... | Add support for yet another mysql adapter. Fixes a problem with soundcloud | Add support for yet another mysql adapter. Fixes a problem with soundcloud
| Clojure | epl-1.0 | prathamesh-sonpatki/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,circleci/frontend,circleci/frontend,RayRutjes/frontend |
5fc60f51a85d271be323fee0d34bb4fc57b0aacc | src/uxbox/frontend/core.clj | src/uxbox/frontend/core.clj | ;; 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.frontend.core)
(defmulti -handler
(comp (juxt :typ... | ;; 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.frontend.core
(:require [catacumba.impl.handlers :a... | Add rsp type that properly implements catacumba protocols. | Add rsp type that properly implements catacumba protocols.
This is a compatibility layer for future support of
content negotiation on catacumba.
| Clojure | mpl-2.0 | uxbox/uxbox-backend,uxbox/uxbox-backend |
d833543368423e917f1178d2d774eb0aba73ce40 | frontend/uxbox/core.cljs | frontend/uxbox/core.cljs | (ns uxbox.core
(:require [beicon.core :as rx]
[cats.labs.lens :as l]
[uxbox.state :as st]
[uxbox.router :as rt]
[uxbox.rstore :as rs]
[uxbox.ui :as ui]
[uxbox.data.load :as dl]))
(enable-console-print!)
(defn main
"Initialize the storage subs... | (ns uxbox.core
(:require [beicon.core :as rx]
[cats.labs.lens :as l]
[uxbox.state :as st]
[uxbox.router :as rt]
[uxbox.rstore :as rs]
[uxbox.ui :as ui]
[uxbox.data.load :as dl]))
(enable-console-print!)
(defn main
"Initialize the storage subs... | Add dedupe on state persistence stream. | Add dedupe on state persistence stream.
| Clojure | mpl-2.0 | uxbox/uxbox,studiospring/uxbox,studiospring/uxbox,studiospring/uxbox,uxbox/uxbox,uxbox/uxbox |
39f98999d18d28ba9dec77aac6786f9da2293287 | src/pz_discover/util.clj | src/pz_discover/util.clj | (ns pz-discover.util
(:require [clojure.tools.logging :as log]
[zookeeper :as zk]
[pz-discover.models.services :as sm]))
(defn setup-zk-env! [client chroot]
(let [names-node (format "%s/%s" chroot "names")
types-node (format "%s/%s" chroot "types")]
(when-not (zk/exists client c... | (ns pz-discover.util
(:require [clojure.tools.logging :as log]
[zookeeper :as zk]
[pz-discover.models.services :as sm]))
(defn setup-zk-env! [client chroot]
(let [names-node (format "%s/%s" chroot "names")
types-node (format "%s/%s" chroot "types")]
(when-not (zk/exists client c... | Change format of infrastructure data, update if already registered. | Change format of infrastructure data, update if already registered.
| Clojure | epl-1.0 | venicegeo/pz-discover |
0f38699dac5664fea173ea04a97d6cbbfabe7264 | frontend/intercom.cljs | frontend/intercom.cljs | (ns frontend.intercom
(:require [frontend.utils :as utils :include-macros true]))
(defn intercom-jquery []
(aget js/window "intercomJQuery"))
(defn intercom-v1-new-message [jq message]
(.click (jq "#IntercomTab"))
(when-not (.is (jq "#IntercomNewMessageContainer") ":visible")
(.click (jq "[href=IntercomNe... | (ns frontend.intercom
(:require [frontend.utils :as utils :include-macros true]))
(defn raise-dialog [ch & [message]]
(try
(js/Intercom "show")
(catch :default e
(utils/notify-error ch "Uh-oh, our Help system isn't available. Please email us instead, at sayhi@circleci.com")
(utils/merror e))))
... | Remove references to old widget | Remove references to old widget
| Clojure | epl-1.0 | circleci/frontend,RayRutjes/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,circleci/frontend,circleci/frontend,prathamesh-sonpatki/frontend |
b5412875f0d438226d26284ff51aa9d809d048e9 | .lein/profiles.clj | .lein/profiles.clj | {:user {:dependencies [[clj-stacktrace "0.2.5"]
[org.clojure/tools.trace "0.7.6"]
[org.clojure/tools.namespace "0.2.4"]
[redl "0.1.0"]
[speclj-tmux "1.0.0"]
[spyscope "0.1.3"]
[slamh... | {:user {:dependencies [[clj-stacktrace "0.2.5"]
[org.clojure/tools.trace "0.7.6"]
[org.clojure/tools.namespace "0.2.4"]
[redl "0.1.0"]
[speclj-tmux "1.0.0"]
[spyscope "0.1.3"]
[slamh... | Add quickie test runner to plugins. | Add quickie test runner to plugins.
| Clojure | unlicense | RyanMcG/dotfiles,RyanMcG/dotfiles,RyanMcG/dotfiles,RyanMcG/dotfiles,RyanMcG/dotfiles,RyanMcG/dotfiles,RyanMcG/dotfiles |
4cd021c13e8bff985884a973673eb2fb2cfcbb31 | domain/project.clj | domain/project.clj | (defproject domain "0.1.0-SNAPSHOT"
:description "CV + RTB"
:url "http://example.com/OMGLOL"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[ring/ring-jetty-adapter "1.4.0"]
[ri... | (defproject domain "0.1.0-SNAPSHOT"
:description "CV + RTB"
:url "http://example.com/OMGLOL"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[ring/ring-jetty-adapter "1.4.0"]
[ri... | Move JVM debug only to dev profile | Move JVM debug only to dev profile
| Clojure | epl-1.0 | jhn/tobias,jhn/tobias |
4c3c68b227290f29de7762c33494ad5567b30852 | src/cljs/map.cljs | src/cljs/map.cljs | (ns wlmmap.map
(:require [mrhyde.extend-js]
[blade :refer [L]]
[cljs.core.async :refer [chan <! >!]]
[shoreleave.remotes.http-rpc :refer [remote-callback]])
(:require-macros [cljs.core.async.macros :refer [go]]))
(blade/bootstrap)
(def mymap (-> L .-mapbox (.map "map" "examples... | (ns wlmmap.map
(:require [mrhyde.extend-js]
[blade :refer [L]]
[cljs.core.async :refer [chan <! >! timeout]]
[shoreleave.remotes.http-rpc :refer [remote-callback]])
(:require-macros [cljs.core.async.macros :refer [go]]))
(blade/bootstrap)
(def mymap (-> L .-mapbox (.map "map" "... | Add a timeout when loading markers. | Add a timeout when loading markers.
It works fine with chromium, but there is still something wrong
with recent version of Firefox.
| Clojure | epl-1.0 | bzg/wlmmap,bzg/wlmmap |
963d6d215599ecc07bc35337243c0a69a2e1b7c4 | 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"}]])
| (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"}]])
| Fix inconsistent textarea font-size on Firefox | Fix inconsistent textarea font-size on Firefox
| Clojure | agpl-3.0 | braidchat/braid,rafd/braid,rafd/braid,braidchat/braid |
a1a8a1bbf01ef524e83e7f02a10f134566a76c7b | sample/src/clojure/test/leindroid/sample/main.clj | sample/src/clojure/test/leindroid/sample/main.clj | (ns test.leindroid.sample.main
(:use [neko.activity :only [defactivity do-ui set-content-view!]]
[neko.notify :only [toast]]
[neko.ui :only [defui by-id]]
[neko.application :only [defapplication]]))
(declare ^android.app.Activity a
^android.widget.EditText user-input)
;; This line d... | (ns test.leindroid.sample.main
(:use [neko.activity :only [defactivity set-content-view!]]
[neko.notify :only [toast]]
[neko.ui :only [defui]]
[neko.threading :only [on-ui]]
[neko.application :only [defapplication]]))
(declare ^android.app.Activity a
^android.widget.EditText ... | Update sample project for changes in neko | Update sample project for changes in neko
The do-ui macro was moved to the neko.threading namespace and renamed to
on-ui.
| Clojure | epl-1.0 | kenrestivo/lein-droid,clojure-android/lein-droid,dferens/lein-droid,kenrestivo/lein-droid,clojure-android/lein-droid,celeritas9/lein-droid,pw4ever/lein-droid-for-tbnl,nablaa/lein-droid,celeritas9/lein-droid |
443d67db3099d658a2bf1d0b0337b1d82ac6514e | src/clj/pfrt/core.clj | src/clj/pfrt/core.clj | (ns pfrt.core)
(defprotocol Lifecycle
(init [_ system] "Initialize method")
(start [_ system] "Start service")
(stop [_ system] "Stop service"))
| (ns pfrt.core
(:require [swiss.arrows :refer [-<>]]))
(defprotocol IComponentLifecycle
(init [_ system] "Initialize method")
(start [_ system] "Start service")
(stop [_ system] "Stop service"))
(defprotocol ISystemLifecycle
(init [_] "Initialize method")
(start [_] "Start service")
(stop [_] "Stop servi... | Add concise system record class. | Add concise system record class.
| Clojure | epl-1.0 | niwinz/pf-stats-api,niwinz/pf-stats-api |
4d7bb736515e639dd42659d0eb72d90b06f98a98 | src/teach_by_friends/shared/components/row.cljs | src/teach_by_friends/shared/components/row.cljs | (ns teach-by-friends.shared.components.row
(:require [teach-by-friends.shared.ui :as ui]
[clojure.string :refer [capitalize]]))
(defn row [data press-handler]
(let [data-to-clj (js->clj data :keywordize-keys true)]
[ui/touchable-opacity {:style {:border-bottom-width 1
... | (ns teach-by-friends.shared.components.row
(:require [teach-by-friends.shared.ui :as ui]
[clojure.string :refer [capitalize]]))
(defn row [data press-handler]
(let [data-to-clj (js->clj data :keywordize-keys true)]
[ui/touchable-opacity {:style {:position "relative"
... | Use cover image in serials list | Use cover image in serials list
| Clojure | epl-1.0 | savelichalex/friends-teach,savelichalex/friends-teach,savelichalex/friends-teach,savelichalex/friends-teach |
f9b733e6158199c13d590e9196db034d82525212 | project/analyze-data/build.boot | project/analyze-data/build.boot | ; vi: ft=clojure
(set-env!
:source-paths #{"src", "test"}
:resource-paths #{"resources"}
:dependencies '[[org.clojure/clojure "1.8.0"]
[org.clojure/data.csv "0.1.3"]
[incanter "1.9.0"]
[adzerk/boot-test "1.2.0" :scope "test"]])
(require '[adzerk.boot-test :r... | ; vi: ft=clojure
(set-env!
:source-paths #{"src", "test"}
:resource-paths #{"resources"}
:dependencies '[[org.clojure/clojure "1.8.0"]
[org.clojure/data.csv "0.1.3"]
[metosin/boot-alt-test "0.3.1" :scope "test"]
[net.mikera/core.matrix "0.58.0"]
... | Add core.matrix and vectorz-clj, and switch to boot-alt-test. | Add core.matrix and vectorz-clj, and switch to boot-alt-test.
| Clojure | mit | dylanfprice/stanfordml,dylanfprice/stanfordml |
c392e808b96cab6c966df9bf2678ae851df7d122 | src/kixi/hecuba/weather.clj | src/kixi/hecuba/weather.clj | (ns kixi.hecuba.weather
(:require [kixi.hecuba.weather.metofficeapi :as ma]))
| (ns kixi.hecuba.weather
(:require [kixi.hecuba.weather.metoffice-api :as ma]))
| Update namespace name in :require. | Update namespace name in :require.
| Clojure | epl-1.0 | MastodonC/kixi.hecuba.weather |
42f5311b472784aab233b1463cddce317c88948e | clojure/profiles.clj | clojure/profiles.clj | ;; https://github.com/technomancy/leiningen/blob/stable/doc/PROFILES.md
{:user {:plugins [[lein-pprint "1.3.2"
lein-ancient "0.7.0"
lein-cloverage "1.2.2"]]
:dependencies [[alembic "0.3.2"]
[clj-kondo "RELEASE"]
[antq ... | ;; https://github.com/technomancy/leiningen/blob/stable/doc/PROFILES.md
{:user {:plugins [[lein-pprint "1.3.2"
lein-ancient "0.7.0"
lein-cloverage "1.2.2"]]
:dependencies [[alembic "0.3.2"]
[clj-kondo "RELEASE"]
[antq "RELEASE"]... | Add configuration for scope-capture for Clojure | Add configuration for scope-capture for Clojure
| Clojure | mit | agilecreativity/dotfiles,agilecreativity/dotfiles,agilecreativity/dotfiles |
2de00b94a17eb942d75c1b094c415b716202b322 | src/ashiba/controller.cljs | src/ashiba/controller.cljs | (ns ashiba.controller
(:require [cljs.core.async :refer [put!]]))
(defprotocol IController
(params [this route])
(start [this params db])
(stop [this params db])
(execute [this command-name] [this command-name args])
(handler [this app-db in-chan out-chan])
(send-command [this command-name] [this command... | (ns ashiba.controller
(:require [cljs.core.async :refer [put!]]))
(defprotocol IController
(params [this route])
(start [this params db])
(stop [this params db])
(execute [this command-name] [this command-name args])
(handler [this app-db-atom in-chan out-chan])
(send-command [this command-name] [this co... | Make it clear that handler receives atom instead of value | Make it clear that handler receives atom instead of value
| Clojure | mit | keechma/keechma |
7659977d394514c9e598ddf6e75038a22c184b09 | test/enduro_session/core_test.clj | test/enduro_session/core_test.clj | (ns enduro-session.core-test
(:require [clojure.test :refer :all]
[enduro-session.core :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
| (ns enduro-session.core-test
(:require [clojure.test :refer :all]
[enduro-session.core :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 1 1))))
| Fix leiningen boilerplate test failure | Fix leiningen boilerplate test failure
| Clojure | epl-1.0 | simlun/enduro-session,simlun/enduro-session |
41fc1905455d25365afbf4828cd9fe1a34d55250 | src/lt/objs/platform.cljs | src/lt/objs/platform.cljs | (ns lt.objs.platform
(:require [lt.object :as object]
[lt.util.dom :as dom])
(:require-macros [lt.macros :refer [behavior]]))
(def atom-shell true)
(def clipboard (js/require "clipboard"))
(def shell (js/require "shell"))
(defn get-data-path []
(.getDataPath (.require (js/require "remote") "app")))... | (ns lt.objs.platform
(:require [lt.object :as object]
[lt.util.dom :as dom])
(:require-macros [lt.macros :refer [behavior]]))
(def atom-shell true)
(def fs (js/require "fs"))
(def clipboard (js/require "clipboard"))
(def shell (js/require "shell"))
(defn get-data-path []
(.getDataPath (.require (js... | Update open to be backwards compatible for urls | Update open to be backwards compatible for urls
A number of plugins rely on platform/open to open urls -
https://github.com/search?p=3&q=objs.platform+open+language%3Aclojure&ref=searchresults&type=Code&utf8=%E2%9C%93.
Also couldn't use files in platform for exists check since that created
a circular dependency
| Clojure | mit | kolya-ay/LightTable,craftybones/LightTable,kausdev/LightTable,craftybones/LightTable,bruno-oliveira/LightTable,EasonYi/LightTable,pkdevbox/LightTable,masptj/LightTable,youprofit/LightTable,Bost/LightTable,kausdev/LightTable,nagyistoce/LightTable,youprofit/LightTable,hiredgunhouse/LightTable,windyuuy/LightTable,brabadu/... |
3a49dc341400e5ed36f3e11ba3bf386fe626b0c4 | services/mailp2.clj | services/mailp2.clj |
{
:name "mailp2",
:path "",
:func (fn [recipient subject intro result-maps]
(cond
(pg/eoi? result-maps) (pg/done)
(every? map? result-maps)
(let [base (->> result-maps first :value second fs/dirname)
msgs (for [retmap result-maps]
(... |
{
:name "mailp2",
:path "",
:func (fn [recipient subject intro result-maps]
(cond
(pg/eoi? result-maps) (pg/done)
(every? map? result-maps)
(let [base (->> result-maps first :value second fs/dirname)
msgs (for [retmap result-maps]
(... | Test for coll? on input values | Test for coll? on input values
| Clojure | mit | jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio |
b3c102cdf6504875a2e69ae673b632021f6fa0b8 | clj_record/test/model/config.clj | clj_record/test/model/config.clj | (ns clj-record.test.model.config)
(comment
(def db {:classname "org.apache.derby.jdbc.EmbeddedDriver"
:subprotocol "derby"
:subname "/tmp/clj-record.test.db"
:create true})
)
(def db {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "//localhost:5433... | (ns clj-record.test.model.config)
(def db {:classname "org.apache.derby.jdbc.EmbeddedDriver"
:subprotocol "derby"
:subname "/tmp/clj-record.test.db"
:create true})
(comment
(def db {:classname "org.postgresql.Driver"
:subprotocol "postgresql"
:subname "//localhost:5433/c... | Switch back to using Derby in tests. | Switch back to using Derby in tests.
| Clojure | mit | duelinmarkers/clj-record |
c90903ed5f9366936558405c21fe8a993ec20726 | src/cavm/query/expression.clj | src/cavm/query/expression.clj | (ns cavm.query.expression
(:require [clojure.edn :as edn])
(:refer-clojure :exclude [eval]))
(def eval)
(defn lambdafn [node scope]
(let [[_ argnames body] node]
(fn [& args]
(eval body (cons (zipmap argnames args) scope)))))
(defn iffn [node scope]
(let [[_ test then else] node]
(cond
(... | (ns cavm.query.expression
(:require [clojure.edn :as edn])
(:require [honeysql.types :as hsqltypes])
(:refer-clojure :exclude [eval]))
(def eval)
(defn lambdafn [node scope]
(let [[_ argnames body] node]
(fn [& args]
(eval body (cons (zipmap argnames args) scope)))))
(defn iffn [node scope]
(let... | Enable honeysql handlers in web API. | Enable honeysql handlers in web API.
| Clojure | apache-2.0 | acthp/ucsc-xena-server,acthp/ucsc-xena-server,acthp/ucsc-xena-server,ucscXena/ucsc-xena-server,ucscXena/ucsc-xena-server,ucscXena/ucsc-xena-server,acthp/ucsc-xena-server,acthp/ucsc-xena-server,ucscXena/ucsc-xena-server,ucscXena/ucsc-xena-server |
0d93de4b8b70054cb7d6971aae4ff080899fa0c6 | palindrome.clj | palindrome.clj | (def orig (first *command-line-args*))
(def input (seq (char-array (first *command-line-args*))))
(defn palindrome? [s] (= s (reverse s)))
(def occurrences-map (frequencies input))
(def evens-map (filter (fn [[_, v]] (even? v)) occurrences-map))
(def odds-map (filter (fn [[_, v]] (odd? v)) occurrences-map))
(if (... | (def orig (first *command-line-args*))
(def input (seq (char-array (first *command-line-args*))))
(defn palindrome? [s] (= s (reverse s)))
(def occurrences-map (frequencies input))
(def evens-map (filter (fn [[_, v]] (even? v)) occurrences-map))
(def odds-map (filter (fn [[_, v]] (odd? v)) occurrences-map))
(defn stri... | Sort of getting somewhere on Clojure part 3 | Sort of getting somewhere on Clojure part 3
| Clojure | mit | larouxn/palindrome,larouxn/palindrome,larouxn/palindrome,larouxn/palindrome,larouxn/palindrome,larouxn/palindrome,larouxn/palindrome,larouxn/palindrome |
3d35ce598a16916e3746de9e320c6c62a62a901a | modules/web/test/immutant/web_test.clj | modules/web/test/immutant/web_test.clj | (ns immutant.web-test
(:require [clojure.test :refer :all]
[immutant.web :refer :all]
[testing.web :refer [get-body hello handler]]
[testing.hello.service :as pedestal]))
(def url "http://localhost:8080/")
(deftest run-should-var-quote
(run hello)
(is (= "hello" (get-body ur... | (ns immutant.web-test
(:require [clojure.test :refer :all]
[immutant.web :refer :all]
[testing.web :refer [get-body hello handler]]
[testing.hello.service :as pedestal])
(import clojure.lang.ExceptionInfo))
(def url "http://localhost:8080/")
(deftest run-should-var-quote
(ru... | Test for unmount, init and destroy | Test for unmount, init and destroy
| Clojure | apache-2.0 | kbaribeau/immutant,immutant/immutant,kbaribeau/immutant,kbaribeau/immutant,immutant/immutant,coopsource/immutant,coopsource/immutant,coopsource/immutant,immutant/immutant,immutant/immutant |
7fd1258a5ee1bb8d799a3b7ed3e44dcc85f5a304 | integration-tests/apps/ring/noir-app/project.clj | integration-tests/apps/ring/noir-app/project.clj | (defproject noir-app "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:dependencies [[org.clojure/clojure "1.3.0"]
[noir "1.2.1"]]
:main noir-app.server)
| (defproject noir-app "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:dependencies [[org.clojure/clojure "1.3.0"]
[noir "1.3.0-alpha5"]]
:main noir-app.server)
| Upgrade Noir to use the Hiccup middleware to properly deal with a context path. | Upgrade Noir to use the Hiccup middleware to properly deal with a context path.
Style still messed up due to static path in css from jar, however.
| Clojure | apache-2.0 | coopsource/immutant,immutant/immutant,coopsource/immutant,coopsource/immutant,kbaribeau/immutant,kbaribeau/immutant,kbaribeau/immutant,immutant/immutant,immutant/immutant,immutant/immutant |
4c27dccc0d8d0a97f0772a4fb62a1b52d94777c7 | src/main/clojure/lazytest/testable.clj | src/main/clojure/lazytest/testable.clj | (ns lazytest.testable)
(defprotocol Testable
(get-tests [this]
"Returns a seq of RunnableTest objects. Processes the :focus metadata flag.
Default implementation recurses on all Vars in a namespace, unless
that namespace has :get-tests metadata."))
(defn focused?
"True if x has :focus metadata set to true."
[... | (ns lazytest.testable)
(defprotocol Testable
(get-tests [this]
"Returns a seq of RunnableTest objects. Processes the :focus metadata flag.
Default implementation recurses on all Vars in a namespace, unless
that namespace has :get-tests metadata."))
(defn focused?
"True if x has :focus metadata set to true."
[... | Add support for :get-tests metadata on Vars | Add support for :get-tests metadata on Vars
| Clojure | epl-1.0 | stuartsierra/lazytest |
0a33294b13d2bc895da3ea3631cfb0d2d7fdde37 | src/tenor/entities.clj | src/tenor/entities.clj | (ns tenor.entities)
(defrecord Note [note-value pitch-letter octave])
(defn make-note [notation]
(let [notation-re #"^(1|2|4|8|16)([A-G])([#b]?)([1-9])$"
components (re-matches notation-re notation)]
(if components
(->Note
(Integer. (nth components 1))
(str (nth components 2) (nth ... | (ns tenor.entities)
(defrecord Note [note-value pitch-letter octave])
(defn make-note [notation]
(let [notation-re #"^(1|2|4|8|16)([A-G])([#b]?)([1-9])$"
components (re-matches notation-re notation)]
(if components
(->Note
(Integer. (nth components 1))
(str (nth components 2) (nth ... | Use exception instead of string | Use exception instead of string
| Clojure | mit | pranavrc/tenor |
d8db76e979d47bac8d2ecc27ad7818e10fba385a | src/whitman/core.clj | src/whitman/core.clj | (ns whitman.core
(:require [whitman.config :as config])
(:gen-class))
(defn exit [code msg]
(binding [*out* *err*]
(do (println msg)
(System/exit code))))
(defn -main [& args]
(if (< (count args) 1)
(exit 1 "No configuration file specified")
(let [cfg (-> (nth args 0)
... | (ns whitman.core
(:require [whitman.config :as config])
(:gen-class))
(defn exit [code msg]
(binding [*out* *err*]
(do (println msg)
(System/exit code))))
(defn -main [& args]
(if (< (count args) 1)
(exit 1 "No configuration file specified")
(-> (nth args 0)
config/read-confi... | Use -> to simply main function...again | Use -> to simply main function...again
| Clojure | bsd-3-clause | mdippery/whitman |
7cb9ea0c1ac76b086ef8959c9e5597c26b2d9c40 | test/puppetlabs/cthun/meshing/hazelcast_test.clj | test/puppetlabs/cthun/meshing/hazelcast_test.clj | (ns puppetlabs.cthun.meshing.hazelcast-test
(require [clojure.test :refer :all]
[puppetlabs.cthun.meshing.hazelcast :refer :all]))
| (ns puppetlabs.cthun.meshing.hazelcast-test
(require [clojure.test :refer :all]
[puppetlabs.cthun.meshing.hazelcast :refer :all]))
(deftest broker-for-endpoint-test
(with-redefs [flatten-location-map (fn [_] [{:broker "bill" :endpoint "cth://localhost/agent"}
... | Add partial testing to the hazelcast mesh | Add partial testing to the hazelcast mesh
| Clojure | apache-2.0 | puppetlabs/pcp-broker,puppetlabs/pcp-broker,puppetlabs/pcp-broker |
fe89c27c3297ef321d01264edc6e5abeae5a5621 | dot/lein/profiles.clj | dot/lein/profiles.clj | {:user
{:plugins [[lein-vanity "0.2.0"]
[jonase/eastwood "0.0.2"]
[cider/cider-nrepl "0.7.0-SNAPSHOT"]
;[lein-ritz "0.7.0"]
[com.palletops/pallet-lein "0.8.0-alpha.1"]]
:dependencies [;[ritz/ritz-nrepl-middleware "0.7.0"]
[org.clojure/tools.trace "0.7.... | {:user
{:plugins [[lein-vanity "0.2.0"]
[jonase/eastwood "0.1.2"]
[cider/cider-nrepl "0.7.0-SNAPSHOT"]
[com.palletops/pallet-lein "0.8.0-alpha.1"]]
:dependencies [[slamhound "1.5.0"]]
:aliases {"slamhound" ["run" "-m" "slam.hound"]}}}
| Drop ritz and upgrade eastwood | Drop ritz and upgrade eastwood
| Clojure | bsd-3-clause | dgtized/dotfiles,dgtized/dotfiles,dgtized/dotfiles |
0cb3581aaf0c71159524d4445271e964b1f1cc65 | 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 :refer [reader]]))
(defn- get-specs [reader]
(->> (doall (line-seq reader))
(drop-while #(not= % " specs:"))
(drop 1)
(take-while seq)))
(defn- parse-spec [spec]
{:name... | (ns hu.ssh.github-changelog.dependencies.bundler
(:require
[clojure.string :refer [split-lines]]
[clojure.java.io :as io]))
(defn- get-specs [reader]
(->> (doall (line-seq reader))
(drop-while #(not= % " specs:"))
(drop 1)
(take-while seq)))
(defn- parse-spec [spec]
{:name (second ... | Rename reader variable to reader | Rename reader variable to reader
| Clojure | mit | whitepages/github-changelog |
2bd9ba6c8a3aab1b90510f887e494ac194664b30 | src/engulf/core.clj | src/engulf/core.clj | (ns engulf.core
(:gen-class)
(:require [engulf.benchmark :as benchmark]
[noir.server :as nr-server])
(:use aleph.http
noir.core
lamina.core))
(defn start-webserver [args]
(nr-server/load-views "src/engulf/views")
(let [mode (keyword (or (first args) :prod))
port (Int... | (ns engulf.core
(:gen-class)
(:require [engulf.benchmark :as benchmark]
engulf.views.benchmarker
engulf.views.common
engulf.views.index
[noir.server :as nr-server])
(:use aleph.http
noir.core
lamina.core))
(defn start-webserver [args]
(let [mode (... | Use requires to include views for uberjar | Use requires to include views for uberjar
| Clojure | epl-1.0 | flores/engulf,andrewvc/engulf,andrewvc/engulf,terrancesnyder/engulf,andrewvc/engulf,terrancesnyder/engulf,flores/engulf,terrancesnyder/engulf,flores/engulf |
26dd702f49b49b94c2c00884ebab3807541c5f5c | dev-resources/user.clj | dev-resources/user.clj | (ns user
(:use
clojure.repl
io.aviso.repl
speclj.config))
(install-pretty-exceptions)
(alter-var-root #'default-config assoc :color true :reporters ["documentation"])
| (ns user
(:use
clojure.repl
io.aviso.repl
speclj.config)
(:require
;; If not present, then test suite fails loading schema-validation with a ClassNotFound on EnumSchema
;; Leaky abstractions ...
schema.core))
(install-pretty-exceptions)
(alter-var-root #'default-config assoc :color true :r... | Load schema.core early, to ensure that class EnumSchema exists | Load schema.core early, to ensure that class EnumSchema exists
| Clojure | apache-2.0 | roblally/rook,clyfe/rook,bmabey/rook |
7b1ed0cbd3f788021043e6b9e11702ee4ffba715 | src/cljs_workers/core.cljs | src/cljs_workers/core.cljs | (ns cljs-workers.core
(:require [cljs.core.async :refer [chan]])
(:require-macros [cljs.core.async.macros :refer [go]]))
(defn supported?
[]
(-> js/Worker
undefined?
not))
(defn create-one
[script]
(js/Worker. script))
(defn create-pool
([]
(pool 5))
([count]
(pool count "js/compil... | (ns cljs-workers.core
(:require [cljs.core.async :refer [chan]])
(:require-macros [cljs.core.async.macros :refer [go]]))
(defn supported?
[]
(-> js/Worker
undefined?
not))
(defn create-one
[script]
(js/Worker. script))
(defn create-pool
([]
(pool 5))
([count]
(pool count "js/compil... | Call handler with one worker | Call handler with one worker
| Clojure | mit | jtkDvlp/cljs-workers |
7b11c901957e7a12f842938b3521e3f3b81d3682 | src/timetracker/models.clj | src/timetracker/models.clj | (ns timetracker.models
(:require [monger.core :as mg]
[monger.collection :as mc]
[monger.operators :refer :all])
(:import [org.bson.types ObjectId]
[com.mongodb DB WriteConcern]))
(defn now [] (new java.util.Date))
(defn create [task]
(println (str "Added " task " at " (now) )... | (ns timetracker.models
(:refer-clojure :exclude [sort find])
(:require [monger.core :as mg]
[monger.collection :as mc]
[monger.operators :refer :all]
[monger.query :refer :all])
(:import [org.bson.types ObjectId]
[com.mongodb DB WriteConcern]))
(defn now [] (new jav... | Sort the documents oldest to newest when queried | Sort the documents oldest to newest when queried
| Clojure | agpl-3.0 | anil/timetracker |
1a1ef461d7989eb0378c1bee1645405fa9e452e5 | src/open_company/lib/email.clj | src/open_company/lib/email.clj | (ns open-company.lib.email
(:require [amazonica.aws.sqs :as sqs]
[taoensso.timbre :as timbre]
[schema.core :as schema]
[open-company.config :as c]))
(def EmailTrigger
{:to schema/Str
:subject schema/Str
:note schema/Str
:reply-to (schema/maybe schema/Str)
:company-sl... | (ns open-company.lib.email
(:require [amazonica.aws.sqs :as sqs]
[taoensso.timbre :as timbre]
[schema.core :as schema]
[open-company.config :as c]))
(def EmailTrigger
{:to [schema/Str]
:subject schema/Str
:note schema/Str
:reply-to (schema/maybe schema/Str)
:company-... | Update to field to be sequence rather than comma delimitted. | Update to field to be sequence rather than comma delimitted.
| Clojure | agpl-3.0 | open-company/open-company-storage |
3fed5057860589b650fd3983dec6d62a944445ab | src/obb_rules_api/reply.clj | src/obb_rules_api/reply.clj | (ns obb-rules-api.reply
(:require [compojure.handler :as handler]
[clojure.data.json :as json]
[obb-rules.result :as result]
[obb-rules-api.parser :as parser]
[compojure.route :as route]))
(defn- make-response
"Builds a response"
[status-code obj]
{:status status... | (ns obb-rules-api.reply
(:require [compojure.handler :as handler]
[clojure.data.json :as json]
[obb-rules.result :as result]
[obb-rules-api.parser :as parser]
[compojure.route :as route]))
(defn- make-response
"Builds a response"
[status-code obj]
{:status status... | Change response content type to application/json | Change response content type to application/json
| Clojure | mit | orionsbelt-battlegrounds/obb-rules-api |
77e54b013b7cba30137d6f7104483d321373da29 | metlog-agent/config.clj | metlog-agent/config.clj | (def start-t (System/currentTimeMillis))
(defsensor sine {:poll-interval (seconds 10)}
(Math/sin (/ (- (System/currentTimeMillis) start-t) 60000.0)))
(defsensor cosine {:poll-interval (seconds 10)}
(Math/cos (/ (- (System/currentTimeMillis) start-t) 60000.0)))
(defsensor cosine-2 {:poll-interval (seconds 5)}
(... | (def start-t (System/currentTimeMillis))
(defsensor sine {:poll-interval (seconds 10)}
(Math/sin (/ (- (System/currentTimeMillis) start-t) (minutes 1))))
(defsensor cosine {:poll-interval (seconds 10)}
(Math/cos (/ (- (System/currentTimeMillis) start-t) (minutes 1))))
(defsensor steps-ascending {:poll-interval (... | Remove the cosine-2 test series and replace with a sawtooth series for identiying sign issues. | Remove the cosine-2 test series and replace with a sawtooth series for identiying sign issues.
| Clojure | epl-1.0 | mschaef/metlog |
db0f282badfa67c5dbcdaab0ca1a04645321206c | src/clj/cglossa/models/core.clj | src/clj/cglossa/models/core.clj | (ns cglossa.models.core
(:require [datomic.api :as d]
[datomic-schema.schema :refer [part schema fields]]))
(def db-uri "datomic:free://localhost:4334/glossa")
(defn dbparts []
[(part "glossa")])
(defn dbschema []
[(schema corpus
(fields
[name :string]
[short-na... | (ns cglossa.models.core
(:require [datomic.api :as d]
[datomic-schema.schema :refer [part schema fields]]))
(def db-uri "datomic:free://localhost:4334/glossa")
(defn dbparts []
[(part "glossa")])
(defn dbschema []
[(schema corpus
(fields
[name :string]
[short-na... | Add name attribute to metadata categories | Add name attribute to metadata categories
| Clojure | mit | textlab/glossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/glossa |
650cb87a348e8adef099c6ab6f2a4b92e89b593c | project.clj | project.clj | (defproject buddy/buddy-hashers "0.4.2"
:description "A collection of secure password hashers for Clojure"
:url "https://github.com/funcool/buddy-hashers"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:dependencies [[org.clojure/clojure "1.6.0"]
[bu... | (defproject buddy/buddy-hashers "0.4.2"
:description "A collection of secure password hashers for Clojure"
:url "https://github.com/funcool/buddy-hashers"
:license {:name "Apache 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:dependencies [[org.clojure/clojure "1.6.0" :scope "provided"]
... | Add lein-ancient plugin and set "provided" scope for clojure. | Add lein-ancient plugin and set "provided" scope for clojure.
| Clojure | apache-2.0 | rorygibson/buddy-hashers,funcool/buddy-hashers,rorygibson/buddy-hashers,funcool/buddy-hashers |
a8f752e3785b587c7f0c64e3680c5511cfc0642b | src/braid/base/conf.clj | src/braid/base/conf.clj | (ns braid.base.conf
(:require
[braid.base.conf-extra :refer [ports-config]]
[braid.core.hooks :as hooks]
[mount.core :as mount :refer [defstate]]))
(defonce config-vars
(hooks/register! (atom []) [keyword?]))
(defstate config
:start
(merge ;; temp defaults
;; TODO don't special case these here
... | (ns braid.base.conf
(:require
[braid.base.conf-extra :refer [ports-config]]
[braid.core.hooks :as hooks]
[mount.core :as mount :refer [defstate]]))
(defonce config-vars
(hooks/register! (atom []) [keyword?]))
(defstate config
:start
(merge ;; temp defaults
;; TODO don't special case these here
... | Fix api port number after removing mobile server | Fix api port number after removing mobile server
| Clojure | agpl-3.0 | braidchat/braid,braidchat/braid,rafd/braid,rafd/braid |
5e4e1acce65ed72d360ce89ab8e0b970929ba1e0 | build.boot | build.boot | (set-env!
:source-paths #{"src/main/java" "src/test/java"}
:dependencies '[[radicalzephyr/boot-junit "0.1.0-SNAPSHOT" :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 ser... | (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."
... | Use the 0.1.0 release of boot-junit | Use the 0.1.0 release of boot-junit
| Clojure | mit | RadicalZephyr/http-server |
f0c4782ebfa3daa9fdc73b5aca6fbd4a7f0b3ef3 | build.boot | build.boot | (set-env!
:source-paths #{"src" "src-java"}
:resource-paths #{"resources"}
:dependencies '[[org.clojure/test.check "0.9.0" :scope "test"]
; project deps
[org.clojure/clojure "1.9.0-alpha7"]
[leiningen "2.6.1" :exclusions [leiningen.search]]
[... | (set-env!
:source-paths #{"src" "src-java"}
:resource-paths #{"resources"}
:dependencies '[[org.clojure/test.check "0.9.0" :scope "test"]
; project deps
[org.clojure/clojure "1.9.0-alpha7"]
[leiningen "2.6.1" :exclusions [leiningen.search]]
[... | Remove controller ns from namespace list | Remove controller ns from namespace list
| Clojure | unlicense | oakes/Nightcode,oakes/Nightcode |
585bd1b0f1f4b29991c11c9b2e436132915e0a43 | src/radicalzephyr/boot_junit.clj | src/radicalzephyr/boot_junit.clj | (ns radicalzephyr.boot-junit
{:boot/export-tasks true}
(:require '[[boot.core :as core]])
(:import org.junit.runner.JUnitCore))
(deftask junit
"Run the jUnit test runner."
[]
(with-pre-wrap fileset
(let [result (JUnitCore/runClasses
(into-array [#_ (magic goes here to find all test cl... | (ns radicalzephyr.boot-junit
{:boot/export-tasks true}
(:require '[[boot.core :as core]])
(:import org.junit.runner.JUnitCore))
(deftask junit
"Run the jUnit test runner."
[p packages PACKAGE #{sym} "The set of Java packages to run tests in."]
(with-pre-wrap fileset
(let [result (JUnitCore/runClasses
... | Add a packages set parameter to the task | Add a packages set parameter to the task
I'm going to follow the lead of adzerk's clojure.test runner and require
the user to specify where to run tests from. The nice thing here is that
they can just specify their base package and then we'll do reflection to
find all of the tests.
| Clojure | epl-1.0 | RadicalZephyr/boot-junit |
7048446c73a8fd25b65f69d16861404d0287e454 | build.boot | build.boot | (set-env!
:source-paths #{"src"}
:resource-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.6.0" :scope "provided"]
[boot/core "2.1.0" :scope "provided"]
[junit "4.12" :scope "test"]
[org.reflections/reflecti... | (set-env!
:source-paths #{"src"}
:resource-paths #{"src"}
:dependencies '[[org.clojure/clojure "1.6.0" :scope "provided"]
[boot/core "2.1.0" :scope "provided"]
[junit "4.12" ]
[org.reflections/reflections "0.9.10"]
... | Remove test scoping on dependencies | Remove test scoping on dependencies
They're not actually test scope on the boot task since that should
boot-junit should itself be test scoped.
| Clojure | epl-1.0 | RadicalZephyr/boot-junit |
a0a519f65e5a334f3762608f13e51decf1e8959c | src/sicp/chapter3/5_1.clj | src/sicp/chapter3/5_1.clj | (ns sicp.chapter3.5-1)
;;;; 3.5 Streams
;;; 3.5.1 Streams Are Delayed Lists
;; Exercise 3.50
(defn stream-map [proc & argstreams]
(lazy-seq
(if (empty? (first argstreams))
nil
(cons
(apply proc (map first argstreams))
(apply stream-map
(cons proc (map rest argstreams)))))))
... | (ns sicp.chapter3.5-1)
;;;; 3.5 Streams
;;; 3.5.1 Streams Are Delayed Lists
;; Exercise 3.50
(defn stream-map [proc & argstreams]
(lazy-seq
(if (empty? (first argstreams))
nil
(cons
(apply proc (map first argstreams))
(apply stream-map
(cons proc (map rest argstreams)))))))
... | Add another implementation to Exercise 3.50 | Add another implementation to Exercise 3.50
| Clojure | epl-1.0 | lagenorhynque/sicp |
6d34cb2b21556ce787ca696a415ccddb38eb0c7d | src/less4clj/webjars.clj | src/less4clj/webjars.clj | (ns less4clj.webjars
(:import [java.io File]
[org.webjars WebJarAssetLocator]))
(def ^:private webjars-pattern
#"META-INF/resources/webjars/([^/]+)/([^/]+)/(.*)")
(defn- asset-path [resource]
(let [[_ name version path] (re-matches webjars-pattern resource)]
(str name File/separator path)))
(def... | (ns less4clj.webjars
(:import [java.io File]
[org.webjars WebJarAssetLocator]))
(def ^:private webjars-pattern
#"META-INF/resources/webjars/([^/]+)/([^/]+)/(.*)")
(defn- asset-path [resource]
(let [[_ name version path] (re-matches webjars-pattern resource)]
(str name File/separator path)))
(def... | Use getFullPathIndex to list wejars assets | Use getFullPathIndex to list wejars assets
listAssets calls getFullPathIndex and filters the values. Calling
getFullPathIndex directly avoids filtering.
| Clojure | epl-1.0 | Deraen/less4clj |
034fb262a84997d596c28993f2ff3214d04f915c | src/whitman/core.clj | src/whitman/core.clj | (ns whitman.core
(:require [whitman.config :as config]
[whitman.crawler :as crawler]
[whitman.db :as db]
[whitman.writer :as writer])
(:gen-class))
(defn exit [code msg]
(binding [*out* *err*]
(do (println msg)
(System/exit code))))
(defn do-crawl [cfg writer]
(... | (ns whitman.core
(:require [whitman.config :as config]
[whitman.crawler :as crawler]
[whitman.db :as db]
[whitman.writer :as writer])
(:gen-class))
(defn exit [code msg]
(binding [*out* *err*]
(do (println msg)
(System/exit code))))
(defn do-crawl [cfg writer]
(... | Read writer type from arguments | Read writer type from arguments
| Clojure | bsd-3-clause | mdippery/whitman |
b2b0dba33c6158fd713b73b525859a30ab4ab167 | project.clj | project.clj | (defproject uxbox-backend "0.1.0-SNAPSHOT"
:description "UXBox backend + api"
:url "http://uxbox.github.io"
:license {:name "" :url ""}
:source-paths ["src"]
:javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-options"]
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:dependencies [[org.clojure/... | (defproject uxbox-backend "0.1.0-SNAPSHOT"
:description "UXBox backend."
:url "http://uxbox.github.io"
:license {:name "" :url ""}
:source-paths ["src"]
:javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-options"]
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:dependencies [[org.clojure/cloju... | Add buddy-sign and buddy-hashers dependencies. | Add buddy-sign and buddy-hashers dependencies.
| Clojure | mpl-2.0 | uxbox/uxbox-backend,uxbox/uxbox-backend |
c0997a29a1d4568dbaa368655e558fda7364bd90 | src/silly_image_store/store.clj | src/silly_image_store/store.clj | (ns silly-image-store.store
(:require [clojure.java.io :as io]))
(def exists? #(and % (.exists %)))
(def file? #(.isFile %))
(def filename #(.getName %))
(defn load-image [& paths]
(let [file (apply io/file paths)]
(if (exists? file) file)))
(defn list-images [& paths]
(let [image-directory (apply load-im... | (ns silly-image-store.store
(:require [clojure.java.io :as io]))
(def exists? #(and % (.exists %)))
(def file? #(.isFile %))
(def filename #(.getName %))
(defn load-image [& paths]
(let [file (apply io/file paths)]
(if (exists? file) file)))
(defn- filtered-file-names [filter-fn paths]
(let [image-director... | Remove duplication of listing files | Remove duplication of listing files
| Clojure | epl-1.0 | phss/silly-image-store |
69575d0c7ca6b1f955c978869e7bf0b85edb70aa | quotes/src/quotes/routes.clj | quotes/src/quotes/routes.clj | (ns quotes.routes
(:gen-class)
(:use [quotes.api :only [api-routes]])
(:require [compojure.core :refer :all]
[compojure.route :as route]
[common-utils.core :as utils]
[common-utils.middleware :refer [correlation-id-middleware]]
[clojure.tools.logging :as log]
... | (ns quotes.routes
(:gen-class)
(:use [quotes.api :only [api-routes]])
(:require [compojure.core :refer :all]
[compojure.route :as route]
[common-utils.core :as utils]
[common-utils.middleware :refer [correlation-id-middleware]]
[clojure.tools.logging :as log]
... | Make default port work in quotes app | Make default port work in quotes app
| Clojure | apache-2.0 | queeno/infra-problem,queeno/infra-problem |
80097b8f1286715074ba6efa275dd7c87d777b0e | rna-transcription/rna_transcription_test.clj | rna-transcription/rna_transcription_test.clj | (ns rna-transcription.test (:require [clojure.test :refer :all]))
(load-file "rna_transcription.clj")
(deftest transcribes-guanine-to-cytosine
(is (= "G" (rna-transcription/to-rna "C"))))
(deftest transcribes-cytosine-to-guanine
(is (= "C" (rna-transcription/to-rna "G"))))
(deftest transcribes-uracil-to-adenine
... | (ns rna-transcription.test (:require [clojure.test :refer :all]))
(load-file "rna_transcription.clj")
(deftest transcribes-cytosine-to-guanine
(is (= "G" (rna-transcription/to-rna "C"))))
(deftest transcribes-guanine-to-cytosine
(is (= "C" (rna-transcription/to-rna "G"))))
(deftest transcribes-adenine-to-uracil
... | Make test names match assertions | Make test names match assertions
First it looked like each test name was backwards. Giving the function "C" and transcribing to "G" was named `transcribes-guanine-to-cytosine` rather than `transcribes-cytosine-to-guanine`.
Second, the assertion for "T" -> "A" appeared to be in the right order but it mentioned the w... | Clojure | mit | wobh/xclojure,exercism/xclojure,querenker/xclojure,canweriotnow/xclojure,yurrriq/xclojure,exercism/xclojure,querenker/xclojure |
54e30590e36a47299ad71fe70452df1dc4f97a4c | test/clojars/test/unit/middleware.clj | test/clojars/test/unit/middleware.clj | (ns clojars.test.unit.middleware
(:require [clojars.middleware :as middleware]
[clojure.test :refer :all]))
(def trailing-slash (middleware/wrap-ignore-trailing-slash (fn [x] (get x :uri))))
(deftest trailing-slash-doesnt-modify-root
(is (= "/" (trailing-slash {:uri "/"}))))
(deftest trailing-slash-d... | (ns clojars.test.unit.middleware
(:require [clojars.middleware :as middleware]
[clojure.test :refer :all]))
(def trailing-slash (middleware/wrap-ignore-trailing-slash (fn [x] (get x :uri))))
(deftest trailing-slash-doesnt-modify-root
(is (= "/" (trailing-slash {:uri "/"}))))
(deftest trailing-slash-d... | Fix these tests to actually test | Fix these tests to actually test
| Clojure | epl-1.0 | ato/clojars-web,tobias/clojars-web,ato/clojars-web,clojars/clojars-web,clojars/clojars-web,tobias/clojars-web,tobias/clojars-web,clojars/clojars-web |
35952355d2782cb2c0562cc469232cd1e336fda7 | resources/leiningen/new/exponent/rum/core.cljs | resources/leiningen/new/exponent/rum/core.cljs | (ns {{name}}.core
(:require-macros [rum.core :refer [defc]])
(:require [re-natal.support :as support]
[rum.core :as rum]
[cljs-exponent.components :refer [text view image touchable-highlight] :as rn]))
(def logo-img (js/require "./assets/images/cljs.png"))
(defn alert [title]
(.a... | (ns {{name}}.core
(:require-macros [rum.core :refer [defc]])
(:require [re-natal.support :as support]
[rum.core :as rum]
[cljs-exponent.components :refer [text view image touchable-highlight] :as rn]))
(def logo-img (js/require "./assets/images/cljs.png"))
(defn alert [title]
(.a... | Use rum/react to access atom | Use rum/react to access atom
This wasn't working for me, the view wasn't updating when the atom changed, until I derefed the atom using `rum/react`. I believe this is the way to do [Reactive Components](https://github.com/tonsky/rum#reactive-components) in Rum? | Clojure | epl-1.0 | tiensonqin/exponent-cljs-template,seantempesta/expo-cljs-template,seantempesta/expo-cljs-template |
c132ea1d67d16a19a1853f30f9beaeb74f7c9c3c | frontend/uxbox/shapes.cljs | frontend/uxbox/shapes.cljs | (ns uxbox.shapes
(:require [sablono.core :refer-macros [html]]))
(defmulti render
(fn [shape & params]
(:type shape)))
(defmethod render :builtin/icon
[shape & [{:keys [width height] :or {width "500" height "500"}}]]
(let [content (:svg shape)]
(html
[:svg {:width width :height height} content]))... | (ns uxbox.shapes
(:require [sablono.core :refer-macros [html]]))
(defmulti render
(fn [shape & params]
(:type shape)))
(defmethod render :builtin/icon
[{:keys [data width height view-box]} & [attrs]]
(let [attrs (merge
(when width {:width width})
(when height {:height height}... | Improve render function for builtin icons. | Improve render function for builtin icons.
| Clojure | mpl-2.0 | studiospring/uxbox,studiospring/uxbox,uxbox/uxbox,studiospring/uxbox,uxbox/uxbox,uxbox/uxbox |
e27a3e594f4fccfbcef5f331012d6c9c4d4ff4ad | project.clj | project.clj | (defproject processing-core/processing.core "0.1.0-SNAPSHOT"
:description "A wrapper for Processing in Clojure."
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojars.processing-core/org.processing.core "1.5.1"]
[org.clojars.processing-core/org.processing.gluegen-rt "1.5.1"]
... | (defproject processing-core/processing.core "1.0.0-SNAPSHOT"
:description "A wrapper for Processing in Clojure."
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojars.processing-core/org.processing.core "1.5.1"]
[org.clojars.processing-core/org.processing.gluegen-rt "1.5.1"]
... | Add deps required for PDF support | Add deps required for PDF support | Clojure | epl-1.0 | craftybones/quil,jobez/quil-video,quil/quil,pxlpnk/quil,mi-mina/quil |
0f0843b1c9612a13d0e57f81117250a5fd57888a | 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.7.0 | Update dependency lein-cljfmt:lein-cljfmt to v0.7.0
| Clojure | unlicense | nicokosi/strava-activity-graphs |
804599c0415d61780d16271eac7924d1ca0a5190 | frontend/styles/faceboard/css/tabs.clj | frontend/styles/faceboard/css/tabs.clj | (ns faceboard.css.tabs
(:use [faceboard.lib.constants])
(:require [faceboard.lib.helpers :refer [>> mv px]]
[garden.color :as color]))
(def styles
[(>> tab-area
(>> [> *]
[:display :inline-block])
(>> tab
[:padding (px 0 4)
:font-weight :bold
:margin (px 2)
... | (ns faceboard.css.tabs
(:use [faceboard.lib.constants])
(:require [faceboard.lib.helpers :refer [>> mv px]]
[garden.color :as color]))
(def styles
[(>> tab-area
(>> [> *]
[:display :inline-block])
(>> tab
[:padding (px 0 4)
:font-weight :bold
:margin (px 2)
... | Remove border on selected tab | Remove border on selected tab
| Clojure | mit | AlexeyMK/faceboard,AlexeyMK/faceboard |
cd023db2f5bf3a448384775bcf2f43c24e2ef1a7 | test-resources/config/default.clj | test-resources/config/default.clj | ;; This is the default test configuration file. If you would like to override
;; some of the settings herein, simply make a copy of this file and name it
;; `local.clj`. It will be loaded instead of this one. (`local.clj` is
;; included in the `.gitignore` file, so you don't have to worry about
;; accidentally commi... | ;; This is the default test configuration file. If you would like to override
;; some of the settings herein, simply make a copy of this file and name it
;; `local.clj`. It will be loaded instead of this one. (`local.clj` is
;; included in the `.gitignore` file, so you don't have to worry about
;; accidentally commi... | Define postgres settings using environment vars | Define postgres settings using environment vars
In the past we were copying a magic from from tb-driver: local.clj that
contained all the information needed to connect to our test Postgres
database. tb-driver is being decommissioned, and its felt we need a better
way to manage this going forward.
This patch allows us... | Clojure | apache-2.0 | puppetlabs/puppetdb,mullr/puppetdb,shrug/puppetdb,waynr/puppetdb,johnduarte/puppetdb,mullr/puppetdb,cprice404/puppetdb,shrug/puppetdb,ajroetker/puppetdb,waynr/puppetdb,puppetlabs/puppetdb,puppetlabs/puppetdb,jantman/puppetdb,mullr/puppetdb,grimradical/puppetdb,rbrw/puppetdb,cprice404/puppetdb,waynr/puppetdb,shrug/puppe... |
3e7abd7e2372000cf2476ac6f741214ee3f4854c | src/overtunes/songs/at_all.clj | src/overtunes/songs/at_all.clj | (ns overtunes.songs.at-all
(:use
[overtone.live :exclude [scale octave sharp flat sixth unison play]]
[overtone.inst.sampled-piano :only [sampled-piano]]))
(def scale 66)
(defn ground [note] (+ scale note))
(def note# (comp sampled-piano ground))
(defn chord# [chord] (doseq [note (vals chord)] (note# note))... | (ns overtunes.songs.at-all
(:use
[overtone.live :only [at now]]
[overtone.inst.sampled-piano :only [sampled-piano]]))
(defn bpm [beats-per-minute]
(let [start (now)
ms-per-minute (* 60 1000)
ms-per-beat (/ ms-per-minute beats-per-minute)]
#(+ start (* ms-per-beat %))))
(defn from [tim... | Set up a chord loop. | Set up a chord loop.
| Clojure | mit | ctford/overtunes |
760c6a708c34b4cd317b24968b385aa96336a535 | project.clj | project.clj | (defproject com.palletops/hyde-pallet "0.1.0-SNAPSHOT"
:description "Parent for hyde-pallet"
:url "https://github.com/paleltops/hyde-pallet"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[com.palletops/hyde-pallet "0.1.0-SNAPSHOT"]]
:plug... | (defproject com.palletops/hyde-pallet "0.1.0-SNAPSHOT"
:description "Parent for hyde-pallet"
:url "https://github.com/paleltops/hyde-pallet"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[com.palletops/hyde-pallet "0.1.0-SNAPSHOT"]]
:plug... | Fix modules config in travis profile | Fix modules config in travis profile
| Clojure | epl-1.0 | palletops/hyde-pallet,palletops/hyde-pallet |
8a74a5672d7a0027abf667651207541164f78983 | project.clj | project.clj | (defproject io.aviso/twixt "0.1.13-SNAPSHOT"
:description "An extensible asset pipeline for Clojure web applications"
:url "https://github.com/AvisoNovate/twixt"
:license {:name "Apache Sofware Licencse 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:dependencies [[org.clojure/clojure... | (defproject io.aviso/twixt "0.1.13-SNAPSHOT"
:description "An extensible asset pipeline for Clojure web applications"
:url "https://github.com/AvisoNovate/twixt"
:license {:name "Apache Sofware Licencse 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:dependencies [[org.clojure/clojure... | Update dependency to latest io.aviso:pretty, which includes stack frame filtering | Update dependency to latest io.aviso:pretty, which includes stack frame filtering
| Clojure | apache-2.0 | AvisoNovate/twixt,clyfe/twixt,AvisoNovate/twixt,AvisoNovate/twixt,clyfe/twixt,clyfe/twixt |
b109b874caa4cecad305031bccc18fbde2cf48d1 | project.clj | project.clj | (defproject clojurewerkz/statistiker "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.apache.commons/... | (defproject clojurewerkz/statistiker "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/math.co... | Add combinatorics and matrix libs | Add combinatorics and matrix libs
| Clojure | epl-1.0 | thomasdarimont/statistiker,clojurewerkz/statistiker |
a9bbfd791880595d6a20a51b43fba94e11f7518f | project.clj | project.clj | (defproject funcool/cats "0.5.0"
:description "Category Theory abstractions for Clojure"
:url "https://github.com/funcool/cats"
:license {:name "BSD (2 Clause)"
:url "http://opensource.org/licenses/BSD-2-Clause"}
:dependencies [[org.clojure/clojure "1.7.0" :scope "provided"]
[org.cl... | (defproject funcool/cats "0.5.0"
:description "Category Theory abstractions for Clojure"
:url "https://github.com/funcool/cats"
:license {:name "BSD (2 Clause)"
:url "http://opensource.org/licenses/BSD-2-Clause"}
:dependencies [[org.clojure/clojure "1.7.0" :scope "provided"]
[org.cl... | Set clojurescript compiler version to 1.7.28. | Set clojurescript compiler version to 1.7.28.
| Clojure | bsd-2-clause | yurrriq/cats,funcool/cats,alesguzik/cats,tcsavage/cats,mccraigmccraig/cats,OlegTheCat/cats |
2bfad8fef0df4c46d93781d2b035104914fe47ce | project.clj | project.clj | (defproject lein-difftest "1.3.4"
:description "Run tests, display better test results."
:dependencies [[org.clojure/clojure "1.2.1"]
[difform "1.1.1"]
[clj-stacktrace "0.2.3"]
[clansi "1.0.0"]]
:eval-in-leiningen true
:hooks [leiningen.hooks.difftest])
| (defproject lein-difftest "1.3.5"
:description "Run tests, display better test results."
:dependencies [[org.clojure/clojure "1.2.1"]
[difform "1.1.2"]
[clj-stacktrace "0.2.3"]
[clansi "1.0.0"]]
:eval-in-leiningen true
:hooks [leiningen.hooks.difftest])
| Update difform version to remove dependency on contrib. | Update difform version to remove dependency on contrib.
| Clojure | epl-1.0 | brentonashworth/lein-difftest |
ea46d009825d088fb6d4efec6b50dc3eca37c220 | project.clj | project.clj | (defproject statuses "0.1.0-SNAPSHOT"
:description "Statuses app for innoQ"
:namespaces [statuses]
:dependencies [
[org.clojure/clojure "1.4.0"]
[compojure "1.1.3"]
[clj-time "0.4.4"]
... | (defproject statuses "0.1.0-SNAPSHOT"
:description "Statuses app for innoQ"
:namespaces [statuses]
:dependencies [
[org.clojure/clojure "1.6.0"]
[compojure "1.2.1"]
[clj-time "0.8.0"]
... | Update dependencies to latest stable versions. | Update dependencies to latest stable versions.
| Clojure | apache-2.0 | innoq/statuses,mvitz/statuses |
cd1a28bc562f51260a457ec61336137a25beeb28 | 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"}
... | Upgrade ring from 1.3.1 to 1.3.2. | Upgrade ring from 1.3.1 to 1.3.2.
Fixes #135.
| Clojure | apache-2.0 | innoq/statuses,mvitz/statuses |
1d335fb32621489071798a5c2e65df857578bfc4 | project.clj | project.clj | (def version (clojure.string/trim-newline (slurp "VERSION")))
(defproject io.framed/overseer version
:description "A Clojure framework for defining and running expressive data pipelines"
:url "https://github.com/framed-data/overseer"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.o... | (def version (clojure.string/trim-newline (slurp "VERSION")))
(defproject io.framed/overseer version
:description "A Clojure framework for defining and running expressive data pipelines"
:url "https://github.com/framed-data/overseer"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.o... | Add dependencies on loom, JDBC and H2 | Add dependencies on loom, JDBC and H2
| Clojure | epl-1.0 | framed-data/overseer |
c79394eb6f1288cfead2aef307902975f02a62e5 | project.clj | project.clj | (defproject comic-reader "0.1.0-SNAPSHOT"
:description "An app for reading comics/manga on or offline"
: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"]]
:main ^:skip-aot comic-rea... | (defproject comic-reader "0.1.0-SNAPSHOT"
:description "An app for reading comics/manga on or offline"
: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... | Add ring/cljs etc. dependencies and configuration | Add ring/cljs etc. dependencies and configuration
| Clojure | epl-1.0 | RadicalZephyr/comic-reader,RadicalZephyr/comic-reader |
1931646010dceb0a39cd0eea5ceb4185677c8b53 | project.clj | project.clj | (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"
... | (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"
... | Move onyx dep out of dev depedencies | Move onyx dep out of dev depedencies
| Clojure | epl-1.0 | onyx-platform/onyx-metrics |
dba2230e4d5dfd8ad2e313065ae272b06b8623fe | project.clj | project.clj | (defproject neko "3.2.0-preview3"
:description "Neko is a toolkit designed to make Android development using Clojure easier and more fun."
:url "https://github.com/clojure-android/neko"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clo... | (defproject neko "3.2.0-preview3"
:description "Neko is a toolkit designed to make Android development using Clojure easier and more fun."
:url "https://github.com/clojure-android/neko"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clo... | Update Clojure dependency to alpha6 | Update Clojure dependency to alpha6
| Clojure | epl-1.0 | clojure-android/neko |
ed9b50c73b739b89a9f3ec62df9c5ef6b6f049fc | project.clj | project.clj | (defproject io.aviso/twixt "0.1.2"
:description "An extensible asset pipeline for Clojure web applications"
:url "https://github.com/AvisoNovate/twixt"
:license {:name "Apache Sofware Licencse 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
... | (defproject io.aviso/twixt "0.1.3"
:description "An extensible asset pipeline for Clojure web applications"
:url "https://github.com/AvisoNovate/twixt"
:license {:name "Apache Sofware Licencse 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
... | Advance version number to 0.1.3 | Advance version number to 0.1.3
| Clojure | apache-2.0 | clyfe/twixt,AvisoNovate/twixt,AvisoNovate/twixt,clyfe/twixt,clyfe/twixt,AvisoNovate/twixt |
e87d9cc346512992b1abaee6b83a3176594baccd | project.clj | project.clj | (defproject clum "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"}
:plugins [[lein-cljsbuild "1.1.5"]
[lein-auto "0.1.3"]]
:cljsbuild {:builds [{:sourc... | (defproject clum "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"}
:plugins [[lein-cljsbuild "1.1.5"]
[lein-auto "0.1.3"]]
:cljsbuild {:builds [{:sourc... | Add overtone dependency for midi library. | Add overtone dependency for midi library.
| Clojure | epl-1.0 | pat-thomas/clum,pat-thomas/clum |
c1bb1566f0a6f74592f732d061d6a9d85fe43133 | project.clj | project.clj | (defproject cascade "0.2-SNAPSHOT"
:description "Simple, fast, easy web applications in idiomatic Clojure"
:url "http://github.com/hlship/cascade"
:main main
:warn-on-reflection true
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojure/algo.monads "0.1.0"]
[compojure "0.... | (defproject cascade "0.2-SNAPSHOT"
:description "Simple, fast, easy web applications in idiomatic Clojure"
:url "http://github.com/hlship/cascade"
:main main
:warn-on-reflection true
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojure/algo.monads "0.1.0"]
[clj-json "0.4... | Add support for rendering JSON | Add support for rendering JSON
| Clojure | apache-2.0 | hlship/cascade |
e98625f874c3cde94a6af928d605ee7dfb0689a6 | project.clj | project.clj | (defproject org.onyxplatform/onyx-datomic "0.7.3-beta8"
: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/repo"... | (defproject org.onyxplatform/onyx-datomic "0.7.3-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/re... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | epl-1.0 | onyx-platform/onyx-datomic |
41fd7425efe157650b596facac1e77e5d2b5d158 | project.clj | project.clj | ;; The only requirement of the project.clj file is that it includes a
;; defproject form. It can have other code in it as well, including
;; loading other task definitions.
(defproject leiningen "1.2.0-SNAPSHOT"
:description "A build tool designed not to set your hair on fire."
:url "http://github.com/technomancy/... | ;; The only requirement of the project.clj file is that it includes a
;; defproject form. It can have other code in it as well, including
;; loading other task definitions.
(defproject leiningen "1.2.0-SNAPSHOT"
:description "A build tool designed not to set your hair on fire."
:url "http://github.com/technomancy/... | Drop back to Clojure 1.1.0 until issues with 1.2.0 are resolved. | Drop back to Clojure 1.1.0 until issues with 1.2.0 are resolved.
| Clojure | epl-1.0 | 0/leiningen,0/leiningen |
423903f937dd49c0d050937373cbc0cdabfeb8c0 | dev/clj/user.clj | dev/clj/user.clj | (ns user
(:require [schema.core :as s])
(:use [figwheel-sidecar.repl-api :as ra]))
(s/set-fn-validation! true)
(defn start [] (ra/start-figwheel!))
(defn stop [] (ra/stop-figwheel!))
(defn cljs [] (ra/cljs-repl "dev"))
| (ns user
(:require [schema.core :as s])
(:use [figwheel-sidecar.repl-api :as ra]))
(s/set-fn-validation! true)
(defn start [] (ra/start-figwheel!))
(defn stop [] (ra/stop-figwheel!))
(defn cljs [] (ra/cljs-repl "dev"))
(comment
(let [codes [27 91 49 74]]
#_(map #(format "%x" %) codes)
(String. (int-a... | Add helpers to dev ns | Add helpers to dev ns
| Clojure | apache-2.0 | asciinema/asciinema-player,asciinema/asciinema-player |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.