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 |
|---|---|---|---|---|---|---|---|---|---|
e7adf639a0b4f9c7bc6ba041226ed2af08ef4ef2 | src/main/clojure/telegenic/core.clj | src/main/clojure/telegenic/core.clj | (ns telegenic.core
(:import [org.jcodec.api FrameGrab]))
| (ns telegenic.core
(:import [org.jcodec.api FrameGrab])
(:import [java.io File])
(:import [java.awt.image BufferedImage])
(:import [org.jcodec.common.model Picture])
)
(set! *warn-on-reflection* true)
(set! *unchecked-math* true)
(defprotocol PGetFrame
(get-frame [video frame-number]))
(extend-protocol P... | Work on frame grab code | Work on frame grab code | Clojure | lgpl-2.1 | mikera/telegenic |
854ddf504e57b65bb672258625ad9a4a3f74f8e6 | project.clj | project.clj | (defproject asystant "0.1.1-SNAPSHOT"
:description "A simple, flexible helper for building modular systems with clojure/core.async"
:url "https://github.com/monteithpj/asystant"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clo... | (defproject asystant "0.1.1-SNAPSHOT"
:description "A simple, flexible helper for building modular systems with clojure/core.async"
:url "https://github.com/monteithpj/asystant"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clo... | Move loom dependency to tests | Move loom dependency to tests
| Clojure | epl-1.0 | monteithpj/asystant |
d45b6be846e958c445aef86de9c0514c2f27108b | project.clj | project.clj | (defproject org.onyxplatform/onyx-datomic "0.7.2.0"
: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"}
:dependencies [[org.clojure/clojure "1.7.0"]
^... | (defproject org.onyxplatform/onyx-datomic "0.7.2.0"
: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"}
:dependencies [[org.clojure/clojure "1.7.0"]
^... | Update dependency org.onyxplatform/onyx to version 0.7.3-20150901_142736-gd0de107. | Update dependency org.onyxplatform/onyx to version 0.7.3-20150901_142736-gd0de107.
Automatic commit by lein-unison.
| Clojure | epl-1.0 | onyx-platform/onyx-datomic |
65a79f8dfa2ee365391646aac905d668518c5d3e | project.clj | project.clj | (defproject com.draines/postal "1.12-SNAPSHOT"
:repositories {"java.net" "http://download.java.net/maven/2"}
:dependencies [[commons-codec "1.9"]
[javax.mail/mail "1.4.4"
:exclusions [javax.activation/activation]]]
:profiles {:dev {:dependencies [[org.clojure/clojure "1.5.1"]]}
... | (defproject com.draines/postal "1.12-SNAPSHOT"
:description "JavaMail on Clojure"
:url "https://github.com/drewr/postal"
:license {:name "MIT"
:url "http://en.wikipedia.org/wiki/MIT_License"
:distribution :repo
:comments "Use at your own risk"}
:repositories {"java.net" "http... | Add metadata to appease clojars | Add metadata to appease clojars
Conflicts:
project.clj
| Clojure | mit | drewr/postal,bo-chen/postal |
c164a668494f33e5ab328e327f8be9dc532a6cf2 | project.clj | project.clj | (defproject org.onyxplatform/onyx-datomic "0.7.4"
: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.5-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 |
2ccac6e500cba06f2d9888fda2b8dabb232119ec | project.clj | project.clj | (defproject se.haleby/stub-http "0.2.8"
:description "A client library agonistic way to stub HTTP responses"
:url "https://github.com/johanhaleby/stub-http"
:license {:name "MIT License"
:url "http://www.opensource.org/licenses/mit-license.php"
:distribution :repo}
:lein... | (defproject se.haleby/stub-http "0.2.8"
:description "A client library agonistic way to stub HTTP responses"
:url "https://github.com/johanhaleby/stub-http"
:license {:name "MIT License"
:url "http://www.opensource.org/licenses/mit-license.php"
:distribution :repo}
:lein... | Revert "Trying to add contrib dep to make lein-release work" | Revert "Trying to add contrib dep to make lein-release work"
This reverts commit 73a2a0dfcc2468a48c352c5a1ca4ba4392d96301.
| Clojure | mit | johanhaleby/stub-http |
bbdf568a8f108197a6e2b72237166915b0774bbd | project.clj | project.clj | (defproject cadence "0.2.0-SNAPSHOT"
:description "Use pattern recognition to match users with Cadence.js
output."
:min-lein-version "2.0.0"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.3.0"]
... | (defproject cadence "0.2.0-SNAPSHOT"
:description "Use pattern recognition to match users with Cadence.js
output."
:min-lein-version "2.0.0"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.3.0"]
... | Add clj-ml dependency for patrec. | Add clj-ml dependency for patrec.
| Clojure | epl-1.0 | RyanMcG/Cadence,RyanMcG/Cadence |
ea9cd1643e44c997a2021bdb27f7719948234d3a | src/desdemona/launcher/utils.clj | src/desdemona/launcher/utils.clj | (ns desdemona.launcher.utils
(:require
[clojure.core.async :as a]))
(defn block-forever!
[]
(a/<!! (a/chan)))
| (ns desdemona.launcher.utils
(:require
[clojure.core.async :as a]))
(defn block-forever!
"Blocks forever."
[]
(a/<!! (a/chan)))
| Add a docstring for block-forever! | Add a docstring for block-forever!
| Clojure | epl-1.0 | RackSec/desdemona |
91b6693464de413b2f1e71cad6620c868bc8e223 | modules/clostache/project.clj | modules/clostache/project.clj | ;; Copyright © 2014 JUXT LTD.
(defproject juxt.modular/clostache "0.6.0"
:description "A modular extension that provides a Clostache templater for juxt.modular/template"
:url "https://github.com/juxt/modular/tree/master/modules/clostache"
:license {:name "The MIT License"
:url "http://opensource.org/... | ;; Copyright © 2014 JUXT LTD.
(defproject juxt.modular/clostache "0.6.1"
:description "A modular extension that provides a Clostache templater for juxt.modular/template"
:url "https://github.com/juxt/modular/tree/master/modules/clostache"
:license {:name "The MIT License"
:url "http://opensource.org/... | Update library dependencies and release clostache | Update library dependencies and release clostache
| Clojure | mit | juxt/modular,juxt/modular,pleasetrythisathome/modular,pleasetrythisathome/modular |
acda9f0372a6e8c50ed1f2b8a19b928a435b9345 | src/oc/storage/util/sort.clj | src/oc/storage/util/sort.clj | (ns oc.storage.util.sort)
(defn- activity-sort
"
Compare function to sort 2 entries and/or activity by their `created-at` or `published-at` order respectively,
in the order (:asc or :desc) provided.
"
[order x y]
(let [order-flip (if (= order :desc) -1 1)]
(* order-flip (compare (or (:published-at x) (... | (ns oc.storage.util.sort
(:require [clojure.pprint :as pp]
[clj-time.core :as t]
[clj-time.format :as f]))
(defn- max-comment-timestamp
"Return a map {entry-uuid most-recent-comment-timestap} excluding the user authored comments"
[user-id entry]
(let [all-comments (filterv #(and (:body ... | Sort posts by updated-at or the most recent comment updated-at, return only the first tot posts. | Sort posts by updated-at or the most recent comment updated-at, return only the first tot posts.
| Clojure | agpl-3.0 | open-company/open-company-storage |
60fabcb7b24e9b63dc86132836981d4dc50a4e34 | languages/clojure/lein/profiles.clj | languages/clojure/lein/profiles.clj | {:user {:plugins [[lein-marginalia "0.7.1"]
[cider/cider-nrepl "0.7.0-SNAPSHOT"]
[lein-try "0.4.1"]
[lein-clojars "0.9.1"]
[lein-ancient "0.5.5"]
[lein-pprint "1.1.1"]]
:dependencies [[com.gfredericks/clj-usage-graph "0.1... | {:user {:plugins [[lein-marginalia "0.7.1"]
[cider/cider-nrepl "0.7.0-SNAPSHOT"]
[lein-try "0.4.1"]
[lein-clojars "0.9.1"]
[lein-ancient "0.5.5"]
[lein-exec "0.3.4"]
[lein-pprint "1.1.1"]]
:dependencies ... | Add more stuff to my .lein. | Add more stuff to my .lein.
| Clojure | mit | ltw/dotfiles,ltw/dotfiles |
e9a5f56c984775634eebad2b8b779f639ae8f574 | src/cljs/app/analysis.cljs | src/cljs/app/analysis.cljs | (ns app.analysis
"GitHub releases URL analysis"
(:require
[taoensso.timbre :as timbre :refer-macros [info]]))
(defn get-os
[url]
(cond
(boolean (re-find #"windows" url)) "Windows"
(boolean (re-find #"linux" url)) "Linux"
(boolean (re-find #".dmg" url)) "Mac OS X"
:else "Other"))
(defn get-... | (ns app.analysis
"GitHub releases URL analysis"
(:require
[taoensso.timbre :as timbre :refer-macros [info]]))
(defn get-os
[url]
(cond
(boolean (re-find #"windows" url)) "Windows"
(boolean (re-find #"linux" url)) "Linux"
(boolean (re-find #"mac|.dmg" url)) "Mac OS X"
:else "Other"))
(defn ... | Update Mac file name possibilities | Update Mac file name possibilities
| Clojure | mit | adolby/AndrewDolby.com,adolby/AndrewDolby.com |
17107870c1a248a4c295be3ce17060f54dfdf3e8 | clojure/profiles.clj | clojure/profiles.clj | ;; See: https://github.com/kumarshantanu/lein-localrepo
{:user {:plugins [;; Try new api quickly using the repl
[lein-try "0.4.3"]
;;[lein-localrepo "0.5.4"]
;; Convert pom.xml to project.clj
;; Note: from https://github.com/thickey/lein-nevam
... | ;; See: https://github.com/kumarshantanu/lein-localrepo
{:user {:plugins [;; Try new api quickly using the repl
[lein-try "0.4.3"]
;;[lein-localrepo "0.5.4"]
;; Convert pom.xml to project.clj
;; Note: from https://github.com/thickey/lein-nevam
... | Add more setup for alembic | Add more setup for alembic
| Clojure | mit | agilecreativity/dotfiles,agilecreativity/dotfiles,agilecreativity/dotfiles |
84a464c22451c2849ac77adefcba4d7001f3fb22 | src/icecap/handlers/delay.clj | src/icecap/handlers/delay.clj | (ns icecap.handlers.delay
(:require [clojure.core.async :refer [timeout]]
[icecap.handlers.core :refer [defstep]]
[schema.core :as sc]))
(defstep :delay
{:amount (sc/both sc/Int (sc/pred #(< 0 % 60)'(< 0 delay 60)))}
[step]
(timeout (:amount step)))
| (ns icecap.handlers.delay
(:require [clojure.core.async :refer [timeout]]
[icecap.handlers.core :refer [defstep]]
[schema.core :as sc]))
(defstep :delay
{:amount (sc/conditional #(< 0 % 60) sc/Int)}
[step]
(timeout (:amount step)))
| Use conditional instead of both | Use conditional instead of both
| Clojure | epl-1.0 | lvh/icecap |
654e6aca6c7d32c6af1e54d8778364c80cf88a18 | src/cljs/mathom/toolbar.cljs | src/cljs/mathom/toolbar.cljs |
(ns mathom.toolbar)
(def tool (atom {}))
(defn clean
[]
(let [prev (.getElementById js/document "mathom_toolbar")]
(if (not (nil? prev))
(.remove prev))))
(defn set-content
[content]
(set! (.-innerHTML (:bar @tool)) content))
(def content "
<div><h1>Mithril ClojureScript Toolbar</h1>
<div>
<butto... |
(ns mathom.toolbar)
(def tool (atom {}))
(defn clean
[]
(let [prev (.getElementById js/document "mathom_toolbar")]
(if (not (nil? prev))
(.remove prev))))
(defn set-content
[content]
(set! (.-innerHTML (:bar @tool)) content))
(def content "
<div><h1>Mithril ClojureScript Toolbar</h1>
<div>
<butto... | Add simple Cljs to HTML helpers | Add simple Cljs to HTML helpers
| Clojure | mpl-2.0 | jussiarpalahti/mathom,jussiarpalahti/mathom |
7c7578ced97ee55d9731638c7dd79693119bc727 | integration-tests/apps/no-clojure-jar/test/no_clojure_jar/tests.clj | integration-tests/apps/no-clojure-jar/test/no_clojure_jar/tests.clj | ;; Copyright 2008-2014 Red Hat, Inc, and individual contributors.
;;
;; This is free software; you can redistribute it and/or modify it
;; under the terms of the GNU Lesser General Public License as
;; published by the Free Software Foundation; either version 2.1 of
;; the License, or (at your option) any later versio... | ;; Copyright 2008-2014 Red Hat, Inc, and individual contributors.
;;
;; This is free software; you can redistribute it and/or modify it
;; under the terms of the GNU Lesser General Public License as
;; published by the Free Software Foundation; either version 2.1 of
;; the License, or (at your option) any later versio... | Test for the correct clojure version. | Test for the correct clojure version.
| Clojure | apache-2.0 | kbaribeau/immutant,kbaribeau/immutant,kbaribeau/immutant,immutant/immutant,immutant/immutant,coopsource/immutant,coopsource/immutant,immutant/immutant,immutant/immutant,coopsource/immutant |
9ff4205aac5fec6cdb525a6a6fcd096fb402b167 | src/webdev/core.clj | src/webdev/core.clj | (ns webdev.core
(:use [org.httpkit.server :only [run-server]])
(:require [webdev.item.migration :as migration]
[webdev.item.routes :refer [item-routes]]
[webdev.common.routes :refer [common-routes]]
[webdev.common.middleware :refer [wrap-db
... | (ns webdev.core
(:require [webdev.item.migration :as migration]
[webdev.item.routes :refer [item-routes]]
[webdev.common.routes :refer [common-routes]]
[webdev.common.middleware :refer [wrap-db
wrap-simulated-methods]])
(:require [org... | Use threading macro for app setup. | Use threading macro for app setup.
| Clojure | epl-1.0 | bnadlerjr/cljspike |
9b9d96806cca9dad917d37a6bc4aea0f1f20d9e8 | streamparse/bootstrap/project/project.jinja2.clj | streamparse/bootstrap/project/project.jinja2.clj | (defproject {{ project_name }} "0.0.1-SNAPSHOT"
:source-paths ["topologies"]
:resource-paths ["_resources"]
:aot :all
:target-path "_build"
:min-lein-version "2.0.0"
:dependencies [[org.apache.storm/storm-core "0.9.1-incubating"]
[com.parsely/streamparse "0.0.1-SNAPSHOT"]
[... | (defproject {{ project_name }} "0.0.1-SNAPSHOT"
:source-paths ["topologies"]
:resource-paths ["_resources"]
:aot :all
:target-path "_build"
:min-lein-version "2.0.0"
:jvm-opts ["-client"]
:dependencies [[org.apache.storm/storm-core "0.9.1-incubating"]
[com.parsely/streamparse "0.0.1-SNAPS... | Add "-client" to JVM opts for quickstart projects. | Add "-client" to JVM opts for quickstart projects.
| Clojure | apache-2.0 | petchat/streamparse,petchat/streamparse,hodgesds/streamparse,codywilbourn/streamparse,petchat/streamparse,scrapinghub/streamparse,msmakhlouf/streamparse,petchat/streamparse,scrapinghub/streamparse,Parsely/streamparse,crohling/streamparse,scrapinghub/streamparse,scrapinghub/streamparse,msmakhlouf/streamparse,Parsely/str... |
ca25a5beba59860736c520c5ec2a616d357d5266 | src/little_clojurer/chapter5.clj | src/little_clojurer/chapter5.clj | (ns little-clojurer.chapter5
(:require [little-clojurer.chapter4 :refer :all]))
(defn rember*
[a l]
nil)
(defn insertR*
[new old l]
nil)
(defn occur*
[a l]
nil)
(defn subst*
[new old l]
nil)
(defn insertL*
[new old l]
nil)
(defn member*
[a l]
nil)
(defn leftmost
[l]
nil)
| (ns little-clojurer.chapter5
(:require [little-clojurer.chapter4 :refer :all]))
(defn rember*
"find all occurrances of a in l deeply recursively and remove them"
[a l]
nil)
(defn insertR*
"find all occurrances of old in l deeply recursively and append new to the right of the occurrances"
[new old l]
n... | Add docstrings to chapter 5 stubs. | Add docstrings to chapter 5 stubs.
| Clojure | mit | optimizely/little-clojurer-public |
ac358302ec0a558c8992ea7402592ead862c9722 | src/reabledit/components.cljs | src/reabledit/components.cljs | (ns reabledit.components
(:require [reabledit.util :as util]))
(defn data-table-cell-input
[columns data nth-row nth-col state]
(let [k (:key (nth columns nth-col))]
[:input {:type "text"
:auto-focus true
:value (get (get-in @state [:edit :updated]) k)
:on-change #(swap... | (ns reabledit.components
(:require [reabledit.util :as util]
[reagent.core :as reagent]))
(defn data-table-cell-input
[cursor]
[:input {:type "text"
:auto-focus true
:value @cursor
:on-change #(reset! cursor (-> % .-target .-value))}])
(defn data-table-cell
[column... | Simplify arguments the editing component gets from the cell component | Simplify arguments the editing component gets from the cell component
| Clojure | epl-1.0 | MattiNieminen/reabledit |
dd0b70235bc247077ee13e30cddb2d7ed3cb6d54 | src/main/resources/archetype-resources/src/main/clojure/interop/Sample.clj | src/main/resources/archetype-resources/src/main/clojure/interop/Sample.clj | (ns interop.Sample
(:gen-class))
(defn -main []
(throw (UnsupportedOperationException. "Not yet implemented"))) | (ns interop.Sample
(:gen-class))
(defn -main [& _]
(throw (UnsupportedOperationException. "Not yet implemented"))) | Fix arity of interop call | Fix arity of interop call
| Clojure | mit | skuro/clojure-maven-archetype |
34c6cdcd333ba895123e9b71b54ae07498f1a4cf | src/leiningen/pallet_release.clj | src/leiningen/pallet_release.clj | (ns leiningen.pallet-release
"Pallet release commands to support the PalletOps release workflow."
(:require
[leiningen.pallet-release.core :refer [fail]]
[leiningen.pallet-release.release :as release]
[leiningen.pallet-release.travis :as travis]))
(defn pallet-release
"Pallet release commands to support... | (ns leiningen.pallet-release
"Pallet release commands to support the PalletOps release workflow."
(:require
[leiningen.pallet-release.core :refer [fail]]
[leiningen.pallet-release.release :as release]
[leiningen.pallet-release.travis :as travis]))
(defn pallet-release
"Pallet release commands to support... | Fix list of known commands in help message | Fix list of known commands in help message
| Clojure | epl-1.0 | palletops/lein-pallet-release |
158585e071bbdef3f978db5f3a600919cc261910 | src/onyx/types.clj | src/onyx/types.clj | (ns onyx.types)
<<<<<<< HEAD
(defrecord Message [id payload])
(defrecord Leaf [message id acker-id completion-id ack-val hash-group route])
=======
(defrecord Leaf [message id acker-id completion-id ack-val ack-vals route routes hash-group])
(defn leaf
([message]
(->Leaf message nil nil nil nil nil nil nil ... | (ns onyx.types)
(defrecord Leaf [message id acker-id completion-id ack-val hash-group route])
(defrecord Route [flow exclusions post-transformation action])
(defrecord Ack [id completion-id ack-val timestamp])
(defrecord Results [tree acks segments])
(defrecord Result [root leaves])
(defrecord Link [link timestam... | Fix merge issue in last commit. | Fix merge issue in last commit.
| Clojure | epl-1.0 | ideal-knee/onyx,dignati/onyx,iperdomo/onyx,onyx-platform/onyx,Deraen/onyx,vijaykiran/onyx,KevinGreene/onyx,mccraigmccraig/onyx |
fd010012150259bb36e73ba10e3f3d909e01e5e8 | test/icecap/schema_test.clj | test/icecap/schema_test.clj | (ns icecap.schema-test
(:require [icecap.schema :refer :all]
[clojure.test :refer :all]
[schema.core :as s]))
(def simple-http-request {:target "http://example.test"})
(def simple-https-request {:target "https://example.test"})
(def simple-ftp-request {:target "ftp://example.test"})
(deftest... | (ns icecap.schema-test
(:require [icecap.schema :refer :all]
[clojure.test :refer :all]
[schema.core :as s]))
(def simple-http-request {:target "http://example.test"})
(def simple-https-request {:target "https://example.test"})
(def simple-ftp-request {:target "ftp://example.test"})
(deftest... | Test allegedly better error reporting | Test allegedly better error reporting
Refs #1.
| Clojure | epl-1.0 | Hatnik/icecap,lvh/icecap |
d2574c9015e872246a6f7816d44fa1718585fd2e | src/lcmap/clownfish/system.clj | src/lcmap/clownfish/system.clj | (ns lcmap.clownfish.system
(:require [again.core :as again]
[clojure.tools.logging :as log]
;; requiring this ensures the server component will start
[lcmap.clownfish.server :as server]
[lcmap.clownfish.setup.cassandra]
[lcmap.clownfish.setup.rabbitmq]
... | (ns lcmap.clownfish.system
(:require [again.core :as again]
[clojure.tools.logging :as log]
;; requiring this ensures the server component will start
[lcmap.clownfish.server :as server]
[lcmap.clownfish.setup.cassandra]
[lcmap.clownfish.setup.rabbitmq]
... | Fix stack overflow during startup | Fix stack overflow during startup | Clojure | unlicense | USGS-EROS/lcmap-changes,USGS-EROS/lcmap-changes,USGS-EROS/lcmap-changes,USGS-EROS/lcmap-changes |
df65eb388c5d346d0951c7938070d25641290c7a | example/src/de/otto/tesla/example/example_system.clj | example/src/de/otto/tesla/example/example_system.clj | (ns de.otto.tesla.example.example-system
(:require [de.otto.tesla.system :as system]
[de.otto.tesla.example.calculating :as calculating]
[de.otto.tesla.example.example-page :as example-page]
[com.stuartsierra.component :as c])
(:gen-class))
(defn example-calculation-function [in... | (ns de.otto.tesla.example.example-system
(:require [de.otto.tesla.system :as system]
[de.otto.tesla.example.calculating :as calculating]
[de.otto.tesla.example.example-page :as example-page]
[com.stuartsierra.component :as c])
(:gen-class))
(defn example-calculation-function [in... | Make sure page component is started before server | Example: Make sure page component is started before server
In the system definition from the example code, an explicit dependency
from the :server component to the :example-page component is introduced
to make sure the routes for example-page are registered before the
server is started.
| Clojure | apache-2.0 | gorillalabs/tesla |
3a31abac5a46e30c7f4e972d975e9f1da9bcba95 | src/uxbox/locales.cljs | src/uxbox/locales.cljs | (ns uxbox.locales
"A i18n foundation."
(:require [hodgepodge.core :refer [local-storage]]
[cuerdas.core :as str]
[uxbox.locales.en :as locales-en]))
(defonce +locales+
{:en locales-en/+locales+})
(defonce +locale+
(get local-storage ::locale :en))
(deftype C [val]
IDeref
(-deref [... | (ns uxbox.locales
"A i18n foundation."
(:require [hodgepodge.core :refer [local-storage]]
[cuerdas.core :as str]
[uxbox.locales.en :as locales-en]))
(defonce +locales+
{:en locales-en/+locales+})
(defonce +locale+
(get local-storage ::locale :en))
(deftype C [val]
IDeref
(-deref [... | Support 0, 1 or more in plural translations | Support 0, 1 or more in plural translations
| Clojure | mpl-2.0 | studiospring/uxbox,uxbox/uxbox,uxbox/uxbox,uxbox/uxbox,studiospring/uxbox,studiospring/uxbox |
8b9835fd4f927bdc7149a0b00ee94eb8fc2cc228 | project.clj | project.clj | (defproject shurly "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://shurly.herokuapp.com"
:license {:name "FIXME: choose"
:url "http://example.com/FIXME"}
:dependencies [[org.clojure/clojure "1.6.0"]
[compojure "1.1.8"]
[ring/ring-jetty-adapter ... | (defproject shurly "1.0.0-SNAPSHOT"
:description "A URL shortener"
:url "http://shurly.herokuapp.com"
:dependencies [[org.clojure/clojure "1.6.0"]
[compojure "1.1.8"]
[ring/ring-jetty-adapter "1.2.2"]
[ring/ring-devel "1.2.2"]
[environ "0.5.0"]]
... | Remove useless stuff and set ring handler | Remove useless stuff and set ring handler
| Clojure | epl-1.0 | kthelgason/shurly |
41fbf9d961914a270f5c7ed595436fc1a1c2c4c6 | project.clj | project.clj | (defproject nasa-cmr/cmr-system-trace-lib "0.1.0-SNAPSHOT"
:description "Provides library functions for tracing requests throughout the CMR system. Built on
Twitter Zipkin and clj-zipkin."
:url "***REMOVED***projects/CMR/repos/cmr-system-trace-lib/browse"
:dependencies [[org.clojure/clojure "1.6.0"... | (defproject nasa-cmr/cmr-system-trace-lib "0.1.0-SNAPSHOT"
:description "Provides library functions for tracing requests throughout the CMR system. Built on
Twitter Zipkin and clj-zipkin."
:url "***REMOVED***projects/CMR/repos/cmr-system-trace-lib/browse"
:dependencies [[org.clojure/clojure "1.6.0"... | Move clj-time dependency to cmr-common-lib | Move clj-time dependency to cmr-common-lib
| Clojure | apache-2.0 | nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,nasa/Common-Meta... |
c2d691516dc67ee6b3163cbeb7c7d92ffa31f8a0 | 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.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"]
... | Update pretty dependency to 0.1.6 | Update pretty dependency to 0.1.6
| Clojure | apache-2.0 | clyfe/twixt,AvisoNovate/twixt,AvisoNovate/twixt,clyfe/twixt,clyfe/twixt,AvisoNovate/twixt |
328f0b1a645f91273be0fcd20291aec12a9c2482 | src/leiningen/clean_tokyo.clj | src/leiningen/clean_tokyo.clj | (ns leiningen.clean-tokyo
(:use [clojure.java.shell :only [sh]]
[clojure.java.io :only [file]]))
(defn clean [srcdir]
(when (.exists (file srcdir "Makefile"))
(println (:out (sh "make" "distclean" :dir (file srcdir))))))
(defn clean-tokyo []
(clean (file "src/tokyocabinet"))
(clean (file "src/toky... | (ns leiningen.clean-tokyo
(:use [clojure.java.io :only [file]])
(:require [conch.core :as sh]))
(defn clean [srcdir]
(when (.exists (file srcdir "Makefile"))
(sh/stream-to-out (sh/proc "make" "distclean" :dir (file srcdir)) :out)))
(defn clean-tokyo []
(clean (file "src/tokyocabinet"))
(clean (file "src... | Make clean-tokyo task also use conch. | Make clean-tokyo task also use conch.
| Clojure | lgpl-2.1 | ninjudd/tokyocabinet,ninjudd/tokyocabinet,ninjudd/tokyocabinet,ninjudd/tokyocabinet,ninjudd/tokyocabinet,ninjudd/tokyocabinet,ninjudd/tokyocabinet |
1841ddf49881279fe10e340bc3fbf417bded3c4d | test/jest/arithmetic_test.clj | test/jest/arithmetic_test.clj | (ns jest.arithmetic-test
(:require [clojure.test :refer :all]
[jest.utils :refer :all]
:verbose))
(deftest product-test-1
(test-code
"val x = 1 * 2;"
["(def x (* 1 2))"]))
(deftest product-test-2
(test-code
"val x = 1 * 2 * 3;"
["(def x (* (* 1 2) 3))"]))
(deftest quotent-te... | (ns jest.arithmetic-test
(:require [clojure.test :refer :all]
[jest.utils :refer :all]
:verbose))
(deftest sum-test-1
(test-code
"val x = 1 + 2;"
["(def x (+ 1 2))"]))
(deftest sum-test-2
(test-code
"val x = 1 + 2 + 3;"
["(def x (+ (+ 1 2) 3))"]))
(deftest product-test-1
... | Add sum and diff tests | Add sum and diff tests
| Clojure | mit | ghl3/Jest,ghl3/Jest |
9d775ef7f0ee39929255141782d6b0129221f828 | src/clojure/buddy/crypto/keys.clj | src/clojure/buddy/crypto/keys.clj | (ns buddy.crypto.keys
(:import java.security.Key))
(defn make-secret-key
"Generates a Key instance from given raw string key."
[^String skey]
(let [rawkey (.getBytes skey "UTF-8")]
(proxy [Key] []
(getFormat [] nil)
(getEncoded [] rawkey)
(toString [] skey))))
| (ns buddy.crypto.keys
(:require [buddy.crypto.core :refer [str->bytes]])
(:import java.security.Key))
(defn make-secret-key
"Generates a Key instance from given raw string key."
[^String skey]
(let [rawkey (str->bytes skey)]
(proxy [Key] []
(getFormat [] nil)
(getEncoded [] rawkey)
(toS... | Use byddy.crypto utils function for get a byte array from string on make-secret-key function. | Use byddy.crypto utils function for get a byte array from string on make-secret-key function.
| Clojure | apache-2.0 | funcool/buddy |
2ed3b9401ae21fe092e2e5cfd8d9d2d39b495b55 | src/reabledit/cells/read_only.cljs | src/reabledit/cells/read_only.cljs | (ns reabledit.cells.read-only
(:require [reabledit.util :as util]))
(defn read-only-cell
[{:keys [row-data column-key]}]
(let [v (get row-data column-key)]
[:div.reabledit-read-only-cell
{:title v}
[:input.reabledit-read-only-cell__input.reabledit-focused
{:type "text"
:value ""
... | (ns reabledit.cells.read-only
(:require [reabledit.util :as util]))
(defn read-only-cell
[{:keys [row-data column-key]}]
(let [v (get row-data column-key)]
[:div.reabledit-read-only-cell
{:title v}
[:input.reabledit-read-only-cell__input.reabledit-focused
{:type "text"
:value ""
... | Add cut handler to read-only cell | Add cut handler to read-only cell
| Clojure | epl-1.0 | MattiNieminen/reabledit |
a76298762bac14315f8fc0612afc62c3f652df41 | src/silly_image_store/handler.clj | src/silly_image_store/handler.clj | (ns silly-image-store.handler
(:require [silly-image-store.store :as store]
[environ.core :refer [env]]
[compojure.core :refer :all]
[ring.middleware.json :refer :all]
[compojure.handler :as handler]
[compojure.route :as route]))
(def images-dir
(env :ba... | (ns silly-image-store.handler
(:require [silly-image-store.store :as store]
[environ.core :refer [env]]
[compojure.core :refer :all]
[ring.middleware.json :refer :all]
[compojure.handler :as handler]
[compojure.route :as route]))
(def images-dir
(env :ba... | Replace fake json route by /images route | Replace fake json route by /images route
| Clojure | epl-1.0 | phss/silly-image-store |
d3b4cb06244e64b5f76662c7c5a249a4181164f7 | src/desdemona/query.clj | src/desdemona/query.clj | (ns desdemona.query
(:require [clojure.core.logic :as l]))
(defn ^:private gen-query
[n-answers query events]
`(l/run ~n-answers [results#]
(l/fresh [~'x]
(l/membero ~'x results#)
(l/everyg #(l/membero % results#) ~events)
~query)))
(defn run-query
([query events]
(run-query 1 que... | (ns desdemona.query
(:require [clojure.core.logic :as l]))
(defn ^:private gen-query
[n-answers query events]
`(l/run ~n-answers [results#]
(l/fresh [~'x]
(l/everyg #(l/membero % results#) ~events)
(l/== [~'x] results#)
~query)))
(defn run-query
([query events]
(run-query 1 query ... | Use unification to constrain results | Use unification to constrain results
| Clojure | epl-1.0 | RackSec/desdemona |
46a6b70dc7ebec7b253f1d707f21f2c8d19dde97 | clojuresque-runtime/src/main/resources/clojuresque/tasks/repl.clj | clojuresque-runtime/src/main/resources/clojuresque/tasks/repl.clj | (ns clojuresque.tasks.repl
(:require
[clojuresque.cli :as cli]
[clojuresque.util :as util]
[clojure.tools.nrepl.server :as repl]))
(def barrier (promise))
(def server nil)
(cli/deftask start-repl
"Start a nrepl server on the given port. An optional handler
may be given as fully-qualified symbol. The... | (ns clojuresque.tasks.repl
(:require
[clojuresque.cli :as cli]
[clojuresque.util :as util]
[clojure.tools.nrepl.server :as repl]))
(def barrier (promise))
(def server nil)
(cli/deftask start-repl
"Start a nrepl server on the given port. An optional handler
may be given as fully-qualified symbol. The... | Add workaround to fix ClojureScript | Add workaround to fix ClojureScript
| Clojure | mit | clojuresque/base |
35f413c299b39d83a1dc287850b09cb2aec89548 | src/cljs/cglossa/core.cljs | src/cljs/cglossa/core.cljs | (ns cglossa.core
(:require [reagent.core :as reagent :refer [atom]]
[plumbing.core :as plumbing :refer [map-vals]]
[cglossa.centre :as centre]))
(def state {:showing-results false})
; avoid "not resolved" messages in Cursive
(declare getElementById)
(def data {:categories ["ku" "hest"]
... | (ns cglossa.core
(:require [reagent.core :as reagent :refer [atom]]
[plumbing.core :as plumbing :refer [map-vals]]
[cglossa.centre :as centre]))
; avoid "not resolved" messages in Cursive
(declare getElementById)
(def state {:showing-results? false
:showing-sidebar? false})
(def... | Use some more authentic test data | Use some more authentic test data
| Clojure | mit | textlab/glossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/glossa |
044e70f8dea956f7bf6a3c0ab07ca4dc6903418f | src/clj/comic_reader/scrape.clj | src/clj/comic_reader/scrape.clj | (ns comic-reader.scrape
(:require [clojure.string :as s]
[net.cgrand.enlive-html :as html])
(:import java.net.URL))
(defn fetch-feed [url]
(html/xml-resource (java.net.URL. url)))
(defn fetch-url [url]
(html/html-resource (java.net.URL. url)))
(defn fetch-list [{:keys [url selector normalize]}]
... | (ns comic-reader.scrape
(:require [clojure.string :as s]
[net.cgrand.enlive-html :as html])
(:import java.net.URL))
(defn fetch-feed [url]
(html/xml-resource (java.net.URL. url)))
(defn fetch-url [url]
(html/html-resource (java.net.URL. url)))
(defn fetch-list [{:keys [url selector normalize]}]
... | Add function for getting a hiccup image tag | Add function for getting a hiccup image tag
| Clojure | epl-1.0 | RadicalZephyr/comic-reader,RadicalZephyr/comic-reader |
5f998678d32ff40faa7dbd31af50f1354a5895b0 | src/clj/my_money/routes/upload.clj | src/clj/my_money/routes/upload.clj | (ns my-money.routes.upload
(:require [my-money.op-csv :refer :all]
[compojure.core :refer [defroutes POST]]
[ring.util.http-response :as response]))
(defroutes upload-routes
(POST "/upload" [file]
(let [data (read-csv (slurp (:tempfile file)))]
(-> (response/ok (-> data
... | (ns my-money.routes.upload
(:require [my-money.op-csv :refer :all]
[compojure.core :refer [defroutes POST]]
[ring.util.http-response :as response]))
(defroutes upload-routes
(POST "/upload" [file]
(let [data (read-csv (slurp (:tempfile file) :encoding "ISO-8859-1"))]
(-> (response... | Fix character encodings for the data read from the csv. Remove columns from the response. | Fix character encodings for the data read from the csv. Remove columns from the response.
| Clojure | mit | Juholei/my-money,Juholei/my-money |
5cd21a1f554fd8b85b4181e9b8177edc25647ba1 | src/theatralia/welcome_page.clj | src/theatralia/welcome_page.clj | (ns theatralia.welcome-page
(:require [net.cgrand.enlive-html :as html]
[garden.core :refer [css]]
[clojure.java.io :as io]))
;;; Credits:
;;; - https://github.com/cgrand/enlive
;;; - https://github.com/swannodette/enlive-tutorial/
;;; - http://clojurewebdev.com/workshop/slides/
(def ^:pri... | (ns theatralia.welcome-page
(:require [net.cgrand.enlive-html :as html]
[garden.core :refer [css]]
[clojure.java.io :as io]))
;;; Credits:
;;; - https://github.com/cgrand/enlive
;;; - https://github.com/swannodette/enlive-tutorial/
;;; - http://clojurewebdev.com/workshop/slides/
(def ^:pri... | Adjust the deftemplates and defsnippets | Adjust the deftemplates and defsnippets
In bc87d96 I had made an adjustment to the HTML. Change the Enlive code
to take advantage of that. That means putting the login form into the
right column and the main text in the middle.
| Clojure | mit | u-o/theatralia,rmoehn/theatralia |
c78a115c615db976f55bb6f3924e8f00716ec15d | src/oc/storage/lib/email.clj | src/oc/storage/lib/email.clj | (ns oc.storage.lib.email
(:require [amazonica.aws.sqs :as sqs]
[taoensso.timbre :as timbre]
[schema.core :as schema]
[oc.storage.config :as config]
[oc.storage.resources.common :as common-res]))
(def EmailTrigger
{:to [schema/Str]
:subject schema/Str
:note sche... | (ns oc.storage.lib.email
(:require [amazonica.aws.sqs :as sqs]
[taoensso.timbre :as timbre]
[schema.core :as schema]
[oc.storage.config :as config]
[oc.storage.resources.common :as common-res]))
(def EmailTrigger
{:to [schema/Str]
:subject schema/Str
:note sche... | Add some missing update props to the update SQS trigger. | Add some missing update props to the update SQS trigger.
| Clojure | agpl-3.0 | open-company/open-company-storage |
ee8395b757f7f30d2967eff1699a542dd4e72fb0 | fizzbuzz/clojure/fizzbuzz/test/fizzbuzz/core_test.clj | fizzbuzz/clojure/fizzbuzz/test/fizzbuzz/core_test.clj | (ns fizzbuzz.core-test
(:require [clojure.test :refer :all]
[fizzbuzz.core :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
| (ns fizzbuzz.core-test
(:require [clojure.test :refer :all]
[fizzbuzz.core :refer :all]))
(deftest fizzbuzz-val-test
(testing "Returns fizz for multiple of 3"
(is (= "fizz" (fizzbuzz-val 9))))
(testing "Returns buzz for multiple of 5"
(is (= "buzz" (fizzbuzz-val 10))))
(testing "Returns fiz... | Update the clojure fizzbuzz tests. | Update the clojure fizzbuzz tests.
| Clojure | mit | jbranchaud/hello-world,jbranchaud/hello-world,jbranchaud/hello-world,jbranchaud/hello-world,jbranchaud/hello-world,jbranchaud/hello-world |
303c6f1912f7977a467c6c4defee700876751ad2 | project.clj | project.clj | (defproject io.aviso/tracker "0.1.0"
:description "Track per-thread operations when exceptions occur"
:url "https://github.com/AvisoNovate/tracker"
: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/tracker "0.1.1"
:description "Track per-thread operations when exceptions occur"
:url "https://github.com/AvisoNovate/tracker"
: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.1 | Advance version number to 0.1.1
| Clojure | apache-2.0 | AvisoNovate/tracker |
5ca78f3880e45cd83564ae004d1e3a35613a3c76 | project.clj | project.clj | (def project-version "0.1.0-SNAPSHOT")
(defproject whitman project-version
:description "Samples web APIs for fun and profit"
:url "https://github.com/mdippery/whitman"
:license {:name "3-Clause BSD"
:url "http://opensource.org/licenses/BSD-3-Clause"}
:dependencies [[org.clojure/clojure "1.6.0"]
... | (def project-version "0.1.0-SNAPSHOT")
(defproject whitman project-version
:description "Samples web APIs for fun and profit"
:url "https://github.com/mdippery/whitman"
:license {:name "3-Clause BSD"
:url "http://opensource.org/licenses/BSD-3-Clause"}
:dependencies [[org.clojure/clojure "1.6.0"]
... | Include monger 2.0.0 as a dependency | Include monger 2.0.0 as a dependency
| Clojure | bsd-3-clause | mdippery/whitman |
7fcb972100376900c7ad999d32e16ce0072ba181 | src/emulator_4917/core.cljc | src/emulator_4917/core.cljc | (ns emulator-4917.core)
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
| (ns emulator-4917.core
(:require #?(:cljs [cljs.nodejs :as nodejs])
#?(:cljs [goog.crypt :as gcrypt])
[clojure.string :as str]))
;; enable *print-fn* in clojurescript
#?(:cljs (enable-console-print!))
(defn to-4bit-array
"Convert 0xf4 to [f 4]"
[s]
(let [h (bit-shift-right s 4) ;; 0xf4... | Implement binary reader for clj/cljs | Implement binary reader for clj/cljs
The funtion parse-rom will read from binary and convert it to 4-bit
array.
For example, the binary form is
(79 FB 68 05 F2 00 00 05)
the parse-rom will convert it to
(7 9 7 11 6 8 0 5 7 2 0 0 0 0 0 5)
Signed-off-by: Yen-Chin Lee <082d453d72dce940e12089a4ad48b97cfe1f3ec4@gmai... | Clojure | epl-1.0 | coldnew/emulator-4917 |
07877f8e95e35b974762535c8eb38f6a94a95fd2 | src/cljs/comic_reader/api.cljs | src/cljs/comic_reader/api.cljs | (ns comic-reader.api
(:require [ajax.core :refer [GET POST]]))
(defn error-handler [{:keys [status status-text]}]
(.log js/console (str "something bad happened: " status " " status-text)))
(defn get-sites [callback]
(GET "/api/v1/sites" {:handler callback
:error-handler error-handler
... | (ns comic-reader.api
(:require [re-frame.core :refer [dispatch]]
[ajax.core :refer [GET POST]]))
(defn error-handler [{:keys [status status-text]}]
(.log js/console (str "something bad happened: " status " " status-text)))
(defn get-sites []
(GET "/api/v1/sites" {:handler #(dispatch [:site-list %])
... | Rewrite API call to dispatch a re-frame event | Rewrite API call to dispatch a re-frame event
| Clojure | epl-1.0 | RadicalZephyr/comic-reader,RadicalZephyr/comic-reader |
27c4069ba8f6ddd8b59066a8ce3274b45d48310b | lein/.lein/profiles.clj | lein/.lein/profiles.clj | {:user {
:dependencies [[cider/cider-nrepl "0.12.0-SNAPSHOT"] ; Emnacs
[acyclic/squiggly-clojure "0.1.5"] ; Emacs
^:replace [org.clojure/tools.nrepl "0.2.12"] ; Emacs
]
:singing {:gpg-key "matthew.russell@wormbase.org"}}
;; Vi... | {:user {:plugin-repositories [["private-plugins" {:url "private repo url"}]]
:singing {:gpg-key "matthew.russell@wormbase.org"}
:dependencies [[clojure-ini "0.0.2"]
[me.raynes/fs "1.4.6"]]
:plugins [[cider/cider-nrepl "0.8.2"]
[refactor-nrepl "0.2.2"]
... | Fix up global deps and plugins. | Fix up global deps and plugins.
| Clojure | bsd-2-clause | mgrbyte/dot-files,mgrbyte/dot-files,mgrbyte/dot-files |
f4263e4e666894a80ca88c02bd1d75fe18b9b4be | test/obb_rules_api/deploy_test.clj | test/obb_rules_api/deploy_test.clj | (ns obb-rules-api.deploy-test
(:require [obb-rules-api.simulator-test :as sim])
(:use clojure.test
obb-rules-api.routes
ring.mock.request))
(deftest test-deploy
(let [[result response]
(sim/turn-ok :p1
{:game {:state "deploy"
:stash {:p1 {... | (ns obb-rules-api.deploy-test
(:require [obb-rules-api.simulator-test :as sim])
(:use clojure.test
obb-rules-api.routes
ring.mock.request))
(deftest test-deploy
(let [[result response]
(sim/turn-ok :p1
{:game {:state "deploy"
:stash {:p1 {... | Test auto start battle after deploy | Test auto start battle after deploy
| Clojure | mit | orionsbelt-battlegrounds/obb-rules-api |
a9cd7d995a47b961124893108546fac507b1e56c | test/useful/datatypes_test.clj | test/useful/datatypes_test.clj | (ns useful.datatypes-test
(:use clojure.test useful.datatypes))
(defrecord Test [a b c])
(record-accessors Test)
(deftest test-record
(let [init (Test. 1 2 3)
second (Test. 1 5 4)]
(is (= init (make-record Test :b 2 :a 1 :c 3)))
(is (= second (assoc-record init :b 5 :c 4)))
(is (= second (upda... | (ns useful.datatypes-test
(:use clojure.test useful.datatypes))
(defrecord Test [a b c])
(record-accessors Test)
(deftest test-record
(let [init (Test. 1 2 3)
second (Test. 1 5 4)]
(is (= init (make-record Test :b 2 :a 1 :c 3)))
(is (= second (assoc-record init :b 5 :c 4)))
(is (= second (upda... | Test that the record expr is only eval'd once | Test that the record expr is only eval'd once
| Clojure | epl-1.0 | jafingerhut/useful,amalloy/useful,flatland/useful |
ce647ec616c1fbb93fec90dde01070f27dc9de46 | src/clojournal/db.clj | src/clojournal/db.clj | (ns clojournal.db
(:require [monger.core :as mg]
[monger.collection :as mc]
[environ.core :as env]))
(defonce db
(let [uri (:mongo-url env/env)
{:keys [conn db]} (mg/connect-via-uri uri)]
db))
(defn create-indexes []
(mc/ensure-index db "articles" (array-map :title 1) {:name ... | (ns clojournal.db
(:require [monger.core :as mg]
[monger.collection :as mc]
[environ.core :as env]))
(defonce db
(let [uri (:mongo-url env/env)
{:keys [conn db]} (mg/connect-via-uri uri)]
db))
(defn create-indexes []
(mc/ensure-index db "articles" (array-map :title 1) {:name ... | Remove index from article content, which caused some errors | Remove index from article content, which caused some errors
| Clojure | epl-1.0 | nyampass/clojournal,nyampass/clojournal |
d4e76b6f310582a348c5094d598cfd83e5511036 | src/lt/objs/notifos.cljs | src/lt/objs/notifos.cljs | (ns lt.objs.notifos
(:require [lt.object :as object]
[lt.objs.statusbar :as statusbar]
[lt.objs.command :as cmd]
[lt.util.js :refer [wait]]
[crate.binding :refer [map-bound bound deref?]])
(:require-macros [lt.macros :refer [defui]]))
(def standard-timeout 10000)
(d... | (ns lt.objs.notifos
(:require [lt.object :as object]
[lt.objs.statusbar :as statusbar]
[lt.objs.command :as cmd]
[lt.util.js :refer [wait]]
[crate.binding :refer [map-bound bound deref?]])
(:require-macros [lt.macros :refer [defui]]))
(def standard-timeout 10000)
(d... | Add a zero-arg version of done-working | Add a zero-arg version of done-working
| Clojure | mit | pkdevbox/LightTable,0x90sled/LightTable,masptj/LightTable,mpdatx/LightTable,kolya-ay/LightTable,kausdev/LightTable,cldwalker/LightTable,craftybones/LightTable,0x90sled/LightTable,Bost/LightTable,justintaft/LightTable,sbauer322/LightTable,EasonYi/LightTable,cldwalker/LightTable,craftybones/LightTable,pkdevbox/LightTable... |
1f9816357929abf74a334d9b0ca972a194aeeaa5 | test/pinpointer/trace_test.cljc | test/pinpointer/trace_test.cljc | (ns pinpointer.trace-test
(:require [clojure.test :refer [deftest are]]
[clojure.spec.alpha :as s]
[pinpointer.trace :as trace]))
(deftest trace-test
(are [spec input expected]
(= expected (trace/traces (s/explain-data spec input)))
(s/map-of keyword? (s/coll-of (s/spec integer?))... | (ns pinpointer.trace-test
(:require [clojure.test :refer [deftest are]]
[clojure.spec.alpha :as s]
[pinpointer.trace :as trace]))
(deftest trace-test
(are [spec input expected]
(= expected (trace/traces (s/explain-data spec input)))
(s/map-of keyword? (s/coll-of (s/spec integer?))... | Add more test cases for insufficient/extra input | Add more test cases for insufficient/extra input
| Clojure | epl-1.0 | athos/Pinpointer |
71bf27975b1739f9e04ab6e494aeeac808d647c2 | src/discuss/config.cljs | src/discuss/config.cljs | (ns discuss.config)
(def project "discuss")
(def user "Q2hyaXN0aWFu")
(def api {:host "http://dbas/"
:init "api/elektroautos"
:base "api/"
:add {:add-start-statement "add/start_statement"
:add-start-premise "add/start_premise"
:add-justify-premise "a... | (ns discuss.config)
(def project "discuss")
(def user "Q2hyaXN0aWFu")
(def api {:host "http://localhost:4284/"
:init "api/elektroautos"
:base "api/"
:add {:add-start-statement "add/start_statement"
:add-start-premise "add/start_premise"
:add-justify-... | Use local address of dabas- | Use local address of dabas-
| Clojure | mit | hhucn/discuss,hhucn/discuss |
4eb4c20d7ab61d4457364ce25b6e54e01fb4145a | src/rill/cli.clj | src/rill/cli.clj | (ns rill.cli
(:require [rill.event-store.atom-store :refer [atom-event-store]]
[rill.event-channel :refer [event-channel]]
[rill.event-stream :refer [all-events-stream-id]]
[rill.event-store.atom-store.event :refer [unprocessable?]]
[clojure.core.async :refer [<!!]])
... | (ns rill.cli
(:require [rill.event-store.psql :refer [psql-event-store]]
[rill.event-channel :refer [event-channel]]
[rill.event-stream :refer [all-events-stream-id]]
[rill.event-store.atom-store.event :refer [unprocessable?]]
[clojure.core.async :refer [<!!]])
(:gen-... | Make it possible to use the psql event store | Make it possible to use the psql event store
| Clojure | epl-1.0 | rill-event-sourcing/rill |
eb35ddccfd2609306135c8501571eb40031e0bb6 | src/cljs/yadnd5ecs/core.cljs | src/cljs/yadnd5ecs/core.cljs | (ns yadnd5ecs.core
(:require [om.core :as om :include-macros true]
[om-tools.dom :as dom :include-macros true]
[om-tools.core :refer-macros [defcomponent]]))
(enable-console-print!)
(def app-state (atom {:text "Hello Chestnut!"}))
(defn main []
(om/root
(fn [app owner]
(reify
... | (ns yadnd5ecs.core
(:require [om.core :as om :include-macros true]
[om-tools.dom :as dom :include-macros true]
[om-tools.core :refer-macros [defcomponent]]))
(enable-console-print!)
(def app-state (atom {:text "Hello Chestnut!"}))
(defcomponent app-view
[app owner]
(render [_]
... | Refactor initial view into defcomponent. | Refactor initial view into defcomponent.
| Clojure | epl-1.0 | mlb-/yadnd5ecs,mlb-/yadnd5ecs |
4ee59d636a01c77f596cfaa5fca6c8dbd3ef790b | src/fm/simrunner/gui/text_field.clj | src/fm/simrunner/gui/text_field.clj | (ns
^{:doc
"A patched JTextField implementation."
:author "Frank Mosebach"}
fm.simrunner.gui.text-field
(:gen-class
:name fm.simrunner.gui.TextField
:extends javax.swing.JTextField
:exposes-methods {setText superSetText}))
(defn -setText [this text]
(when (not= (.getText this) text)
... | (ns
^{:doc
"A patched JTextField implementation."
:author "Frank Mosebach"}
fm.simrunner.gui.text-field
(:gen-class
:name fm.simrunner.gui.TextField
:extends javax.swing.JTextField
:exposes-methods {setText superSetText}))
(defn -setText [this text]
(when (not= (.getText this) text)
... | Reset the caret to position 0 when setting the text. | Reset the caret to position 0 when setting the text.
| Clojure | mit | DrDoofenshmirtz/SimRunner,DrDoofenshmirtz/SimRunner |
97da1c619de2d4b6f6e86a35082afdbd6dc469a8 | exercises/armstrong-numbers/test/armstrong_numbers_test.clj | exercises/armstrong-numbers/test/armstrong_numbers_test.clj | (ns armstrong-numbers-test
(:require [clojure.test :refer [deftest is testing]]
[armstrong-numbers :refer [armstrong?]]))
(deftest armstrong-number-5
(testing "Single digit numbers are Armstrong numbers"
(is (armstrong? 5))))
(deftest not-armstrong-number-10
(testing "There are no 2 digit Armstr... | (ns armstrong-numbers-test
(:require [clojure.test :refer [deftest is testing]]
[armstrong-numbers :refer [armstrong?]]))
(deftest armstrong-number-5
(testing "Single digit numbers are Armstrong numbers"
(is (armstrong? 5))))
(deftest not-armstrong-number-10
(testing "There are no 2 digit Armstr... | Fix 3-digit armstrong test description | Fix 3-digit armstrong test description
The description contradicts what is being tested and needs to be in
the negative.
| Clojure | mit | querenker/xclojure,exercism/xclojure,exercism/xclojure,querenker/xclojure |
285ccfbb1d90f069421cb3dbdb93fb854b1f5ba3 | src/discuss/components/sidebar.cljs | src/discuss/components/sidebar.cljs | (ns discuss.components.sidebar
"Controlling the sidebar."
(:require [om.core :as om]
[om.dom :as dom]
[discuss.utils.common :as lib]
[discuss.utils.views :as vlib]))
(def id (lib/prefix-name "sidebar"))
(defn toggle
"Toggle visibility of sidebar."
([]
(let [sidebar-dom (... | (ns discuss.components.sidebar
"Controlling the sidebar."
(:require [om.core :as om]
[om.dom :as dom]
[goog.dom :as gdom]
[discuss.utils.common :as lib]
[discuss.utils.views :as vlib]))
(def id (lib/prefix-name "sidebar"))
(defn toggle
"Toggle visibility of sideba... | Use Google Closure to find dom element | Use Google Closure to find dom element
| Clojure | mit | hhucn/discuss,hhucn/discuss |
f6a77f4b6fa4b63d1df447a794989020cdc8ed2e | src/Lucas/lesson1.clj | src/Lucas/lesson1.clj | ;; All about higher order functions =)
(ns mlpractice.lesson1)
(defn generate-data-set
"Generates a map of :x y values for linear regression"
[constant slope num]
(nth (iterate
#(let [x (Math/random)]
(assoc %1 x (+ constant (* slope x)))) {}) num))
(defn hypothesis-fn
"Builds the hypothesi... | ;; All about higher order functions =)
;; Linear Regression with multiple variables
(ns mlpractice.lesson1)
;innefficient because iterate holds onto old maps, should use a different function?
(defn generate-data-set
"Generates a map of a vector x of feature values
to its y value for linear regression"
[data-p... | Update lesson 1 to work for linear regression with multiple variables | Update lesson 1 to work for linear regression with multiple variables
| Clojure | epl-1.0 | lucasdellabella/Coursera-ML-Stuff |
881432ceff5d564e05bfce74189e09634e24d62c | clojure/profiles.clj | clojure/profiles.clj | ;; See: https://github.com/kumarshantanu/lein-localrepo
{:user {:plugins [;; Try new api quickly using the repl
[lein-try "0.4.3"]
;;[lein-localrepo "0.5.4"]
;; Convert pom.xml to project.clj
;; Note: from https://github.com/thickey/lein-nevam
... | ;; See: https://github.com/kumarshantanu/lein-localrepo
{:user {:plugins [;; Try new api quickly using the repl
[lein-try "0.4.3"]
;;[lein-localrepo "0.5.4"]
;; Convert pom.xml to project.clj
;; Note: from https://github.com/thickey/lein-nevam
... | Add pallet/alembic to Clojure profile | Add pallet/alembic to Clojure profile
| Clojure | mit | agilecreativity/dotfiles,agilecreativity/dotfiles,agilecreativity/dotfiles |
ddc33e61241c9e6a03a3d1511982066017b7572c | src/clj/avalon/rules/people.clj | src/clj/avalon/rules/people.clj | (ns avalon.rules.people
(:require [bouncer.core :as b]
[bouncer.validators :as v]
[avalon.models.crud :as crud]
[avalon.models.games :as games]))
(defn person-rules [method game]
(let [taken? (fn [name]
(if (= method :post)
(= (count (games/pe... | (ns avalon.rules.people
(:require [bouncer.core :as b]
[bouncer.validators :as v]
[avalon.models.crud :as crud]
[avalon.models.games :as games]))
(defn person-rules [method game]
(let [taken? (fn [name]
(if (= method :post)
(= (count (games/pe... | Fix when code doesn't exist | Fix when code doesn't exist
| Clojure | apache-2.0 | baritonehands/avalon,baritonehands/avalon |
1458c109df2d3ea37380c6f8352ef04baa401bf0 | src/braid/core/client/pages.cljs | src/braid/core/client/pages.cljs | (ns braid.core.client.pages
(:require
[spec-tools.data-spec :as ds]
[braid.core.hooks :as hooks]))
(def page-dataspec
{:key keyword?
:on-load fn?
:view fn?
(ds/opt :styles) vector?})
(defonce pages
(hooks/register! (atom {}) {keyword? page-dataspec}))
(defn on-load! [page-id page]
(when-let ... | (ns braid.core.client.pages
(:require
[spec-tools.data-spec :as ds]
[braid.core.hooks :as hooks]))
(def page-dataspec
{:key keyword?
:view fn?
(ds/opt :on-load) fn?
(ds/opt :styles) vector?})
(defonce pages
(hooks/register! (atom {}) {keyword? page-dataspec}))
(defn on-load! [page-id page]
(... | Make on-load key optional as per documentation | Make on-load key optional as per documentation
| Clojure | agpl-3.0 | braidchat/braid,rafd/braid,braidchat/braid,rafd/braid |
cb0b26a4ba30b418fcfa8371a3f4d2a137b91944 | template/project.clj | template/project.clj | (defproject play-clj/lein-template "0.1.0-SNAPSHOT"
:description "A template for making play-clj projects"
:url "https://github.com/oakes/play-clj"
:license {:name "Public Domain"
:url "http://unlicense.org/UNLICENSE"}
:dependencies [[lein-droid "0.2.0"]]
:resource-paths ["resources"]
:eval-in-l... | (defproject play-clj/lein-template "0.1.0"
:description "A template for making play-clj projects"
:url "https://github.com/oakes/play-clj"
:license {:name "Public Domain"
:url "http://unlicense.org/UNLICENSE"}
:dependencies [[lein-droid "0.2.0"]]
:resource-paths ["resources"]
:eval-in-leiningen ... | Update template itself to stable release | Update template itself to stable release
| Clojure | unlicense | the2bears/play-clj,oakes/play-clj,brycecovert/play-clj,the2bears/play-clj,oakes/play-clj,brycecovert/play-clj |
bf746cd9dfefd15c21a886adf72e2ade7f560128 | src/cadence/model.clj | src/cadence/model.clj | (ns cadence.model
(:refer-clojure :exclude [identity])
(:require [monger.core :as mg]
[monger.collection :as mc]
[cadence.model.validators :as is-valid]
[cemerick.friend :as friend])
(:use clojure.walk
[cemerick.friend.credentials :only [hash-bcrypt]]))
(defn- ensure-i... | (ns cadence.model
(:refer-clojure :exclude [identity])
(:require [monger.core :as mg]
[monger.collection :as mc]
[cadence.model.validators :as is-valid]
[cemerick.friend :as friend])
(:use clojure.walk
[cemerick.friend.credentials :only [hash-bcrypt]]))
(defn- ensure-i... | Change default phrase to a shorter one. | Change default phrase to a shorter one.
| Clojure | epl-1.0 | RyanMcG/Cadence,RyanMcG/Cadence |
4331d420e2e27949970c018c12efcb8e0b6b2e82 | src/cljs/bmihw/submit.cljs | src/cljs/bmihw/submit.cljs | (ns bmihw.submit
(:require [bmihw.common :refer [auth fb]]
[reagent-forms.core :refer [bind-fields]]))
(defn update-state! [state key e]
(let [new-state (swap! state assoc key (-> e .-target .-value))
{:keys [username keyword content]} new-state
submit (.querySelector js/document "#subm... | (ns bmihw.submit
(:require [bmihw.common :refer [auth fb]]
[reagent-forms.core :refer [bind-fields]]))
(defn update-state! [state key e]
(let [new-state (swap! state assoc key (-> e .-target .-value))
{:keys [username keyword content]} new-state
submit (.querySelector js/document "#subm... | SEND MORE STUFF TO FIREBASE | SEND MORE STUFF TO FIREBASE
| Clojure | epl-1.0 | hackathon-5/the-holey-divinity-of-our-sisters-for-perpetual-recursion-repo |
12bda6dad45eb96817cabb10b2f4b3d07f979ae6 | src/app/players.cljs | src/app/players.cljs | (ns app.players
(:require [app.representation :as reps]
[app.player :as player]
[app.multiplexer :as mux]
[app.screen :as screen]))
(defonce index (atom 0))
(defn single [data layout]
(reify
player/Player
(step-fwd [_]
(reset! layout {:text ((:items (@data 0)) (m... | (ns app.players
(:require [app.representation :as reps]
[app.player :as player]
[app.multiplexer :as mux]
[app.screen :as screen]))
(defonce index (atom 0))
(defn single [data layout]
(reify
player/Player
(step-fwd [_]
(reset! layout [{:text ((:items (@data 0)) (... | Fix single mode and switching back to drizzle | Fix single mode and switching back to drizzle
| Clojure | epl-1.0 | halla/synapticle,halla/synapticle |
d2a67d4668b62332a7e63300db1875cdbe8cba49 | project.clj | project.clj | (defproject com.howardlewisship.cascade/cascade-core "1.0.0-SNAPSHOT"
:description "Simple, fast, easy web applications in idiomatic Clojure"
:url "http://github.com/hlship/cascade/"
:dependencies
[[org.clojure/clojure "1.1.0"]
[org.clojure/clojure-contrib "1.1.0"]
[org.slf4j/slf4j-api "1.5.2"]
... | (defproject com.howardlewisship.cascade/cascade-core "1.0.0-SNAPSHOT"
:description "Simple, fast, easy web applications in idiomatic Clojure"
:url "http://github.com/hlship/cascade/"
:dependencies
[[org.clojure/clojure "1.1.0"]
[org.clojure/clojure-contrib "1.1.0"]
[org.slf4j/slf4j-api "1.5.2"]
... | Update dependencies to pull Selenium with "standalone" classifier, identify test resources path | Update dependencies to pull Selenium with "standalone" classifier, identify test resources path | Clojure | apache-2.0 | hlship/cascade |
3b8d40ec00613a37cc035ce954bd5177711312ca | project.clj | project.clj | (defproject onyx-app/lein-template "0.9.0.8"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.org/repo"... | (defproject onyx-app/lein-template "0.9.0.9-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
770fc137a91188322aac19899cc3b6bdc6026104 | project.clj | project.clj | (defproject org.onyxplatform/onyx-sql "0.7.3-SNAPSHOT"
:description "Onyx plugin for JDBC-backed SQL databases"
:url "https://github.com/MichaelDrogalis/onyx-sql"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
... | (defproject org.onyxplatform/onyx-sql "0.7.3-SNAPSHOT"
:description "Onyx plugin for JDBC-backed SQL databases"
:url "https://github.com/MichaelDrogalis/onyx-sql"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
... | Update dependency org.onyxplatform/onyx to version 0.7.3-20150827_202930-g49ef67c. | Update dependency org.onyxplatform/onyx to version 0.7.3-20150827_202930-g49ef67c.
Automatic commit by lein-traffic-control.
| Clojure | epl-1.0 | onyx-platform/onyx-sql |
2ebc2e59e903bdec5a8fdaa66e2cfad5097ffd43 | project.clj | project.clj | (defproject onyx-app/lein-template "0.9.7.0-alpha17"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.9.7.0-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
4f87d780d82b1db9990fee33000bc2df6b1996b6 | project.clj | project.clj | (defproject me.arrdem/oxcart "0.1.0-SNAPSHOT"
:description "An experimental optimizing compiler for Clojure code"
:url "http://github.com/arrdem/oxcart"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [
[org.clojure/clojure ... | (defproject me.arrdem/oxcart "0.1.0-SNAPSHOT"
:description "An experimental optimizing compiler for Clojure code"
:url "http://github.com/arrdem/oxcart"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [
[org.clojure/clojure ... | Add tools.reader as a dep | Add tools.reader as a dep
| Clojure | epl-1.0 | arrdem/oxcart,arrdem/oxcart |
720627d8c692559ceb68bbf362ae2a6c385e2489 | test/desdemona/query_test.clj | test/desdemona/query_test.clj | (ns desdemona.query-test
(:require
[desdemona.query :as q]
[clojure.test :refer [deftest is]]))
(def dsl->logic
@#'desdemona.query/dsl->logic)
(deftest dsl->logic-tests
(is (= '(clojure.core.logic/featurec x {:ip "10.0.0.1"})
(dsl->logic '(= (:ip x) "10.0.0.1")))))
(deftest dsl-query-tests
(is... | (ns desdemona.query-test
(:require
[desdemona.query :as q]
[clojure.test :refer [deftest is are]]))
(def dsl->logic
@#'desdemona.query/dsl->logic)
(deftest dsl->logic-tests
(is (= '(clojure.core.logic/featurec x {:ip "10.0.0.1"})
(dsl->logic '(= (:ip x) "10.0.0.1")))))
(deftest dsl-query-tests
... | Refactor logic-query-tests to use `are` | Refactor logic-query-tests to use `are`
| Clojure | epl-1.0 | RackSec/desdemona |
3bc40dbd73daa70b06eafa227eeb8599260f2204 | src/balance/cmn/pages/task_details_page.cljs | src/balance/cmn/pages/task_details_page.cljs | (ns balance.cmn.pages.task-details-page
(:require [balance.libs.react-native :as rn]
[reagent.core :as r]
[re-frame.core :refer [subscribe dispatch]]
[balance.libs.rnrf :refer [scene-keys]]))
(def page-key (:task-details-page scene-keys))
(def page-title "Task Details")
(def styl... | (ns balance.cmn.pages.task-details-page
(:require [balance.libs.react-native :as rn]
[reagent.core :as r]
[re-frame.core :refer [subscribe dispatch]]
[balance.libs.rnrf :refer [scene-keys]]))
(def page-key (:task-details-page scene-keys))
(def page-title "Task Details")
(def styl... | Remove the debounce from text input | Remove the debounce from text input
| Clojure | epl-1.0 | denistakeda/balance,denistakeda/balance,denistakeda/balance |
881e9c087c82aaee0335b085439b34884868c7ed | src/cljs/comic_reader/api.cljs | src/cljs/comic_reader/api.cljs | (ns comic-reader.api
(:require [re-frame.core :refer [dispatch]]
[ajax.core :refer [GET POST]]))
(defn error-handler [{:keys [status status-text]}]
(.log js/console (str "something bad happened: " status " " status-text)))
(defn get-sites []
(GET "/api/v1/sites" {:handler #(dispatch [:site-list %])
... | (ns comic-reader.api
(:require [re-frame.core :refer [dispatch]]
[ajax.core :refer [GET POST]]))
(defn error-handler [{:keys [status status-text]}]
(.log js/console (str "something bad happened: " status " " status-text)))
(defn get-sites []
(GET "/api/v1/sites" {:handler #(dispatch [:site-list %])
... | Add API functions for other server calls | Add API functions for other server calls
| Clojure | epl-1.0 | RadicalZephyr/comic-reader,RadicalZephyr/comic-reader |
6d52251d418678b84319dc184ab6a6f72a8194d4 | src/lens/reducers.clj | src/lens/reducers.clj | (ns lens.reducers
(:require [clojure.core.reducers :as r])
(:refer-clojure :exclude [empty? partition-by count]))
(defn partition-by
"Applies f to each value in coll, splitting it each time f returns
a new value."
[f coll]
(reify
clojure.core.protocols/CollReduce
(coll-reduce [this f1]
(cloju... | (ns lens.reducers
(:require [clojure.core.reducers :as r])
(:refer-clojure :exclude [empty? partition-by count]))
(defn partition-by
"Applies f to each value in coll, splitting it each time f returns
a new value."
[f coll]
(reify
clojure.core.protocols/CollReduce
(coll-reduce [this f1]
(cloju... | Improve Readability of empty? Implementation | Improve Readability of empty? Implementation
| Clojure | epl-1.0 | alexanderkiel/lens-warehouse |
b96ce2f310aba0efd78ac30ee10a23a2ea5fd828 | src/cljx/subman/const.cljx | src/cljx/subman/const.cljx | (ns subman.const)
(def db-host "http://127.0.0.1:9200")
(def index-name "subman7")
(def type-addicted 0)
(def type-podnapisi 1)
(def type-opensubtitles 2)
(def type-names {type-addicted "Addicted"
type-podnapisi "Podnapisi"
type-opensubtitles "OpenSubtitles"})
(def update-deep 1... | (ns subman.const)
(def db-host "http://127.0.0.1:9200")
(def index-name "subman7")
(def type-addicted 0)
(def type-podnapisi 1)
(def type-opensubtitles 2)
(def type-names {type-addicted "Addicted"
type-podnapisi "Podnapisi"
type-opensubtitles "OpenSubtitles"})
(def update-deep 1... | Change update period to 5 minutes | Change update period to 5 minutes
| Clojure | epl-1.0 | submanio/subman-parser |
01ca5825537abf060bdc999870efeb69441b8b14 | src/circle/backend/build/inference.clj | src/circle/backend/build/inference.clj | (ns circle.backend.build.inference
"fns for creating a build from a source tree"
(:use circle.util.fs)
(:require [circle.backend.build.template :as template])
(:require [circle.backend.action :as action])
(:require circle.backend.build.inference.rails
circle.backend.build.inference.php))
(def inf... | (ns circle.backend.build.inference
"fns for creating a build from a source tree"
(:use circle.util.fs)
(:require [circle.backend.build.template :as template])
(:require [circle.backend.action :as action])
(:require circle.backend.build.inference.rails
circle.backend.build.inference.php))
(def inf... | Use vars so the fns reload | Use vars so the fns reload
| Clojure | epl-1.0 | circleci/frontend,prathamesh-sonpatki/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,RayRutjes/frontend |
d7c61a2d9e52e9b24bfed5f949a47afadee46e89 | project.clj | project.clj | (defproject onyx-app/lein-template "0.11.0.0-alpha2"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.11.0.0-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
c70ee7d3d107993e4c8837bdc6c38edce4ff5cd3 | project.clj | project.clj | (defproject re-frame/lein-template "0.3.20"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["releases" :clojars]
["snapshots" :clojars]]
:scm {:n... | (defproject re-frame/lein-template "0.3.21-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["releases" :clojars]
["snapshots" :clojars]]
... | Bump template version to SNAPSHOT | Bump template version to SNAPSHOT
| Clojure | mit | Day8/re-frame-template,Day8/re-frame-template,Day8/re-frame-template |
8fe380c0e4f97e3e9f88659f026ad4efa1a049ff | project.clj | project.clj | (defproject com.draines/postal "3.0.0-SNAPSHOT"
:description "JavaMail on Clojure"
:url "https://github.com/drewr/postal"
:license {:name "MIT"
:url "http://en.wikipedia.org/wiki/MIT_License"
:distribution :repo
:comments "Use at your own risk"}
:deploy-repositories [["releas... | (defproject com.draines/postal "3.0.0-SNAPSHOT"
:description "JavaMail on Clojure"
:url "https://github.com/drewr/postal"
:license {:name "MIT"
:url "http://en.wikipedia.org/wiki/MIT_License"
:distribution :repo
:comments "Use at your own risk"}
:deploy-repositories [["releas... | Update JavaMail (now Jakarta Mail) to 1.6.5 | Update JavaMail (now Jakarta Mail) to 1.6.5
| Clojure | mit | drewr/postal |
fbcef12a93a36aee6f12f8f6db032bc72312a4ed | project.clj | project.clj | (defproject cats "0.5.0-SNAPSHOT"
: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 []
:deploy-repositories {"releases" :clojars
"... | (defproject cats "0.5.0-SNAPSHOT"
: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 []
:deploy-repositories {"releases" :clojars
"... | Update clojure version to 1.7.0 and tools.namespace to 0.2.11. | Update clojure version to 1.7.0 and tools.namespace to 0.2.11.
| Clojure | bsd-2-clause | yurrriq/cats,tcsavage/cats,mccraigmccraig/cats,funcool/cats,alesguzik/cats,OlegTheCat/cats |
7a1419f95905854629f304c30018931b4f8428f4 | project.clj | project.clj | ;; The Climate Corporation licenses this file to you under under the Apache
;; License, Version 2.0 (the "License"); you may not use this file except in
;; compliance with the License. You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; See the NOTICE file distributed with ... | ;; The Climate Corporation licenses this file to you under under the Apache
;; License, Version 2.0 (the "License"); you may not use this file except in
;; compliance with the License. You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; See the NOTICE file distributed with ... | Change version back to snapshot | Change version back to snapshot
| Clojure | apache-2.0 | TheClimateCorporation/claypoole |
c9d66fa7472b55429e56e5a46e756394061c65de | project.clj | project.clj | (defproject onyx-app/lein-template "0.8.8.2"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.org/repo"... | (defproject onyx-app/lein-template "0.8.8.3-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "https://clojars.... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
317a2dec7b6b324a5c9a43365cff52c44bfea12c | src/web/components/node_link.cljs | src/web/components/node_link.cljs | (ns web.components.node-link
(:require [om.next :as om :refer-macros [defui]]
[om.dom :as dom]))
(defui Badge
Object
(render [this]
(let [{:keys [kind]} (om/props this)]
(dom/span #js {:className "badge"}
(case kind
"requirement" "r"
"component" "c"
"wo... | (ns web.components.node-link
(:require [om.next :as om :refer-macros [defui]]
[om.dom :as dom]
[web.routing :as routing]))
(defui Badge
Object
(render [this]
(let [{:keys [kind]} (om/props this)]
(dom/span #js {:className "badge"}
(case kind
"requirement" "r"
... | Make node links clickable, redirect to the right view for now | Make node links clickable, redirect to the right view for now
| Clojure | agpl-3.0 | Jannis/custard |
efe0abf9e238e14046081ef8be671347022f18d6 | build.boot | build.boot | (set-env!
:source-paths #{"src/main/java" "src/test/java"}
:dependencies '[[radicalzephyr/boot-junit "0.1.0" :scope "test"]])
(def +version+ "0.1.0")
(require '[radicalzephyr.boot-junit :refer [junit]])
(task-options!
pom {:project 'http-server
:version +version+
:description "A Java HTTP server."
... | (set-env!
:source-paths #{"src/main/java" "src/test/java"}
:dependencies '[[radicalzephyr/boot-junit "0.1.0-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... | Use the clojars version of boot-junit | Use the clojars version of boot-junit
| Clojure | mit | RadicalZephyr/http-server |
d647e14d6bb3b6fccf265cbcd3035f0feb49be0d | src/my_noir_lab/views/welcome.clj | src/my_noir_lab/views/welcome.clj | (ns my-noir-lab.views.welcome
(:require [my-noir-lab.views.common :as common]
[noir.content.getting-started])
(:use [noir.core :only [defpage]]
[hiccup.core :only [html]]))
(defpage "/welcome" []
(common/layout
[:p "Welcome to my-noir-lab"]))
(defpage "/my-page" []
(commo... | (ns my-noir-lab.views.welcome
(:require [my-noir-lab.views.common :as common]
[noir.content.getting-started])
(:use [noir.core :only [defpage]]
[hiccup.core :only [html]]))
(defpage "/welcome" []
(common/layout
[:p "Welcome to my-noir-lab"]))
(defpage "/my-page" []
(commo... | Add a page to display the range method. | Add a page to display the range method.
| Clojure | epl-1.0 | lazyposse/fnx |
eeb32986dbde0db21d9db16ab5bef4bfc9c68a1a | src/auricle/subs.cljs | src/auricle/subs.cljs | (ns auricle.subs
(:require [re-frame.core :refer [reg-sub]]))
(reg-sub
:current-speaker
(fn [db _]
(:current-speaker db)))
(reg-sub
:db
(fn [db _]
db))
(reg-sub
:loading
(fn [db _]
(:loading db)))
(defn format-speaker [speaker]
(-> speaker
(update :love count)
(update :smile count)... | (ns auricle.subs
(:require [re-frame.core :refer [reg-sub]]))
(reg-sub
:current-speaker
(fn [db _]
(:current-speaker db)))
(reg-sub
:db
(fn [db _]
db))
(reg-sub
:loading
(fn [db _]
(:loading db)))
(defn format-speaker [speaker]
(-> speaker
(update :love count)
(update :smile count)... | Sort speakers by creation date | Sort speakers by creation date
| Clojure | epl-1.0 | kapware/auricle,kapware/auricle,kapware/auricle |
0cfb325711f9063e9d848cd30374209315e3a94d | src/icecap/schema.clj | src/icecap/schema.clj | (ns icecap.schema
(:require [schema.core :as s])
(:import [java.net URI]))
(def supported-schemes
"The currently supported schemes."
#{"http" "https"})
(defn get-scheme
"Gets the scheme of a (String) URL."
[url]
(.getScheme (URI. url)))
(def supported-scheme?
"Does the given URL have a supported sche... | (ns icecap.schema
(:require [schema.core :as s])
(:import [java.net URI]))
(def supported-schemes
"The currently supported schemes."
#{"http" "https"})
(defn get-scheme
"Gets the scheme of a (String) URL."
[url]
(.getScheme (URI. url)))
(def supported-scheme?
"Does the given URL have a supported sche... | Use s/conditional instead of s/either | Use s/conditional instead of s/either
This gives better error reporting.
Closes #1.
| Clojure | epl-1.0 | Hatnik/icecap,lvh/icecap |
56047beb89cdd16a4c4909b41ac9db96ff1ee149 | modules/aleph/src/modular/aleph.clj | modules/aleph/src/modular/aleph.clj | ;; Copyright © 2014 JUXT LTD.
(ns modular.aleph
(:require
[com.stuartsierra.component :refer (Lifecycle)]
[schema.core :as s]
[modular.ring :refer (request-handler WebRequestHandler)]
[aleph.http :as http]))
(defrecord Webserver []
Lifecycle
(start [component]
(if-let [provider (first (filter #(... | ;; Copyright © 2014 JUXT LTD.
(ns modular.aleph
(:require
[com.stuartsierra.component :refer (Lifecycle)]
[schema.core :as s]
[modular.ring :refer (request-handler WebRequestHandler)]
[aleph.http :as http]
))
(defn get-handler
"Extract the Ring handler from the component"
[component]
(or
;; ... | Support for handler in constructor | Support for handler in constructor
| Clojure | mit | juxt/modular,pleasetrythisathome/modular,pleasetrythisathome/modular,juxt/modular |
6dc97cec13ce41a4e62507e8dbac8641084d1d17 | src/cljc/salava/core/i18n.cljc | src/cljc/salava/core/i18n.cljc | (ns salava.core.i18n
#?(:cljs (:require-macros [taoensso.tower :as tower-macros]))
(:require
#?@(:cljs [[reagent.session :as session]
[taoensso.tower :as tower :refer-macros (with-tscope)]])
#?(:clj [taoensso.tower :as tower :refer (with-tscope)])))
(def tconfig
#?(:clj {:fall... | (ns salava.core.i18n
#?(:cljs (:require-macros [taoensso.tower :as tower-macros]))
(:require
#?@(:cljs [[reagent.session :as session]
[taoensso.tower :as tower :refer-macros (with-tscope)]])
#?(:clj [taoensso.tower :as tower :refer (with-tscope)])))
(def tconfig
#?(:clj {:fall... | Replace missing translations with keys | Replace missing translations with keys
Signed-off-by: Antti Koskinen <7180a8b2eda8ec34b3486f8aa865046413c11ed3@discendum.com>
| Clojure | apache-2.0 | discendum/salava,discendum/salava,discendum/salava |
d24b6fe8f05abb51ea4224ed6e1b6f3248a5a06d | src/uxbox/services/core.clj | src/uxbox/services/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.services.core
(:require [clojure.walk :as walk]
... | ;; 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.services.core
(:require [clojure.walk :as walk]
... | Fix unexpected exception on default service handler. | Fix unexpected exception on default service handler.
| Clojure | mpl-2.0 | uxbox/uxbox-backend,uxbox/uxbox-backend |
13581e230407d3653a4b1ec4c1a5f05773842f3b | tutorial.moan/src/tutorial/moan/lib.clj | tutorial.moan/src/tutorial/moan/lib.clj | (ns tutorial.moan.lib
(:require
[tutorial.moan.db :as db]))
(defn favorites
[]
[{:id 1
:text "This is a fantastic tweet"
:author {:name "Elon Musk"
:username "fakeelonmusk"}}
{:id 2
:text "Lord but I dislike poetry. How can anyone remember words that aren't put to music?"
:aut... | (ns tutorial.moan.lib
(:require
[tutorial.moan.db :as db]))
(defn favorites
[]
[{:id 1
:text "This is a fantastic tweet"
:author {:name "Elon Musk"
:username "fakeelonmusk"}
:favorite? true}
{:id 2
:text "Lord but I dislike poetry. How can anyone remember words that aren't put... | Mark mock tweets as favorites | Mark mock tweets as favorites
| Clojure | mit | juxt/edge,juxt/edge |
e1ffe9ce93db482c3d7101c0183393fba3238eb3 | src/cljs/db_quiz/state.cljs | src/cljs/db_quiz/state.cljs | (ns db-quiz.state
(:require [reagent.core :as reagent :refer [atom]]))
(defonce app-state
(atom {:answer nil
:answers {:correct 0
:incorrect 0}
:board {}
:current-field nil
:hint nil
:language :cs
:loading? false
:on-turn (rand-nth [... | (ns db-quiz.state
(:require [reagent.core :as reagent :refer [atom]]))
(defonce app-state
(atom {:answer nil
:answers {:correct 0
:incorrect 0}
:board {}
:current-field nil
:hint nil
:language :cs
:loading? false
:on-turn (rand-nth [... | Change the default to easy | Change the default to easy
| Clojure | epl-1.0 | jindrichmynarz/db-quiz |
624dd0c6f17c32178ba35527c63f9d51edb2c28e | src/asid/trust_pool.clj | src/asid/trust_pool.clj | (ns asid.trust-pool
(:use midje.sweet)
(:use asid.wallet))
(defrecord Origin [identity url])
(defrecord Trustee [signed-values origin])
(defrecord TrustPool [challenge trustees])
(defn new-trust-pool [req-keys]
(TrustPool. req-keys []))
(defn add-to-pool [pool owner-wallet joiner challenge-response]
(let [j... | (ns asid.trust-pool
(:use midje.sweet)
(:use asid.wallet))
(defrecord Origin [identity url])
(defrecord Trustee [signed-values origin])
(defrecord TrustPool [challenge trustees])
(defn new-trust-pool [req-keys]
(TrustPool. req-keys []))
(defn add-to-pool [pool owner-wallet joiner challenge-response]
(let [j... | Fix failing test as a result of changing interface. | Fix failing test as a result of changing interface.
| Clojure | agpl-3.0 | gga/asid,gga/asid,gga/asid |
044b8dcc0c7aaa6761c4946eb33aa4dadc9ba19d | src/discuss/debug.cljs | src/discuss/debug.cljs | (ns discuss.debug
"Show information for debugging."
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[discuss.lib :as lib]))
(defn debug-view [data _owner]
(reify om/IRender
(render [_]
(dom/div nil
(dom/h4 nil "Last API call")... | (ns discuss.debug
"Show information for debugging."
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[discuss.lib :as lib]))
(defn debug-view [data _owner]
(reify om/IRender
(render [_]
(dom/div nil
(dom/h4 nil "Last API call")... | Add button to resend API call | Add button to resend API call
| Clojure | mit | hhucn/discuss,hhucn/discuss |
fdd3de491544b012118d4a01a724a1f29f0aadf1 | resources/rules/post_identifier_merge/step_b_ontology_to_ice/step_b/link_bio_with_nil.clj | resources/rules/post_identifier_merge/step_b_ontology_to_ice/step_b/link_bio_with_nil.clj | `{:name "link-bio-with-nil"
:description "This link-bio-with-properties rule requires both
things being linked to be 'bioentities' and thus this rule excludes
links within RDF lists that connect to rdf:nil. This rule fills in
those missing links."
:head ((?/bio ?/p rdf/nil))
:body ((?/c obo/IAO_0000219 ?/bi... | `{:name "transfer-rdf-list-links-with-nil"
:description "This rule transfers links to rdf:nil from list members to bio world. These links are
predominantly '?x rdf:rest rdf/nil'."
:head ((?/bio_list_member ?/p rdf/nil))
:sparql-string "select ?bio_list_member ?p {
?list_record rdf:type ccp:IAO_EXT_0000317 .
... | Add transfer-rdf-list-links-with-nil to connect rdf:List members to nil where appropriate | Add transfer-rdf-list-links-with-nil to connect rdf:List members to nil where appropriate
| Clojure | epl-1.0 | bill-baumgartner/kabob |
ba721602fbc61dd061a178bf973c4601a0ca2462 | boot-classloader/project.clj | boot-classloader/project.clj | (defproject tailrecursion/boot-classloader "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"]
[or... | (defproject tailrecursion/boot-classloader "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"]
[or... | Set target-path to maintain compatibility with lein 2.3 | Set target-path to maintain compatibility with lein 2.3
| Clojure | epl-1.0 | boot-clj/boot,upgradingdave/boot,ragnard/boot,RadicalZephyr/boot,junjiemars/boot,danielsz/boot,kausdev/boot,junjiemars/boot,tobias/boot,instilled/boot,tailrecursion/boot,danielsz/boot,ragnard/boot,kennyjwilli/boot,ragnard/boot,upgradingdave/boot,kausdev/boot,instilled/boot,tobias/boot,junjiemars/boot,crisptrutski/boot,... |
5fe68b959073e0893331baef16b966f6d8b19061 | project.clj | project.clj | (defproject mvxcvi/multihash "1.1.0-SNAPSHOT"
:description "Native Clojure implementation of the multihash standard."
:url "https://github.com/greglook/clj-multihash"
:license {:name "Public Domain"
:url "http://unlicense.org/"}
:deploy-branches ["master"]
:plugins
[[lein-cloverage "1.0.6"]]
... | (defproject mvxcvi/multihash "1.1.0-SNAPSHOT"
:description "Native Clojure implementation of the multihash standard."
:url "https://github.com/greglook/clj-multihash"
:license {:name "Public Domain"
:url "http://unlicense.org/"}
:deploy-branches ["master"]
:plugins
[[lein-cloverage "1.0.6"]]
... | Add tag type for whidbey. | Add tag type for whidbey.
| Clojure | unlicense | greglook/clj-multihash |
0026cba4e1636d1e14f0230fa3e50ff6a6d87a00 | project.clj | project.clj | (defproject test-utils "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.0"]
[ki... | (defproject test-utils "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.0"]
[ki... | Initialize the REPL with typical modules | Initialize the REPL with typical modules
| Clojure | apache-2.0 | mrwizard82d1/test-utils-cljs,mrwizard82d1/test-utils-cljs |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.