conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Update Jetty to version 9.4.44\n\nCVE-2021-34429 is fixed in version 9.4.43 but it makes sense to\nupdate to the latest 9.x series release with further fixes.\n" }, { "from": "human", "value": "(defproject ring/ring-jetty-adapter \"1.9.4\"\n :description \"Ring Jet...
clojure
chosen
[ { "from": "system", "value": "Reset counter so the test can be run multiple times in repl.\n" }, { "from": "human", "value": "(ns cmr.common.test.cache\n (:require [clojure.test :refer :all]\n [cmr.common.cache :as c]))\n\n(def counter (atom 0))\n\n(defn increment-counter\n \"Increm...
clojure
chosen
[ { "from": "system", "value": "Update clj-http to fix error with Clojure 1.8\n" }, { "from": "human", "value": "(defproject ring/ring-jetty-adapter \"1.4.0\"\n :description \"Ring Jetty adapter.\"\n :url \"https://github.com/ring-clojure/ring\"\n :scm {:dir \"..\"}\n :license {:name \"The MIT...
clojure
chosen
[ { "from": "system", "value": "Add a workaround for bug in Leiningen 1.6.2.\n" }, { "from": "human", "value": "(ns leiningen.bootstrap\n \"Bootstrap the project by running lein deps and lein git-deps.\"\n (:require leiningen.deps\n leiningen.git-deps))\n\n(defn bootstrap\n \"Bootstr...
clojure
chosen
[ { "from": "system", "value": "Configure junit task with the correct package\n" }, { "from": "human", "value": "(set-env!\n :source-paths #{\"src/main/java\" \"src/test/java\"}\n :dependencies '[[radicalzephyr/boot-junit \"0.1.0\" :scope \"test\"]])\n\n(def +version+ \"0.1.0\")\n\n(require '[radi...
clojure
chosen
[ { "from": "system", "value": "Make page background a tad lighter\n" }, { "from": "human", "value": "(ns braid.ui.styles.body)\n\n(def body\n [:body\n {:margin 0\n :padding 0\n :font-family \"\\\"Open Sans\\\", Helvetica, Arial, sans-serif\"\n :font-size \"12px\"\n :background \"#e...
clojure
chosen
[ { "from": "system", "value": "Replace hyphen in filename with underscore & rename ns\n" }, { "from": "human", "value": "(ns word-count.test (:require [clojure.test :refer :all]))\n(load-file \"word-count.clj\")\n\n(deftest count-one-word\n (is (= {\"word\" 1}\n (phrase/word-count \"word...
clojure
chosen
[ { "from": "system", "value": "Handle nil values in match validations.\n" }, { "from": "human", "value": "(ns clj-record.test.validation-built-ins-test\n (:use clojure.contrib.test-is)\n (:require [clj-record.validation.built-ins :as vfn]))\n\n\n(deftest match-creates-a-matching-fn-for-the-give...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject org.onyxplatform/onyx-datomic \"0.8.1.0-alpha3\"\n :description \"Onyx plugin for Datomic\"\n :url \"https://github.com/MichaelDrogalis/onyx-datomic\"\n :license {:name \"Eclipse Publi...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject onyx-app/lein-template \"0.13.3.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": "Change version to snapshot again\n" }, { "from": "human", "value": ";; The Climate Corporation licenses this file to you under under the Apache\n;; License, Version 2.0 (the \"License\"); you may not use this file except in\n;; compliance with the License. You may ...
clojure
chosen
[ { "from": "system", "value": "Revert \"kill tests for funcs that do not exist anymore\"\n\nThis reverts commit 70c3caf8b047080f759713cb4085c64af893e0c0.\n" }, { "from": "human", "value": "(ns riemann.test.common\n (:use riemann.common)\n (:use clojure.test))\n" }, { "from": "gpt", ...
clojure
chosen
[ { "from": "system", "value": "Add fetch project by token repo functions.\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://mozill...
clojure
chosen
[ { "from": "system", "value": "Fix dumbass mistake in string concat. Do it the easy way\n\nSigned-off-by: Eric Baur <a1c9c5f8609c68027db0779b39e5f932d4cb0053@robeybaur.org>\n" }, { "from": "human", "value": "(ns cljparse.core\n (:require [instaparse.core :as insta]\n [clojure.java.io ...
clojure
chosen
[ { "from": "system", "value": "Tag generated json as a String.\n" }, { "from": "human", "value": "(ns clj-json\n (:import (clj_json JsonExt)\n (org.codehaus.jackson JsonFactory JsonParser)\n (java.io StringWriter StringReader BufferedReader))\n (:use (clojure.contrib [def :o...
clojure
chosen
[ { "from": "system", "value": "Add error handler plugin to intro example\n" }, { "from": "human", "value": "(ns com.wsscode.pathom.book.intro.demo\n (:require [com.wsscode.pathom.core :as p]\n [com.wsscode.pathom.connect :as pc]))\n\n(pc/defresolver answer [_ _]\n {::pc/output [:answ...
clojure
chosen
[ { "from": "system", "value": "Make sure to stop the synth.\nThis prevents it from making some garbage noise at the end of the program.\n" }, { "from": "human", "value": "(ns rule110.core\n (:require [rule110.midi :as midi]))\n\n(def grid-size 1024 )\n(def max-steps 100)\n\n(def step-rule {\n ...
clojure
chosen
[ { "from": "system", "value": "Break out function for calculating piece css class\n" }, { "from": "human", "value": "(ns chess.core\n (:require [om.core :as om :include-macros true]\n [om.dom :as dom :include-macros true]\n [chess.board :as board]))\n\n(defonce app-state (a...
clojure
chosen
[ { "from": "system", "value": "Add function for calculating value of coalition\n" }, { "from": "human", "value": "(ns baustellen)\n\n(defn distance [p1 p2]\n (Math/sqrt\n (apply +\n (map (fn [c1 c2] (Math/pow (- c1 c2) 2))\n p1 p2))))\n\n(defn cost\n \"Returns the co...
clojure
chosen
[ { "from": "system", "value": "Add url to silence Leiningen\n" }, { "from": "human", "value": ";; Copyright © 2014 JUXT LTD.\n\n;; We call this project modular to make the invocation: lein new modular appname\n(defproject modular/lein-template \"0.6.13\"\n :description \"Leiningen template for a...
clojure
chosen
[ { "from": "system", "value": "Fix bug in robot-kata-routes test\n" }, { "from": "human", "value": "(ns robot-kata.server-test\n (:require [clojure.test :refer :all]\n [robot-kata.server :refer :all]))\n\n(deftest robot-kata-routes-test\n (testing \"Routes work as expected\"\n...
clojure
chosen
[ { "from": "system", "value": "Allow uberjar to run migration/rollback\n" }, { "from": "human", "value": "(ns time-tracker.core\n (:gen-class)\n (:require [time-tracker.web.service :as web-service]\n [time-tracker.db :as db]\n [time-tracker.logging :as log]\n [o...
clojure
chosen
[ { "from": "system", "value": "Disable advanced target to speed up \"lein cljsbuild test whitespace\"\n" }, { "from": "human", "value": "(defproject kukui \"0.1.0-pre\"\n :dependencies [[org.clojure/clojure \"1.6.0\"]\n [org.clojure/clojurescript \"0.0-2227\"]]\n :profiles {:dev...
clojure
chosen
[ { "from": "system", "value": "Update compojure from 1.3.3 to 1.4.0\n" }, { "from": "human", "value": "(defproject statuses \"1.0.0-SNAPSHOT\"\n :description \"Statuses app for innoQ\"\n :url \"https://github.com/innoq/statuses\"\n :license {:name \"Apache License, Version 2.0\"\n :...
clojure
chosen
[ { "from": "system", "value": "Make some indentation more Clojurey.\n" }, { "from": "human", "value": "(ns metrics.counters\n (:use [metrics.utils :only (metric-name)])\n (:import (com.yammer.metrics Metrics))\n (:import (com.yammer.metrics.core Counter)))\n\n\n; Create -----------------------...
clojure
chosen
[ { "from": "system", "value": "Work on frame grab code" }, { "from": "human", "value": "(ns telegenic.core\n (:import [org.jcodec.api FrameGrab]))\n\n" }, { "from": "gpt", "value": "(ns telegenic.core\n (:import [org.jcodec.api FrameGrab])\n (:import [java.io File])\n (:import [ja...
clojure
chosen
[ { "from": "system", "value": "Move loom dependency to tests\n" }, { "from": "human", "value": "(defproject asystant \"0.1.1-SNAPSHOT\"\n :description \"A simple, flexible helper for building modular systems with clojure/core.async\"\n :url \"https://github.com/monteithpj/asystant\"\n :license...
clojure
chosen
[ { "from": "system", "value": "Update dependency org.onyxplatform/onyx to version 0.7.3-20150901_142736-gd0de107.\n\nAutomatic commit by lein-unison.\n" }, { "from": "human", "value": "(defproject org.onyxplatform/onyx-datomic \"0.7.2.0\"\n :description \"Onyx plugin for Datomic\"\n :url \"http...
clojure
chosen
[ { "from": "system", "value": "Add metadata to appease clojars\n\nConflicts:\n\tproject.clj\n" }, { "from": "human", "value": "(defproject com.draines/postal \"1.12-SNAPSHOT\"\n :repositories {\"java.net\" \"http://download.java.net/maven/2\"}\n :dependencies [[commons-codec \"1.9\"]\n ...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject org.onyxplatform/onyx-datomic \"0.7.4\"\n :description \"Onyx plugin for Datomic\"\n :url \"https://github.com/MichaelDrogalis/onyx-datomic\"\n :license {:name \"Eclipse Public License...
clojure
chosen
[ { "from": "system", "value": "Revert \"Trying to add contrib dep to make lein-release work\"\n\nThis reverts commit 73a2a0dfcc2468a48c352c5a1ca4ba4392d96301.\n" }, { "from": "human", "value": "(defproject se.haleby/stub-http \"0.2.8\"\n :description \"A client library agonistic way to stub HTTP...
clojure
chosen
[ { "from": "system", "value": "Add clj-ml dependency for patrec.\n" }, { "from": "human", "value": "(defproject cadence \"0.2.0-SNAPSHOT\"\n :description \"Use pattern recognition to match users with Cadence.js\n output.\"\n :min-lein-version \"2.0.0\"\n :license {:name \"Eclipse...
clojure
chosen
[ { "from": "system", "value": "Add a docstring for block-forever!\n" }, { "from": "human", "value": "(ns desdemona.launcher.utils\n (:require\n [clojure.core.async :as a]))\n\n(defn block-forever!\n []\n (a/<!! (a/chan)))\n" }, { "from": "gpt", "value": "(ns desdemona.launcher.ut...
clojure
chosen
[ { "from": "system", "value": "Update library dependencies and release clostache\n" }, { "from": "human", "value": ";; Copyright © 2014 JUXT LTD.\n\n(defproject juxt.modular/clostache \"0.6.0\"\n :description \"A modular extension that provides a Clostache templater for juxt.modular/template\"\n...
clojure
chosen
[ { "from": "system", "value": "Sort posts by updated-at or the most recent comment updated-at, return only the first tot posts.\n" }, { "from": "human", "value": "(ns oc.storage.util.sort)\n\n(defn- activity-sort\n \"\n Compare function to sort 2 entries and/or activity by their `created-at` or...
clojure
chosen
[ { "from": "system", "value": "Add more stuff to my .lein.\n" }, { "from": "human", "value": "{:user {:plugins [[lein-marginalia \"0.7.1\"]\n [cider/cider-nrepl \"0.7.0-SNAPSHOT\"]\n [lein-try \"0.4.1\"]\n [lein-clojars \"0.9.1\"]\n ...
clojure
chosen
[ { "from": "system", "value": "Update Mac file name possibilities\n" }, { "from": "human", "value": "(ns app.analysis\n \"GitHub releases URL analysis\"\n (:require\n [taoensso.timbre :as timbre :refer-macros [info]]))\n\n(defn get-os\n [url]\n (cond\n (boolean (re-find #\"windows\" url...
clojure
chosen
[ { "from": "system", "value": "Add more setup for alembic\n" }, { "from": "human", "value": ";; See: https://github.com/kumarshantanu/lein-localrepo\n{:user {:plugins [;; Try new api quickly using the repl\n [lein-try \"0.4.3\"]\n\n ;;[lein-localrepo \"0.5.4\"]\n...
clojure
chosen
[ { "from": "system", "value": "Use conditional instead of both\n" }, { "from": "human", "value": "(ns icecap.handlers.delay\n (:require [clojure.core.async :refer [timeout]]\n [icecap.handlers.core :refer [defstep]]\n [schema.core :as sc]))\n\n(defstep :delay\n {:amount (s...
clojure
chosen
[ { "from": "system", "value": "Add simple Cljs to HTML helpers\n" }, { "from": "human", "value": "\n(ns mathom.toolbar)\n\n(def tool (atom {}))\n\n(defn clean\n []\n (let [prev (.getElementById js/document \"mathom_toolbar\")]\n (if (not (nil? prev))\n (.remove prev))))\n\n(defn set-con...
clojure
chosen
[ { "from": "system", "value": "Test for the correct clojure version.\n" }, { "from": "human", "value": ";; Copyright 2008-2014 Red Hat, Inc, and individual contributors.\n;; \n;; This is free software; you can redistribute it and/or modify it\n;; under the terms of the GNU Lesser General Public L...
clojure
chosen
[ { "from": "system", "value": "Use threading macro for app setup.\n" }, { "from": "human", "value": "(ns webdev.core\n (:use [org.httpkit.server :only [run-server]])\n (:require [webdev.item.migration :as migration]\n [webdev.item.routes :refer [item-routes]]\n [webdev.com...
clojure
chosen
[ { "from": "system", "value": "Add \"-client\" to JVM opts for quickstart projects.\n" }, { "from": "human", "value": "(defproject {{ project_name }} \"0.0.1-SNAPSHOT\"\n :source-paths [\"topologies\"]\n :resource-paths [\"_resources\"]\n :aot :all\n :target-path \"_build\"\n :min-lein-versi...
clojure
chosen
[ { "from": "system", "value": "Add docstrings to chapter 5 stubs.\n" }, { "from": "human", "value": "(ns little-clojurer.chapter5\n (:require [little-clojurer.chapter4 :refer :all]))\n\n\n(defn rember*\n [a l]\n nil)\n\n\n(defn insertR*\n [new old l]\n nil)\n\n\n(defn occur*\n [a l]\n nil)...
clojure
chosen
[ { "from": "system", "value": "Simplify arguments the editing component gets from the cell component\n" }, { "from": "human", "value": "(ns reabledit.components\n (:require [reabledit.util :as util]))\n\n(defn data-table-cell-input\n [columns data nth-row nth-col state]\n (let [k (:key (nth co...
clojure
chosen
[ { "from": "system", "value": "Fix arity of interop call\n" }, { "from": "human", "value": "(ns interop.Sample\n (:gen-class))\n\n(defn -main []\n (throw (UnsupportedOperationException. \"Not yet implemented\")))" }, { "from": "gpt", "value": "(ns interop.Sample\n (:gen-class))\n\n...
clojure
chosen
[ { "from": "system", "value": "Fix list of known commands in help message\n" }, { "from": "human", "value": "(ns leiningen.pallet-release\n \"Pallet release commands to support the PalletOps release workflow.\"\n (:require\n [leiningen.pallet-release.core :refer [fail]]\n [leiningen.pallet-...
clojure
chosen
[ { "from": "system", "value": "Fix merge issue in last commit.\n" }, { "from": "human", "value": "(ns onyx.types)\n\n<<<<<<< HEAD\n(defrecord Message [id payload])\n\n(defrecord Leaf [message id acker-id completion-id ack-val hash-group route])\n=======\n(defrecord Leaf [message id acker-id compl...
clojure
chosen
[ { "from": "system", "value": "Test allegedly better error reporting\n\nRefs #1.\n" }, { "from": "human", "value": "(ns icecap.schema-test\n (:require [icecap.schema :refer :all]\n [clojure.test :refer :all]\n [schema.core :as s]))\n\n(def simple-http-request {:target \"htt...
clojure
chosen
[ { "from": "system", "value": "Fix stack overflow during startup" }, { "from": "human", "value": "(ns lcmap.clownfish.system\n (:require [again.core :as again]\n [clojure.tools.logging :as log]\n ;; requiring this ensures the server component will start\n [lcmap....
clojure
chosen
[ { "from": "system", "value": "Example: Make sure page component is started before server\n\nIn the system definition from the example code, an explicit dependency\nfrom the :server component to the :example-page component is introduced\nto make sure the routes for example-page are registered before the\nser...
clojure
chosen
[ { "from": "system", "value": "Support 0, 1 or more in plural translations\n" }, { "from": "human", "value": "(ns uxbox.locales\n \"A i18n foundation.\"\n (:require [hodgepodge.core :refer [local-storage]]\n [cuerdas.core :as str]\n [uxbox.locales.en :as locales-en]))\n\n(...
clojure
chosen
[ { "from": "system", "value": "Remove useless stuff and set ring handler\n" }, { "from": "human", "value": "(defproject shurly \"1.0.0-SNAPSHOT\"\n :description \"FIXME: write description\"\n :url \"http://shurly.herokuapp.com\"\n :license {:name \"FIXME: choose\"\n :url \"http://ex...
clojure
chosen
[ { "from": "system", "value": "Move clj-time dependency to cmr-common-lib\n" }, { "from": "human", "value": "(defproject nasa-cmr/cmr-system-trace-lib \"0.1.0-SNAPSHOT\"\n :description \"Provides library functions for tracing requests throughout the CMR system. Built on\n Twitter Z...
clojure
chosen
[ { "from": "system", "value": "Update pretty dependency to 0.1.6\n" }, { "from": "human", "value": "(defproject io.aviso/twixt \"0.1.5\"\n :description \"An extensible asset pipeline for Clojure web applications\"\n :url \"https://github.com/AvisoNovate/twixt\"\n :license {:name \"Apache Sofwa...
clojure
chosen
[ { "from": "system", "value": "Make clean-tokyo task also use conch.\n" }, { "from": "human", "value": "(ns leiningen.clean-tokyo\n (:use [clojure.java.shell :only [sh]]\n [clojure.java.io :only [file]]))\n\n(defn clean [srcdir]\n (when (.exists (file srcdir \"Makefile\"))\n (println ...
clojure
chosen
[ { "from": "system", "value": "Add sum and diff tests\n" }, { "from": "human", "value": "(ns jest.arithmetic-test\n (:require [clojure.test :refer :all]\n [jest.utils :refer :all]\n :verbose))\n\n(deftest product-test-1\n (test-code\n \"val x = 1 * 2;\"\n [\"(def x (* ...
clojure
chosen
[ { "from": "system", "value": "Use byddy.crypto utils function for get a byte array from string on make-secret-key function.\n" }, { "from": "human", "value": "(ns buddy.crypto.keys\n (:import java.security.Key))\n\n(defn make-secret-key\n \"Generates a Key instance from given raw string key.\"...
clojure
chosen
[ { "from": "system", "value": "Add cut handler to read-only cell\n" }, { "from": "human", "value": "(ns reabledit.cells.read-only\n (:require [reabledit.util :as util]))\n\n(defn read-only-cell\n [{:keys [row-data column-key]}]\n (let [v (get row-data column-key)]\n [:div.reabledit-read-onl...
clojure
chosen
[ { "from": "system", "value": "Replace fake json route by /images route\n" }, { "from": "human", "value": " (ns silly-image-store.handler\n (:require [silly-image-store.store :as store]\n [environ.core :refer [env]]\n [compojure.core :refer :all]\n [ring.middlewa...
clojure
chosen
[ { "from": "system", "value": "Use unification to constrain results\n" }, { "from": "human", "value": "(ns desdemona.query\n (:require [clojure.core.logic :as l]))\n\n(defn ^:private gen-query\n [n-answers query events]\n `(l/run ~n-answers [results#]\n (l/fresh [~'x]\n (l/membero ~'...
clojure
chosen
[ { "from": "system", "value": "Add workaround to fix ClojureScript\n" }, { "from": "human", "value": "(ns clojuresque.tasks.repl\n (:require\n [clojuresque.cli :as cli]\n [clojuresque.util :as util]\n [clojure.tools.nrepl.server :as repl]))\n\n(def barrier (promise))\n(def server nil)\n...
clojure
chosen
[ { "from": "system", "value": "Use some more authentic test data\n" }, { "from": "human", "value": "(ns cglossa.core\n (:require [reagent.core :as reagent :refer [atom]]\n [plumbing.core :as plumbing :refer [map-vals]]\n [cglossa.centre :as centre]))\n\n(def state {:showing...
clojure
chosen
[ { "from": "system", "value": "Add function for getting a hiccup image tag\n" }, { "from": "human", "value": "(ns comic-reader.scrape\n (:require [clojure.string :as s]\n [net.cgrand.enlive-html :as html])\n (:import java.net.URL))\n\n(defn fetch-feed [url]\n (html/xml-resource (jav...
clojure
chosen
[ { "from": "system", "value": "Fix character encodings for the data read from the csv. Remove columns from the response.\n" }, { "from": "human", "value": "(ns my-money.routes.upload\n (:require [my-money.op-csv :refer :all]\n [compojure.core :refer [defroutes POST]]\n [rin...
clojure
chosen
[ { "from": "system", "value": "Adjust the deftemplates and defsnippets\n\nIn bc87d96 I had made an adjustment to the HTML. Change the Enlive code\nto take advantage of that. That means putting the login form into the\nright column and the main text in the middle.\n" }, { "from": "human", "value":...
clojure
chosen
[ { "from": "system", "value": "Add some missing update props to the update SQS trigger.\n" }, { "from": "human", "value": "(ns oc.storage.lib.email\n (:require [amazonica.aws.sqs :as sqs]\n [taoensso.timbre :as timbre]\n [schema.core :as schema]\n [oc.storage.con...
clojure
chosen
[ { "from": "system", "value": "Update the clojure fizzbuzz tests.\n" }, { "from": "human", "value": "(ns fizzbuzz.core-test\n (:require [clojure.test :refer :all]\n [fizzbuzz.core :refer :all]))\n\n(deftest a-test\n (testing \"FIXME, I fail.\"\n (is (= 0 1))))\n" }, { "fro...
clojure
chosen
[ { "from": "system", "value": "Advance version number to 0.1.1\n" }, { "from": "human", "value": "(defproject io.aviso/tracker \"0.1.0\"\n :description \"Track per-thread operations when exceptions occur\"\n :url \"https://github.com/AvisoNovate/tracker\"\n :license {:name \"Apache Sofware Lic...
clojure
chosen
[ { "from": "system", "value": "Include monger 2.0.0 as a dependency\n" }, { "from": "human", "value": "(def project-version \"0.1.0-SNAPSHOT\")\n\n(defproject whitman project-version\n :description \"Samples web APIs for fun and profit\"\n :url \"https://github.com/mdippery/whitman\"\n :licens...
clojure
chosen
[ { "from": "system", "value": "Implement binary reader for clj/cljs\n\nThe funtion parse-rom will read from binary and convert it to 4-bit\narray.\n\nFor example, the binary form is\n\n\t(79 FB 68 05 F2 00 00 05)\n\nthe parse-rom will convert it to\n\n\t(7 9 7 11 6 8 0 5 7 2 0 0 0 0 0 5)\n\nSigned-off-by: Ye...
clojure
chosen
[ { "from": "system", "value": "Rewrite API call to dispatch a re-frame event\n" }, { "from": "human", "value": "(ns comic-reader.api\n (:require [ajax.core :refer [GET POST]]))\n\n(defn error-handler [{:keys [status status-text]}]\n (.log js/console (str \"something bad happened: \" status \" \...
clojure
chosen
[ { "from": "system", "value": "Fix up global deps and plugins.\n" }, { "from": "human", "value": "{:user {\n :dependencies [[cider/cider-nrepl \"0.12.0-SNAPSHOT\"] ; Emnacs\n [acyclic/squiggly-clojure \"0.1.5\"] ; Emacs\n ^:replace [org.clo...
clojure
chosen
[ { "from": "system", "value": "Test auto start battle after deploy\n" }, { "from": "human", "value": "(ns obb-rules-api.deploy-test\n (:require [obb-rules-api.simulator-test :as sim])\n (:use clojure.test\n obb-rules-api.routes\n ring.mock.request))\n\n(deftest test-deploy\n (let...
clojure
chosen
[ { "from": "system", "value": "Test that the record expr is only eval'd once\n" }, { "from": "human", "value": "(ns useful.datatypes-test\n (:use clojure.test useful.datatypes))\n\n(defrecord Test [a b c])\n(record-accessors Test)\n\n(deftest test-record\n (let [init (Test. 1 2 3)\n seco...
clojure
chosen
[ { "from": "system", "value": "Remove index from article content, which caused some errors\n" }, { "from": "human", "value": "(ns clojournal.db\n (:require [monger.core :as mg]\n [monger.collection :as mc]\n [environ.core :as env]))\n\n(defonce db\n (let [uri (:mongo-url e...
clojure
chosen
[ { "from": "system", "value": "Add a zero-arg version of done-working\n" }, { "from": "human", "value": "(ns lt.objs.notifos\n (:require [lt.object :as object]\n [lt.objs.statusbar :as statusbar]\n [lt.objs.command :as cmd]\n [lt.util.js :refer [wait]]\n ...
clojure
chosen
[ { "from": "system", "value": "Add more test cases for insufficient/extra input\n" }, { "from": "human", "value": "(ns pinpointer.trace-test\n (:require [clojure.test :refer [deftest are]]\n [clojure.spec.alpha :as s]\n [pinpointer.trace :as trace]))\n\n(deftest trace-test\...
clojure
chosen
[ { "from": "system", "value": "Use local address of dabas-\n" }, { "from": "human", "value": "(ns discuss.config)\n\n(def project \"discuss\")\n\n(def user \"Q2hyaXN0aWFu\")\n\n(def api {:host \"http://dbas/\"\n :init \"api/elektroautos\"\n :base \"api/\"\n :add {:add-...
clojure
chosen
[ { "from": "system", "value": "Make it possible to use the psql event store\n" }, { "from": "human", "value": "(ns rill.cli\n (:require [rill.event-store.atom-store :refer [atom-event-store]]\n [rill.event-channel :refer [event-channel]]\n [rill.event-stream :refer [all-eve...
clojure
chosen
[ { "from": "system", "value": "Refactor initial view into defcomponent.\n" }, { "from": "human", "value": "(ns yadnd5ecs.core\n (:require [om.core :as om :include-macros true]\n [om-tools.dom :as dom :include-macros true]\n [om-tools.core :refer-macros [defcomponent]]))\n\n...
clojure
chosen
[ { "from": "system", "value": "Reset the caret to position 0 when setting the text.\n" }, { "from": "human", "value": "(ns\n ^{:doc \n \n \"A patched JTextField implementation.\"\n \n :author \"Frank Mosebach\"}\n fm.simrunner.gui.text-field\n (:gen-class\n :name fm.simrunner.gui.Text...
clojure
chosen
[ { "from": "system", "value": "Fix 3-digit armstrong test description\n\nThe description contradicts what is being tested and needs to be in\nthe negative.\n" }, { "from": "human", "value": "(ns armstrong-numbers-test\n (:require [clojure.test :refer [deftest is testing]]\n [armstrong...
clojure
chosen
[ { "from": "system", "value": "Update lesson 1 to work for linear regression with multiple variables\n" }, { "from": "human", "value": ";; All about higher order functions =)\n(ns mlpractice.lesson1)\n\n(defn generate-data-set\n \"Generates a map of :x y values for linear regression\"\n [consta...
clojure
chosen
[ { "from": "system", "value": "Add pallet/alembic to Clojure profile\n" }, { "from": "human", "value": ";; See: https://github.com/kumarshantanu/lein-localrepo\n{:user {:plugins [;; Try new api quickly using the repl\n [lein-try \"0.4.3\"]\n\n ;;[lein-localrepo \...
clojure
chosen
[ { "from": "system", "value": "Fix when code doesn't exist\n" }, { "from": "human", "value": "(ns avalon.rules.people\n (:require [bouncer.core :as b]\n [bouncer.validators :as v]\n [avalon.models.crud :as crud]\n [avalon.models.games :as games]))\n\n(defn person...
clojure
chosen
[ { "from": "system", "value": "Make on-load key optional as per documentation\n\n" }, { "from": "human", "value": "(ns braid.core.client.pages\n (:require\n [spec-tools.data-spec :as ds]\n [braid.core.hooks :as hooks]))\n\n(def page-dataspec\n {:key keyword?\n :on-load fn?\n :view fn?...
clojure
chosen
[ { "from": "system", "value": "Update template itself to stable release\n" }, { "from": "human", "value": "(defproject play-clj/lein-template \"0.1.0-SNAPSHOT\"\n :description \"A template for making play-clj projects\"\n :url \"https://github.com/oakes/play-clj\"\n :license {:name \"Public Do...
clojure
chosen
[ { "from": "system", "value": "Change default phrase to a shorter one.\n" }, { "from": "human", "value": "(ns cadence.model\n (:refer-clojure :exclude [identity])\n (:require [monger.core :as mg]\n [monger.collection :as mc]\n [cadence.model.validators :as is-valid]\n ...
clojure
chosen
[ { "from": "system", "value": "SEND MORE STUFF TO FIREBASE\n" }, { "from": "human", "value": "(ns bmihw.submit\n (:require [bmihw.common :refer [auth fb]]\n [reagent-forms.core :refer [bind-fields]]))\n\n(defn update-state! [state key e]\n (let [new-state (swap! state assoc key (-> e...
clojure
chosen
[ { "from": "system", "value": "Fix single mode and switching back to drizzle\n" }, { "from": "human", "value": "(ns app.players\n (:require [app.representation :as reps]\n [app.player :as player]\n [app.multiplexer :as mux]\n [app.screen :as screen]))\n\n(defonce...
clojure
chosen
[ { "from": "system", "value": "Update dependencies to pull Selenium with \"standalone\" classifier, identify test resources path" }, { "from": "human", "value": "(defproject com.howardlewisship.cascade/cascade-core \"1.0.0-SNAPSHOT\"\n :description \"Simple, fast, easy web applications in idioma...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject onyx-app/lein-template \"0.9.0.8\"\n :description \"Onyx Leiningen application template\"\n :url \"https://github.com/onyx-platform/onyx-template\"\n :license {:name \"Eclipse Public L...
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-sql \"0.7.3-SNAPSHOT\"\n :description \"Onyx plugin for JDBC-backed ...
clojure
chosen
[ { "from": "system", "value": "Prepare for next release cycle.\n" }, { "from": "human", "value": "(defproject onyx-app/lein-template \"0.9.7.0-alpha17\"\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": "Add tools.reader as a dep\n" }, { "from": "human", "value": "(defproject me.arrdem/oxcart \"0.1.0-SNAPSHOT\"\n :description \"An experimental optimizing compiler for Clojure code\"\n :url \"http://github.com/arrdem/oxcart\"\n :license {:name \"Eclipse Public Lice...
clojure
chosen
[ { "from": "system", "value": "Refactor logic-query-tests to use `are`\n" }, { "from": "human", "value": "(ns desdemona.query-test\n (:require\n [desdemona.query :as q]\n [clojure.test :refer [deftest is]]))\n\n(def dsl->logic\n @#'desdemona.query/dsl->logic)\n\n(deftest dsl->logic-tests\n ...
clojure
chosen
[ { "from": "system", "value": "Remove the debounce from text input\n" }, { "from": "human", "value": "(ns balance.cmn.pages.task-details-page\n (:require [balance.libs.react-native :as rn]\n [reagent.core :as r]\n [re-frame.core :refer [subscribe dispatch]]\n [ba...
clojure
chosen
[ { "from": "system", "value": "Add API functions for other server calls\n" }, { "from": "human", "value": "(ns comic-reader.api\n (:require [re-frame.core :refer [dispatch]]\n [ajax.core :refer [GET POST]]))\n\n(defn error-handler [{:keys [status status-text]}]\n (.log js/console (st...
clojure
chosen
[ { "from": "system", "value": "Improve Readability of empty? Implementation\n" }, { "from": "human", "value": "(ns lens.reducers\n (:require [clojure.core.reducers :as r])\n (:refer-clojure :exclude [empty? partition-by count]))\n\n(defn partition-by\n \"Applies f to each value in coll, splitt...
clojure
chosen