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 |
|---|---|---|---|---|---|---|---|---|---|
8299522c586d6f1eb76cf8d974ebbd42f6447cc1 | metadata-db-app/src/migrations/053_remove_provider_services_tables.clj | metadata-db-app/src/migrations/053_remove_provider_services_tables.clj | (ns migrations.053-remove-provider-services-tables
(:require [clojure.java.jdbc :as j]
[config.migrate-config :as config]
[config.mdb-migrate-helper :as h]
[cmr.metadata-db.data.oracle.concept-tables :as ct]))
(defn up
"Migrates the database up to version 53."
[]
(println "m... | Add migration to remove provider specific services tables and sequences. | CMR-4176: Add migration to remove provider specific services tables and sequences.
| Clojure | apache-2.0 | nasa/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,nasa/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Meta... | |
fe5b0d5ca3f9ac7578ba349670ce4537472e4d1d | src/clojure/buddy/core/mac/proto.clj | src/clojure/buddy/core/mac/proto.clj | ;; Copyright (c) 2013-2015 Andrey Antukh <niwi@niwi.be>
;;
;; Licensed under the Apache License, Version 2.0 (the "License")
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applic... | Add generic mac engine abstraction for low level but clojure idiomatic access to mac. | Add generic mac engine abstraction for low level but clojure idiomatic access to mac.
| Clojure | apache-2.0 | funcool/buddy-core,funcool/buddy-core | |
9beb420a80c868da020e2602d23c980255541c55 | src/discuss/lib/views.cljs | src/discuss/lib/views.cljs | (ns discuss.lib.views
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(defn fa-icon
"Wrapper for font-awesome icons."
([class]
(dom/i #js {:className (str "fa " class)}))
([class f]
(dom/i #js {:className (str "pointer fa " class)
:onClic... | Create separate namespace for multiple libs | Create separate namespace for multiple libs
| Clojure | mit | hhucn/discuss,hhucn/discuss | |
91ae1792099adecca542c10d1a44a27968d90a11 | src/berry/converters/to_member.clj | src/berry/converters/to_member.clj | (ns berry.converters.to-member
(:require [berry.formatting :refer [indent]]))
(declare colon transform-name)
(defn to-member
[[name value] options to-json]
(let [{prettify? :prettify?} options
name (transform-name name options)
value (to-json value options to-json)]
(str name
(colon... | Add function for transforming a seq with a name and a value into a JSON member | Add function for transforming a seq with a name and a value into a JSON member
| Clojure | mit | alan-ghelardi/berry | |
adb160e77ffd65c8a1c34abc8853deb445d2bc44 | src/yada/walk.clj | src/yada/walk.clj | ; Copyright © 2015, JUXT LTD.
(ns yada.walk
(:require
[clojure.walk :refer [postwalk]])
(:import [yada.handler Handler]
[yada.resource Resource]))
;; Functions to update inner routes
(defn update-routes [routes f & args]
(postwalk
(fn [x]
(if (or
(instance? Handler x)
... | ; Copyright © 2015, JUXT LTD.
(ns yada.walk
(:require
[clojure.walk :refer [postwalk]])
(:import [yada.handler Handler]
[yada.resource Resource]))
;; Functions to update inner routes
(defn update-routes [routes f & args]
(postwalk
(fn [x]
(if (or
(instance? Handler x)
... | Comment out basic auth - no need for fn here | Comment out basic auth - no need for fn here
| Clojure | mit | mbutlerw/yada,mbutlerw/yada,mbutlerw/yada,juxt/yada,delitescere/yada,delitescere/yada,delitescere/yada,juxt/yada,juxt/yada |
c112f607249cfbf39b50859d37fdd3e39afc7121 | test/test_deploy.clj | test/test_deploy.clj | (ns test-deploy
(:use [leiningen.deploy] :reload)
(:use [clojure.test]
[clojure.java.io :only [file]]
[leiningen.core :only [read-project defproject]]
[leiningen.util.file]))
(def test-project (read-project "test_projects/sample/project.clj"))
(deftest test-deploy
(delete-file-recursivel... | Add test for deploy task. | Add test for deploy task.
| Clojure | epl-1.0 | 0/leiningen,0/leiningen | |
42a6d5c39cad67fa877090357209b8ff8bf22397 | Jobs/tnseq-phase-2b-job-template.clj | Jobs/tnseq-phase-2b-job-template.clj |
{:nodes
{:ph2
{:name "tnseq-phase2b",
:type "tool",
:args []}
:prn1 {:type "func",
:name "prn"}},
:edges
{:ph2 [:prn1]}}
| Add ability to run aggregation separate from std phase-2 run | Add ability to run aggregation separate from std phase-2 run
| Clojure | mit | jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio | |
de2256a83ea1faec64267058efb1d5c993293878 | test/desdemona/ui/core_test.cljs | test/desdemona/ui/core_test.cljs | (ns desdemona.ui.core-test
(:require
[desdemona.ui.core :as c]
[cljs.test :as t :refer-macros [deftest testing is are]]))
(deftest add-tests
(is (= (c/add 1 2) 3)))
| Add a stupid ideally-failing core test | Add a stupid ideally-failing core test
| Clojure | epl-1.0 | RackSec/desdemona | |
7fe43c27bb1415150a18bb7c5a55dfa070692e2c | clojure/profiles.clj | clojure/profiles.clj | {:user {:ultra {:color-scheme :solarized_dark
:stacktraces true}
:plugins [[lein-try "0.4.3"]
[lein-ancient "0.6.10-SNAPSHOT"]
[lein-kibit "0.1.2"]
[jonase/eastwood "0.2.3"]
;[venantius/ultra "0.5.0"]
]}}
| Add lein file in clojure config folder | Add lein file in clojure config folder | Clojure | unlicense | f-f/dotfiles,f-f/dotfiles | |
3571af1ffdb53bc4addf51c973355d3001056ea0 | test/org/playasophy/wonderdome/input/gamepad_test.clj | test/org/playasophy/wonderdome/input/gamepad_test.clj | (ns org.playasophy.wonderdome.input.gamepad-test
(:require
[clojure.core.async :as async :refer [<!]]
[clojure.test :refer :all]
[com.stuartsierra.component :as component]
[org.playasophy.wonderdome.input.gamepad :as gamepad]))
(defn gamepad-test
"Creates and starts a gamepad input component attac... | Add testing harness function to gamepad-test ns. | Add testing harness function to gamepad-test ns.
| Clojure | unlicense | playasophy/wonderdome,playasophy/wonderdome,playasophy/wonderdome,playasophy/wonderdome | |
a9bf835426cfdeaf8b853e6911fa64c6762769a9 | third-party-macros.clj | third-party-macros.clj | (disable-warning
{:linter :suspicious-expression
;; specifically, those detected in function suspicious-macro-invocations
:if-inside-macroexpansion-of #{'defun.core/defun}
:within-depth 12
:reason "defun creates calls to and with only 1 argument."}) | Add missing Eastwood config file. | Add missing Eastwood config file.
| Clojure | agpl-3.0 | open-company/open-company-storage | |
1d881964c4e90c1912f684428c7b4d7c18d14f69 | src/main/audio_utils/triggered_chunker.cljs | src/main/audio_utils/triggered_chunker.cljs | (ns audio-utils.triggered-chunker
(:require [audio-utils.util :refer [aatom aswap! << >>]]
[audio-utils.worker :as w]))
(defprotocol ITriggeredChunker
(process-samples [this samples])
(deliver-chunks [this])
(reset-chunks [this])
(trigger [this capture?]))
(defrecord TriggeredChunker [next chunk... | Add an audio chunker that yields chunks whenever it is triggered | Add an audio chunker that yields chunks whenever it is triggered
| Clojure | mit | Jannis/cljs-audio-utils | |
a2220fe685267e4857aaa16626aeb61bae4c36f3 | src/clojure/clojure_walkthrough/cjia/ch09_xx.clj | src/clojure/clojure_walkthrough/cjia/ch09_xx.clj | (ns clojure-walkthrough.cjia.ch09-xx
(:import [java.text SimpleDateFormat]))
(defn new-expense [date-string dollars cents category merchant-name]
{:date (.parse (SimpleDateFormat. "yyyy-MM-dd") date-string)
:amount-dollars dollars
:amount-cents cents
:category category
:merchant-name merchant-name})
(... | Add first example from chapter 9 | Add first example from chapter 9
| Clojure | epl-1.0 | agilecreativity/clojure-walkthrough | |
58a4a893b93a84ed43e2832d90428de6b62888c8 | src/main/audio_utils/mp3_encoder.cljs | src/main/audio_utils/mp3_encoder.cljs | (ns audio-utils.mp3-encoder
(:require [cljsjs.lamejs]
[audio-utils.worker :as w]))
(defrecord MP3Encoder [bit-rate sample-rate next]
w/IWorkerAudioNode
(connect [this destination]
(reset! next destination))
(disconnect [this]
(reset! next nil))
(process-audio [this data]
(let [int-d... | Add MP3 encoder implementation for worker audio pipelines | Add MP3 encoder implementation for worker audio pipelines
An important part of this is to translate float sample vectors to
integer arrays for encoding since that's what lamejs expects as its
input.
| Clojure | mit | Jannis/cljs-audio-utils | |
da50219bda3c84a2c56c383f328a4a963280db2a | test/clj_gatling/simulation_test.clj | test/clj_gatling/simulation_test.clj | (ns clj-gatling.simulation-test
(:use clojure.test)
(:require [clj-gatling.simulation :as simulation]))
(defn run-request [id] "OK")
(def scenario
{:name "Test scenario"
:requests [{:name "Request1" :fn run-request}
{:name "Request2" :fn run-request}]})
(defn get-result [requests request-name]... | Add simple test for simulation run | Add simple test for simulation run
| Clojure | epl-1.0 | mhjort/clj-gatling | |
22fa083fe75588d3c1142c1313a4fbc1538a358f | src/overtone/examples/instruments/pitch_controller.clj | src/overtone/examples/instruments/pitch_controller.clj | (ns overtone.examples.instruments.pitch-controller
(:use overtone.live))
;; Fire off this synth and connect an instrument/mic.
;; The pitch will be detected and used to control the saw waves
(defsynth pitch-controlled-saws
[out-bus 0]
(let [p (pitch (sound-in) )
p (/ p 4)
p (lag p 1)]
... | Add simple mic/input pitch-controlled synth example | Add simple mic/input pitch-controlled synth example | Clojure | mit | mcanthony/overtone,brunchboy/overtone,chunseoklee/overtone,la3lma/overtone,craftybones/overtone,ethancrawford/overtone,Widea/overtone,pje/overtone | |
0a2c20e89bf8441fea647394542c4ddeab926802 | src/clj/clojuredocs/main.clj | src/clj/clojuredocs/main.clj | (ns clojuredocs.main
(:require [ring.adapter.jetty :as jetty]
[aleph.http :as ah]
[clojuredocs.env :as env]
[clojuredocs.entry :as entry]
[somnium.congomongo :as mon]))
(mon/set-connection!
(mon/make-connection (env/str :mongo-url)))
(mon/add-index! :examples [:ns :... | (ns clojuredocs.main
(:require [ring.adapter.jetty :as jetty]
[aleph.http :as ah]
[somnium.congomongo :as mon]
[clojuredocs.env :as env]
[clojuredocs.entry :as entry]
[clojuredocs.config :as config]))
(mon/set-connection!
(mon/make-connection (env/str :mo... | Exit if all config vars not found | Exit if all config vars not found
| Clojure | epl-1.0 | eivantsov/clojure_docs,junjiemars/clojuredocs,junjiemars/clojuredocs,eivantsov/clojure_docs,junjiemars/clojuredocs,zk/clojuredocs,zk/clojuredocs,zk/clojuredocs |
c668f5baafad8e4c37260894a8d2befde048d967 | services/tnseq-phase1.clj | services/tnseq-phase1.clj |
{
:name "tnseq-phase1",
:path "",
:graph {:bt1 {:type "tool"
:path "bowtie2"
:args ["-p" "16" "--very-sensitive" "-x" "#1" "-U" "#2"]
}
:bt2 {:type "tool"
:path "bowtie2"
:args ["-f" "-N" "1" "--reorder"
"--n... | Add support for Aerobio map file generation from streaming SAM | Add support for Aerobio map file generation from streaming SAM
| Clojure | mit | jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio | |
8ec23c3caf7a1dfa3f4515539f2201eacf20286d | src/circle/backend/aws_iam.clj | src/circle/backend/aws_iam.clj | (ns circle.backend.aws-iam
"fns for working with AWS Identity & Access Management"
(:use [circle.aws-credentials :only (aws-credentials)])
(:import com.amazonaws.services.identitymanagement.AmazonIdentityManagementClient
com.amazonaws.services.identitymanagement.model.UploadServerCertificateRequest
... | Add missing file that should have been committed months ago. Adds fns for uploading SSL certificates to AWS, useful for creating SSL load balancers at the repl | Add missing file that should have been committed months ago. Adds fns for uploading SSL certificates to AWS, useful for creating SSL load balancers at the repl
| Clojure | epl-1.0 | circleci/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend | |
ad5b041bb0c77de6790817a2268d0fe874b2bebb | src/org/spootnik/cyanite/path.clj | src/org/spootnik/cyanite/path.clj | (ns org.spootnik.cyanite.path
"Implements a path store which tracks metric names. The
default implementation provides lucene based implementations"
(:require [clucy.core :as search]
[clojure.tools.logging :refer [error info debug]]))
(defprotocol Pathstore
"The pathstore pro... | Add a metric name index protocol and implementation | Add a metric name index protocol and implementation
This is based on lucene and provides both an in-memory
and on-disk implementation
| Clojure | isc | mpenet/cyanite,mwmanley/cyanite,pyr/cyanite,cybem/cyanite-iow,cybem/cyanite-iow,mwmanley/cyanite,dgeorgievski/cyanite,tjamesturner/cyanite,mpenet/cyanite,tjamesturner/cyanite,zbintliff/cyanite,dgeorgievski/cyanite,zbintliff/cyanite,pyr/cyanite,pyr/cyanite | |
6caab4357a567cf19cebf39614e53bdd93badbd7 | test/vip/data_processor/validation/v5_test.clj | test/vip/data_processor/validation/v5_test.clj | (ns vip.data-processor.validation.v5-test
(:require [clojure.test :refer :all]
[vip.data-processor.pipeline :as pipeline]
[vip.data-processor.db.postgres :as psql]
[vip.data-processor.validation.xml :as xml]
[vip.data-processor.test-helpers :refer :all]
... | Test the v5 sample feed against all validaitons | Test the v5 sample feed against all validaitons
| Clojure | bsd-3-clause | votinginfoproject/data-processor | |
deab2c6c69b1b56a3df9efdbf7e16f1c95ff24cc | src/test/app_macros/view_test.cljs | src/test/app_macros/view_test.cljs | (ns app-macros.view-test
(:require [cljs.test :refer-macros [deftest is]]
[om.next :as om]
[app-macros.view :refer-macros [defview]]))
(defview MinimalView)
(deftest minimal-view-works
(and (is (not (nil? MinimalView)))
(is (not (nil? minimal-view)))))
(defview MinimalViewWithKeyfn... | Add a few basic tests for the defview macro | Add a few basic tests for the defview macro
| Clojure | mit | workfloapp/macros,workfloapp/macros,workfloapp/app-macros | |
f020641c8942d59be0474867d458cc837853ce13 | test/snippets/color/setting.clj | test/snippets/color/setting.clj | (ns snippets.color.setting
(:require [quil.snippet :refer [defsnippet]]
[quil.core :refer :all]))
(defsnippet background-s {}
(background 255 0 0)
(let [gr (create-graphics 100 100)]
(with-graphics gr
(background 120))
(image gr 0 0)
(with-graphics gr
(background 70 120))
... | Add Color - Setting snippets. | Add Color - Setting snippets.
| Clojure | epl-1.0 | quil/quil,mi-mina/quil,pxlpnk/quil,craftybones/quil,jobez/quil-video | |
5e52a2313929f0430a8640f41398a4f4314ec1fb | solutions/uri/1013/1013.clj | solutions/uri/1013/1013.clj | (ns main
(:require [clojure.string :as str]))
(defn main []
(loop [line (read-line)]
(when line
(let [[a b c] (str/split line #" ")
a' (Integer/parseInt a)
b' (Integer/parseInt b)
c' (Integer/parseInt c)
result (/ (+ (+ (Math/abs (- a' b')) b') a') 2)
... | Solve The Greatest in clojure | Solve The Greatest in clojure
| Clojure | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
21caf780cc75a19ea9cbfc74f6f0006b5f406472 | src/onyx/static/pretty_print.cljc | src/onyx/static/pretty_print.cljc | (ns onyx.static.pretty-print
#?(:clj (:require [io.aviso.ansi :as a])))
(def bold
#?(:clj a/bold
:cljs identity))
(def magenta
#?(:clj a/magenta
:cljs identity))
(def blue
#?(:clj a/blue
:cljs identity))
(def bold-red
#?(:clj a/bold-red
:cljs identity))
(def bold-green
#?(:clj a/bol... | Add missing pretty print file. | Add missing pretty print file.
| Clojure | epl-1.0 | onyx-platform/onyx | |
d9d4a2f30a9749e10e87114843b2fdab6344c605 | Jobs/tnseq-phase-2-job-template.clj | Jobs/tnseq-phase-2-job-template.clj |
{:nodes
{:ph2
{:name "tnseq-phase2",
:type "tool",
:args []}
:prn1 {:type "func",
:name "prn"}},
:edges
{:ph2 [:prn1]}}
| Add job flow for phase 2 tnseq | Add job flow for phase 2 tnseq
| Clojure | mit | jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio | |
4b606ac44dfc4406e36568d41385e2b817c4b18f | src/onyx/state/state_extensions.clj | src/onyx/state/state_extensions.clj | (ns onyx.state-extensions)
(defmulti initialise-log
(fn [log-type event]
log-type))
(defmulti close-log
(fn [log]
(type log)))
;; For onyx to implement
;; We can implement log storage for Kafka and maybe ZK (if small data is used and we gc)
(defmulti store-log-entries
"Store state update [op k v] en... | Add state extensions State extensions are for a log type to implement for storage and playback of state commands | Add state extensions
State extensions are for a log type to implement for storage and
playback of state commands
| Clojure | epl-1.0 | vijaykiran/onyx,onyx-platform/onyx | |
8805918dc1fedbbe627c1a8ecfdf526782d79444 | common-lib/src/cmr/common/background_jobs.clj | common-lib/src/cmr/common/background_jobs.clj | (ns cmr.common.background-jobs
"Namespace for creating simple background jobs that run at a specified interval in a thread.
For more complex requirements see the cmr.common.jobs namespace which use Quartz."
(:require [cmr.common.lifecycle :as lifecycle]))
(defrecord BackgroundJob
[
;; The job-function to ru... | Add new simple background jobs namespace for running jobs | CMR-3525: Add new simple background jobs namespace for running jobs
| Clojure | apache-2.0 | mschmele/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,nasa/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,mschmele/Common-Metadata-Repository,nasa/Common-Meta... | |
490495fb6cab4c88d0dc56b7a0d949aeec55d603 | newsfeed/test/newsfeed/integration/api.clj | newsfeed/test/newsfeed/integration/api.clj | (ns newsfeed.integration.api
(:require [midje.sweet :refer :all]
[peridot.core :as p]
[clojure.data.json :as json]
[newsfeed.core :as nf]
[newsfeed.api :as api]))
(facts "about 'api'"
(let [app (p/session nf/app)]
(fact "returns 200 on /ping"
... | Add integration tests for newsfeed service | Add integration tests for newsfeed service
| Clojure | apache-2.0 | queeno/infra-problem,queeno/infra-problem | |
aa0dfba85631dd3e0d20d5718e5f62df8f5ae525 | 2016/expression-problem/clojure/expression/src/expression/protocols.clj | 2016/expression-problem/clojure/expression/src/expression/protocols.clj | ; Eli Bendersky [http://eli.thegreenplace.net]
; This code is in the public domain.
(ns expression.protocols)
(defrecord Constant [value])
(defrecord BinaryPlus [lhs rhs])
(defprotocol Evaluatable
(evaluate [this]))
(defprotocol Stringable
(stringify [this]))
(extend-type Constant
Evaluatable
(evaluate [t... | Add a basic working example in Clojure | Add a basic working example in Clojure
| Clojure | unlicense | eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog,eliben/code-for-blog | |
afff921f3b47471187c41f0d0d93c42d9c6d624b | test/bytebuf/core_tests.clj | test/bytebuf/core_tests.clj | ;; Copyright 2015 Andrey Antukh <niwi@niwi.be>
;;
;; Licensed under the Apache License, Version 2.0 (the "License")
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law ... | Add test directory with initial tests. | Add test directory with initial tests.
| Clojure | bsd-2-clause | funcool/octet,mbjarland/octet,mbjarland/octet,funcool/octet | |
60f46405c3f2cd5075bc0c461c3ce1e36939fad6 | src/radicalzephyr/boot_junit.clj | src/radicalzephyr/boot_junit.clj | (ns radicalzephyr.boot-junit
{:boot/export-tasks true}
(:require [boot.core :as core])
(:import org.junit.runner.JUnitCore))
(deftask junit
"Run the jUnit test runner."
[]
(with-pre-wrap fileset
(let [result (JUnitCore/runClasses
(into-array [#_ (magic goes here to find all test class... | Add the stub of the junit task | Add the stub of the junit task
| Clojure | epl-1.0 | RadicalZephyr/boot-junit | |
98eb2ec5fe026e4145763632930f3345eb2e9b04 | src/discuss/find.cljs | src/discuss/find.cljs | (ns discuss.find
(:require [clojure.walk :refer [keywordize-keys]]
[om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[discuss.communication :as com]
[discuss.lib :as lib]))
(def data (atom {}))
(defn statement-handler
"Called when received ... | Prepare statement query to dbas | Prepare statement query to dbas
| Clojure | mit | hhucn/discuss,hhucn/discuss | |
ab23fb504b9bbdc6cd33fbd88b5ab03819b92016 | Jobs/tnseq-aggregate-job-template.clj | Jobs/tnseq-aggregate-job-template.clj |
{:nodes
{:ph2
{:name "tnseq-final-aggregate",
:type "tool",
:args []}
:prn1 {:type "func",
:name "prn"}},
:edges
{:ph2 [:prn1]}}
| Add super(aka global or final) aggregation job flow | Add super(aka global or final) aggregation job flow
| Clojure | mit | jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio,jsa-aerial/aerobio | |
e3375c1ad8ac2be7dfff82f6a818bd7ee3a7e583 | src/oxcart/passes/emit_clj.clj | src/oxcart/passes/emit_clj.clj | ;; Copyright (c) Reid McKenzie, Rich Hickey & contributors. The use
;; and distribution terms for this software are covered by the
;; Eclipse Public License 1.0
;; (http://opensource.org/licenses/eclipse-1.0.php) which can be
;; found in the file epl-v10.html at the root of this distribution.
;; By using th... | Add AST to form emission pass | Add AST to form emission pass
| Clojure | epl-1.0 | arrdem/oxcart,arrdem/oxcart | |
79f8f11cc029acba02934756fa5c10d67ed83cb9 | test/vip/data_processor/db/sqlite_test.clj | test/vip/data_processor/db/sqlite_test.clj | (ns vip.data-processor.db.sqlite-test
(:require [vip.data-processor.db.sqlite :as sqlite]
[clojure.test :refer :all]
[vip.data-processor.validation.data-spec.v3-0 :as v3-0]))
(deftest column-names-test
(let [db (sqlite/temp-db "column-names-test" "3.0")]
(is (= ["state_id" "early_vote_s... | Add a test for sqlite/column-names | Add a test for sqlite/column-names
The upcoming korma update broke the original version of this fn, so I added a test first.
| Clojure | bsd-3-clause | votinginfoproject/data-processor | |
b131ca5c233090da31bee9e636f84e91beaf442e | solutions/uri/1021/1021.clj | solutions/uri/1021/1021.clj | (ns main
(:require [clojure.string :as string]))
(def notas [10000.0 5000.0 2000.0 1000.0 500.0 200.0])
(def coins [100.0 50.0 25.0 10.0 5.0 1.0])
(defn print-result [value currencies currency-type]
(println (str (string/upper-case currency-type) "S:"))
(loop [value value
[currency & remaining-currenci... | Solve Banknotes and Coins in clojure | Solve Banknotes and Coins in clojure
| Clojure | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
bc6bc14eb2fc60da6c377b953af6982c7a2c5b14 | test/desdemona/cli_test.clj | test/desdemona/cli_test.clj | (ns desdemona.cli-test
(:require
[desdemona.launcher.aeron-media-driver :as aeron]
[clojure.test :refer [deftest testing is]])
(:import
[java.io StringWriter]))
(def fake-block-forever!
(constantly ::blocked-forever))
(defn fake-exit
[status]
[::exited status])
(defmacro with-fake-launcher-side-ef... | Add basic test structure + failing test | Add basic test structure + failing test
| Clojure | epl-1.0 | RackSec/desdemona | |
d0a2d80757fa5c47b9a8ca0f1d506d0a3ebd998f | test/konserve/konserve_test.cljs | test/konserve/konserve_test.cljs | (ns konserve.konserve-test
(:require [cljs.test :refer [run-tests]]
[konserve.filestore-test]
[konserve.serializers-test]))
(run-tests 'konserve.filestore-test
'konserve.serializers-test)
| Add cljs konserve main test. | Add cljs konserve main test.
| Clojure | epl-1.0 | replikativ/konserve,replikativ/konserve | |
6ce0a4368c890b1b090a772e1ccad3d588329885 | src/doctopus/files/predicates.clj | src/doctopus/files/predicates.clj | (ns doctopus.files.predicates
"We've got a loooot of filtering to do.
Like, a lot.")
(defmulti is-type?
"Returns true if the type of the file matches the type given."
(fn [fobj regex] (class fobj)))
(defmethod is-type? java.lang.String
[file-string type-regex]
(if (re-find type-regex file-string)
tru... | Move the predicate functions in to their own ns -- it seems likely that we'll wind up with a bunch of these. Also, remove the note about expecting a java.io.File from the docstrings -- our schmancy multimethod `is-type` obviates that. | Move the predicate functions in to their own ns -- it seems likely that
we'll wind up with a bunch of these. Also, remove the note about
expecting a java.io.File from the docstrings -- our schmancy multimethod
`is-type` obviates that.
| Clojure | epl-1.0 | Gastove/doctopus | |
07ec6193904a7df816cb0cb05c5bd369fb2e5533 | .lein/profiles.clj | .lein/profiles.clj | {:user {:plugins [[lein-try "0.4.1"]
[lein-pprint "1.1.1"]
[cider/cider-nrepl "0.7.0"]]}}
| Add leiningen `:user` profile file | Add leiningen `:user` profile file
| Clojure | mit | nestukh/dotfiles,nestukh/dotfiles,benizi/dotfiles,nestukh/dotfiles,benizi/dotfiles,benizi/dotfiles,benizi/dotfiles,nestukh/dotfiles,nestukh/dotfiles,nestukh/dotfiles,nestukh/dotfiles,nestukh/dotfiles,benizi/dotfiles,benizi/dotfiles,benizi/dotfiles,benizi/dotfiles | |
0f9c66a8e1b019cbc3df4e725d1018a3558dab84 | solutions/uri/1017/1017.clj | solutions/uri/1017/1017.clj | (ns main)
(defn main []
(let [h (-> (read-line) (Double/parseDouble))
s (-> (read-line) (Double/parseDouble))]
(printf "%.3f%n" (/ (* h s) 12))))
(main)
| Solve Fuel Spent in clojure | Solve Fuel Spent in clojure
| Clojure | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
bd870e7251ba1605941f889eb6a42d8b740dbbc4 | src/uxbox/util/dom/files.cljs | src/uxbox/util/dom/files.cljs | ;; 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.util.dom.files
"A interop helpers for work with fil... | Add utils for work with dom file like objects. | Add utils for work with dom file like objects.
| Clojure | mpl-2.0 | studiospring/uxbox,uxbox/uxbox,uxbox/uxbox,uxbox/uxbox,studiospring/uxbox,studiospring/uxbox | |
b2fdd52c835f627e58e7ccb8d2fe09bfa664e950 | test/subman/t_routes.clj | test/subman/t_routes.clj | (ns subman.t-routes
(:require [midje.sweet :refer [fact => truthy]]
[subman.routes :as routes]))
(fact "routes should be ok"
routes/main-routes => truthy)
| Add simple test for routes | Add simple test for routes
| Clojure | epl-1.0 | submanio/subman-parser | |
5cf636314b62d89576c6b2693559b9c4b37c1264 | src/uxbox/images.clj | src/uxbox/images.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.images
"Image postprocessing."
(:require [storage... | Add the ability to populate objects with thumbnails and url resolved paths. | Add the ability to populate objects with thumbnails and url resolved paths.
| Clojure | mpl-2.0 | uxbox/uxbox-backend,uxbox/uxbox-backend | |
4f7e1f0a9842929af518c76b66be24980780914f | src/uxbox/util/mixins.clj | src/uxbox/util/mixins.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.util.mixins
(:require [rum.core :as rum]
... | Add own defc macro for more easy define components with less boilerplate. | Add own defc macro for more easy define components with less boilerplate.
| Clojure | mpl-2.0 | uxbox/uxbox,uxbox/uxbox,studiospring/uxbox,studiospring/uxbox,studiospring/uxbox,uxbox/uxbox | |
85dcab719c16ba36b2234ea2e742b1abda742a0c | test/clj_gatling/core_test.clj | test/clj_gatling/core_test.clj | (ns clj-gatling.core-test
(:require [clojure.test :refer :all]
[clj-gatling.test-helpers :refer :all]
[clj-containment-matchers.clojure-test :refer :all]
[clj-gatling.core :refer [run run-simulation]]
[clj-async-test.core :refer :all]
[clojure.core.async :re... | Add smoke tests for core entrypoint functionss | Add smoke tests for core entrypoint functionss
| Clojure | epl-1.0 | mhjort/clj-gatling | |
81e0ad13b81633ae5fd7effac272407ccbab0ff2 | src/clojure/cjapplied/ch08.clj | src/clojure/cjapplied/ch08.clj | ;; See: https://clojuredocs.org/clojure.test/deftest
(ns cjapplied.ch08)
(use 'clojure.test)
(deftest addition
(is (= 4 (+ 2 2)))
(is (= 7 (+ 3 4))))
(deftest subtraction
(is (= 1 (- 4 3)))
(is (= 3 (- 7 4))))
;; composing tests
(deftest arithmetic
(addition)
(subtraction))
(deftest test-range
(is (= ... | Add sample from Clojure Applied | Add sample from Clojure Applied
| Clojure | epl-1.0 | agilecreativity/clojure-walkthrough | |
69a6c002968987ed1dd838661524d390737b3d37 | src/parse_names/core.cljs | src/parse_names/core.cljs | (ns parse-names.core
(:require [parse-names.vendor :as v]))
(defn parse-name [name]
(let [name-obj (v/parse name)]
(->> {:first-name (.-firstName name-obj)
:last-name (.-lastName name-obj)
:leading-initial (.-salutation name-obj)
:suffix (.-suffix name-obj)
:middle-name ... | Add cljs wrapper on vendor | Add cljs wrapper on vendor
| Clojure | epl-1.0 | bensu/parse-names | |
c85c26cce4fe14dd0c0a4c560d245e069b5d1c68 | test/doctopus/web_test.clj | test/doctopus/web_test.clj | (ns doctopus.web-test
(:require [clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.test :refer :all]
[compojure.core :refer [context]]
[doctopus.configuration :refer [docs-uri-prefix]]
[doctopus.db :as db]
[doctopus.doctopus.head :as h]
... | Add web NS tests, mostly for routes | Add web NS tests, mostly for routes
| Clojure | epl-1.0 | Gastove/doctopus | |
c7329a801928bcb409df4ce6536c992f6e4e258b | dev/user.clj | dev/user.clj | (ns user
(:require [clojars
[config :as config]
[errors :as errors]
[system :as system]]
[clojars.db.migrate :as migrate]
[clojure.java.io :as io]
[clojure.tools.namespace.repl :refer [refresh]]
[eftest.runner :as eftest]
... | (ns user
(:require [clojars
[cloudfiles :as cf]
[config :as config]
[errors :as errors]
[system :as system]]
[clojars.db.migrate :as migrate]
[clojure.java.io :as io]
[clojure.tools.namespace.repl :refer [refresh]]
[ef... | Add in-memory cloudfiles connection to the dev system | Add in-memory cloudfiles connection to the dev system
| Clojure | epl-1.0 | technomancy/clojars-web,clojars/clojars-web,nberger/clojars-web,clojars/clojars-web,nberger/clojars-web,ato/clojars-web,technomancy/clojars-web,tobias/clojars-web,clojars/clojars-web,ato/clojars-web,tobias/clojars-web,tobias/clojars-web |
cc8c997ad4f4d6f12eb369bc7f5c1e621a1a62c6 | test/cljs/t_search.cljs | test/cljs/t_search.cljs | (ns subman.t-search
(:require-macros [purnam.test.sweet :refer [facts fact]])
(:require [reagent.core :refer [atom]]
[subman.helpers :refer [truthy]]
[subman.search :as search]))
(facts "should create search request"
(fact "with query"
(search/create-search-request "test... | Add simple tests for search | Add simple tests for search
| Clojure | epl-1.0 | submanio/subman-parser | |
e219db33998f4f4f00688d0900d7aef025c42371 | clojure/day3/day3.clj | clojure/day3/day3.clj | ; Use refs to create a vector of accounts in memory. Create debit and credit functions to change the balance of an account.
(def accounts (ref [0 0 0]))
(defn balance
[accounts index]
(nth @accounts index))
(defn debit
[accounts index amount]
(dosync (alter accounts assoc index (- (balance accounts index) amo... | Add clojure day 3 basic | Add clojure day 3 basic
| Clojure | mit | hemslo/seven-in-seven,hemslo/seven-in-seven,hemslo/seven-in-seven | |
94dbc243a2de77668eed5953b706a3bc8263ecfd | src/clj/decktouch/mtg_card_master.clj | src/clj/decktouch/mtg_card_master.clj | (ns decktouch.mtg-card-master
(:require [clojure.data.json :as json]))
(def mtg-cards (json/read-str (slurp "resources/AllCards.json")))
(def card-names (keys mtg-cards))
(defn match
"Returns true if query is a substring in string"
[query string]
(some? (re-matches (re-pattern (str "(?i)" query ".*"))
... | Add mtg card master namespace | Add mtg card master namespace
| Clojure | epl-1.0 | Pance/decktouch,Pance/decktouch | |
bc97d4d463b2c7eb4ae50a7353b24f27fde846fc | test/cljam/io/vcf/reader_test.clj | test/cljam/io/vcf/reader_test.clj | (ns cljam.io.vcf.reader-test
(:require [clojure.test :refer [deftest is]]
[cljam.io.vcf.reader :as vcf-reader]))
(deftest parse-structured-line-test
(is (= {:id "ID", :description "\"This\" is a description",
:note "You can use \" in string fields by escaping it with \\"}
(#'vcf-reader... | Add tests for character escaping for VCF string fields | Add tests for character escaping for VCF string fields
| Clojure | apache-2.0 | chrovis/cljam | |
a0f18dbb1b37d772bcb7bc9bd43b0ee29ac96109 | test/cljam/t_cigar.clj | test/cljam/t_cigar.clj | (ns cljam.t-cigar
(:require [midje.sweet :refer :all]
[cljam.cigar :as cgr]))
(fact "about parse-seq"
(cgr/parse-seq "8M4I4M1D3M" "TTAGATAAAGAGGATACTG") => '({:n 8, :op \M, :seq [\T \T \A \G \A \T \A \A]}
{:n 4, :op \I, :seq [\A \G \A \G]}
... | Add test case for cljam.cigar | Add test case for cljam.cigar
| Clojure | apache-2.0 | chrovis/cljam | |
0bc4e0cdc6e39d09a15f22c78e226d6c12d4acae | src/leiningen/new/cryogen/project.clj | src/leiningen/new/cryogen/project.clj | (defproject cryogen "0.1.0"
:description "Simple static site generator"
:url "https://github.com/lacarmen/cryogen"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]... | (defproject cryogen "0.1.0"
:description "Simple static site generator"
:url "https://github.com/lacarmen/cryogen"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]... | Update cryogen-core dependency to 0.1.9. | Update cryogen-core dependency to 0.1.9.
| Clojure | epl-1.0 | erooijak/cryogen,cryogen-project/cryogen,systemovich/cryogen,chadhs/cryogen |
2a6cf8d1a91f2d87024d3ae53bfd764f4a192747 | src/scraper/core.clj | src/scraper/core.clj | (ns scraper.core
(:require [clojure.string :as str]))
(def url "https://docs.google.com/spreadsheets/d/1XMCStIcX-UkJF2YYmco7mnoSec8I8Vg_1wSSAVR7L00/export?format=csv")
(def input (slurp url))
(def entries (str/split input #"\n"))
(def an-entry (-> (str/split input #"\n")
(get 2)))
;; Helpers
;; =... | Write scraper for pedals db | Write scraper for pedals db
| Clojure | epl-1.0 | yannvanhalewyn/gigrig-power-diagram-generator | |
cc6a7f6904e490db94f9907433938d42c33d2dcc | test/doctopus/files_test.clj | test/doctopus/files_test.clj | (ns doctopus.files-test
(:require [doctopus.files :refer :all]
[clojure.test :refer :all]))
(deftest test-truncate-str
(testing "Can we truncate one path by removing another path from the front?"
(let [fq "/foo/bar/baz/bing/bang/document.markdown"
remove-str "/foo/bar/baz/bing/"
... | Add our first test oh boy! | Add our first test oh boy!
| Clojure | epl-1.0 | Gastove/doctopus | |
0900c8bb6d2d9ae909799d02f126dd5540b664e8 | src/grafter/rdf/ontologies/ons_geography.clj | src/grafter/rdf/ontologies/ons_geography.clj | (ns grafter.rdf.ontologies.ons-geography
(:require [grafter.rdf.ontologies.util :refer :all]))
(def statistical-entity (prefixer "http://statistics.data.gov.uk/def/statistical-entity#"))
(def statistical-entity:name (statistical-entity "name"))
(def statistical-entity:abbreviation (statistica... | Add Vocabulary (prefixers) for ONS/ Statistical Geography | Add Vocabulary (prefixers) for ONS/ Statistical Geography
| Clojure | epl-1.0 | Swirrl/grafter,Swirrl/grafter | |
f94bfcb634394b540dbda991f65d7f93b5c11f1e | test/caesium/randombytes_test.clj | test/caesium/randombytes_test.clj | (ns caesium.randombytes-test
(:require [caesium.randombytes :as r]
[clojure.test :refer [deftest is]]))
(deftest randombytes-tests
(let [some-bytes (r/randombytes 10)]
(is (= 10 (alength some-bytes)))))
| Add a simple test for randombytes | Add a simple test for randombytes
| Clojure | epl-1.0 | lvh/caesium | |
c493a7d58878f0c86d1cd5521a04637f6f3abcd9 | src/cljs/word_finder/actions/call_server.cljs | src/cljs/word_finder/actions/call_server.cljs | (ns ^:figwheel-load word-finder.actions.call-server
(:require [ajax.core :refer [GET]]))
(def server "http://localhost:8080/api/words/")
;;FIXME: the string interpolation can be easily broken.
(defn find-words [input-string callback]
(GET (str server "find" "?find=" input-string)
{:handler callback
... | (ns ^:figwheel-load word-finder.actions.call-server
(:require [ajax.core :refer [GET]]))
(def server "http://localhost:8080/api/words/")
(defn find-words
"Call the server-side find-words, returning JSON"
[input-string callback]
(GET (str server "find")
{:params {:find input-string}
:format... | Fix the cljs server calls to use ajax.core :params | Fix the cljs server calls to use ajax.core :params
Instead of doing poor string interpolation, just use the library.
| Clojure | epl-1.0 | davidjameshumphreys/clojure-word-finder |
e2cd686fe59d2d2abcb7dd68b3313cb7e3063976 | test/hydrofoil/expectations/utils.clj | test/hydrofoil/expectations/utils.clj | (ns hydrofoil.expectations.model
(:require [expectations :refer :all]
[hydrofoil.model :refer :all]
[hydrofoil.core :refer :all]
[hydrofoil.evolution :refer :all]))
;;; --------- Utils Tests ------------
| Add Utils test file, don't have anything to put in it yet. | Add Utils test file, don't have anything to put in it yet.
| Clojure | epl-1.0 | morrislenny/hydrofoil | |
4afdaaf3135cb867c75d224b3cc9ae542f77cd4e | test/clj_diff/test/performance.clj | test/clj_diff/test/performance.clj | (ns clj-diff.test.performance
(:use [clj-diff.core])
(:use [clj-diff.performance] :reload)
(:use [clojure.test]))
(deftest mutate-test
(let [a "abcdefghijklmnopqrstuvwxyz"
changes #(count (flatten (map rest (:+ %))))
largest-group #(apply max (map count (map rest (:+ %))))]
(is (<= (changes... | Add unit test for mutate and update the charts. | Add unit test for mutate and update the charts.
| Clojure | epl-1.0 | rymndhng/clj-diff,brentonashworth/clj-diff,rymndhng/clj-diff | |
fb8f6ee1be504adafd7009a1f23cbc83264b0674 | src/circle/admin/ebs.clj | src/circle/admin/ebs.clj | (ns circle.admin.ebs
(:require [org.jclouds.ec2.ebs2 :as ebs])
(:require [circle.backend.ec2 :as ec2])
(:use [circle.utils.except :only (throw-if-not)])
(:use [circle.aws-credentials :only (jclouds-compute)]))
(defn default-volume [instance-id]
(let [inst (ec2/instance instance-id)
devices (map bean ... | Add functions for interacting with EBS snapshots | Add functions for interacting with EBS snapshots
| Clojure | epl-1.0 | circleci/frontend,circleci/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend | |
eb78f07cc73017e7c74aa8c67563492b6e5e6bb3 | src/clojure/clojure_walkthrough/cjia/ch07_xx.clj | src/clojure/clojure_walkthrough/cjia/ch07_xx.clj | (ns clojure-walkthrough.cjia.ch07-xx)
; 7.1: Macro basic
; 7.1.1: Textual substitution
(def a-ref (ref 0))
(dosync
(ref-set a-ref 1)) ; 1
;; You could implement this using the macros like
; (syn-set a-ref 1)
(defmacro sync-set [r v]
(list 'dosync
(list 'ref-set r v)))
(sync-set a-ref 1) ;; 1
| Add macro example from section 7.1 | Add macro example from section 7.1
| Clojure | epl-1.0 | agilecreativity/clojure-walkthrough | |
1c057ccd1899a7b1369eaa71b55ca094645aa812 | src/stats/levenshtein.cljs | src/stats/levenshtein.cljs | (ns cljs-nlp.stats.levenshtein
(:use [clojure.string :only [blanks?]]))
(defn create-element
[char1 char2 previous-row current-row idx]
(if (= char1 char2)
(previous-row (- idx 1))
(+ 1 (min
(previous-row (- idx 1))
(previous-row idx)
(last current-row)))))
(defn create-row
[char1 s... | Add ability to calculate edit distance. | Add ability to calculate edit distance.
| Clojure | mit | bertrandk/lexemic | |
b2f2276b12f85e0fadcc9c6cda65dddce3dcba84 | project.clj | project.clj | (defproject onyx-app/lein-template "0.10.0.0-beta10"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | (defproject onyx-app/lein-template "0.10.0.0-SNAPSHOT"
:description "Onyx Leiningen application template"
:url "https://github.com/onyx-platform/onyx-template"
:license {:name "MIT License"
:url "http://choosealicense.com/licenses/mit/#"}
:repositories {"snapshots" {:url "https://clojars.org/repo"
... | Prepare for next release cycle. | Prepare for next release cycle.
| Clojure | mit | onyx-platform/onyx-template |
d30a9ecb90f31f99cf1e51a880c5f1197bb708ec | test/grimoire/api/web_test.clj | test/grimoire/api/web_test.clj | (ns grimoire.api.web-test
(:require [grimoire.api :as api]
[grimoire.things :as t]
[grimoire.util :refer [succeed? result]]
[grimoire.api.web.read]
[clojure.test :refer :all]))
(def test-config
{:datastore
{:mode :web
:host "http://127.0.0.1:3000"}}) ;; test a... | Add tests of the Grimoire web API | Add tests of the Grimoire web API
| Clojure | epl-1.0 | rmoehn/lib-grimoire,clojure-grimoire/lib-grimoire | |
6c8a9b22ed0fceb1958cb1a433a1ce87ff0fc11a | test/pathfinder/analyze/clojure_test.clj | test/pathfinder/analyze/clojure_test.clj | (ns pathfinder.analyze.clojure-test
(:use midje.sweet
pathfinder.analyze.analyzer
pathfinder.analyze.clojure))
(facts "about heuristic analysis"
(fact "should keep the source"
(analyze (->CljHeuristicAnalyzer) "foo" {}) => (contains {:source "foo"}))
(fact "should keep the ... | Add tests for current clj heuristic analyzer | Add tests for current clj heuristic analyzer
| Clojure | apache-2.0 | robochuck84/PathFinder,cimi/PathFinder,cimi/PathFinder,robochuck84/PathFinder,gregsexton/PathFinder,Unravelled/PathFinder,Unravelled/PathFinder,gregsexton/PathFinder | |
bef5c09298491fe2daa4eeff449e97895cbae595 | test/com/nomistech/clojure_the_language/protocols_and_records_test.clj | test/com/nomistech/clojure_the_language/protocols_and_records_test.clj | (ns com.nomistech.clojure-the-language.protocols-and-records-test
(:require [midje.sweet :refer :all]))
;;;; ___________________________________________________________________________
;;;; ---- `defrecord` and what it gives you ----
(defrecord MyRecord [x y])
(fact "Simple constructor"
(MyRecord. 1 2)
=> {:x ... | Add protocols and records stuff. | Add protocols and records stuff.
| Clojure | epl-1.0 | simon-katz/nomis-clojure-the-language | |
ea1d87c9cc6d8f81c74b0bb4c8df5c5b786b649c | src/test/clojure/lazytest/reified_tests.clj | src/test/clojure/lazytest/reified_tests.clj | (ns lazytest.reified-tests
(:use (lazytest expect testable runnable-test)))
(def t1 (reify Testable
(get-tests [this]
(list
(reify RunnableTest
(run-tests [this]
(list
(try-expectations this
(expect= 1 2)))))))))
(def t2 (reify Testable
(get-tests [this]... | Add reified-tests example source for testing at the REPL | Add reified-tests example source for testing at the REPL
| Clojure | epl-1.0 | stuartsierra/lazytest | |
605d0bc6c3a1a27b9981c54f03f601f4fad3b23d | src/clojure/clojure_walkthrough/cjia/ch10_xx.clj | src/clojure/clojure_walkthrough/cjia/ch10_xx.clj | (ns clojure-walkthrough.cjia.ch10-xx
(:require [clojure.test :refer :all]
[clojure-walkthrough.cjia.ch10-date-operations :refer :all]))
(deftest test-simple-data-parsing
(let [d (date "2009-01-22")]
(is (= (day-from d) 22))))
| Add place holder for cjia | Add place holder for cjia
| Clojure | epl-1.0 | agilecreativity/clojure-walkthrough | |
1aa96d0d3c7388baec5610e684f99f9b7e02b720 | solutions/uri/1015/1015.clj | solutions/uri/1015/1015.clj | (ns main
(:require [clojure.string :as str]))
(defn main []
(let [[x1 y1] (-> (read-line) (str/split #" "))
[x2 y2] (-> (read-line) (str/split #" "))
[x1' y1' x2' y2'] (map #(Double/parseDouble %) [x1 y1 x2 y2])]
(printf "%.4f%n" (Math/sqrt (+ (Math/pow (- x2' x1') 2) (Math/pow (- y2' y1') 2)))... | Solve Distance Between Two Points in clojure | Solve Distance Between Two Points in clojure
| Clojure | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
6f2d92fd0653348ad64c0f7ebcbfdea53b0b2be4 | solutions/uri/1005/1005.clj | solutions/uri/1005/1005.clj | (ns main)
(defn main []
(let [a (Double/parseDouble (read-line))
b (Double/parseDouble (read-line))]
(format "%.5f" (/ (+ (* a 3.5) (* b 7.5)) 11.0))))
(println "MEDIA =" (main))
| Solve Average 1 in clojure | Solve Average 1 in clojure
| Clojure | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
4e0f9365c895623723650764bf21006b0f089d41 | src/test/workflo/macros/entity_test.clj | src/test/workflo/macros/entity_test.clj | (ns workflo.macros.entity-test
(:require [clojure.spec :as s]
[clojure.test :refer [deftest is]]
[workflo.macros.entity :as e :refer [defentity]]))
(deftest minimal-defentity
(is (= '(do
(def macros-user-schema map?)
(def macros-user-definition
{:schema... | Add code generation tests for the defentity macro | Add code generation tests for the defentity macro
| Clojure | mit | workfloapp/macros,workfloapp/app-macros,workfloapp/macros | |
dcef8899b6d6e1b0d8c9c3bdbd3bf681c8a31db7 | test/server/name_bazaar/utils.cljs | test/server/name_bazaar/utils.cljs | (ns server.name-bazaar.utils
(:require
[cljs.core.async :refer [<! go]]
[cljs.test :refer-macros [async]]
[cljs-time.coerce :refer [from-long]]
[cljs-web3-next.eth :as web3-eth]
[cljs-web3-next.evm :as web3-evm]
[cljs-web3-next.helpers :as web3-helpers]
[district.server.web3 :refer [web3]]... | Use snapshots to clear chain before test | Use snapshots to clear chain before test
Before, deployer was used to clear test blockchain state
before each test. Deployer is now gone, replaced with
truffle. I found it much faster to use ganache snapshotting
before / after each test, than to call truffle migrate.
| Clojure | epl-1.0 | district0x/name-bazaar,district0x/name-bazaar,district0x/name-bazaar | |
8d7a429b923348ddf9b9c824d63b22ef176f85ac | Modules/ThirdParty/Boost/otb-module-init.cmake | Modules/ThirdParty/Boost/otb-module-init.cmake | # Required
message(STATUS "Looking for required Boost headers")
# Mandatory components
# - date_time -> ossim plugins
set(OTB_Boost_COMPONENTS date_time)
# Optional components
# Boost (OPTIONAL_COMPONENTS does not work with Boost find_package)
# unit_test_framework component is used only in GdalAdapters module
if (BUI... | # Required
message(STATUS "Looking for required Boost headers")
find_package ( Boost
1.35.0
REQUIRED
)
# Optional components
# Boost (OPTIONAL_COMPONENTS does not work with Boost find_package)
# unit_test_framework component is used only in GdalAdapters module
if (BUILD_TESTING)
set(OTB_Boost_OPTIONAL_COMPONEN... | Revert "COMP: update find_package for boost" | Revert "COMP: update find_package for boost"
This reverts commit e883243c2f4b728699e45e1930301acb0acbeeb6.
| CMake | apache-2.0 | orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB |
74d6324cb617e7fe412b0d2a5c2371cd1cd20ea7 | CMake/Whitelists/FlowBenchSegmentation.cmake | CMake/Whitelists/FlowBenchSegmentation.cmake | set(enabled_modules
Core
CppMicroServices
DICOM
DICOMPM
DataTypesExt
AlgorithmsExt
DICOMQI
Multilabel
SceneSerializationBase
DICOMPMIO
DICOMImageIO
ContourModel
DICOMSegIO
LegacyGL
MapperExt
SceneSerialization
LegacyIO
IOExt
MultilabelIO
AppUtil
QtWidgets
QtWidgetsExt
Segme... | set(enabled_modules
Core
CppMicroServices
DICOM
DICOMPM
DataTypesExt
AlgorithmsExt
DICOMQI
Multilabel
SceneSerializationBase
DICOMPMIO
DICOMImageIO
ContourModel
DICOMSegIO
LegacyGL
MapperExt
SceneSerialization
LegacyIO
IOExt
MultilabelIO
AppUtil
QtWidgets
QtWidgetsExt
Segme... | Add org.mitk.gui.qt.ext plugin to whitelist | Add org.mitk.gui.qt.ext plugin to whitelist
| CMake | bsd-3-clause | MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK |
44e39879c2a87ea1345299b9bc4dc701e4fe25e8 | Modules/Remote/SCIFIO.remote.cmake | Modules/Remote/SCIFIO.remote.cmake | itk_fetch_module(SCIFIO
"SCIFIO (Bioformats) ImageIO plugin for ITK"
GIT_REPOSITORY ${git_protocol}://github.com/scifio/scifio-imageio.git
GIT_TAG 853c9e8beb48d6b62f6cffa2bb010f59b7240fcc
)
| itk_fetch_module(SCIFIO
"SCIFIO (Bioformats) ImageIO plugin for ITK"
GIT_REPOSITORY ${git_protocol}://github.com/scifio/scifio-imageio.git
GIT_TAG 05c3a625bd764a49cd2f77c07fcf242f3bf880fe
)
| Update SCIOFIO to ITKv4.13 branch | BUG: Update SCIOFIO to ITKv4.13 branch
This patch includes updates to support multiple downloads locations
which are replacing gerrit.
Change-Id: I708a7a94397a41b1e222927cd4c51ea7a3e1903f
| CMake | apache-2.0 | spinicist/ITK,fbudin69500/ITK,blowekamp/ITK,hjmjohnson/ITK,BRAINSia/ITK,malaterre/ITK,malaterre/ITK,Kitware/ITK,BRAINSia/ITK,Kitware/ITK,fbudin69500/ITK,vfonov/ITK,thewtex/ITK,InsightSoftwareConsortium/ITK,richardbeare/ITK,InsightSoftwareConsortium/ITK,blowekamp/ITK,LucasGandel/ITK,Kitware/ITK,spinicist/ITK,spinicist/I... |
128acaeae448d2f2e416d434157d2abaa2376e61 | cmake/Depthai/DepthaiDeviceSideConfig.cmake | cmake/Depthai/DepthaiDeviceSideConfig.cmake | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "61ac21aa03a833ba4347e113f9ccd97f9322feaf")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "e6d983d63f717f30e27263cab037b43a1732b6f0")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| Update device side FW with updated mdk | Update device side FW with updated mdk
| CMake | mit | luxonis/depthai-core,luxonis/depthai-core,luxonis/depthai-core |
e95487a144ffe0923efda938b20e45bb5b9a59ff | cmake/QuotientConfig.cmake | cmake/QuotientConfig.cmake | include(CMakeFindDependencyMacro)
find_dependency(QtOlm)
include("${CMAKE_CURRENT_LIST_DIR}/QuotientTargets.cmake")
| include(CMakeFindDependencyMacro)
if (Quotient_E2EE_ENABLED)
find_dependency(QtOlm)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/QuotientTargets.cmake")
| Fix building tests without E2EE | Fix building tests without E2EE
| CMake | lgpl-2.1 | QMatrixClient/libqmatrixclient,QMatrixClient/libqmatrixclient |
a2703b5a73c9106d58063dc256351e4bfcd769fc | cmake/Depthai/DepthaiDeviceSideConfig.cmake | cmake/Depthai/DepthaiDeviceSideConfig.cmake | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "921b8a6a29fa445ea1c250d76dbe8694b5768584")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "af9024d1b2f023f80171f7a36fbeca4718a7b808")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| Update FW: configurable FPS for OV7251: max 99 for 480p, 117 for 400p | Update FW: configurable FPS for OV7251: max 99 for 480p, 117 for 400p
| CMake | mit | luxonis/depthai-core,luxonis/depthai-core,luxonis/depthai-core |
f62304d8b37cc19aeb7b8f535c1bdd51ae60d528 | cmake/Depthai/DepthaiDeviceSideConfig.cmake | cmake/Depthai/DepthaiDeviceSideConfig.cmake | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "c03b9979b83941cdc9feb1a29f5a1452234a65f9")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "9a713b5a5e4422944a2cf98ba177738d465da19f")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| Update FW: fix still capture with scaling, add FPS capping (with warnings) | Update FW: fix still capture with scaling, add FPS capping (with warnings)
| CMake | mit | luxonis/depthai-core,luxonis/depthai-core,luxonis/depthai-core |
2f9c5438bffeefde84d0d116b1a18a3b76dd6193 | cmake/Depthai/DepthaiDeviceSideConfig.cmake | cmake/Depthai/DepthaiDeviceSideConfig.cmake | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "d8813bc1b6cbfbcca742c3e718d3f592a63efcc3")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "642a7b7db68a6ec7c94797bea942f8f0df906397")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| Update FW, bugfix for config_h2d handling after initial setup | Update FW, bugfix for config_h2d handling after initial setup
| CMake | mit | luxonis/depthai-core,luxonis/depthai-core,luxonis/depthai-core |
a4bc106cedbb9b95bee6a3e207f90452d400d6c7 | cmake/Depthai/DepthaiDeviceSideConfig.cmake | cmake/Depthai/DepthaiDeviceSideConfig.cmake | # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "d66b4da7255c5b436b48987d176b2552c3bd97fa")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| # Maturity level "snapshot" / "release"
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
# "full commit hash of device side binary"
set(DEPTHAI_DEVICE_SIDE_COMMIT "16efec0dcbe538570c7dd4e4f4fab40ed0549a6c")
# "version if applicable"
set(DEPTHAI_DEVICE_SIDE_VERSION "")
| Update FW with memory optimizations | Update FW with memory optimizations
| CMake | mit | luxonis/depthai-core,luxonis/depthai-core,luxonis/depthai-core |
629dd2bd02be4d6a2f96d40b2d707a56337d9b82 | Superbuild/External-ITK.cmake | Superbuild/External-ITK.cmake | #---------------------------------------------------------------------------
# Get and build itk
if( NOT ITK_TAG )
set( ITK_TAG "v4.2.1" )
endif()
ExternalProject_Add( ITK
GIT_REPOSITORY "${git_protocol}://itk.org/ITK.git"
GIT_TAG "${ITK_TAG}"
SOURCE_DIR ITK
BINARY_DIR ITK-build
CMAKE_GENERATOR ${gen}
C... | #---------------------------------------------------------------------------
# Get and build itk
if( NOT ITK_TAG )
set( ITK_TAG "v4.2.1" )
endif()
ExternalProject_Add( ITK
GIT_REPOSITORY "${git_protocol}://itk.org/ITK.git"
GIT_TAG "${ITK_TAG}"
SOURCE_DIR ITK
BINARY_DIR ITK-build
CMAKE_GENERATOR ${gen}
C... | Set superbuild ITK BUILD_SHARED_LIBS OFF. | COMP: Set superbuild ITK BUILD_SHARED_LIBS OFF.
The tests had a hard time finding the libraries on Windows.
| CMake | apache-2.0 | InsightSoftwareConsortium/ITKExamples,InsightSoftwareConsortium/ITKExamples,InsightSoftwareConsortium/ITKExamples,InsightSoftwareConsortium/ITKExamples,InsightSoftwareConsortium/ITKExamples |
e91c88b35c5680ab3ae8510ce44925e040a3129d | make/CreatePatchCVS.cmake | make/CreatePatchCVS.cmake | # This CMake script may be used
# with a command line like
# cmake -DWDIR:PATH=<workdir_path> -DODIR:PATH=<output_path> -P CreatePatchCVS.cmake
#
# The script will
# 1) find an appropriate cvs command.
# 2) create a unified diff from CVS diff command
# rooted at WDIR and put the resulting diff
# in ODIR/p... | # This CMake script may be used
# with a command line like
# cmake -DWDIR:PATH=<workdir_path> -DODIR:PATH=<output_path> -P CreatePatchCVS.cmake
#
# The script will
# 1) find an appropriate cvs command.
# 2) create a unified diff from CVS diff command
# rooted at WDIR and put the resulting diff
# in ODIR/p... | Fix trouble with execute process command arguments | Fix trouble with execute process command arguments
| CMake | lgpl-2.1 | deweerdt/TSP,deweerdt/TSP,deweerdt/TSP,deweerdt/TSP,deweerdt/TSP |
3842bc7994dae4223c64308c28d1d0d4d23cb636 | cmake/VIZConfig.cmake | cmake/VIZConfig.cmake | include("${CMAKE_CURRENT_LIST_DIR}/VIZTargets.cmake")
find_path(VIZ_INCLUDE_DIR "viz" HINTS "${CMAKE_CURRENT_LIST_DIR}/../include/" )
find_library(VIZ_LIBRARY NAMES VIZ HINTS "${CMAKE_CURRENT_LIST_DIR}/../lib/")
set(VIZ_LIBRARIES ${VIZ_LIBRARY} )
set(VIZ_INCLUDE_DIRS ${VIZ_INCLUDE_DIR} )
| include("${CMAKE_CURRENT_LIST_DIR}/VIZTargets.cmake")
find_path(VIZ_INCLUDE_DIR "viz" HINTS "${CMAKE_CURRENT_LIST_DIR}/../include/" )
find_library(VIZ_LIBRARY NAMES VIZ HINTS "${CMAKE_CURRENT_LIST_DIR}/../lib/")
set(VIZ_LIBRARIES ${VIZ_LIBRARY} )
set(VIZ_INCLUDE_DIRS ${VIZ_INCLUDE_DIR} )
message(STATUS "VIZ found")
... | Add debug info for cmake | Add debug info for cmake
| CMake | mit | francisengelmann/viz,francisengelmann/viz |
fc2a03ae477053e1201678d5242890eeb12645ca | Modules/Remote/VariationalRegistration.remote.cmake | Modules/Remote/VariationalRegistration.remote.cmake | # Insight Journal Handle: https://hdl.handle.net/10380/3460
# Contact: Alexander Schmidt-Richberg <a.schmidt-richberg@imperial.ac.uk>
# Jan Ehrhardt <ehrhardt@imi.uni-luebeck.de>
# Rene Werner <r.werner@uke.de>
itk_fetch_module(VariationalRegistration
"A module to perform variational image registrat... | # Insight Journal Handle: https://hdl.handle.net/10380/3460
# Contact: Alexander Schmidt-Richberg <a.schmidt-richberg@imperial.ac.uk>
# Jan Ehrhardt <ehrhardt@imi.uni-luebeck.de>
# Rene Werner <r.werner@uke.de>
itk_fetch_module(VariationalRegistration
"A module to perform variational image registrat... | Fix VariationalRegistration for future const GetMacro support | COMP: Fix VariationalRegistration for future const GetMacro support
Minor const adherance needed for compiling with
future removal of deprecated interfaces.
Change-Id: Ie266a0e5a65705b6364cd80f7f244eb18d65a74c
| CMake | apache-2.0 | vfonov/ITK,InsightSoftwareConsortium/ITK,BRAINSia/ITK,hjmjohnson/ITK,malaterre/ITK,stnava/ITK,spinicist/ITK,BRAINSia/ITK,spinicist/ITK,thewtex/ITK,vfonov/ITK,malaterre/ITK,blowekamp/ITK,richardbeare/ITK,richardbeare/ITK,thewtex/ITK,LucasGandel/ITK,fbudin69500/ITK,stnava/ITK,stnava/ITK,Kitware/ITK,malaterre/ITK,spinicis... |
579424edc7b1e852eb20696800c4b04aa056ac6f | Version.cmake | Version.cmake | #
# ONLY MODIFY TO CHANGE VERSION
#
# The number of commits since last this file has changed is used to
# define "dev" and "post", modification of this file will reset that
# version.
#
# Version info
set(SimpleITK_VERSION_MAJOR 2)
set(SimpleITK_VERSION_MINOR 0)
set(SimpleITK_VERSION_PATCH 1)
#set(SimpleITK_VERSION_T... | #
# ONLY MODIFY TO CHANGE VERSION
#
# The number of commits since last this file has changed is used to
# define "dev" and "post", modification of this file will reset that
# version.
#
# Version info
set(SimpleITK_VERSION_MAJOR 2)
set(SimpleITK_VERSION_MINOR 0)
set(SimpleITK_VERSION_PATCH 2)
#set(SimpleITK_VERSION_T... | Update release version to 2.0.2 | Update release version to 2.0.2
| CMake | apache-2.0 | richardbeare/SimpleITK,SimpleITK/SimpleITK,InsightSoftwareConsortium/SimpleITK,richardbeare/SimpleITK,blowekamp/SimpleITK,InsightSoftwareConsortium/SimpleITK,richardbeare/SimpleITK,InsightSoftwareConsortium/SimpleITK,InsightSoftwareConsortium/SimpleITK,SimpleITK/SimpleITK,richardbeare/SimpleITK,blowekamp/SimpleITK,blow... |
2ce30d8ba72f53329070e6620467ed664c3d6525 | cmake/FindVisionaray.cmake | cmake/FindVisionaray.cmake | include(FindPackageHandleStandardArgs)
set(paths
/usr
/usr/local
)
find_path(VISIONARAY_INCLUDE_DIR
NAMES
scheduler.h # TODO: sure?
PATHS
${paths}
PATH_SUFFIXES
include
include/visionaray
)
find_library(VISIONARAY_LIBRARY
NAMES
visionaray
PATHS
... | #.rst:
# FindVisionaray
# --------------
#
# Find the Visionaray ray tracing library
#
# Result Variables
# ^^^^^^^^^^^^^^^^
#
# This module defines the following variables:
#
# ::
#
# VISIONARAY_INCLUDE_DIR - include directories of Visionaray
# VISIONARAY_LIBRARIES - libraries to link against Visionaray
# VISIONARAY_F... | Add some documentation to the cmake find module | Add some documentation to the cmake find module
| CMake | mit | szellmann/visionaray,tu500/visionaray,szellmann/visionaray,ukoeln-vis/ctpperf,tu500/visionaray,ukoeln-vis/ctpperf |
cc67c76d396127827ab0997c79bac49b679275de | biicode.cmake | biicode.cmake | IF(APPLE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
ELSEIF (WIN32 OR UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
ENDIF(APPLE)
ADD_BII_TARGETS()
| IF(APPLE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
ELSEIF (WIN32 OR UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
ENDIF(APPLE)
SET(BII_LIB_TYPE SHARED)
ADD_BII_TARGETS()
| Make Bii generate dynamic library | Make Bii generate dynamic library
| CMake | mit | zhangsu/ccspec,zhangsu/ccspec,zhangsu/ccspec |
d26c722a4ce89e34a4a5ea3515e5ec6d8d01da45 | CMake/FindLuaInterp.cmake | CMake/FindLuaInterp.cmake | #.rst:
# FindLuaInterp
# --------
#
# Find Lua Interpreter
#
# ::
#
# LUA_EXECUTABLE - the full path to lua
# LUA_EXECUTABLE_FOUND - If false, don't attempt to use lua
# LUA_EXECUTABLE_VERSION_STRING - version of lua found
find_program(LUA_EXECUTABLE
NAMES lua
)
if(LUA_EXECUTABLE)
### LUA_VER... | #.rst:
# FindLuaInterp
# --------
#
# Find Lua Interpreter
#
# ::
#
# LUA_EXECUTABLE - the full path to lua
# LUA_EXECUTABLE_FOUND - If false, don't attempt to use lua
# LUA_EXECUTABLE_VERSION_STRING - version of lua found
set(_NAMES lua)
if(NOT LuaInterp_FIND_VERSION_MAJOR EQUAL 0)
list(INSERT ... | Include version suffix in lua executable search | Include version suffix in lua executable search
| CMake | apache-2.0 | InsightSoftwareConsortium/SimpleITK,richardbeare/SimpleITK,richardbeare/SimpleITK,SimpleITK/SimpleITK,SimpleITK/SimpleITK,blowekamp/SimpleITK,blowekamp/SimpleITK,blowekamp/SimpleITK,richardbeare/SimpleITK,InsightSoftwareConsortium/SimpleITK,InsightSoftwareConsortium/SimpleITK,richardbeare/SimpleITK,SimpleITK/SimpleITK,... |
3ea0a44f9a7fddea470010a497648b35f01e7445 | src/cmake/platform.cmake | src/cmake/platform.cmake | ###########################################################################
# Figure out what platform we're on, and set some variables appropriately
message (STATUS "CMAKE_SYSTEM_NAME = ${CMAKE_SYSTEM_NAME}")
message (STATUS "CMAKE_SYSTEM_VERSION = ${CMAKE_SYSTEM_VERSION}")
message (STATUS "CMAKE_SYSTEM_PROCESSOR = $... | ###########################################################################
# Figure out what platform we're on, and set some variables appropriately
# CMAKE_SYSTEM_PROCESSOR should not be used because it indicates the platform
# we are building on, but when cross compiling or using a chroot this is not
# what we want... | Fix for building from a chroot where the host may be e.g. 64 bit and the target is 32 bit, we can't use CMAKE_SYSTEM_PROCESSOR and need to ask the compiler. | Fix for building from a chroot where the host may be e.g. 64 bit and the target
is 32 bit, we can't use CMAKE_SYSTEM_PROCESSOR and need to ask the compiler.
| CMake | bsd-3-clause | mcanthony/OpenShadingLanguage,amartinez-cg/OpenShadingLanguage,rlmh/OpenShadingLanguage,sjparker/OpenShadingLanguage,brechtvl/OpenShadingLanguage,svenstaro/OpenShadingLanguage,mcanthony/OpenShadingLanguage,aconty/OpenShadingLanguage,mcanthony/OpenShadingLanguage,johnhaddon/OpenShadingLanguage,juvenal/OpenShadingLanguag... |
57cb986a0822cf65c9bd13a89f845f8226ce520f | indra/cmake/JsonCpp.cmake | indra/cmake/JsonCpp.cmake | # -*- cmake -*-
include(Prebuilt)
set(JSONCPP_FIND_QUIETLY ON)
set(JSONCPP_FIND_REQUIRED ON)
if (STANDALONE)
include(FindJsonCpp)
else (STANDALONE)
use_prebuilt_binary(jsoncpp)
if (WINDOWS)
set(JSONCPP_LIBRARIES
debug json_vc100debug_libmt.lib
optimized json_vc100_libmt)
elseif (DARWIN)
... | # -*- cmake -*-
include(Prebuilt)
set(JSONCPP_FIND_QUIETLY ON)
set(JSONCPP_FIND_REQUIRED ON)
if (STANDALONE)
include(FindJsonCpp)
else (STANDALONE)
use_prebuilt_binary(jsoncpp)
if (WINDOWS)
set(JSONCPP_LIBRARIES
debug json_vc100debug_libmt.lib
optimized json_vc100_libmt)
elseif (DARWIN)
... | Use correct library on 64-bit Linux. | FIRE-13896: Use correct library on 64-bit Linux.
| CMake | lgpl-2.1 | gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm |
d8ade0643e5b07118d8f2daac6bd7376337b4c90 | cmake/pcl_find_boost.cmake | cmake/pcl_find_boost.cmake | # Find and set Boost flags
if(NOT PCL_SHARED_LIBS)
set(Boost_USE_STATIC_LIBS ON)
endif(NOT PCL_SHARED_LIBS)
find_package(Boost 1.36.0 COMPONENTS system filesystem thread)
# TODO: What should the minimum version number be?
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
| # Find and set Boost flags
if(NOT PCL_SHARED_LIBS)
set(Boost_USE_STATIC_LIBS ON)
endif(NOT PCL_SHARED_LIBS)
find_package(Boost 1.44.0 COMPONENTS system filesystem thread)
# TODO: What should the minimum version number be?
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
| Boost filesystem v3 are supported starting 1.44 only | Fix: Boost filesystem v3 are supported starting 1.44 only
git-svn-id: 1af002208e930b4d920e7c2b948d1e98a012c795@161 a9d63959-f2ad-4865-b262-bf0e56cfafb6
| CMake | bsd-3-clause | psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn,psoetens/pcl-svn |
39d9b1712f307370175462b7e93f12c3d8fefa69 | CMake/itkVersion.cmake | CMake/itkVersion.cmake | # ITK version number components.
set(ITK_VERSION_MAJOR "5")
set(ITK_VERSION_MINOR "1")
set(ITK_VERSION_PATCH "1")
| # ITK version number components.
set(ITK_VERSION_MAJOR "5")
set(ITK_VERSION_MINOR "1")
set(ITK_VERSION_PATCH "2")
| Update ITK CMake version for 5.1.2 | ENH: Update ITK CMake version for 5.1.2
| CMake | apache-2.0 | richardbeare/ITK,vfonov/ITK,LucasGandel/ITK,InsightSoftwareConsortium/ITK,BRAINSia/ITK,hjmjohnson/ITK,Kitware/ITK,LucasGandel/ITK,richardbeare/ITK,hjmjohnson/ITK,BRAINSia/ITK,vfonov/ITK,hjmjohnson/ITK,thewtex/ITK,vfonov/ITK,BRAINSia/ITK,LucasGandel/ITK,hjmjohnson/ITK,thewtex/ITK,richardbeare/ITK,InsightSoftwareConsorti... |
780bc430e30dda0a877fb76f5819dd44ee0dea92 | cmake/compiler/xcc/compiler_flags.cmake | cmake/compiler/xcc/compiler_flags.cmake | # No special flags are needed for xcc.
# Only select whether gcc or clang flags should be inherited.
if(CC STREQUAL "clang")
include(${ZEPHYR_BASE}/cmake/compiler/clang/compiler_flags.cmake)
# Now, let's overwrite the flags that are different in xcc/clang.
if($ENV{XCC_NO_G_FLAG})
# Older xcc/clang cannot use... | # No special flags are needed for xcc.
# Only select whether gcc or clang flags should be inherited.
if(CC STREQUAL "clang")
include(${ZEPHYR_BASE}/cmake/compiler/clang/compiler_flags.cmake)
# Now, let's overwrite the flags that are different in xcc/clang.
if($ENV{XCC_NO_G_FLAG})
# Older xcc/clang cannot use... | Remove -Werror flag unknown to XCC | compiler/xcc: Remove -Werror flag unknown to XCC
XCC (based on GCC 4.2) doesn't recognize -Wvla (for variable-length
array), so remove it from "warning_error_misra_sane" property.
Signed-off-by: Ederson de Souza <1da3dd06fbb9d545ec21e96bca6ffa5cba52ede5@intel.com>
| CMake | apache-2.0 | finikorg/zephyr,finikorg/zephyr,finikorg/zephyr,finikorg/zephyr,galak/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,galak/zephyr |
7de04b08544d088aff944ed25af0cebc1d4946e4 | cmake/SetupGoogleTest.cmake | cmake/SetupGoogleTest.cmake | configure_file(${CMAKE_CURRENT_LIST_DIR}/GoogleTest-CMakeLists.txt.in
${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt)
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
RESULT_VARIABLE result
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download
)
if(result)
message(FATA... | configure_file(${CMAKE_CURRENT_LIST_DIR}/GoogleTest-CMakeLists.txt.in
${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt)
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
RESULT_VARIABLE result
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/googletest-download
)
if(result)
message(FATA... | Hide Google Test variables by default. | CMake: Hide Google Test variables by default.
| CMake | apache-2.0 | frankaemika/libfranka,frankaemika/libfranka,frankaemika/libfranka |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.