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
b6de53cd427f78a03a81a423f28b36f5e62441aa
src/lcmap/clownfish/state.clj
src/lcmap/clownfish/state.clj
(ns lcmap.clownfish.state (:require [cheshire.core :as json] [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.logging :as log] [lcmap.clownfish.config :refer [config]] [mount.core :refer [defstate] :as mount] [org.httpkit.client :...
(ns lcmap.clownfish.state (:require [cheshire.core :as json] [clojure.java.io :as io] [clojure.string :as str] [clojure.tools.logging :as log] [lcmap.clownfish.config :refer [config]] [mount.core :refer [defstate] :as mount] [org.httpkit.client :...
Stop horsing around, part 2.
Stop horsing around, part 2.
Clojure
unlicense
USGS-EROS/lcmap-changes,USGS-EROS/lcmap-changes,USGS-EROS/lcmap-changes,USGS-EROS/lcmap-changes
170b311ad7e326fd845fd2f2b813f381173a570c
src/cljs/cglossa/search_inputs.cljs
src/cljs/cglossa/search_inputs.cljs
(ns cglossa.search-inputs (:require [clojure.string :as str])) (defn cwb-search-inputs [{:keys [search-query]}] (let [query (:query @search-query) displayed-query (str/replace query #"\[\(?\w+=\"(.+?)\"(?:\s+%c)?\)?\]" "$1") phonetic? (not= -1 (.indexOf query "phon="))] [:div.row-fluid [:f...
(ns cglossa.search-inputs (:require [clojure.string :as str])) (defn- convert-to-cqp [value phonetic?] (let [attr (if phonetic? "phon" "word") chinese-chars-range "[\u4E00-\u9FFF\u3400-\u4DFF\uF900-\uFAFF]" value (str/replace value (re-pattern (str "(" chinese-chars-range ")")) " $1 ")] (->> (s...
Convert to CQP format on text change
Convert to CQP format on text change
Clojure
mit
textlab/glossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/glossa
91341b3fcbc2ef9627d62aa2e05771cdea60a2ac
src/time_tracker/users/handlers.clj
src/time_tracker/users/handlers.clj
(ns time-tracker.users.handlers (:require [ring.util.response :as res] [time-tracker.users.db :as users-db] [time-tracker.invited-users.db :as invited-users-db] [time-tracker.web.util :as web-util])) ;; /users/me/ (defn retrieve [{:keys [credentials]} connection] (if-let [use...
(ns time-tracker.users.handlers (:require [ring.util.response :as res] [time-tracker.users.db :as users-db] [time-tracker.invited-users.db :as invited-users-db] [time-tracker.web.util :as web-util])) ;; /users/me/ (defn retrieve [{:keys [credentials]} connection] (if-let [use...
Allow only admins access to list of registered users
Allow only admins access to list of registered users Co-authored-by: Samrat Man Singh <de71a275ed207d9c2083ebfa9af5dcdfa3ea2b88@nilenso.com>
Clojure
epl-1.0
nilenso/time-tracker,nilenso/time-tracker,nilenso/time-tracker
ae9cd69e738069965b2a97784bb7b7fd833be8b6
src/onyx/peer/log_version.cljc
src/onyx/peer/log_version.cljc
(ns onyx.peer.log-version) (def version "0.10.0-SNAPSHOT") (defn check-compatible-log-versions! [cluster-version] (when-not (or (re-find #"-" version) (= version cluster-version)) (throw (ex-info "Incompatible versions of the Onyx cluster coordination log. A new, distinct, ...
(ns onyx.peer.log-version) (def version "0.10.0-SNAPSHOT") (defn check-compatible-log-versions! [cluster-version] (when-not (or (re-find #"-SNAPSHOT" version) (= version cluster-version)) (throw (ex-info "Incompatible versions of the Onyx cluster coordination log. A new, di...
Make alpha/beta/etc versions incompatible with each other.
Make alpha/beta/etc versions incompatible with each other.
Clojure
epl-1.0
onyx-platform/onyx
1031fef261f12b60bd91f59970e44f96d9ea3467
src/datemo/arb.clj
src/datemo/arb.clj
(ns datemo.arb (:require [clojure.pprint :refer [pprint]]) (:use hickory.core)) (defn html->hiccup [html] (as-hiccup (parse html))) (defn hiccup->arb [hiccup] (if (string? (first hiccup)) (first hiccup) (let [[tag attrs & rest] (first hiccup) rest-count (count rest)] (if (or (= 0 rest...
(ns datemo.arb (:require [clojure.pprint :refer [pprint]]) (:use hickory.core)) (defn html->hiccup ([html] (as-hiccup (parse html))) ([html as-fragment] (if (false? as-fragment) (html->hiccup html) (map as-hiccup (parse-fragment html))))) (defn hiccup->arb [hiccup] (if (string? (first hiccup)) ...
Add multiple varities to handle html fragments
Add multiple varities to handle html fragments
Clojure
epl-1.0
ezmiller/datemo
e8e2db957d8f86ef13ec145a3fc5df011232acf7
src/clojure/clojurewerkz/cassaforte/ns_utils.clj
src/clojure/clojurewerkz/cassaforte/ns_utils.clj
(ns clojurewerkz.cassaforte.ns-utils) (defmacro defalias ^:private [sym v] `(intern *ns* (with-meta ~sym (meta ~sym)) (deref ~v))) (defn alias-ns "Alias all the vars from namespace to the curent namespace" [ns-name] (require ns-name) (doseq [[n v] (ns-publics (the-ns ns-name))] (defalias n v)))
(ns clojurewerkz.cassaforte.ns-utils) (defn defalias "Create a var with the supplied name in the current namespace, having the same metadata and root-binding as the supplied var." [name ^clojure.lang.Var var] (apply intern *ns* (with-meta name (merge (meta var) (meta...
Fix defalias to support docstrings
Fix defalias to support docstrings
Clojure
apache-2.0
sougatabh/cassaforte,clojurewerkz/cassaforte,jkni/cassaforte,clojurewerkz/cassaforte
71f022d193a22b43f848c06e1a01e945f04c7371
ring-jetty-adapter/project.clj
ring-jetty-adapter/project.clj
(defproject ring/ring-jetty-adapter "1.9.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.9.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.36.v20210114
Update Jetty dependency to 9.4.36.v20210114
Clojure
mit
ring-clojure/ring,ring-clojure/ring
67f26518dab1ea3ad228e39c9ac0424e0ec22c60
src/docker_clojure/dockerfile.clj
src/docker_clojure/dockerfile.clj
(ns docker-clojure.dockerfile (:require [clojure.java.shell :refer [sh]] [clojure.string :as str] [docker-clojure.dockerfile.boot :as boot] [docker-clojure.dockerfile.lein :as lein] [docker-clojure.dockerfile.tools-deps :as tools-deps])) (defn build-dir [{:keys [base-image build-tool]}] (str/join "/...
(ns docker-clojure.dockerfile (:require [clojure.java.shell :refer [sh]] [clojure.string :as str] [docker-clojure.dockerfile.boot :as boot] [docker-clojure.dockerfile.lein :as lein] [docker-clojure.dockerfile.tools-deps :as tools-deps])) (defn build-dir [{:keys [base-image build-tool]}] (str/join "/...
Stop adding maintainer label per Docker recs
Stop adding maintainer label per Docker recs
Clojure
mit
Quantisan/docker-clojure
278cbd4e4dfc3393f19ec3a25ca09976d6a37cbd
src/clojure/warreq/kea/calc/math.clj
src/clojure/warreq/kea/calc/math.clj
(ns warreq.kea.calc.math (:require [clojure.math.numeric-tower :refer [expt]] [warreq.kea.calc.util :as u] [neko.notify :refer [toast]]) (:import java.math.BigDecimal)) (defn rpn "Evaluate an expression composed in Reverse Polish Notation and return the result. `rpn` may optionally take...
(ns warreq.kea.calc.math (:require [clojure.math.numeric-tower :refer [expt]] [warreq.kea.calc.util :as u] [neko.notify :refer [toast]]) (:import java.math.BigDecimal)) (defn rpn "Evaluate an expression composed in Reverse Polish Notation and return the result. `rpn` may optionally take...
Fix division to round to at least 2 decimal places
Fix division to round to at least 2 decimal places
Clojure
unlicense
warreq/calc-clj
c1d9ccf6fc3f484705da8a209c58a4ea1a414854
src/com/wsscode/common/async_cljs.clj
src/com/wsscode/common/async_cljs.clj
(ns com.wsscode.common.async-cljs) (defmacro if-cljs [then else] (if (:ns &env) then else)) (defmacro go-catch [& body] `(async/go (try ~@body (catch :default e# e#)))) (defmacro <!p [promise] `(consumer-pair (cljs.core.async/<! (promise->chan ~promise)))) (defmacro <? [ch] `(throw-err ...
(ns com.wsscode.common.async-cljs (:require [cljs.core.async :as async])) (defmacro if-cljs [then else] (if (:ns &env) then else)) (defmacro go-catch [& body] `(async/go (try ~@body (catch :default e# e#)))) (defmacro <!p [promise] `(consumer-pair (cljs.core.async/<! (promise->chan ~prom...
Fix async require on async cljs
Fix async require on async cljs
Clojure
mit
wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom
033a79ccf594899ca3fce2e43c7762a029d949fa
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 io.aviso.logging speclj.config)) (install-pretty-exceptions) (install-pretty-logging) (install-uncaught-exception-handler) (alter-var-root #'default-config assoc :color true :reporters ["documentation"])
Enable pretty hooks for logging
Enable pretty hooks for logging
Clojure
apache-2.0
roblally/rook,bmabey/rook,clyfe/rook
28ef621190de3ca604ab16a55b3139f880740535
src/continuo/postgresql.clj
src/continuo/postgresql.clj
;; Copyright 2015 Andrey Antukh <niwi@niwi.nz> ;; ;; Licensed under the Apache License, Version 2.0 (the "License") ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; http://www.apache.org/licenses/LICENSE-2.0 ;; ;; Unless required by applicable law ...
;; Copyright 2015 Andrey Antukh <niwi@niwi.nz> ;; ;; Licensed under the Apache License, Version 2.0 (the "License") ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; http://www.apache.org/licenses/LICENSE-2.0 ;; ;; Unless required by applicable law ...
Replace load with simple require directives.
Replace load with simple require directives.
Clojure
apache-2.0
niwinz/continuo
a8217e1d9ada5f8c5025b5aa53fb317766ceb500
src/berry/parsing/context_handler.clj
src/berry/parsing/context_handler.clj
(ns berry.parsing.context-handler) (def begin { :start-line 1 :start-column 1 :current-line 1 :current-column 1 :offset 0}) (defn ++ [{current-column :current-column offset :offset :as context}] (merge context { :current-column ...
(ns berry.parsing.context-handler) (def begin { :start-line 1 :start-column 1 :current-line 1 :current-column 1 :offset 0}) (defn- apply-to [transform {current-column :current-column offset :offset :as context}] (assoc contex...
Reduce code duplication by using a partial function.
Reduce code duplication by using a partial function.
Clojure
mit
alan-ghelardi/berry
b41ac9cd72601edb2cc488c65dd11b514798f613
nightweb-desktop/src/nightweb/core.clj
nightweb-desktop/src/nightweb/core.clj
(ns nightweb.core (:use splendid.jfx nightweb.page) (:import javafx.scene.layout.VBox javafx.scene.layout.HBox javafx.scene.control.TabPane javafx.scene.control.Tab javafx.scene.web.WebView javafx.scene.layout.Priority javafx.scene.control.Bu...
(ns nightweb.core (:use nightweb.page nightweb.browser) (:import net.i2p.router.Router) (:gen-class)) (defn start-router "Launch the router (blocking)." [] (Router/main nil)) (defn -main "Launch everything." [& args] (start-web-server) (start-browser) (comment (start-router)))
Add ability to create tabs.
Add ability to create tabs.
Clojure
unlicense
oakes/Nightweb,oakes/Nightweb
16f8dbbed51f984372f0ef7a6e86ccadac845e37
src/cards/util.cljs
src/cards/util.cljs
(ns cards.util (:require [om.dom :as dom])) (defn update-cb-info [tag state & params] (println "update-cb-info" tag state params) (swap! state (fn [state] (-> state (update-in [:callbacks tag :counter] inc) (assoc-in [:callbacks tag :params] params)))...
(ns cards.util (:require [om.dom :as dom])) (defn update-cb-info [tag state & params] (swap! state (fn [state] (-> state (update-in [:callbacks tag :counter] inc) (assoc-in [:callbacks tag :params] params))))) (defn render-cb-info [tag state label] (...
Remove debug message from update-cb-info in devcards
Remove debug message from update-cb-info in devcards
Clojure
agpl-3.0
Jannis/om-next-kanban-demo,Jannis/om-next-kanban-demo
7462a8c27661439ffce6c0737254125bf931f2c8
raw_data/convert_players.clj
raw_data/convert_players.clj
(use '[clojure.string :only (split-lines split join capitalize)]) (defn read-tabular-file [filename] (let [data (slurp filename) lines (split-lines data) split-by-tab #(split % #"\t")] (map split-by-tab lines))) (defn nameify [s] (let [words (split s #" ") word-names (map capitalize wo...
(use '[clojure.string :only (split-lines split join capitalize)]) (defn read-tabular-file [filename] (let [data (slurp filename) lines (split-lines data) split-by-tab #(split % #"\t")] (map split-by-tab lines))) (defn nameify [s] (let [words (split s #" ") word-names (map capitalize wo...
Convert date into iso date
Convert date into iso date
Clojure
unlicense
phss/world-cup-2014-stats
4ea7a96888580850ac3e2f08229d7efd67d50410
roles/clojure/files/profiles.clj
roles/clojure/files/profiles.clj
{:user {:signing {:gpg-key "8ED1CE42"} :dependencies [[alembic "0.2.1"] [clj-stacktrace "0.2.7"] [criterium "0.4.2"] [org.clojure/tools.namespace "0.2.5"] [slamhound "1.5.3"] [spyscope "0.1.4"]] ...
{:user {:signing {:gpg-key "8ED1CE42"} :dependencies [[alembic "0.2.1"] [clj-stacktrace "0.2.7"] [criterium "0.4.2"] [org.clojure/tools.namespace "0.2.5"] [slamhound "1.5.3"] [spyscope "0.1.4"]] ...
Use snapshot version of cider-nrepl
Use snapshot version of cider-nrepl
Clojure
mit
jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles
bbcf1b8bf9d4c6bea0583e1106b36cfec9703cf2
clojure/profiles.clj
clojure/profiles.clj
{:user {:ultra {:color-scheme :solarized_dark :stacktraces true} :plugins [[lein-try "0.4.3"] [lein-ancient "0.6.10-SNAPSHOT"] [lein-kibit "0.1.2"] [jonase/eastwood "0.2.3"] ;[venantius/ultra "0.5.0"] ]}}
{:user {:ultra {:color-scheme :solarized_dark :stacktraces true :repl true :java true :tests true} :plugins [[lein-try "0.4.3"] [lein-ancient "0.6.10-SNAPSHOT"] [lein-kibit "0.1.2"] [jonase/eas...
Add some pretty print configuration for lein
Add some pretty print configuration for lein
Clojure
unlicense
f-f/dotfiles,f-f/dotfiles
034d38967a59067aee6b73d12d8e086314ac4e53
src/incise/watcher.clj
src/incise/watcher.clj
(ns incise.watcher (:require [taoensso.timbre :refer [error]] [clojure.stacktrace :refer [print-stack-trace]] [watchtower.core :refer [watcher rate file-filter extensions on-change]])) (defn log-exceptions [func] "Log (i.e. print) exceptions received fro...
(ns incise.watcher (:require [taoensso.timbre :refer [error]] [clojure.stacktrace :refer [print-cause-trace]] [watchtower.core :refer [watcher rate file-filter extensions on-change]])) (defn log-exceptions [func] "Log (i.e. print) exceptions received fro...
Use print-cause-trace instead of print-stack-trace.
Use print-cause-trace instead of print-stack-trace.
Clojure
epl-1.0
RyanMcG/incise-core
7642a9f998b002939ba39905cb724d55b95ca95c
src/com/wsscode/pathom/test.cljc
src/com/wsscode/pathom/test.cljc
(ns com.wsscode.pathom.test (:require [com.wsscode.pathom.core :as p])) (defn self-reader [{:keys [ast query] :as env}] (if query (p/join env) (name (:key ast)))) #?(:clj (defn sleep-reader [{:keys [ast query] :as env}] (if-let [time (p/ident-value env)] (do (Thread/sleep time) ...
(ns com.wsscode.pathom.test (:require [com.wsscode.pathom.core :as p] [clojure.string :as str])) (defn self-reader [{:keys [ast query] :as env}] (if query (p/join env) (name (:key ast)))) #?(:clj (defn sleep-reader [{:keys [ast query] :as env}] (if-let [time (p/ident-value env)] ...
Use idiomatic clojure for str/starts-with?
Use idiomatic clojure for str/starts-with?
Clojure
mit
wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom
19ca5f17dc2d2bab7fd902dba23d838baacca1a7
src/servisne_info/tasks/daily_report.clj
src/servisne_info/tasks/daily_report.clj
(ns servisne-info.tasks.daily-report (:require [servisne-info.logging :as l] [servisne-info.notifications :refer [send-daily-report-email]] [servisne-info.repository :as repo] [servisne-info.tasks.task-definition :refer [deftask]])) (defn- format-event-data [event] (l/format-dat...
(ns servisne-info.tasks.daily-report (:require [servisne-info.logging :as l] [servisne-info.notifications :refer [send-daily-report-email]] [servisne-info.repository :as repo] [servisne-info.tasks.task-definition :refer [deftask]])) (defn- format-event-data [event] (l/format-dat...
Remove created-at from daily report
Remove created-at from daily report
Clojure
mit
strika/servisne.info,darkofabijan/servisne.info,darkofabijan/servisne.info,strika/servisne.info
743b92e7e0e4a60f6c967cbda3a91a504c71043b
planck-cljs/src/planck/themes.cljs
planck-cljs/src/planck/themes.cljs
(ns planck.themes (:require [planck.from.io.aviso.ansi :as ansi])) (def ^:private colorize-fn-dumb identity) (def ^:private colorize-off-dumb "") (def ^:private dumb {:results-fn colorize-fn-dumb :ex-msg-fn colorize-fn-dumb :ex-stack-fn colorize-fn-dumb :err-font colorize-off-dumb :verbose-f...
(ns planck.themes (:require [planck.from.io.aviso.ansi :as ansi])) (def ^:private colorize-fn-dumb identity) (def ^:private colorize-off-dumb "") (def ^:private dumb {:results-fn colorize-fn-dumb :ex-msg-fn colorize-fn-dumb :ex-stack-fn colorize-fn-dumb :err-font colorize-off-dumb :verbose-f...
Make results more readible in dark theme
Make results more readible in dark theme
Clojure
epl-1.0
mfikes/planck,ericstewart/planck,ericstewart/planck,slipset/planck,slipset/planck,slipset/planck,mfikes/planck,mfikes/planck,mfikes/planck,slipset/planck,mfikes/planck,slipset/planck,ericstewart/planck,mfikes/planck
3488a5a7f2534c5378d4c3f0aebf2afeb8f7873a
src/leiningen/new/quil_cljs/project.clj
src/leiningen/new/quil_cljs/project.clj
(defproject {{name}} "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [quil "2.2.0-SNAPSHOT"] [org.c...
(defproject {{name}} "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [quil "2.2.0-SNAPSHOT"] [org.c...
Set :externs value for :advanced compilation.
Set :externs value for :advanced compilation.
Clojure
epl-1.0
Norgat/quil-cljs-template,quil/quil-templates,quil/quil-templates
cdd27e699146dfe8e7daf5de5b3cb897c65c54bf
app/dev/nrepl.clj
app/dev/nrepl.clj
(ns ^{:clojure.tools.namespace.repl/load false} nrepl (:require [clojure.tools.nrepl.server :as nrepl.server] [cider.nrepl] [cemerick.piggieback] [refactor-nrepl.middleware :as refactor.nrepl])) (defn start-nrepl [] (let [server (nrepl.server/start-server :handler ...
(ns ^{:clojure.tools.namespace.repl/load false} nrepl (:require [clojure.tools.nrepl.server :as nrepl.server] [cider.nrepl] [cemerick.piggieback] [refactor-nrepl.middleware :as refactor.nrepl])) (defn start-nrepl [opts] (let [server (nrepl.server/start-server :port (:p...
Use port 5600, as before
Use port 5600, as before
Clojure
mit
juxt/edge,juxt/edge
2e26af0e42e43d5f763ffeae25ccf3e248835635
clojure/src/advent2017/core.clj
clojure/src/advent2017/core.clj
(ns advent2017.core) (defn read-puzzle ([name] (read-puzzle name identity)) ([name xform] (-> (clojure.java.io/file (str "../2017/" name)) (slurp) xform))) (defn enumerate [xs] (map vector (range) xs)) (defn ->lines [s] (clojure.string/split s #"\n")) (defn ->words [s] (clojure.string/...
(ns advent2017.core) (defn read-puzzle ([name] (read-puzzle name identity)) ([name xform] (-> (clojure.java.io/file (str "../2017/" name)) (slurp) xform))) (defn enumerate [xs] (map vector (range) xs)) (defn ->lines [s] (clojure.string/split s #"\n")) (defn ->words [s] (clojure.string/...
Fix a bug in `lines->numbers`.
Fix a bug in `lines->numbers`.
Clojure
mit
jonathanj/advent2016
43314968f9e740ebb1e1c2dd8b042a6a0141dfa9
functions/project.clj
functions/project.clj
(defproject wort "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"] [org.clojure/data.json "0.2.6"] ...
(defproject wort "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"] [org.clojure/data.json "0.2.6"] ...
Add explicit dependency to fix sass4clj internal broken dep
Add explicit dependency to fix sass4clj internal broken dep
Clojure
mit
krwenholz/wort,krwenholz/wort
7f97593e139f4e13e0216638cf7a5ed4c59f6a59
src/leiningen/new/re_frame/src/routes.cljs
src/leiningen/new/re_frame/src/routes.cljs
(ns {{ns-name}}.routes (:require [bidi.bidi :as bidi] [pushy.core :as pushy] [re-frame.core :as re-frame] [{{ns-name}}.events :as events])) (defmulti panels identity) (defmethod panels :default [] [:div "No panel found for this route."]) (def routes (atom ["/" {"" :home "about" :abo...
(ns {{ns-name}}.routes (:require [bidi.bidi :as bidi] [pushy.core :as pushy] [re-frame.core :as re-frame] [{{ns-name}}.events :as events])) (defmulti panels identity) (defmethod panels :default [] [:div "No panel found for this route."]) (def routes (atom ["/" {"" :home "about" :abo...
Use `defonce` instead of `def`
Use `defonce` instead of `def` Fixes navigation breaking when hot code reloading.
Clojure
mit
Day8/re-frame-template,Day8/re-frame-template,Day8/re-frame-template
ee92a10a1a9b2bbcbd7d83f12c5d3bb20dbed4eb
test/onyx/log/notify_join_cluster_test.clj
test/onyx/log/notify_join_cluster_test.clj
(ns onyx.log.notify-join-cluster-test (:require [onyx.extensions :as extensions] [onyx.log.entry :refer [create-log-entry]] [midje.sweet :refer :all])) (def entry (create-log-entry :notify-join-cluster {:observer :d :subject :a})) (def f (partial extensions/apply-log-entry entry)) (def rep-...
(ns onyx.log.notify-join-cluster-test (:require [onyx.extensions :as extensions] [onyx.log.entry :refer [create-log-entry]] [onyx.messaging.aeron :as aeron] [com.stuartsierra.component :as component] [midje.sweet :refer :all])) (def peer-config (:peer-config (read-...
Add messaging to notify-join test. Switch defs to let
Add messaging to notify-join test. Switch defs to let
Clojure
epl-1.0
KevinGreene/onyx,intfrr/onyx,ideal-knee/onyx,onyx-platform/onyx,Deraen/onyx,tomasu82/onyx,dignati/onyx,mccraigmccraig/onyx,iperdomo/onyx,vijaykiran/onyx
3ab6d9a8de79358471d2460774128576fbe574e0
src/lo_cash/core.cljs
src/lo_cash/core.cljs
(ns lo-cash.core (:require [clojure.browser.repl :as repl])) (defn -main [] (.log js/console "connecting...") (repl/connect "http://localhost:9000/repl")) (defn obj-select "Selects the given keys from a JS object and returns a keywordized map" [obj [& keys]] (into {} (map #([(keyword %) (aget obj %)]...
(ns lo-cash.core (:require [clojure.browser.repl :as repl])) (defn -main [] (.log js/console "connecting...") (repl/connect "http://localhost:9000/repl")) (defn obj-select "Selects the given keys from a JS object and returns a keywordized map" [obj & keys] (into {} (map (fn [k] [(keyword k...
Fix and change obj-select(v) functions, now more keyword-y
Fix and change obj-select(v) functions, now more keyword-y
Clojure
mit
cobalamin/lo-cash
704a3fc038a8933baaa82fb4d1d89cd5c7b7c510
src/clj/guangyin/internal/types.clj
src/clj/guangyin/internal/types.clj
(ns guangyin.internal.types (:import (guangyin.internal.types ObjectWrapper TemporalAmountWrapper TemporalAccessorWrapper TemporalWrapper))) (defmethod print-method ObjectWrapper [obj writer] (print-method @obj writer)) (defn wrapped-instance? [^Class c x] (or (instance? ...
(ns guangyin.internal.types (:import (guangyin.internal.types ObjectWrapper TemporalAmountWrapper TemporalAccessorWrapper TemporalWrapper))) (defmethod print-method ObjectWrapper [obj writer] (print-method @obj writer)) (defn wrapped-instance? [^Class c x] (or (instance? ...
Add unwrap function to be used for arguments.
Add unwrap function to be used for arguments.
Clojure
mit
juhovh/guangyin
b517154a8101e20615369880cf75d799681f289e
test/klangmeister/test/processing.cljs
test/klangmeister/test/processing.cljs
(ns klangmeister.test.processing (:require [cljs.test :refer-macros [deftest testing is]] [klangmeister.processing :as processing] [klangmeister.framework :as framework] [klangmeister.compile.eval :as eval] [klangmeister.actions :as action])) (def ignore! (constantly n...
(ns klangmeister.test.processing (:require [cljs.test :refer-macros [deftest testing is]] [klangmeister.processing :as processing] [klangmeister.framework :as framework] [klangmeister.compile.eval :as eval] [klangmeister.actions :as action])) (def ignore! (constantly n...
Test that the value remains unchanged when there's an error.
Test that the value remains unchanged when there's an error.
Clojure
mit
ctford/cljs-bach,ctford/cljs-bach
b864e5cf1e4c014691198e04b7f1c24b62de481c
project/analyze-data/src/analyze_data/tf_idf/inverse_document_frequency.clj
project/analyze-data/src/analyze_data/tf_idf/inverse_document_frequency.clj
(ns analyze-data.tf-idf.inverse-document-frequency) (defn document-frequency "Return a map from term to number of documents it appears in." [tf-corpus] (let [count-term (fn [m term] (assoc m term (inc (get m term 0)))) term-keys (mapcat keys tf-corpus)] (reduce count-term {} term-keys))) (defn calc-...
(ns analyze-data.tf-idf.inverse-document-frequency) (defn document-frequency "Return a map from term to number of documents it appears in." [term-frequency-corpus] (let [count-term (fn [m term] (assoc m term (inc (get m term 0)))) term-keys (mapcat keys term-frequency-corpus)] (reduce count-term {} t...
Rename tf-corpus variable to term-frequency-corpus.
Rename tf-corpus variable to term-frequency-corpus.
Clojure
mit
dylanfprice/stanfordml,dylanfprice/stanfordml
2e9214099c176f4d00361e49eb9c7f89125850af
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] (...
Print output to console when running with debug flags
Print output to console when running with debug flags Closes #2.
Clojure
bsd-3-clause
mdippery/whitman
6101d8bebc7c3abc99f5f41fa5cfaef0a9577643
src/mdr2/dtb.clj
src/mdr2/dtb.clj
(ns mdr2.dtb "Functions to query DAISY Talking Books" (:require [clojure.data.xml :as xml] [clojure.java.io :refer [file]]) (:import javax.sound.sampled.AudioSystem)) (defn file-audio-length "Get the length of the audio in seconds for a given audio file" [file] ;; see http://stackoverflow.com/q...
(ns mdr2.dtb "Functions to query DAISY Talking Books" (:require [clojure.data.xml :as xml] [clojure.java.io :refer [file]]) (:import javax.sound.sampled.AudioSystem)) (defn file-audio-length "Get the length of the audio in seconds for a given audio file" [file] ;; see http://stackoverflow.com/q...
Fix a problem in the wav-file? function
Fix a problem in the wav-file? function
Clojure
agpl-3.0
sbsdev/mdr2
638397d35dfe8d762ef5223b6de999b2cbcf868f
test/caesium/magicnonce/secretbox_test.clj
test/caesium/magicnonce/secretbox_test.clj
(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]) ...
(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]) ...
Test what the nonce is
Test what the nonce is
Clojure
epl-1.0
lvh/caesium
bfd677dac5d17049cff3d5eaadd5599cb1717e61
clojure/bob/bob.clj
clojure/bob/bob.clj
(ns bob (:require [clojure.string :as str])) (defn response-for [x] (cond (str/blank? x) "Fine, be that way." (= (str/upper-case x) x) "Woah, chill out!" (= \? (get x (- (count x) 1))) "Sure." :else "Whatever." ) )
(ns bob (:require [clojure.string :as str])) (defn response-for [x] (cond (str/blank? x) "Fine, be that way." (= (str/upper-case x) x) "Woah, chill out!" (= \? (last x)) "Sure." :else "Whatever." ) )
Use more clojure idomatic _last_ function.
Use more clojure idomatic _last_ function.
Clojure
mit
driis/exercism,driis/exercism,driis/exercism
fc4542ef348c9d1fdb091d4eb9cf7766e007b471
project.clj
project.clj
(defproject io.nervous/fink-nottle "0.1.0" :description "Asynchronous Clojure client for the Amazon SNS service" :url "https://github.com/nervous-systems/fink-nottle" :license {:name "Unlicense" :url "http://unlicense.org/UNLICENSE"} :scm {:name "git" :url "https://github.com/nervous-systems/fink-nottle"} :de...
(defproject io.nervous/fink-nottle "0.1.1" :description "Asynchronous Clojure client for the Amazon SNS service" :url "https://github.com/nervous-systems/fink-nottle" :license {:name "Unlicense" :url "http://unlicense.org/UNLICENSE"} :scm {:name "git" :url "https://github.com/nervous-systems/fink-nottle"} :de...
Bump version number to 0.1.1
Bump version number to 0.1.1
Clojure
unlicense
joelittlejohn/fink-nottle,coopsource/fink-nottle,nervous-systems/fink-nottle
a2a39433f12be89b0a4038d1a25e22b758b4750f
project.clj
project.clj
(defproject basex "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"} :java-source-paths ["src/main/java"] :source-paths ["src/main/clojure"] :dependencies [[org.clo...
(defproject basex "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"} :java-source-paths ["src/main/java"] :source-paths ["src/main/clojure"] :dependencies [[org.clo...
Move lein-midje into dev plugins
Move lein-midje into dev plugins
Clojure
epl-1.0
kouphax/clj-basex
769e122461651e70a72f22c3372b9bdf37443d56
project.clj
project.clj
(defproject suricatta "0.1.0-SNAPSHOT" :description "High level sql toolkit for clojure (backed by jooq library)" :url "http://example.com/FIXME" :license {:name "Apache 2.0" :url "http://www.apache.org/licenses/LICENSE-2.0.txt"} :dependencies [[org.clojure/clojure "1.7.0-alpha2"] [...
(defproject suricatta "0.1.0-SNAPSHOT" :description "High level sql toolkit for clojure (backed by jooq library)" :url "http://example.com/FIXME" :license {:name "Apache 2.0" :url "http://www.apache.org/licenses/LICENSE-2.0.txt"} :dependencies [[org.clojure/clojure "1.6.0"] [org.joo...
Set clojure version to the las stable: 1.6.0
Set clojure version to the las stable: 1.6.0
Clojure
bsd-2-clause
estsauver/suricatta,estsauver/suricatta,funcool/suricatta
0f2916bb055f485766a76a2f50afa92e1011571c
src/nightmod/utils.clj
src/nightmod/utils.clj
(ns nightmod.utils (:require [clojure.java.io :as io]) (:import [java.text SimpleDateFormat])) (def ^:const properties-file ".properties") (def main-dir (atom nil)) (def project-dir (atom nil)) (def error (atom nil)) (defn get-data-dir [] (let [home-dir (System/getProperty "user.home") app-name "Nigh...
(ns nightmod.utils (:require [clojure.java.io :as io]) (:import [java.text SimpleDateFormat])) (def ^:const properties-file ".properties") (def main-dir (atom nil)) (def project-dir (atom nil)) (def error (atom nil)) (defn get-data-dir [] (.getCanonicalPath (io/file (System/getProperty "user.home") "nightmod...
Simplify location of data dir
Simplify location of data dir
Clojure
unlicense
oakes/Nightmod
1790e6eab0d7cb685d09438ac126f04f770534be
frontend/utils.clj
frontend/utils.clj
(ns frontend.utils) (defmacro inspect "prints the expression '<name> is <value>', and returns the value" [value] `(do (let [name# (quote ~value) result# ~value] (print (pr-str name#) "is" (pr-str result#)) result#))) (defmacro timing "Evaluates expr and prints the label and the t...
(ns frontend.utils) (defmacro inspect "prints the expression '<name> is <value>', and returns the value" [value] `(do (let [name# (quote ~value) result# ~value] (print (pr-str name#) "is" (pr-str result#)) result#))) (defmacro timing "Evaluates expr and prints the label and the t...
Add macro to DRY up exception handling in channel code.
Add macro to DRY up exception handling in channel code.
Clojure
epl-1.0
prathamesh-sonpatki/frontend,circleci/frontend,RayRutjes/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,circleci/frontend
bb91421361c53bd718dc4f8711594f2f52dd157a
src/cljs/leipzig_live/core.cljs
src/cljs/leipzig_live/core.cljs
(ns leipzig-live.core (:require [reagent.core :as reagent :refer [atom]] [reagent.session :as session] [secretary.core :as secretary :include-macros true] [accountant.core :as accountant] [cljs.js :as cljs])) ;; ------------------------- ;; Model (defonce mus...
(ns leipzig-live.core (:require [reagent.core :as reagent :refer [atom]] [reagent.session :as session] [secretary.core :as secretary :include-macros true] [accountant.core :as accountant] [cljs.js :as cljs])) ;; ------------------------- ;; Model (defonce mus...
Make the REPL work with literals.
Make the REPL work with literals.
Clojure
mit
ctford/leipzig-live,ctford/cljs-bach,ctford/cljs-bach
117a58271aace1a2f4a80dae631f3e6a73585d46
src-cljs/dasha/core.cljs
src-cljs/dasha/core.cljs
(ns dasha.core) (defn log [data] (.log js/console (str data))) (log "test")
(ns dasha.core (:require-macros [cljs.core.async.macros :as asyncm :refer (go go-loop)]) (:require ;; <other stuff> [cljs.core.async :as async :refer (<! >! put! chan)] [taoensso.sente :as sente :refer (cb-success?)])) (defn log [data] (.log js/console (str data))) (defn route-receive [[event d...
Test web socket connection works
Test web socket connection works
Clojure
epl-1.0
clj-dasha/dasha
6092a9d2c5a722d02ba5d69a37b20bf376b58d47
src/tensorflow_clj/core.clj
src/tensorflow_clj/core.clj
(ns tensorflow-clj.core (:gen-class)) (def ^:dynamic graph nil) (defmacro with-graph [& body] `(binding [graph (org.tensorflow.Graph.)] (try ~@body (finally (.close graph))))) (defn- build-op [op-type op-name attr-map] (let [ob (.opBuilder graph op-type (name op-name))] (doseq [...
(ns tensorflow-clj.core (:gen-class)) (def ^:dynamic graph nil) (defmacro with-graph [& body] `(binding [graph (org.tensorflow.Graph.)] (try ~@body (finally (.close graph))))) (defn- build-op [op-type op-name attr-map] (let [ob (.opBuilder graph op-type (name op-name))] (doseq [...
Throw an exception instead of segfaulting
Throw an exception instead of segfaulting
Clojure
epl-1.0
enragedginger/tensorflow-clj
4506376fa5e7b9e5da079e0babe9a17c2dc45bee
services/aggregate.clj
services/aggregate.clj
{:name "aggregate" :path "" :func (let [result (volatile! [])] (fn[data] (if (pg/eoi? data) @result (do (vswap! result (fn[resval] (conj resval data))) (pg/need))))) :description "Streaming aggregation. Takes a stream of data and construct...
{:name "aggregate" :path "" :func (let [result (volatile! [])] (fn[data] (if (and (pg/eoi? data) (pg/done? data)) @result (do (vswap! result (fn[resval] (conj resval data))) (pg/need))))) :description "Streaming aggregation. Takes a stream...
Make sure only return on final done, not just eoi!
Make sure only return on final done, not just eoi!
Clojure
mit
jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio
35bcc831fb62d98c2ae10bd55f77086bd251cc71
ClojureScript/project.clj
ClojureScript/project.clj
(defproject shrimp "0.1.0-SNAPSHOT" :description "Demo project for Goby." :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2511"] [org.clojure/core.async "0.1.346.0-17112a-alpha"] [goby "...
(defproject shrimp "0.1.0-SNAPSHOT" :description "Demo project for Goby." :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/clojurescript "0.0-2665"] [org.clojure/core.async "0.1.346.0-17112a-alpha"] [goby "...
Update to ClojureScript 0.0-2665. Also update simple-brepl and Weasel to compatible versions.
Update to ClojureScript 0.0-2665. Also update simple-brepl and Weasel to compatible versions.
Clojure
epl-1.0
mfikes/shrimp,mfikes/shrimp,mfikes/shrimp
a6963aec2bf2b097505623a878f1acb4385fbc4f
src/circle/logging.clj
src/circle/logging.clj
(ns circle.logging (:import (org.apache.log4j Logger BasicConfigurator EnhancedPatternLayout Level ConsoleAppender SimpleLayout) (org.apache.log4j.spi RootLogger)) (:import (org.apache.log4j.rolling TimeBasedR...
(ns circle.logging (:import (org.apache.log4j Logger BasicConfigurator EnhancedPatternLayout Level ConsoleAppender SimpleLayout) (org.apache.log4j.spi RootLogger)) (:import (org.apache.log4j.rolling TimeBasedR...
Raise the log level to info
Raise the log level to info
Clojure
epl-1.0
RayRutjes/frontend,circleci/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,circleci/frontend,prathamesh-sonpatki/frontend
b24d42af82ea87bb8418daef0b81d20b83921c65
src/discuss/texts/lib.cljs
src/discuss/texts/lib.cljs
(ns discuss.texts.lib (:require [cljs.spec.alpha :as s] [clojure.string :as string] [discuss.translations :refer [translate] :rename {translate t}])) (defn join-with-and "Join collection of strings with `and`." [col] (string/join (str " <i>" (t :common :and) "</i> ") col)) (s/fdef join-...
(ns discuss.texts.lib (:require [cljs.spec.alpha :as s] [clojure.string :as string] [goog.string :refer [format]] [goog.string.format] [discuss.translations :refer [translate] :rename {translate t}])) (defn join-with-and "Join collection of strings with `and`." [co...
Add fns to highlight text passages
Add fns to highlight text passages
Clojure
mit
hhucn/discuss,hhucn/discuss
847a7b7be8691802af4861518a0d9e5bb3f1e76a
project.clj
project.clj
(let [dev-deps '[[speclj "2.3.0"]]] (defproject reply "0.2.0-SNAPSHOT" :description "REPL-y: A fitter, happier, more productive REPL for Clojure." :dependencies [[org.clojure/clojure "1.4.0"] [jline/jline "2.10"] [org.thnetos/cd-client "0.3.6"] [clj-st...
(let [dev-deps '[[speclj "2.3.0"]]] (defproject reply "0.2.0-SNAPSHOT" :description "REPL-y: A fitter, happier, more productive REPL for Clojure." :dependencies [[org.clojure/clojure "1.4.0"] [jline/jline "2.10"] [org.thnetos/cd-client "0.3.6"] [clj-st...
Add repl options since :main is bad w/ classnames
Add repl options since :main is bad w/ classnames
Clojure
epl-1.0
trptcolin/reply,trptcolin/reply,bbatsov/reply,bbatsov/reply
2bde60ef1f748721799b5d920e3bdb3d5588db49
project.clj
project.clj
(defproject buddy/buddy-sign "0.5.0-SNAPSHOT" :description "High level message signing" :url "https://github.com/funcool/buddy-sign" :license {:name "BSD (2-Clause)" :url "http://opensource.org/licenses/BSD-2-Clause"} :dependencies [[org.clojure/clojure "1.6.0"] [com.taoensso/nippy ...
(defproject buddy/buddy-sign "0.5.0-SNAPSHOT" :description "High level message signing" :url "https://github.com/funcool/buddy-sign" :license {:name "BSD (2-Clause)" :url "http://opensource.org/licenses/BSD-2-Clause"} :dependencies [[org.clojure/clojure "1.6.0"] [com.taoensso/nippy ...
Set buddy-core dependency to 0.5.0.
Set buddy-core dependency to 0.5.0.
Clojure
apache-2.0
funcool/buddy-sign
06119ff1aebf968c2cf332847efdf3953133604c
project.clj
project.clj
(defproject uxbox-backend "0.1.0-SNAPSHOT" :description "UXBox backend." :url "http://uxbox.github.io" :license {:name "MPL 2.0" :url "https://www.mozilla.org/en-US/MPL/2.0/"} :source-paths ["src"] :javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-options"] :jvm-opts ["-Dclojure.compiler.direct-linki...
(defproject uxbox-backend "0.1.0-SNAPSHOT" :description "UXBox backend." :url "http://uxbox.github.io" :license {:name "MPL 2.0" :url "https://www.mozilla.org/en-US/MPL/2.0/"} :source-paths ["src"] :javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-options"] :jvm-opts ["-Dclojure.compiler.direct-linki...
Set 0.11.3-SNAPSHOT version of catacumba.
Set 0.11.3-SNAPSHOT version of catacumba.
Clojure
mpl-2.0
uxbox/uxbox-backend,uxbox/uxbox-backend
ab300b6dbdd6ac4692ad13c8deca6df7fd3cdfa7
project.clj
project.clj
(defproject prismatic/fnhouse "0.1.0-SNAPSHOT" :description "Transform lightly-annotated functions into a full-fledged web service" :license {:name "Eclipse Public License - v 1.0" :url "http://www.eclipse.org/legal/epl-v10.html" :distribution :repo} :url "https://github.com/Prismatic/fnho...
(defproject prismatic/fnhouse "0.1.0-SNAPSHOT" :description "Transform lightly-annotated functions into a full-fledged web service" :license {:name "Eclipse Public License - v 1.0" :url "http://www.eclipse.org/legal/epl-v10.html" :distribution :repo} :url "https://github.com/Prismatic/fnho...
Bump plumbing dep and test on Clojure 1.6
Bump plumbing dep and test on Clojure 1.6
Clojure
epl-1.0
plumatic/fnhouse,gfredericks/fnhouse,Prismatic/fnhouse
312aa89ed8b0e74f1dcebf5f4ded4b84babbb377
resources/leiningen/new/retro_fever/core.cljs
resources/leiningen/new/retro_fever/core.cljs
(ns {{name}}.core (:require-macros [retro-fever.macros :refer [game]]) (:require [retro-fever.core :as core] [retro-fever.input :as input] [retro-fever.sprite :as sprite] [retro-fever.asset :as asset])) (defonce game-state (atom {})) ; Atom to store the game state (defn update-...
(ns {{name}}.core (:require-macros [retro-fever.macros :refer [game]]) (:require [retro-fever.core :as core] [retro-fever.input :as input] [retro-fever.sprite :as sprite] [retro-fever.asset :as asset])) (enable-console-print!) (defonce game-state (atom {})) ; Atom to store the ...
Enable console print for easier browser debugging
Enable console print for easier browser debugging
Clojure
epl-1.0
rspect2014/retro-fever-template
c04b5c8aa22d42a9b6c714e27cbbc9877757676d
metlog-agent/config.clj
metlog-agent/config.clj
(def start-t (System/currentTimeMillis)) (defsensor math {:poll-interval (seconds 10)} {:sine (Math/sin (/ (- (System/currentTimeMillis) start-t) (minutes 1))) :cosine (Math/cos (/ (- (System/currentTimeMillis) start-t) (minutes 1))) }) (defsensor steps-ascending {:poll-interval (seconds 5)} (+ 2.3 (mod (...
(def start-t (System/currentTimeMillis)) (defn random-sampler [ ] (let [current (atom 0.0)] (fn [ ] (swap! current #(+ % (/ (+ (Math/random) (Math/random)) 2) -0.5))))) (def rs-0 (random-sampler)) (def rs-1 (random-sampler)) (def rs-2 (random-sampler)) (defsensor random-unconstrained {:poll-interval (sec...
Add some random walk series to the test agent to help test autoscale behavior.
Add some random walk series to the test agent to help test autoscale behavior.
Clojure
epl-1.0
mschaef/metlog
5c999f647442a8b913485812aa534066665d1c26
test/tick/deprecated/schedule_test.clj
test/tick/deprecated/schedule_test.clj
;; Copyright © 2016-2017, JUXT LTD. (ns tick.deprecated.schedule-test (:require [clojure.test :refer :all] [tick.deprecated.timeline :refer [periodic-seq timeline]] [tick.core :refer [seconds millis]] [tick.deprecated.clock :refer [clock-ticking-in-seconds just-now]] [tick.deprecated.schedule :as sche...
;; Copyright © 2016-2017, JUXT LTD. (ns tick.deprecated.schedule-test (:require [clojure.test :refer :all] [tick.deprecated.timeline :refer [periodic-seq timeline]] [tick.core :refer [seconds millis]] [tick.deprecated.clock :refer [clock-ticking-in-seconds just-now]] [tick.deprecated.schedule :as sche...
Disable schedule test as it is hanging the test runner
Disable schedule test as it is hanging the test runner
Clojure
mit
juxt/tick,juxt/tick
41a3396077ea9a94089cf43fd54ab1bd8031c0b6
src/clj/subman/core.clj
src/clj/subman/core.clj
(ns subman.core (:gen-class) (:require [compojure.handler :as handler] [overtone.at-at :as at-at] [org.httpkit.server :as server] [hiccup.middleware :refer [wrap-base-url]] [ring.middleware.reload :refer [wrap-reload]] [subman.routes :as routes] ...
(ns subman.core (:gen-class) (:require [compojure.handler :as handler] [overtone.at-at :as at-at] [org.httpkit.server :as server] [hiccup.middleware :refer [wrap-base-url]] [ring.middleware.reload :refer [wrap-reload]] [subman.routes :as routes] ...
Fix actual calling upddate methods
Fix actual calling upddate methods
Clojure
epl-1.0
submanio/subman-parser
130968e269ea13579b3a86dd163c337956ade647
src/discuss/config.cljs
src/discuss/config.cljs
(ns discuss.config) (def project "discuss") (def user "Q2hyaXN0aWFu") (def api {:host "http://localhost:4284/" :init "api/" :base "api/" :add {:add-start-statement "add/start_statement" :add-start-premise "add/start_premise" :add-justify-premise "add...
(ns discuss.config) (def project "discuss") (def user "Q2hyaXN0aWFu") (def api {:host "http://localhost:4284/" :init "api/" :base "api/" :add {:add-start-statement "add/start_statement" :add-start-premise "add/start_premise" :add-justify-premise "add...
Add new route to get statements from dbas
Add new route to get statements from dbas
Clojure
mit
hhucn/discuss,hhucn/discuss
bf3f416debfe0950227a169fe3916e952afd6517
src/ecregister/posts_ui.clj
src/ecregister/posts_ui.clj
(ns ecregister.posts_ui (:gen-class) (:use [seesaw.core]) (:use [seesaw.mig]) (:use [seesaw.font]) (:use [seesaw.border]) ) (defn make-post-widget [{:keys [author title icon]}] (mig-panel :items [[(label :border (line-border :color "#ddd" :thickness 1) :size [50 :by 50]) "spany 2"] [(label :...
(ns ecregister.posts_ui (:gen-class) (:use [seesaw.core]) (:use [seesaw.mig]) (:use [seesaw.font]) (:use [seesaw.border]) ) (defn make-post-widget [{:keys [author title icon]}] (mig-panel :items [[(label :border (line-border :color "#ddd" :thickness 1) :size [42 :by 42]) "spany 2"] [(label :...
Update look of post item label
Update look of post item label
Clojure
epl-1.0
dimsuz/ecregister
8dd0051896ec2b6c59881fea4b6d7ffa2cf5e17e
triangle/triangle_test.clj
triangle/triangle_test.clj
(ns triangle.test (:require [clojure.test :refer :all])) (load-file "triangle.clj") (deftest equilateral-1 (is (= :equilateral (triangle 2 2 2)))) (deftest equilateral-2 (is (= :equilateral (triangle 10 10 10)))) (deftest isoceles-1 (is (= :isosceles (triangle 3 4 4)))) (deftest isoceles-2 (is (= :isosceles (t...
(ns triangle.test (:require [clojure.test :refer :all])) (load-file "triangle.clj") (deftest equilateral-1 (is (= :equilateral (triangle/type 2 2 2)))) (deftest equilateral-2 (is (= :equilateral (triangle/type 10 10 10)))) (deftest isoceles-1 (is (= :isosceles (triangle/type 3 4 4)))) (deftest isoceles-2 (is (...
Add namespace to triangle exercise.
Add namespace to triangle exercise. ... to be consistent with other examples. See PR #4 & PR #7.
Clojure
mit
querenker/xclojure,exercism/xclojure,exercism/xclojure,wobh/xclojure,querenker/xclojure,canweriotnow/xclojure,yurrriq/xclojure
46e45b40fb585ba6b7bc47a1ad0cef0926c51ffc
src/main/workflo/macros/entity/datascript.cljc
src/main/workflo/macros/entity/datascript.cljc
(ns workflo.macros.entity.datascript (:require [datascript.core :as d] [workflo.macros.entity.schema :as es])) (defn attr-schema [attr-opts] (reduce (fn [opts opt] (cond-> opts (= :ref opt) (assoc :db/valueType :db.type/ref) (= :many opt) ...
(ns workflo.macros.entity.datascript (:require [datascript.core :as d] [workflo.macros.entity.schema :as es])) (defn attr-schema [attr-opts] (reduce (fn [opts opt] (cond-> opts (= :ref opt) (assoc :db/valueType :db.type/ref) (= :many opt) ...
Add a function to merge DataScript schemas and detect conflicts
Add a function to merge DataScript schemas and detect conflicts
Clojure
mit
workfloapp/app-macros,workfloapp/macros,workfloapp/macros
e2306a97183686c3f0e2799241f4d6a157314445
src/viewer/controller/web.clj
src/viewer/controller/web.clj
(ns viewer.controller.web (:require [compojure.core :refer [defroutes GET]] [clojure.data.json :as json] [clojure.xml :as xml] [viewer.model.mastery :as mastery] [viewer.model.ship :as ship] [viewer.view.mastery :as mastery-view])) (def xml-filename-pattern...
(ns viewer.controller.web (:require [compojure.core :refer [defroutes GET]] [clojure.data.json :as json] [clojure.xml :as xml] [viewer.model.mastery :as mastery] [viewer.model.ship :as ship] [viewer.view.mastery :as mastery-view])) (def xml-filename-pattern...
Return 404 for non existing ships.
Return 404 for non existing ships.
Clojure
epl-1.0
pparkkin/evemastery
2ed1046a7efad6f8e163db163a117b830b7a5c17
project.clj
project.clj
(defproject onyx-app/lein-template "0.9.10.0-beta4" :description "Onyx Leiningen application template" :url "https://github.com/onyx-platform/onyx-template" :license {:name "MIT License" :url "http://choosealicense.com/licenses/mit/#"} :repositories {"snapshots" {:url "https://clojars.org/repo" ...
(defproject onyx-app/lein-template "0.9.10.0-SNAPSHOT" :description "Onyx Leiningen application template" :url "https://github.com/onyx-platform/onyx-template" :license {:name "MIT License" :url "http://choosealicense.com/licenses/mit/#"} :repositories {"snapshots" {:url "https://clojars.org/repo" ...
Prepare for next release cycle.
Prepare for next release cycle.
Clojure
mit
onyx-platform/onyx-template
11c0c08c0616a3f4fdca0eeafcb04d971b10b2a9
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-alpha1"] [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-alpha1"] [org.thnetos/cd-client "0.3.4"] [clj-stacktrace "0.2.4"] ...
Use explicit metadata for lein 1.7.1
Use explicit metadata for lein 1.7.1 Fixes #38
Clojure
epl-1.0
trptcolin/reply,bbatsov/reply,trptcolin/reply,bbatsov/reply
48c8f2afdc4272a99b33c4c29ac349a39bd85600
project.clj
project.clj
(defproject funcool/promesa "1.1.0" :description "A promise library for ClojureScript" :url "https://github.com/funcool/promesa" :license {:name "BSD (2 Clause)" :url "http://opensource.org/licenses/BSD-2-Clause"} :dependencies [[org.clojure/clojure "1.8.0" :scope "provided"] [org.c...
(defproject funcool/promesa "1.1.0" :description "A promise library for ClojureScript" :url "https://github.com/funcool/promesa" :license {:name "BSD (2 Clause)" :url "http://opensource.org/licenses/BSD-2-Clause"} :dependencies [[org.clojure/clojure "1.8.0" :scope "provided"] [org.c...
Update cljs compiler version to 1.8.34
Update cljs compiler version to 1.8.34
Clojure
mpl-2.0
funcool/promesa,borkdude/promesa
61bea6e5eb0ed77275f0264afe379ba521ba6947
project.clj
project.clj
(defproject cli4clj "1.4.0" ;(defproject cli4clj "1.3.3-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.4.0" (defproject cli4clj "1.4.1-SNAPSHOT" :description "Create simple interactive CLIs for Clojure applications." :url "https://github.com/ruedigergad/cli4clj" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.cloju...
Change version information back to snapshot version.
Change version information back to snapshot version.
Clojure
epl-1.0
ruedigergad/cli4clj
c402ddf893962205ada9a17e1da88740e79f4e0f
project.clj
project.clj
(defproject compojure "1.3.1" :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.1" :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 ring-mock dep to official Ring version
Update ring-mock dep to official Ring version
Clojure
epl-1.0
Christopher-Bui/compojure,sidcarter/compojure,ezy023/compojure,weavejester/compojure
615173ab40ad0ca15010a38d94fd25115f8f944b
project.clj
project.clj
(defproject mofficer "1.0-SNAPSHOT" :description "Mofficer (for Mail Officer) is a system that does one thing: send e-mails." :url "https://github.com/granpanda/mofficer" :dependencies [[org.clojure/clojure "1.6.0"] [ring/ring-jetty-adapter "1.3.0"] [ring/ring-json "0.3.1"] ...
(defproject mofficer "1.0-SNAPSHOT" :description "Mofficer (for Mail Officer) is a system that does one thing: send e-mails." :url "https://github.com/granpanda/mofficer" :dependencies [[org.clojure/clojure "1.6.0"] [ring/ring-jetty-adapter "1.3.1"] [ring/ring-json "0.3.1"] ...
Update jetty adapter to its latest version.
Update jetty adapter to its latest version.
Clojure
mit
granpanda/mofficer
e7da7a875fa77bff02b58f558cc90d63cca9e961
project.clj
project.clj
(defproject io.aviso/twixt "0.1.5" :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.6" :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.6
Advance version number to 0.1.6
Clojure
apache-2.0
clyfe/twixt,clyfe/twixt,AvisoNovate/twixt,AvisoNovate/twixt,AvisoNovate/twixt,clyfe/twixt
9ab53c59943096c6a799901eb0d2236d881a9fa7
project.clj
project.clj
(defproject lean-map "0.3.0" :description "Lean Hash Array Mapped Trie implementation in ClojureScript" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :clean-targets ^{:protect false} ["resources/out"] :jvm-opts ^:replace ["-Xms512m" "-Xmx512m" "-server...
(defproject lean-map "0.3.0" :description "Lean Hash Array Mapped Trie implementation in ClojureScript" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :clean-targets ^{:protect false} ["resources/out"] :source-paths ["src/main"] :jvm-opts ^:replace ...
Add in source paths for jar deploys. Oops
Add in source paths for jar deploys. Oops
Clojure
epl-1.0
bendyworks/lean-map,mfikes/lean-map,bendyworks/lean-map,mfikes/lean-map,bendyworks/lean-map
8330a001ae8564a218ec831e8e166718d72082f3
backend/src/uxbox/main.clj
backend/src/uxbox/main.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/. ;; ;; This Source Code Form is "Incompatible With Secondary Licenses", as ;; defined by the Mozilla Public License, v....
;; 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/. ;; ;; This Source Code Form is "Incompatible With Secondary Licenses", as ;; defined by the Mozilla Public License, v....
Add missing require on prod app start.
:bug: Add missing require on prod app start.
Clojure
mpl-2.0
uxbox/uxbox,uxbox/uxbox,uxbox/uxbox
dccda75d6e4a660477be7e67460287c56e8c0d5d
sample-app/project.clj
sample-app/project.clj
(defproject cljs-browser "0.0.1-SNAPSHOT" :description "" :dependencies [[org.clojure/clojure "1.4.0-beta4"] [org.clojure/clojurescript "0.0-993"] [ring "1.0.0-RC1"] [compojure "0.6.4"] [enlive "1.0.0"] [domina "1.0.0-beta1"]] :r...
(defproject cljs-browser "0.0.1-SNAPSHOT" :description "" :dependencies [[org.clojure/clojure "1.4.0-beta4"] [org.clojure/clojurescript "0.0-993"] [ring "1.0.0-RC1"] [compojure "0.6.4"] [enlive "1.0.0"]] :repl-init one.sample.repl :source-path ...
Use Domina as a source dependency in sample app
Use Domina as a source dependency in sample app
Clojure
epl-1.0
stuartsierra/cljs-formatter
055dce98bbd9da83ea82b8dc0d5a5fdcdb8d1240
src/clj/quil_site/core.clj
src/clj/quil_site/core.clj
(ns quil-site.core (:require [compojure.core :refer [defroutes GET]] [compojure.handler :refer [site]] [compojure.route :refer [files]] [ring.util.response :as resp] [ring.middleware.json :as json] [ring.adapter.jetty :refer [run-jetty]] [ring.mi...
(ns quil-site.core (:require [compojure.core :refer [defroutes GET]] [compojure.handler :refer [site]] [compojure.route :refer [files]] [ring.util.response :as resp] [ring.middleware.json :as json] [ring.adapter.jetty :refer [run-jetty]] [ring.mi...
Add ability to run server on custom port.
Add ability to run server on custom port.
Clojure
epl-1.0
quil/quil-site,quil/quil-site
8a8a7f3f0135d7097578686f4bfdb67aeb4be5b4
test/clj/libx/deflogical_test.cljc
test/clj/libx/deflogical_test.cljc
(ns libx.deflogical-test (:require [clojure.test :refer [deftest run-tests is testing]] [libx.tuplerules :refer [deflogical]] [clara.rules :refer [defrule]])) (defn rule-props [expansion] (second (nth expansion 2))) (deftest deflogical-test (testing "Single fact" (is (= ...
(ns libx.deflogical-test (:require [clojure.test :refer [deftest run-tests is testing]] [libx.tuplerules :refer [deflogical]] [clara.rules :refer [defrule]])) (defn rule-props [expansion] (second (nth expansion 2))) ;; Because names for deflogical are generated we skip the part of th...
Update deflogical test for insert multiple facts
Update deflogical test for insert multiple facts
Clojure
mit
CoNarrative/precept,CoNarrative/precept
d62a6922bebaedb752eeca3e9906280c5f659e6f
scripts/figwheel.clj
scripts/figwheel.clj
(require '[figwheel-sidecar.repl :as r] '[figwheel-sidecar.repl-api :as ra] '[cljs.tagged-literals]) (alter-var-root #'cljs.tagged-literals/*cljs-data-readers* assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v))) (ra/start-figwheel! {:figwheel-options {:css-dirs ["resources/public/css"]} ...
(require '[figwheel-sidecar.repl :as r] '[figwheel-sidecar.repl-api :as ra] '[cljs.tagged-literals]) (alter-var-root #'cljs.tagged-literals/*cljs-data-readers* assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v))) (ra/start-figwheel! {:figwheel-options {:css-dirs ["resources/public/css"]} ...
Enable rerendering when new code is loaded.
Enable rerendering when new code is loaded.
Clojure
mpl-2.0
studiospring/uxbox,uxbox/uxbox,studiospring/uxbox,uxbox/uxbox,studiospring/uxbox,uxbox/uxbox
0b8400be04ba3624ed1f424f79477d4fbc88ec92
build.boot
build.boot
(set-env! :dependencies '[[org.clojure/clojure "1.6.0" :scope "provided"] [clj.rb "0.3.0"] [adzerk/bootlaces "0.1.5" :scope "test"]] :resource-paths #{"src"}) (require '[adzerk.bootlaces :refer :all]) (def +version+ "0.3.0") (bootlaces! +version+) (task-options! pom {...
(set-env! :dependencies '[[org.clojure/clojure "1.6.0" :scope "provided"] [clj.rb "0.3.0"] [adzerk/bootlaces "0.1.5" :scope "test"]] :resource-paths #{"src"}) (require '[adzerk.bootlaces :refer :all]) (def +version+ "0.3.0") (bootlaces! +version+) (task-options! pom {...
Update to work with latest boot.
Update to work with latest boot.
Clojure
apache-2.0
tobias/boot-jruby,tobias/boot-jruby
36425841b05d58bad7a7795d2d34140b0d5c413d
project.clj
project.clj
(defproject haystack "0.1.0-SNAPSHOT" :description "ecommerce search service in elasticsearch" :url "http://murphydye.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [clj-http "3.4.1"]...
(defproject haystack "0.1.0-SNAPSHOT" :description "ecommerce search service in elasticsearch" :url "http://murphydye.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [clj-http "3.4.1"]...
Update yada version to overcome filename too long error.
Update yada version to overcome filename too long error.
Clojure
epl-1.0
brianmd/haystack
9b329d97abb7a122149d2754cae6339cb37226b7
project.clj
project.clj
(defproject buddy/buddy-core "0.3.0" :description "Security library for Clojure" :url "https://github.com/funcool/buddy-core" :license {:name "BSD (2-Clause)" :url "http://opensource.org/licenses/BSD-2-Clause"} :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/algo.monads "0...
(defproject buddy/buddy-core "0.4.0-SNAPSHOT" :description "Security library for Clojure" :url "https://github.com/funcool/buddy-core" :license {:name "BSD (2-Clause)" :url "http://opensource.org/licenses/BSD-2-Clause"} :dependencies [[org.clojure/clojure "1.6.0"] [org.clojure/algo....
Set next development version (0.4.0-SNAPSHOT)
Set next development version (0.4.0-SNAPSHOT)
Clojure
apache-2.0
funcool/buddy-core,funcool/buddy-core
c1db3a40227e61afa988c2b0173b72768072b1da
project.clj
project.clj
(defproject doctopus "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [markdown-clj "0.9.63"] ...
(defproject doctopus "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [markdown-clj "0.9.63"] ...
Bring in a shitfuckton of dependencies. In no particular order:
Bring in a shitfuckton of dependencies. In no particular order: * http-kit: our http server. Twice, maybe three times more performant than needed, also lovely to use. * nomad: config library. Reads edn, supports reloading. Rull nice. * timbre: logging. * ring -- core, devel, and defaults: http handler, status, and r...
Clojure
epl-1.0
Gastove/doctopus
2cc4e8ef678e9f7aa31163d9ade3b0ff62321ff9
src/tabswitcher/views.cljs
src/tabswitcher/views.cljs
(ns tabswitcher.views (:require [reagent.core :as r] [keybind :as kb] [re-frame.core :refer [subscribe dispatch]])) (defn query-input [] [:div#query [:input {:type "text" :on-key-up (fn [event] (dispatch [:filter (-...
(ns tabswitcher.views (:require [reagent.core :as r] [keybind :as kb] [re-frame.core :refer [subscribe dispatch]])) (defn query-input [] [:div#query [:input {:type "text" :on-key-press (fn [event] (if (.-altKey event) (.prev...
Allow usage of hotkeys while typing
Allow usage of hotkeys while typing
Clojure
mit
jhchabran/tabswitcher,jhchabran/tabswitcher
676038509dac0ec7df189a9b595e76796706fc72
src/clj_tutorials/main.clj
src/clj_tutorials/main.clj
(ns clj-tutorials.main (:require [compojure.core :refer :all] [compojure.handler :as handler] [org.httpkit.server :refer [run-server]])) (def ongoing-requests (atom 0)) (defn- pong [] (let [ongoing-reqs (swap! ongoing-requests inc) start (System/currentTimeMillis)] (when (= 0 (...
(ns clj-tutorials.main (:require [compojure.core :refer :all] [compojure.handler :as handler] [org.httpkit.server :refer [run-server]]) (:import [java.util.concurrent TimeUnit ScheduledThreadPoolExecutor])) (def ongoing-requests (atom 0)) (defn- pong [] (let [ongoing-reqs (swap! ongoing-...
Implement test server ongoing request reporting by reporting every 50 ms.
Implement test server ongoing request reporting by reporting every 50 ms.
Clojure
epl-1.0
mhjort/clj-tutorials
8977ba0970010c5280e8ca4f9be9839002fdd759
build.boot
build.boot
(set-env! :source-paths #{"src"} :resource-paths #{"resources"} :dependencies '[[org.clojure/clojure "1.7.0"] [prismatic/schema "0.4.3"]]) (require '[net.sekao.nightcode.core :as app]) (task-options! pom {:project 'nightcode :version "1.0.0-SNAPSHOT"} aot {:namespace '#{net.sekao....
(set-env! :source-paths #{"src"} :resource-paths #{"resources"} :dependencies '[[org.clojure/clojure "1.7.0"] [prismatic/schema "0.4.3"]]) (task-options! pom {:project 'nightcode :version "1.0.0-SNAPSHOT"} aot {:namespace '#{net.sekao.nightcode.core}} jar {:main 'net.sekao.nightcod...
Move require to fix compile error
Move require to fix compile error
Clojure
unlicense
oakes/Nightcode,oakes/Nightcode
2fe03df66a4491359bd813d0793615b52d69fbf0
test/clj/comic_reader/database_test.clj
test/clj/comic_reader/database_test.clj
(ns comic-reader.database-test (:require [clojure.test :refer :all] [com.stuartsierra.component :as component] [comic-reader.database :as sut] [datomic.api :as d])) (deftest database-component-test (let [db (sut/new-database)] (is (sut/database? db)) (is (sut/database? (...
(ns comic-reader.database-test (:require [clojure.test :refer :all] [com.stuartsierra.component :as component] [comic-reader.database :as sut] [datomic.api :as d])) (deftest test-database-component (let [db (sut/new-database)] (testing "constructor and start always returns a...
Add descriptions to database tests
Add descriptions to database tests
Clojure
epl-1.0
RadicalZephyr/comic-reader,RadicalZephyr/comic-reader
1004897fd2b6eefbe3d1c8c6cc94712eda05d5d1
src/flare/cljs_test.cljs
src/flare/cljs_test.cljs
(ns flare.cljs-test (:require [flare.report :as report] [flare.diff :as diff] [cljs.test :as ct])) (defn render-diff [m] (try (let [[pred & values] (second (:actual m))] (when (and (= pred '=) (= 2 (count values))) (when-let [diff (apply diff/diff* values)] (prin...
(ns flare.cljs-test (:require [flare.report :as report] [flare.diff :as diff] [cljs.test :as ct])) (defn render-diff [m] (let [[pred & values] (second (:actual m))] (try (when (and (= pred '=) (= 2 (count values))) (when-let [diff (apply diff/diff* values)] (prin...
Fix warning in cljs.tet reporter
Fix warning in cljs.tet reporter
Clojure
epl-1.0
andersfurseth/flare
ed4ad77896a6954ef92c13307f4f4b3d42ba3523
src/cfpb/qu/env.clj
src/cfpb/qu/env.clj
(ns cfpb.qu.env (:require [clojure.string :as str] [clojure.java.io :as io] [environ.core :as environ])) (def default-env {:mongo-host "127.0.0.1" :mongo-port 27017 :mongo-options {:connect-timeout 2000} :statsd-port 8125 :http-ip "127.0.0.1" :http-port 3000 :http-threads ...
(ns cfpb.qu.env (:require [clojure.string :as str] [clojure.java.io :as io] [environ.core :as environ])) (def default-env {:mongo-host "127.0.0.1" :mongo-port 27017 :mongo-options {:connect-timeout 2000} :statsd-port 8125 :http-ip "0.0.0.0" :http-port 3000 :http-threads 4 ...
Change default HTTP_IP to 0.0.0.0
Change default HTTP_IP to 0.0.0.0 This allows us to connect to Qu from anywhere in development.
Clojure
cc0-1.0
qu-platform/qu-core,kave/qu,cndreisbach/qu,cndreisbach/qu,sleitner/qu,m3brown/qu,m3brown/qu,sleitner/qu,marcesher/qu,qu-platform/qu-core,marcesher/qu,kave/qu
966a9e3b59b4c77831c7c63a4eec7eb0affd710a
clj_record/test/serialization_test.clj
clj_record/test/serialization_test.clj
(ns clj-record.test.serialization-test (:require [clj-record.serialization :as serialization] [clj-record.callbacks :as callbacks] [clj-record.callbacks.built-ins :as callb] [clj-record.test.model.manufacturer :as manufacturer] [clj-record.test.model.product :as product]) (:use clojure.contrib.t...
(ns clj-record.test.serialization-test (:require [clj-record.serialization :as serialization] [clj-record.callbacks :as callbacks] [clj-record.callbacks.built-ins :as callb] [clj-record.test.model.manufacturer :as manufacturer] [clj-record.test.model.product :as product]) (:use clojure.contrib.t...
Introduce serialization/serialize-attribute for use in init-model expansion.
Introduce serialization/serialize-attribute for use in init-model expansion.
Clojure
mit
duelinmarkers/clj-record
f8c1b481ea27e64469b5c4cfa6368d139eb34e78
project.clj
project.clj
(defproject incise "0.1.0-SNAPSHOT" :description "A hopefully simplified static site generator in Clojure." :url "https://github.com/RyanMcG/incise" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] ...
(defproject incise "0.1.0-SNAPSHOT" :description "A hopefully simplified static site generator in Clojure." :url "https://github.com/RyanMcG/incise" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] ...
Move upgrade manners to first release.
Move upgrade manners to first release.
Clojure
epl-1.0
RyanMcG/incise-core
6a2bab3f14aa50ece2e91a464fff2f01e690def4
project.clj
project.clj
(defproject buddy/buddy-sign "0.6.0" :description "High level message signing for Clojure" :url "https://github.com/funcool/buddy-sign" :license {:name "Apache 2.0" :url "http://www.apache.org/licenses/LICENSE-2.0"} :dependencies [[org.clojure/clojure "1.6.0" :scope "provided"] [com...
(defproject buddy/buddy-sign "0.6.0" :description "High level message signing for Clojure" :url "https://github.com/funcool/buddy-sign" :license {:name "Apache 2.0" :url "http://www.apache.org/licenses/LICENSE-2.0"} :dependencies [[org.clojure/clojure "1.7.0" :scope "provided"] [com...
Set default clojure version to 1.7.0
Set default clojure version to 1.7.0
Clojure
apache-2.0
funcool/buddy-sign
2aaa2ffafdaefbebd57e7382da4cec77ecb46d61
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.12.1
Update dependency clj-http:clj-http to v3.12.1
Clojure
unlicense
nicokosi/strava-activity-graphs
89ca82106a9a0d10420589bfeb3f0f3270896720
project.clj
project.clj
(defproject onyx-app/lein-template "0.10.0.0-beta8" :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
536e7bd31925a6fc17455fd8ee778f3287d92b2b
project.clj
project.clj
(defproject soy-clj "0.2.10-SNAPSHOT" :description "An idiomatic Clojure wrapper for Google's Closure templating system." :url "https://github.com/codahale/soy-clj" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/core.cache "0.6....
(defproject soy-clj "0.2.10-SNAPSHOT" :description "An idiomatic Clojure wrapper for Google's Closure templating system." :url "https://github.com/codahale/soy-clj" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/core.cache "0.6....
Exclude some of the stranger dependencies.
Exclude some of the stranger dependencies.
Clojure
epl-1.0
codahale/soy-clj,codahale/soy-clj
287c141ca302bf01253036f036d15076e413a9f1
project.clj
project.clj
(defproject pinpointer "0.1.0-SNAPSHOT" :description "Pinpointer makes it easy to grasp which part of data is causing the spec error" :url "https://github.com/athos/Pinpointer" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/cloj...
(defproject pinpointer "0.1.0-SNAPSHOT" :description "Pinpointer makes it easy to grasp which part of data is causing the spec error" :url "https://github.com/athos/Pinpointer" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/cloj...
Add test.check as dev dependency
Add test.check as dev dependency
Clojure
epl-1.0
athos/Pinpointer
9b3ca310a0c1192635e5e101eb70c8f2332d0b4e
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"] ...
(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"] ...
Reformat cljsbuild & fighwheel config and specify more
Reformat cljsbuild & fighwheel config and specify more
Clojure
mit
dgtized/tile-game,dgtized/tile-game
617cb834d0908f108e27a12cb1dd4c5e1742d224
frontend/src-editor/editor/helpers/utils.cljs
frontend/src-editor/editor/helpers/utils.cljs
(ns editor.helpers.utils (:require [om-tools.dom :as dom])) (defn model->json [model] (.stringify js/JSON (clj->js model) nil 2)) (defn json->model [json] (let [obj (.parse js/JSON json)] (js->clj obj :keywordize-keys true))) (defn non-sanitized-div [content] (dom/div {:dangerouslySetInnerHTML #js {:__ht...
(ns editor.helpers.utils) (defn model->json [model] (.stringify js/JSON (clj->js model) nil 2)) (defn json->model [json] (let [obj (.parse js/JSON json)] (js->clj obj :keywordize-keys true)))
Remove unused utility functions in editor
Remove unused utility functions in editor
Clojure
mit
AlexeyMK/faceboard,AlexeyMK/faceboard
d5514ca3f2b3429323e69f5eda1d7048c33a58a8
project.clj
project.clj
(defproject com.lemondronor/turboshrimp-h264j "0.2.0" :description (str "An AR.Drone video deocder for the turboshrimp library " "that uses h264j.") :url "https://github.com/wiseman/turboshrimp-h264j" :license {:name "MIT License" :url "http://opensource.org/licenses/MIT"} :depen...
(defproject com.lemondronor/turboshrimp-h264j "0.2.1-SNAPSHOT" :description (str "An AR.Drone video deocder for the turboshrimp library " "that uses h264j.") :url "https://github.com/wiseman/turboshrimp-h264j" :license {:name "MIT License" :url "http://opensource.org/licenses/MIT"}...
Deploy to clojars by default.
Deploy to clojars by default.
Clojure
mit
wiseman/turboshrimp-h264j
f83762cdb7237d9b8ba36c86698c30215c6238a2
project.clj
project.clj
(defproject simple "0.1.0-SNAPSHOT" :description "A very simple CI server for individual projects." :url "https://github.com/fhofherr/simple" :license {:name "MIT" :url "http://opensource.org/licenses/MIT"} :scm {:name "git" :url "https://github.com/fhofherr/simple"} :dependencies [[org.cl...
(defproject simple "0.1.0-SNAPSHOT" :description "A very simple CI server for individual projects." :url "https://github.com/fhofherr/simple" :license {:name "MIT" :url "http://opensource.org/licenses/MIT"} :scm {:name "git" :url "https://github.com/fhofherr/simple"} :dependencies [[org.cl...
Update and configure codox 0.9.0.
Update and configure codox 0.9.0.
Clojure
mit
fhofherr/simple
e7f0f5bcbeb5ede5ce17a0e96de66eb03beaecd7
project.clj
project.clj
(defproject jungerer "0.1.4" :description "Clojure network/graph library wrapping JUNG" :url "https://github.com/totakke/jungerer" :license {:name "The BSD 3-Clause License" :url "https://opensource.org/licenses/BSD-3-Clause"} :dependencies [[org.clojure/clojure "1.7.0"] [net.sf.jun...
(defproject jungerer "0.2.0-SNAPSHOT" :description "Clojure network/graph library wrapping JUNG" :url "https://github.com/totakke/jungerer" :license {:name "The BSD 3-Clause License" :url "https://opensource.org/licenses/BSD-3-Clause"} :dependencies [[org.clojure/clojure "1.7.0"] [n...
Prepare for next development iteration (0.2.0-SNAPSHOT)
Prepare for next development iteration (0.2.0-SNAPSHOT)
Clojure
bsd-3-clause
totakke/jungerer
6d5ebfaa7b8b5cfa061fb01c4fa3ef7e00e0ffe9
project.clj
project.clj
(defproject ring "1.4.0-beta1" :description "A Clojure web applications library." :url "https://github.com/ring-clojure/ring" :license {:name "The MIT License" :url "http://opensource.org/licenses/MIT"} :dependencies [[org.clojure/clojure "1.5.1"] [ring/ring-core "1.4.0-beta1"] [ring/r...
(defproject ring "1.4.0-beta1" :description "A Clojure web applications library." :url "https://github.com/ring-clojure/ring" :license {:name "The MIT License" :url "http://opensource.org/licenses/MIT"} :dependencies [[org.clojure/clojure "1.5.1"] [ring/ring-core "1.4.0-beta1"] [ring/r...
Update Codox plugin to 0.8.11
Update Codox plugin to 0.8.11
Clojure
mit
ring-clojure/ring,suligap/ring,ring-clojure/ring,ieure/ring,kirasystems/ring,meowcakes/ring,povloid/ring,tchagnon/ring
3ade9c44b848290298a8f536ac5d778c6ee3ea2a
project.clj
project.clj
(defproject cli4clj "1.2.5" ;(defproject cli4clj "1.2.6-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.2.5" (defproject cli4clj "1.2.6-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
d37ba7663416099beef4cc636ad8df06b3d5a1d0
project.clj
project.clj
(defproject mtrx9 "1.1.0" :description "MTRX9 is a 3-dimensional simple monitoring tool using Clojure and Websockets. The live MTRX9 service is provided by mtrx9.com (http://www.mtrx9.com). If you're a tweetling, you might like to follow @mtrx9." :url "http://mtrx9.com" :min-lein-version "2.0.0" :dependencies [...
(defproject mtrx9 "1.2.0" :description "MTRX9 is a 3-dimensional simple monitoring tool using Clojure and Websockets. The live MTRX9 service is provided by mtrx9.com (http://www.mtrx9.com). If you're a tweetling, you might like to follow @mtrx9." :url "http://mtrx9.com" :min-lein-version "2.0.0" :dependencies [...
Bump version to v1.2.0 .
Bump version to v1.2.0 .
Clojure
mit
tiredpixel/mtrx9
c0e42d5e78f35cba67e32a7f44664e027e9bbf38
project.clj
project.clj
(defproject compojure "1.3.4" :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.4" :description "A concise routing library for Ring" :url "https://github.com/weavejester/compojure" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/tools....
Update Clojure 1.7 profile to full release
Update Clojure 1.7 profile to full release
Clojure
epl-1.0
ezy023/compojure,weavejester/compojure,sidcarter/compojure