conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix creating directory instead of file.\n" }, { "from": "human", "value": "(ns leiningen.new.vdom-app\n (:use [leiningen.new.templates :only [renderer name-to-path ->files]]))\n\n(def render (renderer \"vdom-app\"))\n\n(defn vdom-app [name]\n (let [data {:name nam...
clojure
chosen
[ { "from": "system", "value": "Add method for running server.\n" }, { "from": "human", "value": "(ns quil-site.core\n (:require [compojure.core :refer [defroutes GET]]\n [compojure.handler :refer [site]]\n [compojure.route :refer [files]]\n [ring.middleware.json ...
clojure
chosen
[ { "from": "system", "value": "[search] Make leaving the search page clear the search bar\n" }, { "from": "human", "value": "(ns braid.search.ui.search-bar\n (:require\n [reagent.core :as r]\n [re-frame.core :refer [subscribe dispatch]]\n [braid.core.client.routes :as routes]\n [braid.li...
clojure
chosen
[ { "from": "system", "value": "Add name of fn which was automatically tested\n" }, { "from": "human", "value": "(ns discuss.test.lib\n (:require [cljs.pprint :as pprint]\n [cljs.test :refer-macros [is]]))\n\n(defn- summarize-results' [spec-check]\n (doall (map #(-> % :clojure.test.ch...
clojure
chosen
[ { "from": "system", "value": "Fix accidental rename of environment variable\n" }, { "from": "human", "value": "(ns rill.event-store.psql-test\n (:require [rill.event-store.psql :refer [psql-event-store]]\n [rill.event-store.psql.tools :as tools]\n [rill.event-store.generic...
clojure
chosen
[ { "from": "system", "value": "Add first test for fake transactor creation process.\n" }, { "from": "human", "value": "(ns continuo.postgresql-spec\n (:require [clojure.test :as t]\n [continuo.postgresql.schema :as schema]))\n\n(t/deftest schema-internal-tests\n (let [schema [[:db/ad...
clojure
chosen
[ { "from": "system", "value": "Test subselects with named parameters.\n" }, { "from": "human", "value": "(ns fhofherr.clj-db-util.jdbc-template-test\n (:require [clojure.test :refer :all]\n [fhofherr.clj-db-util.support.test-db :as test-db]\n [fhofherr.clj-db-util.jdbc-temp...
clojure
chosen
[ { "from": "system", "value": "Update tests to reflect master problem spec\n" }, { "from": "human", "value": "(ns pangram-test\n (:require [clojure.test :refer [is deftest]]\n [pangram :refer [pangram?]]))\n\n(deftest empty-sentence\n (is (false? (pangram? \"\"))))\n\n(deftest lowerc...
clojure
chosen
[ { "from": "system", "value": "Add quote marks to log message.\n" }, { "from": "human", "value": "(ns dragon.generator\n (:require [dragon.config :as config]\n [dragon.web :as web]\n [stasis.core :as stasis]\n [taoensso.timbre :as log]))\n\n(defn run\n [routes o...
clojure
chosen
[ { "from": "system", "value": "Move playlist in state atom\n" }, { "from": "human", "value": "(ns airhead-cljs.core\n (:require-macros [cljs.core.async.macros :refer [go]])\n (:require [reagent.core :as r]\n [ajax.core :refer [GET POST]]))\n\n(def state (r/atom {:server \"http://loca...
clojure
chosen
[ { "from": "system", "value": "Use a more visually pleasing starting melody.\n" }, { "from": "human", "value": "(ns leipzig-live.core\n (:require\n [leipzig-live.processing] ; Import action defs.\n [leipzig-live.eval :as eval]\n [leipzig-live.views :as view]\n [leipzig-live.framework...
clojure
chosen
[ { "from": "system", "value": "[clojure] Add pomegranate to global dependencies\n" }, { "from": "human", "value": "{:user {:dependencies [[org.clojure/tools.namespace \"0.3.0-alpha4\"]\n [eftest \"0.5.2\"]]\n :repl-options {:color false}\n :plugins [[lein-cljfm...
clojure
chosen
[ { "from": "system", "value": "Make Clojure LibGDX code more idiomatic\n" }, { "from": "human", "value": "(ns {{namespace}}\n (:import [com.badlogic.gdx Game Gdx Graphics Screen]\n [com.badlogic.gdx.graphics Color GL20]\n [com.badlogic.gdx.graphics.g2d BitmapFont]\n ...
clojure
chosen
[ { "from": "system", "value": "Load repl namespace when running on 1.3\n" }, { "from": "human", "value": ";-\n; Copyright 2011 (c) Meikel Brandmeyer.\n; All rights reserved.\n;\n; Permission is hereby granted, free of charge, to any person obtaining a copy\n; of this software and associated docum...
clojure
chosen
[ { "from": "system", "value": "Change map-hash from macro to fn\n" }, { "from": "human", "value": "(ns clojure.lang.apersistent-map\n (:refer-clojure :only [bit-and defmacro defn let loop +])\n (:require [clojure.lang.counted :refer [count]]\n [clojure.lang.hash :refer [hash]]...
clojure
chosen
[ { "from": "system", "value": "Clean up with comments, semantic fix\n" }, { "from": "human", "value": "; https://projecteuler.net/problem=3\n\n(ns euler.003\n (:require [clojure.math.numeric-tower :as math]))\n\n(defmulti prime?\n \"Returns true if a number is divisible by only 1 and itself, fa...
clojure
chosen
[ { "from": "system", "value": "Add route for getting card info\n" }, { "from": "human", "value": "(ns decktouch.handler\n (:require [decktouch.dev :refer [browser-repl start-figwheel]]\n [compojure.core :refer [GET defroutes]]\n [compojure.route :refer [not-found resources]...
clojure
chosen
[ { "from": "system", "value": "Revert \"Adding failing test to test ci.\"\n\nThis reverts commit 788e5af5fbec49f0b77ea36b05831145dd610c23.\n" }, { "from": "human", "value": "(ns cmr.common.test.util\n (:require [clojure.test :refer :all]\n [cmr.common.util :as util]))\n\n(deftest test...
clojure
chosen
[ { "from": "system", "value": "Add our first style, just a bit of margin\n" }, { "from": "human", "value": "(ns lab-notebook.core\n (:require [om.core :as om]\n [om.dom :as dom]))\n\n(defonce appstate (atom {}))\n\n(defn item-view [cursor component]\n (reify\n om/IRender\n (ren...
clojure
chosen
[ { "from": "system", "value": "Update example code demonstrating some features\n" }, { "from": "human", "value": "(ns example.core\n (:require [clojure.string :as str]\n [example.lib :as lib]))\n\n(defn collatz [n]\n (lazy-seq\n (cons n\n (if (lib/even? n)\n (c...
clojure
chosen
[ { "from": "system", "value": "Add test that prints example.com site to PDF\n" }, { "from": "human", "value": "(ns clj-chrome-devtools.automation-test\n (:require [clj-chrome-devtools.automation :as a]\n [clj-chrome-devtools.automation.fixture :refer [create-chrome-fixture]]\n ...
clojure
chosen
[ { "from": "system", "value": "Add a test cleanup util\n" }, { "from": "human", "value": "(ns doctopus.test-utilities\n (:require [clojure.test :refer :all]\n [doctopus.test-utilities :refer :all])\n (:import [org.joda.time DateTime]\n [org.joda.time.format DateTimeFormat])...
clojure
chosen
[ { "from": "system", "value": "Improve algorithm, it was swapping too many times\n" }, { "from": "human", "value": "(defn swap [a i j]\n (assoc a j (a i) i (a j)))\n\n(defn generatePermutations [v n]\n (if (zero? n)\n (println (apply str v))\n\n (loop [i 0 a v]\n (if (<= i n)\n ...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject onyx-app/lein-template \"0.9.7.0-alpha7\"\n :description \"Onyx Leiningen application template\"\n :url \"https://github.com/onyx-platform/onyx-template\"\n :license {:name \"MIT Licen...
clojure
chosen
[ { "from": "system", "value": "Remove attachment header from invoice response\n" }, { "from": "human", "value": "(ns time-tracker.invoices.handlers\n (:require [ring.util.response :as res]\n [time-tracker.users.db :as users-db]\n [time-tracker.projects.db :as projects-db]\n...
clojure
chosen
[ { "from": "system", "value": "Update deps and add clean-targets\n" }, { "from": "human", "value": "(defproject replete \"0.1.0\"\n :dependencies [[org.clojure/clojure \"1.7.0\"]\n [org.clojure/clojurescript \"0.0-3422\"]\n [org.clojure/tools.reader \"0.10.0-SNAPS...
clojure
chosen
[ { "from": "system", "value": "Add missing parameter to default impl of services.\n" }, { "from": "human", "value": ";; This Source Code Form is subject to the terms of the Mozilla Public\n;; License, v. 2.0. If a copy of the MPL was not distributed with this\n;; file, You can obtain one at http:...
clojure
chosen
[ { "from": "system", "value": "Move the scrabble exercise under a namespace.\n\nRelated: PR #8.\n" }, { "from": "human", "value": "(ns scrabble.test (:require [clojure.test :refer :all]))\n(load-file \"scrabble.clj\")\n\n(deftest lower-case-letter\n (is (= 1 (score-letter \"a\"))))\n(deftest upp...
clojure
chosen
[ { "from": "system", "value": "Make contrib a dev dependency for session tests.\n" }, { "from": "human", "value": "(defproject ring/ring-core \"0.3.2\"\n :description \"Ring core libraries.\"\n :url \"http://github.com/mmcgrana/ring\"\n :dependencies [[org.clojure/clojure \"1.2.0\"]\n ...
clojure
chosen
[ { "from": "system", "value": "Upgrade `cider-nrepl` to just-released \"0.8.0\"\n" }, { "from": "human", "value": "{:user {:plugins [[lein-try \"0.4.1\"]\n [lein-pprint \"1.1.1\"]\n [cider/cider-nrepl \"0.7.0\"]]}}\n" }, { "from": "gpt", "value": "{:u...
clojure
chosen
[ { "from": "system", "value": "Add recursive test for the visitor\n\n* https://gist.github.com/shafeeq/c2ded8e71579a26e44c2191536e01c0d\n" }, { "from": "human", "value": "(ns spec-tools.visitor-test\n (:require [clojure.test :refer [deftest is]]\n [clojure.spec :as s]\n [sp...
clojure
chosen
[ { "from": "system", "value": "Add back heroku profile with mirrors.\n\nTo avoid getting profile not found for users with it in their procfile.\n" }, { "from": "human", "value": "{:user {:mirrors {#\"central|clojars\"\n \"http://s3pository.herokuapp.com/clojure\"}}\n :production ...
clojure
chosen
[ { "from": "system", "value": "Fix tests on Travis CI.\n" }, { "from": "human", "value": "{:shared {:clean-targets [\"out\" :target-path]\n\n :test-paths [\"test/cljs\"]\n :resources-paths [\"dev-resources\"]\n\n :dependencies [[com.cemerick/double-check \"0.5.7-SNAPSHO...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject org.onyxplatform/onyx-datomic \"0.10.0.0-beta2\"\n :description \"Onyx plugin for Datomic\"\n :url \"https://github.com/onyx-platform/onyx-datomic\"\n :license {:name \"Eclipse Public ...
clojure
chosen
[ { "from": "system", "value": "Solve part two of day 1 puzzle\n" }, { "from": "human", "value": "(ns solver.core\n (:gen-class))\n\n(defn determine-floor [xs]\n (let [to-direction (fn [index direction] {:index index :direction direction})\n determine-floor (fn [floor data] (+ floor (cas...
clojure
chosen
[ { "from": "system", "value": "Make the actual interface of Beckon.\n" }, { "from": "human", "value": "(ns beckon\n (:import [com.hypirion.beckon SignalAtoms]\n [sun.misc Signal]))\n\n(defn signal-atom [signal-name]\n (SignalAtoms/getSignalAtom signal-name))\n\n(defn raise! [signal-na...
clojure
chosen
[ { "from": "system", "value": "Use a symbol instead of a string to specify export name in example.\n" }, { "from": "human", "value": "(ns hello.core\n (:require [hello.foo.bar :as bar]))\n\n(defn ^{:export \"greet\"} greet [n]\n (str \"Hello \" n))\n\n(defn ^:export sum [xs]\n (bar/sum xs))\n"...
clojure
chosen
[ { "from": "system", "value": "Remove backported repl trampoline bugfix. Add :offline to production profile.\n" }, { "from": "human", "value": "{:user {:mirrors {\"central\" \"http://s3pository.herokuapp.com/maven-central\"\n ;; TODO: re-enable once clojars releases repo is up\n ...
clojure
chosen
[ { "from": "system", "value": "Update new indiv tests and add p-min tests\n" }, { "from": "human", "value": "(ns hydrofoil.expectations.evolution\n (:require [expectations :refer :all]\n [hydrofoil.model :refer :all]\n [hydrofoil.core :refer :all]\n [hydrofoil.ev...
clojure
chosen
[ { "from": "system", "value": "Make the ratpack promise type play on the futura IPromise protocol.\n" }, { "from": "human", "value": "(ns catacumba.impl.helpers\n (:import ratpack.func.Action\n ratpack.func.Function\n ratpack.handling.Context\n io.netty.buffer.Unpoo...
clojure
chosen
[ { "from": "system", "value": "Use the actual correct link to lgpl 2.1\n" }, { "from": "human", "value": "(defproject tokyocabinet \"1.24.4\"\n :url \"https://github.com/flatland/tokyocabinet\"\n :license {:name \"GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1\"\n :url \"http://www....
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject onyx-app/lein-template \"0.9.7.0-alpha18\"\n :description \"Onyx Leiningen application template\"\n :url \"https://github.com/onyx-platform/onyx-template\"\n :license {:name \"MIT Lice...
clojure
chosen
[ { "from": "system", "value": "Fix for lein clean not cleaning compiled js files" }, { "from": "human", "value": "(defproject kamituel/systems-toolbox-chrome \"0.1.0-SNAPSHOT\"\n :description \"Chrome DevTools support for systems-toolbox library\"\n :url \"\"\n :license {:name \"Eclipse Public...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject onyx-app/lein-template \"0.9.14.0\"\n :description \"Onyx Leiningen application template\"\n :url \"https://github.com/onyx-platform/onyx-template\"\n :license {:name \"MIT License\"\n...
clojure
chosen
[ { "from": "system", "value": "Add some data-mocking test utils\n" }, { "from": "human", "value": "(ns doctopus.test-utilities\n (:require [clojure.test :refer :all]\n [doctopus.storage :refer [remove-from-storage backend]]\n [doctopus.test-utilities :refer :all])\n (:impo...
clojure
chosen
[ { "from": "system", "value": "Update Clojure dep to 1.7.0-beta2.\n" }, { "from": "human", "value": "(defproject sqls \"0.1.1\"\n :description \"SQLS\"\n :url \"https://github.com/mpietrzak/sqls\"\n :license {:name \"Eclipse Public License\"\n :url \"http://www.eclipse.org/legal/epl...
clojure
chosen
[ { "from": "system", "value": "Update cljs compiler version to 1.8.40\n" }, { "from": "human", "value": "(defproject funcool/beicon \"1.1.1\"\n :description \"Reactive Streams for ClojureScript (built on top of RxJS 5.x)\"\n :url \"https://github.com/funcool/beicon\"\n :license {:name \"Public...
clojure
chosen
[ { "from": "system", "value": "Remove 1.2.1 stuff because we don't support it anymore.\n" }, { "from": "human", "value": "(defproject org.flatland/useful \"0.9.3-SNAPSHOT\"\n :description \"A collection of generally-useful Clojure utility functions\"\n :license {:name \"Eclipse Public License -...
clojure
chosen
[ { "from": "system", "value": "Use the sonatype repo, now that the patches are in\n" }, { "from": "human", "value": "(defproject reply \"0.0.2-SNAPSHOT\"\n :description \"REPL-y: A fitter, happier, more productive REPL for Clojure.\"\n :dependencies [[org.clojure/clojure \"1.3.0\"]\n ...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject org.onyxplatform/onyx-metrics \"0.8.2.0\"\n :description \"Instrument Onyx workflows\"\n :url \"https://github.com/MichaelDrogalis/onyx\"\n :license {:name \"Eclipse Public License\"\n...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject onyx-app/lein-template \"0.10.0.0\"\n :description \"Onyx Leiningen application template\"\n :url \"https://github.com/onyx-platform/onyx-template\"\n :license {:name \"MIT License\"\n...
clojure
chosen
[ { "from": "system", "value": "Disable var and ns clash warning.\n" }, { "from": "human", "value": "(require '[figwheel-sidecar.repl :as r]\n '[figwheel-sidecar.repl-api :as ra]\n '[cljs.tagged-literals])\n\n(alter-var-root #'cljs.tagged-literals/*cljs-data-readers*\n ...
clojure
chosen
[ { "from": "system", "value": "Fix test; dropped status in command response prematurely\n" }, { "from": "human", "value": "(ns rill.web\n (:require [clojure.tools.logging :as log]\n [rill.handler :as rill-handler]\n [rill.message :as message]))\n\n(defn command-result-to-ri...
clojure
chosen
[ { "from": "system", "value": "Allow bulk add / remove of classes\n" }, { "from": "human", "value": "(ns gitique.util\n (:require [clojure.string :as string]))\n\n(enable-console-print!)\n\n(extend-type js/NodeList ISeqable (-seq [array] (array-seq array 0)))\n(extend-type js/DOMTokenList ISeqab...
clojure
chosen
[ { "from": "system", "value": "Add WebFX as the main class for the jar manifest\n\nThat makes it into a standalone command-line \"app-ifier\" that can be\nconfigured via command line arguments.\n" }, { "from": "human", "value": "(def project 'radicalzephyr/webfx)\n(def version \"0.1.0-SNAPSHOT\")...
clojure
chosen
[ { "from": "system", "value": "Use up-to-date leaplib with Linux files\n" }, { "from": "human", "value": "(defproject sormilla \"0.3.1\"\n :dependencies [[org.clojure/clojure \"1.5.1\"]\n [org.clojure/core.async \"0.1.242.0-44b1e3-alpha\"]\n [rogerallen/leaplib \"...
clojure
chosen
[ { "from": "system", "value": "Add dependencies on org.clojure/tools.logging\nMove ring-mock dependency to :dev profile (e.g., for testing)\n" }, { "from": "human", "value": "(defproject io.aviso/rook \"0.1.2\"\n :description \"Ruby on Rails-style resource mapping for Clojure/Compojure web apps\...
clojure
chosen
[ { "from": "system", "value": "Switch to lein2 profiles for testing multiple dep sets and add an alias for testing all of them.\n" }, { "from": "human", "value": "(defproject useful \"0.8.3-alpha4\"\n :description \"A collection of generally-useful Clojure utility functions\"\n :license {:name ...
clojure
chosen
[ { "from": "system", "value": "Update dependency org.onyxplatform/onyx to version 0.7.3-20150827_202930-g49ef67c.\n\nAutomatic commit by lein-traffic-control.\n" }, { "from": "human", "value": "(defproject org.onyxplatform/onyx-kafka \"0.7.3-SNAPSHOT\"\n :description \"Onyx plugin for Kafka\"\n ...
clojure
chosen
[ { "from": "system", "value": "Add Jetty server to dependencies. (For learning experience.)\n" }, { "from": "human", "value": "(defproject frontrow \"0.1.0-SNAPSHOT\"\n :description \"FIXME: write description\"\n :url \"http://example.com/FIXME\"\n :license {:name \"Eclipse Public License\"\n ...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject org.onyxplatform/onyx-datomic \"0.8.0.0\"\n :description \"Onyx plugin for Datomic\"\n :url \"https://github.com/MichaelDrogalis/onyx-datomic\"\n :license {:name \"Eclipse Public Licen...
clojure
chosen
[ { "from": "system", "value": "Use sut idiom in base test too\n" }, { "from": "human", "value": "(ns comic-reader.ui.base-test\n (:require [devcards.core :refer-macros [defcard-rg]]\n [comic-reader.ui.base :as ui-base]))\n\n(defcard-rg loading\n \"## Loading\n This is the loading s...
clojure
chosen
[ { "from": "system", "value": "Add missing require expression for defregistry\n" }, { "from": "human", "value": "(ns workflo.macros.permission\n (:require-macros [workflo.macros.permission :refer [defpermission]]))\n\n;;;; Permission registry\n\n(defregistry permission)\n" }, { "from": "...
clojure
chosen
[ { "from": "system", "value": "Update jooq version to 3.7.2\n" }, { "from": "human", "value": "(defproject funcool/suricatta \"0.6.1\"\n :description \"High level sql toolkit for clojure (backed by jooq library)\"\n :url \"https://github.com/funcool/suricatta\"\n :license {:name \"BSD (2-Claus...
clojure
chosen
[ { "from": "system", "value": "Add `cheshire` as dependency for `clj-http`\n" }, { "from": "human", "value": "(defproject clj-spotify \"0.1.2\"\n :description \"A client library for the Spotify Web API\"\n :url \"https://github.com/blmstrm/clj-spotify\"\n :license {:name \"The MIT License (MIT...
clojure
chosen
[ { "from": "system", "value": "Add leiningen as a dev dependency\n" }, { "from": "human", "value": "(defproject thomasa/mranderson \"0.5.1-SNAPSHOT\"\n :description \"Dependency inlining and shadowing tool.\"\n :url \"https://github.com/benedekfazekas/mranderson\"\n :license {:name \"Eclipse P...
clojure
chosen
[ { "from": "system", "value": "Modify user model to construct user tickets explicitly at creation time\n" }, { "from": "human", "value": "(ns checkin-halake.models.users\n (:require [monger.core :as mg]\n [monger.collection :as mc]\n [environ.core :refer [env]])\n (:use [c...
clojure
chosen
[ { "from": "system", "value": "Add missing Tufte stub function.\n" }, { "from": "human", "value": ";; This Source Code Form is subject to the terms of the Mozilla Public\n;; License, v. 2.0. If a copy of the MPL was not distributed with this\n;; file, You can obtain one at http://mozilla.org/MPL/...
clojure
chosen
[ { "from": "system", "value": "Load main ui using url\n" }, { "from": "human", "value": "(ns atom.core)\n\n(def app (js/require \"app\"))\n(def browser-window (js/require \"browser-window\"))\n(def crash-reporter (js/require \"crash-reporter\"))\n\n(def main-window (atom nil))\n\n(defn...
clojure
chosen
[ { "from": "system", "value": "Make it Possible to Start REPL without .env File\n\nI use a in-memory DB with populated base schema in this case.\n" }, { "from": "human", "value": "(ns system\n (:require [clojure.string :as str]\n [org.httpkit.server :refer [run-server]]\n [...
clojure
chosen
[ { "from": "system", "value": "Return test expectation to previous value\n" }, { "from": "human", "value": "(ns org.spootnik.cyanite.carbon-test\n (:require [org.spootnik.cyanite.carbon :refer :all]\n [org.spootnik.cyanite.config :refer [assoc-rollup-to]]\n [clojure.test ...
clojure
chosen
[ { "from": "system", "value": "Update total coins on triggered events\n\nThis just adds to the total in course-material, which is retrieved\nperiodically from the server and is authorative.\n" }, { "from": "human", "value": "(ns rill.web\n (:require [clojure.tools.logging :as log]\n [...
clojure
chosen
[ { "from": "system", "value": "Add stop to frontend dev tools\n" }, { "from": "human", "value": "(ns comic-reader.frontend-dev\n (:require [clojure.java.browse :refer [browse-url]]\n [clojure.repl :refer :all]\n [comic-reader.system :refer [go]]\n [figwheel-sidec...
clojure
chosen
[ { "from": "system", "value": "Add `dbg` macro, like `trace`, but better\n\nCredit:\n http://www.learningclojure.com/2010/09/clojure-macro-tutorial-part-i-getting.html\n" }, { "from": "human", "value": ";; Copyright (c) 2011-2016 Juan Pedro Bolivar Puente <raskolnikov@gnu.org>\n;;\n;; This file ...
clojure
chosen
[ { "from": "system", "value": "Update to latest nREPL snapshot\n" }, { "from": "human", "value": "{:user #=(merge\n {:plugins [[lein-try \"0.4.1\"]\n [lein-pprint \"1.1.1\"]\n [cider/cider-nrepl \"0.8.0\"]]}\n #=(eval (try (read-string...
clojure
chosen
[ { "from": "system", "value": "Refactor so that tests actually fail if jboss fails to start\n" }, { "from": "human", "value": "(ns fntest.core\n (:require [fntest.jboss :as jboss]))\n\n(defn with-jboss [f]\n \"A test fixture for starting/stopping JBoss\"\n (try\n (println \"Starting JBoss\"...
clojure
chosen
[ { "from": "system", "value": "Add Parse->string function to layout.\n" }, { "from": "human", "value": "(ns incise.layouts.core\n (:refer-clojure :exclude [get]))\n\n(def layouts (atom {}))\n\n(defn exists?\n \"Check for the existance of a layout with the given name.\"\n [layout-with-name]\n ...
clojure
chosen
[ { "from": "system", "value": "Add type hints (why not?)\n" }, { "from": "human", "value": "(ns boilerpipe-clj.core\n (:require [boilerpipe-clj.extractors :as ext])\n (:require [boilerpipe-clj.util :as util]))\n\n(defn get-text\n \"Takes HTML as String and returns extracted content.\n\n Will ...
clojure
chosen
[ { "from": "system", "value": "Update to release of patched tools.cli\n" }, { "from": "human", "value": "(defproject com.palletops/cli-cmds \"0.1.0-SNAPSHOT\"\n :description \"Library for writing command line interfaces\"\n :url \"https://githubs.com/pallet/cli-cmds\"\n :license {:name \"Eclip...
clojure
chosen
[ { "from": "system", "value": "Add eastwood to repl dependencies.\n" }, { "from": "human", "value": "(defproject dsbdp \"0.1.0-SNAPSHOT\"\n :description \"FIXME: write description\"\n :url \"http://example.com/FIXME\"\n :license {:name \"Eclipse Public License\"\n :url \"http://www....
clojure
chosen
[ { "from": "system", "value": "Change prefix into avow to full var name.\n" }, { "from": "human", "value": "(ns incise.config\n (:require [clojure.java.io :refer [reader file resource]]\n [clojure.edn :as edn]\n [manners.victorian :refer [avow!]])\n (:import [java.io Pushb...
clojure
chosen
[ { "from": "system", "value": "Update clojars-deployer to use latest leiningen.\n\nWe were relying on a pomegranate snapshot that no longer existed.\n" }, { "from": "human", "value": ";; Copyright 2008-2014 Red Hat, Inc, and individual contributors.\n;; \n;; This is free software; you can redistr...
clojure
chosen
[ { "from": "system", "value": "Use matching verison of cider.\n" }, { "from": "human", "value": "{:repl {:plugins [[cider/cider-nrepl \"0.18.0\"]\n [refactor-nrepl \"2.4.0-SNAPSHOT\"]]\n :dependencies\n [[acyclic/squiggly-clojure \"0.1.9-SNAPSHOT\"\n :exclu...
clojure
chosen
[ { "from": "system", "value": "Use env for db spec\n" }, { "from": "human", "value": "(ns shouter.models.queries\n (:require [yesql.core :refer [defqueries]]))\n\n(def spec (or (System/getenv \"DATABASE_URL\")\n \"postgresql://localhost/shouter\"))\n\n(defqueries \"queries.sql\")\n"...
clojure
chosen
[ { "from": "system", "value": "Add functions to format tasks into a table.\n" }, { "from": "human", "value": "(ns todo-repl-webapp.views\n (:require [hiccup.form :as form]\n [hiccup.page :as page]\n [hiccup.core :as core]))\n\n(defn home [& _]\n (core/html [:head \n ...
clojure
chosen
[ { "from": "system", "value": "Add Log4j as SLF4J implementation\n\nNow Kafka Streams reveals its soul as soon as you initialize it.\n" }, { "from": "human", "value": "(defproject clstreams \"0.1.0-SNAPSHOT\"\n :description \"FIXME: write description\"\n :url \"http://example.com/FIXME\"\n :li...
clojure
chosen
[ { "from": "system", "value": "Fix test and add comment\n" }, { "from": "human", "value": "(ns cmr.transmit.test.echo.rest\n \"Tests for cmr.transmit.echo.rest namespace\"\n (:require [clojure.test :refer :all]\n [cmr.transmit.echo.rest :as rest]))\n\n(deftest test-error-masked\n (l...
clojure
chosen
[ { "from": "system", "value": "Stop using potentially not-real feature of require\n" }, { "from": "human", "value": "(ns comic-reader.ui.site-list\n (:refer-clojure :exclude [get set]\n :rename {get cget})\n (:require [re-frame.core :as re-frame]\n [reagent.ratom :re...
clojure
chosen
[ { "from": "system", "value": "Add injections to keep myself from killing repls\n" }, { "from": "human", "value": "(defproject me.arrdem/oxcart (slurp \"VERSION\")\n :description \"An experimental optimizing compiler for Clojure code\"\n :url \"http://github.com/arrdem/oxcart\"\n :license {:na...
clojure
chosen
[ { "from": "system", "value": "Add note to replace goog.require with require\n" }, { "from": "human", "value": "(ns frontend.devtools\n (:require [environ.core :refer [env]]))\n\n(defmacro require-devtools! []\n (when (:devtools env)\n '(js/goog.require \"frontend.devtools\")))\n" }, { ...
clojure
chosen
[ { "from": "system", "value": "Arrange smoke test on play game\n" }, { "from": "human", "value": "(ns obb-api.handlers.play-game-test\n (:require [clojure.test :refer :all]\n [obb-api.service-test :as service]\n [obb-rules.stash :as stash]\n [obb-api.handlers.dep...
clojure
chosen
[ { "from": "system", "value": "Add some content to front page\n" }, { "from": "human", "value": ";; Define template options here\n; @layout default\n; @title home\n\n;; Your own function in template\n(defn page-header [[fs & rs]]\n [:div {:class \"page-header\"}\n [:h1 [:span fs] rs]])\n\n;...
clojure
chosen
[ { "from": "system", "value": "Add 'count' to web api.\n" }, { "from": "human", "value": "(ns\n ^{:author \"Brian Craft\"\n :doc \"A set of core functions for use with cavm.query.expression.\"}\n cavm.query.functions\n (:use clojure.core.matrix)\n (:use clojure.core.matrix.operators)\n (:...
clojure
chosen
[ { "from": "system", "value": "Save stats as pretty-printed data.\n\nThis makes reating diffs easier as well as visual examination of data files\neasier.\n" }, { "from": "human", "value": "(ns hxgm30.language.io\n (:require\n [clojure.edn :as edn]\n [clojure.java.io :as io]\n [clojure.s...
clojure
chosen
[ { "from": "system", "value": "Advance version number to 0.1.4-SNAPSHOT\n" }, { "from": "human", "value": "(defproject io.aviso/rook \"0.1.3\"\n :description \"Ruby on Rails-style resource mapping for Clojure/Compojure web apps\"\n :url \"https://github.com/AvisoNovate/rook\"\n :license {:name...
clojure
chosen
[ { "from": "system", "value": "Set up uberjar for use with the Procfile\n" }, { "from": "human", "value": "(defproject deadman \"0.1.0-SNAPSHOT\"\n :description \"FIXME: write description\"\n :url \"http://example.com/FIXME\"\n :license {:name \"Eclipse Public License\"\n :url \"htt...
clojure
chosen
[ { "from": "system", "value": "Advance version number to 0.1.7\n" }, { "from": "human", "value": "(defproject io.aviso/tracker \"0.1.6\"\n :description \"Track per-thread operations when exceptions occur\"\n :url \"https://github.com/AvisoNovate/tracker\"\n :licen...
clojure
chosen
[ { "from": "system", "value": "Make cljs dep :scope :provided\n" }, { "from": "human", "value": "(defproject coolant \"0.1.0-SNAPSHOT\"\n :description \"FIXME: write description\"\n :url \"http://example.com/FIXME\"\n :license {:name \"Eclipse Public License\"\n :url \"http://www.ec...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject onyx-app/lein-template \"0.9.11.0\"\n :description \"Onyx Leiningen application template\"\n :url \"https://github.com/onyx-platform/onyx-template\"\n :license {:name \"MIT License\"\n...
clojure
chosen
[ { "from": "system", "value": "Test retrieve-build-definitions function stubbing the api request\n" }, { "from": "human", "value": "(ns build-mon.test.vso-api\n (:require [midje.sweet :refer :all]\n [clojure.java.io :as io]\n [build-mon.vso-api :as api]))\n\n(fact \"vso-api...
clojure
chosen