entities listlengths 1 44.6k | max_stars_repo_path stringlengths 6 160 | max_stars_repo_name stringlengths 6 66 | max_stars_count int64 0 47.9k | content stringlengths 18 1.04M | id stringlengths 1 6 | new_content stringlengths 18 1.04M | modified bool 1
class | references stringlengths 32 1.52M |
|---|---|---|---|---|---|---|---|---|
[
{
"context": ";;\n;; Distance functions\n;; @author Antonio Garrote\n;;\n\n(ns #^{:author \"Antonio Garrote <antoniogarro",
"end": 51,
"score": 0.9998967051506042,
"start": 36,
"tag": "NAME",
"value": "Antonio Garrote"
},
{
"context": "ns\n;; @author Antonio Garrote\n;;\n\n(ns #^{:au... | src/clj_ml/distance_functions.clj | yogsototh/clj-ml | 114 | ;;
;; Distance functions
;; @author Antonio Garrote
;;
(ns #^{:author "Antonio Garrote <antoniogarrote@gmail.com>"}
clj-ml.distance-functions
"Generates different distance metrics that can be passed as parameters to certain
classifiers and clusterers like K-Means.
Euclidean, Manhattan and Chebysev distance ... | 51420 | ;;
;; Distance functions
;; @author <NAME>
;;
(ns #^{:author "<NAME> <<EMAIL>>"}
clj-ml.distance-functions
"Generates different distance metrics that can be passed as parameters to certain
classifiers and clusterers like K-Means.
Euclidean, Manhattan and Chebysev distance functions are supported."
(:use [... | true | ;;
;; Distance functions
;; @author PI:NAME:<NAME>END_PI
;;
(ns #^{:author "PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>"}
clj-ml.distance-functions
"Generates different distance metrics that can be passed as parameters to certain
classifiers and clusterers like K-Means.
Euclidean, Manhattan and Chebysev d... |
[
{
"context": "e mit/mit\n :copyright [\"Copyright (c) 2013-2017 Dan Holmsand\"\n \"Copyright (c) 2017 Reagent cont",
"end": 1310,
"score": 0.9998579025268555,
"start": 1298,
"tag": "NAME",
"value": "Dan Holmsand"
},
{
"context": "e \"day8/re-frame\"\n :url \"http... | src/cljs/wkok/buy2let/opensource/views.cljs | wkok/re-frame-buy2let | 0 | (ns wkok.buy2let.opensource.views
(:require [re-frame.core :as rf]
[wkok.buy2let.shared :as shared]
[wkok.buy2let.backend.multimethods :as mm]
[wkok.buy2let.site.events :as se]
[wkok.buy2let.legal.opensource.bsd :as bsd]
[wkok.buy2let.legal.opensource.mit :a... | 58871 | (ns wkok.buy2let.opensource.views
(:require [re-frame.core :as rf]
[wkok.buy2let.shared :as shared]
[wkok.buy2let.backend.multimethods :as mm]
[wkok.buy2let.site.events :as se]
[wkok.buy2let.legal.opensource.bsd :as bsd]
[wkok.buy2let.legal.opensource.mit :a... | true | (ns wkok.buy2let.opensource.views
(:require [re-frame.core :as rf]
[wkok.buy2let.shared :as shared]
[wkok.buy2let.backend.multimethods :as mm]
[wkok.buy2let.site.events :as se]
[wkok.buy2let.legal.opensource.bsd :as bsd]
[wkok.buy2let.legal.opensource.mit :a... |
[
{
"context": " [\"glen\" \"Glen Park (SF)\"]\n [\"hayw\" \"Hayward\"]\n [\"lafy\" \"Lafayette\"]\n [\"la",
"end": 1000,
"score": 0.514500081539154,
"start": 998,
"tag": "NAME",
"value": "ay"
},
{
"context": "\"]\n [\"powl\" \"Powell St. (SF)\"]\n ... | test/bartbot/transits/impl/bart_test.clj | taeold/bartbot | 0 | (ns bartbot.transits.impl.bart-test
(:require
[clojure.test :refer :all]
[bartbot.transits.impl.bart :as bart]
[clj-http.client :as client]))
(deftest test-station->bart-abbrv
(let [abbrv-station
[["12th" "12th St. Oakland City Center"]
["16th" "16th St. Mission (SF)"]
["19th"... | 121034 | (ns bartbot.transits.impl.bart-test
(:require
[clojure.test :refer :all]
[bartbot.transits.impl.bart :as bart]
[clj-http.client :as client]))
(deftest test-station->bart-abbrv
(let [abbrv-station
[["12th" "12th St. Oakland City Center"]
["16th" "16th St. Mission (SF)"]
["19th"... | true | (ns bartbot.transits.impl.bart-test
(:require
[clojure.test :refer :all]
[bartbot.transits.impl.bart :as bart]
[clj-http.client :as client]))
(deftest test-station->bart-abbrv
(let [abbrv-station
[["12th" "12th St. Oakland City Center"]
["16th" "16th St. Mission (SF)"]
["19th"... |
[
{
"context": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;; Canon Fodder - Chris Ford (ThoughtWorks) ;;\n;; ",
"end": 66,
"score": 0.9998782277107239,
"start": 54,
"tag": "NAME",
"value": "Canon Fodder"
},
{
"context": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n;; Canon ... | src/goldberg/variations/canone_alla_quarta.clj | orneryhippo/goldberg | 0 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Canon Fodder - Chris Ford (ThoughtWorks) ;;
;; ;;
;; http://github.com/ctford/goldberg ;;
;; http://github.com/overtone/overtone ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(ns goldberg.... | 14144 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; <NAME> - <NAME> (ThoughtWorks) ;;
;; ;;
;; http://github.com/ctford/goldberg ;;
;; http://github.com/overtone/overtone ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(ns goldberg.variations... | true | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; PI:NAME:<NAME>END_PI - PI:NAME:<NAME>END_PI (ThoughtWorks) ;;
;; ;;
;; http://github.com/ctford/goldberg ;;
;; http://github.com/overtone/overtone ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
[
{
"context": "arked as Emails\"\n (doseq [[values expected] {[\"helper@metabase.com\"] true\n",
"end": 8170,
"score": 0.9999291896820068,
"start": 8151,
"tag": "EMAIL",
"value": "helper@metabase.com"
},
{
"context": " true\n ... | c#-metabase/test/metabase/sync/analyze_test.clj | hanakhry/Crime_Admin | 0 | (ns metabase.sync.analyze-test
(:require [clojure.test :refer :all]
[metabase.models.database :refer [Database]]
[metabase.models.field :as field :refer [Field]]
[metabase.models.table :refer [Table]]
[metabase.sync.analyze :as analyze]
[metabase.sync.analyz... | 45676 | (ns metabase.sync.analyze-test
(:require [clojure.test :refer :all]
[metabase.models.database :refer [Database]]
[metabase.models.field :as field :refer [Field]]
[metabase.models.table :refer [Table]]
[metabase.sync.analyze :as analyze]
[metabase.sync.analyz... | true | (ns metabase.sync.analyze-test
(:require [clojure.test :refer :all]
[metabase.models.database :refer [Database]]
[metabase.models.field :as field :refer [Field]]
[metabase.models.table :refer [Table]]
[metabase.sync.analyze :as analyze]
[metabase.sync.analyz... |
[
{
"context": "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n;; @ Copyright (c) Michael Leachim ",
"end": 124,
"score": 0.9997720718383789,
"start": 109,
"tag": "NAME",
"value": "Michael Leachim"
},
{
"context": " @\n;; @@@@@@ At 201... | src/wireframe/styles.clj | MichaelLeachim/wireframecss | 1 | ;; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;; @ Copyright (c) Michael Leachim @
;; @ You can find additional information regarding licensing of this work in LICENSE.md @
;; @ You must not remove this notice, or any other... | 98900 | ;; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;; @ Copyright (c) <NAME> @
;; @ You can find additional information regarding licensing of this work in LICENSE.md @
;; @ You must not remove this notice, or any other, from th... | true | ;; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;; @ Copyright (c) PI:NAME:<NAME>END_PI @
;; @ You can find additional information regarding licensing of this work in LICENSE.md @
;; @ You must not remove this notice, or any ... |
[
{
"context": " :next-token \"next1\"}\n (auto/describe-auto-scaling-groups anyth",
"end": 6965,
"score": 0.8478622436523438,
"start": 6960,
"tag": "PASSWORD",
"value": "next1"
},
{
"context": "escribe-auto-scaling-groups anything :next-token ... | test/maestro/aws_test.clj | neilprosser/mr-maestro | 1 | (ns maestro.aws-test
(:require [amazonica.aws
[autoscaling :as auto]
[ec2 :as ec2]
[elasticloadbalancing :as elb]
[securitytoken :as sts]]
[cheshire.core :as json]
[environ.core :refer :all]
[maestro
[aws :refer :all]... | 42424 | (ns maestro.aws-test
(:require [amazonica.aws
[autoscaling :as auto]
[ec2 :as ec2]
[elasticloadbalancing :as elb]
[securitytoken :as sts]]
[cheshire.core :as json]
[environ.core :refer :all]
[maestro
[aws :refer :all]... | true | (ns maestro.aws-test
(:require [amazonica.aws
[autoscaling :as auto]
[ec2 :as ec2]
[elasticloadbalancing :as elb]
[securitytoken :as sts]]
[cheshire.core :as json]
[environ.core :refer :all]
[maestro
[aws :refer :all]... |
[
{
"context": ";; Copyright © 2015-2019 Esko Luontola\n;; This software is released under the Apache Lic",
"end": 38,
"score": 0.9998820424079895,
"start": 25,
"tag": "NAME",
"value": "Esko Luontola"
}
] | test/territory_bro/gis_test.clj | JessRoberts/territory_assistant | 0 | ;; Copyright © 2015-2019 Esko Luontola
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.gis-test
(:require [clojure.java.jdbc :as jdbc]
[clojure.test :refer :all]
[territory-bro.congregation :as c... | 64713 | ;; Copyright © 2015-2019 <NAME>
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.gis-test
(:require [clojure.java.jdbc :as jdbc]
[clojure.test :refer :all]
[territory-bro.congregation :as congrega... | true | ;; Copyright © 2015-2019 PI:NAME:<NAME>END_PI
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.gis-test
(:require [clojure.java.jdbc :as jdbc]
[clojure.test :refer :all]
[territory-bro.congregatio... |
[
{
"context": "e form 'Hello, username.'\n Default username is 'world'.\"\n ([] (greeting \"world\"))\n ([username] (str \"",
"end": 1458,
"score": 0.954939067363739,
"start": 1453,
"tag": "USERNAME",
"value": "world"
},
{
"context": " \"busted\")\n; END:busted\n\n(def vinge {:fir... | examples/exploring.clj | Chouser/programming-clojure | 1 | ; START:ns
(ns examples.exploring
(:use examples.utils clojure.contrib.str-utils)
(:import (java.io File)))
; END:ns
; START:date
(defn date [person-1 person-2 & chaperones]
(println person-1 "and" person-2
"went out with" (count chaperones) "chaperones."))
; END:date
; START:if
(defn is-small? [number... | 60857 | ; START:ns
(ns examples.exploring
(:use examples.utils clojure.contrib.str-utils)
(:import (java.io File)))
; END:ns
; START:date
(defn date [person-1 person-2 & chaperones]
(println person-1 "and" person-2
"went out with" (count chaperones) "chaperones."))
; END:date
; START:if
(defn is-small? [number... | true | ; START:ns
(ns examples.exploring
(:use examples.utils clojure.contrib.str-utils)
(:import (java.io File)))
; END:ns
; START:date
(defn date [person-1 person-2 & chaperones]
(println person-1 "and" person-2
"went out with" (count chaperones) "chaperones."))
; END:date
; START:if
(defn is-small? [number... |
[
{
"context": "nt\"\n :pedantic? false\n :url \"https://github.com/immutant/immutant\"\n :license {:name \"Apache Software Lice",
"end": 775,
"score": 0.9994480013847351,
"start": 767,
"tag": "USERNAME",
"value": "immutant"
},
{
"context": "]\n :eval-in-leiningen true\n :signing ... | etc/build-helper/project.clj | kfowler/immutant | 0 | ;; Copyright 2014-2015 Red Hat, Inc, and individual contributors.
;;
;; 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... | 88931 | ;; Copyright 2014-2015 Red Hat, Inc, and individual contributors.
;;
;; 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... | true | ;; Copyright 2014-2015 Red Hat, Inc, and individual contributors.
;;
;; 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... |
[
{
"context": " (defsetting mandrill-api-key \\\"API key for Mandrill\\\")\n\n The setting and docstr will then be auto-m",
"end": 394,
"score": 0.8859849572181702,
"start": 387,
"tag": "KEY",
"value": "andrill"
},
{
"context": "ts value to the DB.\n\n (set :mandrill-api-key... | c#-metabase/src/metabase/models/setting.clj | hanakhry/Crime_Admin | 0 | (ns metabase.models.setting
"Settings are a fast and simple way to create a setting that can be set from the admin page. They are saved to the
Database, but intelligently cached internally for super-fast lookups.
Define a new Setting with `defsetting` (optionally supplying a default value, type, or custom gett... | 7752 | (ns metabase.models.setting
"Settings are a fast and simple way to create a setting that can be set from the admin page. They are saved to the
Database, but intelligently cached internally for super-fast lookups.
Define a new Setting with `defsetting` (optionally supplying a default value, type, or custom gett... | true | (ns metabase.models.setting
"Settings are a fast and simple way to create a setting that can be set from the admin page. They are saved to the
Database, but intelligently cached internally for super-fast lookups.
Define a new Setting with `defsetting` (optionally supplying a default value, type, or custom gett... |
[
{
"context": " authenticator {::ya/authenticate (fn [_] {:user \"Frank\"})}]\n (testing \"Single custom authenticator\"\n ",
"end": 743,
"score": 0.9965986013412476,
"start": 738,
"tag": "NAME",
"value": "Frank"
},
{
"context": "s\n (=\n [(merge authenticator {:user \... | test/yada/authentication_test.clj | josf/yada | 780 | ;; Copyright © 2014-2019, JUXT LTD.
(ns yada.authentication-test
(:require
[clojure.data.codec.base64 :as base64]
[clojure.test :refer :all]
[clojure.tools.logging :as log]
[manifold.deferred :as d]
[ring.mock.request :as mock]
[yada.authentication :as ya]
[yada.authentication.http-basic :as bas... | 63973 | ;; Copyright © 2014-2019, JUXT LTD.
(ns yada.authentication-test
(:require
[clojure.data.codec.base64 :as base64]
[clojure.test :refer :all]
[clojure.tools.logging :as log]
[manifold.deferred :as d]
[ring.mock.request :as mock]
[yada.authentication :as ya]
[yada.authentication.http-basic :as bas... | true | ;; Copyright © 2014-2019, JUXT LTD.
(ns yada.authentication-test
(:require
[clojure.data.codec.base64 :as base64]
[clojure.test :refer :all]
[clojure.tools.logging :as log]
[manifold.deferred :as d]
[ring.mock.request :as mock]
[yada.authentication :as ya]
[yada.authentication.http-basic :as bas... |
[
{
"context": ";; Copyright (c) 2010 Tom Crayford,\n;;\n;; Redistribution and use in source and binar",
"end": 34,
"score": 0.9998244047164917,
"start": 22,
"tag": "NAME",
"value": "Tom Crayford"
}
] | src/clojure_refactoring/ast/zip.clj | tcrayford/clojure-refactoring | 6 | ;; Copyright (c) 2010 Tom Crayford,
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;;
;; Redistributions of source code must retain the above copyright
;; notice, this list of conditions and the following... | 124147 | ;; Copyright (c) 2010 <NAME>,
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;;
;; Redistributions of source code must retain the above copyright
;; notice, this list of conditions and the following discl... | true | ;; Copyright (c) 2010 PI:NAME:<NAME>END_PI,
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;;
;; Redistributions of source code must retain the above copyright
;; notice, this list of conditions and the f... |
[
{
"context": " given options:\n :login - a login\n :password - a password\n :message - a SMS test\n :number - a phone num",
"end": 650,
"score": 0.9985393285751343,
"start": 640,
"tag": "PASSWORD",
"value": "a password"
}
] | src/smsbrana/core.clj | druids/smsbrana | 0 | (ns smsbrana.core
(:refer-clojure :exclude [send time])
(:require
[clojure.java.io :as io]
[clojure.string :refer [join]]
[clojure.xml :as xml]
[java-time :as jt]
[org.httpkit.client :as http]
[pandect.algo.md5 :refer [md5]]
[struct.core :as st]))
(def ResponseSchema
{:err [st/requir... | 81880 | (ns smsbrana.core
(:refer-clojure :exclude [send time])
(:require
[clojure.java.io :as io]
[clojure.string :refer [join]]
[clojure.xml :as xml]
[java-time :as jt]
[org.httpkit.client :as http]
[pandect.algo.md5 :refer [md5]]
[struct.core :as st]))
(def ResponseSchema
{:err [st/requir... | true | (ns smsbrana.core
(:refer-clojure :exclude [send time])
(:require
[clojure.java.io :as io]
[clojure.string :refer [join]]
[clojure.xml :as xml]
[java-time :as jt]
[org.httpkit.client :as http]
[pandect.algo.md5 :refer [md5]]
[struct.core :as st]))
(def ResponseSchema
{:err [st/requir... |
[
{
"context": "e error-timeout-sec 65)\n\n\n\n\n(def ^:dynamic p-key :html-audio-single)\n\n(defn- p [& args]\n (when entry-table/device-lo",
"end": 1005,
"score": 0.9879055023193359,
"start": 988,
"tag": "KEY",
"value": "html-audio-single"
},
{
"context": "args)))\n\n\n\n\n(def ^:pr... | src/cljs/vnctst/audio4/device/html_audio_single.cljs | ayamada/vnctst-audio4 | 3 | (ns vnctst.audio4.device.html-audio-single
(:require-macros [cljs.core.async.macros :refer [go go-loop alt!]])
(:require [vnctst.audio4.device.entry-table :as entry-table]
[vnctst.audio4.util :as util]
[cljs.core.async :as async :refer [>! <!]]
))
;;; 実装について
;;; - html-audio-... | 39734 | (ns vnctst.audio4.device.html-audio-single
(:require-macros [cljs.core.async.macros :refer [go go-loop alt!]])
(:require [vnctst.audio4.device.entry-table :as entry-table]
[vnctst.audio4.util :as util]
[cljs.core.async :as async :refer [>! <!]]
))
;;; 実装について
;;; - html-audio-... | true | (ns vnctst.audio4.device.html-audio-single
(:require-macros [cljs.core.async.macros :refer [go go-loop alt!]])
(:require [vnctst.audio4.device.entry-table :as entry-table]
[vnctst.audio4.util :as util]
[cljs.core.async :as async :refer [>! <!]]
))
;;; 実装について
;;; - html-audio-... |
[
{
"context": "timent analysis Ontology\n;;;;\n;;;; @copyright 2020 Dennis Drown et l'Université du Québec à Montréal\n;;;; -------",
"end": 414,
"score": 0.9998785853385925,
"start": 402,
"tag": "NAME",
"value": "Dennis Drown"
}
] | apps/say_sila/priv/fnode/say/src/weka/senti.clj | dendrown/say_sila | 0 | ;;;; -------------------------------------------------------------------------
;;;;
;;;; _/_/_/ _/_/_/ _/ _/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/ _/ _/ _/_/_/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/_/ _/_/_/ _/_/_/_/ _/ _/
;;;;
;;;; Wek... | 23244 | ;;;; -------------------------------------------------------------------------
;;;;
;;;; _/_/_/ _/_/_/ _/ _/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/ _/ _/ _/_/_/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/_/ _/_/_/ _/_/_/_/ _/ _/
;;;;
;;;; Wek... | true | ;;;; -------------------------------------------------------------------------
;;;;
;;;; _/_/_/ _/_/_/ _/ _/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/ _/ _/ _/_/_/_/
;;;; _/ _/ _/ _/ _/
;;;; _/_/_/ _/_/_/ _/_/_/_/ _/ _/
;;;;
;;;; Wek... |
[
{
"context": " Map\n; Date: March 17, 2016.\n; Authors:\n; A01020319 Fernando Gómez Herrera\n;-----------------------",
"end": 145,
"score": 0.6988847851753235,
"start": 138,
"tag": "USERNAME",
"value": "A010203"
},
{
"context": "e: March 17, 2016.\n; Authors:\n; A0... | 4clojure/problem_118.clj | gomezhyuuga/CEM_tc2006 | 1 | ;----------------------------------------------------------
; Problem 118: Re-implement Map
; Date: March 17, 2016.
; Authors:
; A01020319 Fernando Gómez Herrera
;----------------------------------------------------------
(use 'clojure.test)
(defn p
[f s]
(if (empty? s) ()
(lazy-seq (cons (f (first... | 40922 | ;----------------------------------------------------------
; Problem 118: Re-implement Map
; Date: March 17, 2016.
; Authors:
; A01020319 <NAME>
;----------------------------------------------------------
(use 'clojure.test)
(defn p
[f s]
(if (empty? s) ()
(lazy-seq (cons (f (first s)) (p f (rest ... | true | ;----------------------------------------------------------
; Problem 118: Re-implement Map
; Date: March 17, 2016.
; Authors:
; A01020319 PI:NAME:<NAME>END_PI
;----------------------------------------------------------
(use 'clojure.test)
(defn p
[f s]
(if (empty? s) ()
(lazy-seq (cons (f (first s... |
[
{
"context": ".commons.codec.binary Base64)))\n\n(def user-email \"email@user.com\")\n(def client-url \"https://client-app.com\")\n\n(fac",
"end": 853,
"score": 0.9998984336853027,
"start": 839,
"tag": "EMAIL",
"value": "email@user.com"
},
{
"context": "nt-store \"ClientTestApp\" cli... | test/stonecutter/test/controller/oauth.clj | d-cent/stonecutter | 39 | (ns stonecutter.test.controller.oauth
(:require [midje.sweet :refer :all]
[net.cgrand.enlive-html :as html]
[ring.mock.request :as r]
[clauth.client :as cl-client]
[clauth.token :as cl-token]
[clauth.auth-code :as cl-auth-code]
[cheshire.core :as... | 99963 | (ns stonecutter.test.controller.oauth
(:require [midje.sweet :refer :all]
[net.cgrand.enlive-html :as html]
[ring.mock.request :as r]
[clauth.client :as cl-client]
[clauth.token :as cl-token]
[clauth.auth-code :as cl-auth-code]
[cheshire.core :as... | true | (ns stonecutter.test.controller.oauth
(:require [midje.sweet :refer :all]
[net.cgrand.enlive-html :as html]
[ring.mock.request :as r]
[clauth.client :as cl-client]
[clauth.token :as cl-token]
[clauth.auth-code :as cl-auth-code]
[cheshire.core :as... |
[
{
"context": " :id_key \"asdasdasdasdasd\"\n :email ",
"end": 1487,
"score": 0.999450147151947,
"start": 1472,
"tag": "KEY",
"value": "asdasdasdasdasd"
},
{
"context": " :email ... | server/test/com/sixsq/slipstream/ssclj/resources/spec/profile_test.cljc | rsucasas/cimi | 0 | (ns com.sixsq.slipstream.ssclj.resources.spec.profile-test
(:require [clojure.test :refer [deftest are is]]
[clojure.spec.alpha :as s]
[com.sixsq.slipstream.ssclj.resources.common.schema :as schema]
[com.sixsq.slipstream.ssclj.resources.common.utils :as u]
[com.sixsq.sl... | 20088 | (ns com.sixsq.slipstream.ssclj.resources.spec.profile-test
(:require [clojure.test :refer [deftest are is]]
[clojure.spec.alpha :as s]
[com.sixsq.slipstream.ssclj.resources.common.schema :as schema]
[com.sixsq.slipstream.ssclj.resources.common.utils :as u]
[com.sixsq.sl... | true | (ns com.sixsq.slipstream.ssclj.resources.spec.profile-test
(:require [clojure.test :refer [deftest are is]]
[clojure.spec.alpha :as s]
[com.sixsq.slipstream.ssclj.resources.common.schema :as schema]
[com.sixsq.slipstream.ssclj.resources.common.utils :as u]
[com.sixsq.sl... |
[
{
"context": "name \"softcare\"\n :username \"superadmin\"\n :password (password/encry",
"end": 349,
"score": 0.9995220899581909,
"start": 339,
"tag": "USERNAME",
"value": "superadmin"
},
{
"context": " :password (passwo... | softcare-multimedia-repository/src/softcare/db/schemas.clj | seaclouds-atos/softcare-final-implementation | 0 | (ns softcare.db.schemas
(:require [softcare.utilities.utils :as utils]
[crypto.password.bcrypt :as password]
[softcare.utilities.jwtoken :as jwtoken]))
;; CONSTANTS - DEFs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(def SUPER-ADMIN-USER {:name "softcare"
... | 107562 | (ns softcare.db.schemas
(:require [softcare.utilities.utils :as utils]
[crypto.password.bcrypt :as password]
[softcare.utilities.jwtoken :as jwtoken]))
;; CONSTANTS - DEFs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(def SUPER-ADMIN-USER {:name "softcare"
... | true | (ns softcare.db.schemas
(:require [softcare.utilities.utils :as utils]
[crypto.password.bcrypt :as password]
[softcare.utilities.jwtoken :as jwtoken]))
;; CONSTANTS - DEFs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(def SUPER-ADMIN-USER {:name "softcare"
... |
[
{
"context": ".7/css/bootstrap.min.css\"\n :integrity \"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\"\n :crossorigin \"anonymous\"}]\n\n [:li",
"end": 805,
"score": 0.999353289604187,
"start": 734,
"tag": "KEY",
"value": "sha384-BVYiiSIFeK... | src/clj/lambda_racing/server.clj | esiefkas/lambda-racing.com | 0 | (ns lambda-racing.server
(:require [compojure.core :refer [defroutes GET PUT POST DELETE ANY]]
[compojure.handler :as handler]
[compojure.route :as route]
[hiccup.core :as hiccup]
[hiccup.page :refer [include-js]]
[ring.adapter.jetty :as jetty]
[... | 1550 | (ns lambda-racing.server
(:require [compojure.core :refer [defroutes GET PUT POST DELETE ANY]]
[compojure.handler :as handler]
[compojure.route :as route]
[hiccup.core :as hiccup]
[hiccup.page :refer [include-js]]
[ring.adapter.jetty :as jetty]
[... | true | (ns lambda-racing.server
(:require [compojure.core :refer [defroutes GET PUT POST DELETE ANY]]
[compojure.handler :as handler]
[compojure.route :as route]
[hiccup.core :as hiccup]
[hiccup.page :refer [include-js]]
[ring.adapter.jetty :as jetty]
[... |
[
{
"context": "lient for Clojure.\"\n\n :url\n \"https://github.com/rutledgepaulv/kube-api/kube-api-core\"\n\n :license\n {:name \"MIT",
"end": 152,
"score": 0.9988124966621399,
"start": 139,
"tag": "USERNAME",
"value": "rutledgepaulv"
},
{
"context": "ddition\n [:developers\n ... | kube-api-core/project.clj | RutledgePaulV/kube-api | 10 | (defproject kube-api/kube-api-core "0.1.2-SNAPSHOT"
:description
"A Kubernetes API client for Clojure."
:url
"https://github.com/rutledgepaulv/kube-api/kube-api-core"
:license
{:name "MIT License" :url "http://opensource.org/licenses/MIT" :year 2020 :key "mit"}
:scm
{:dir ".."}
:pom-addition
[:... | 71624 | (defproject kube-api/kube-api-core "0.1.2-SNAPSHOT"
:description
"A Kubernetes API client for Clojure."
:url
"https://github.com/rutledgepaulv/kube-api/kube-api-core"
:license
{:name "MIT License" :url "http://opensource.org/licenses/MIT" :year 2020 :key "mit"}
:scm
{:dir ".."}
:pom-addition
[:... | true | (defproject kube-api/kube-api-core "0.1.2-SNAPSHOT"
:description
"A Kubernetes API client for Clojure."
:url
"https://github.com/rutledgepaulv/kube-api/kube-api-core"
:license
{:name "MIT License" :url "http://opensource.org/licenses/MIT" :year 2020 :key "mit"}
:scm
{:dir ".."}
:pom-addition
[:... |
[
{
"context": "erve CrossRef metadata\"\n :url \"http://github.com/CrossRef/cayenne\"\n :signing {:gpg-key \"labs@crossref.org\"",
"end": 122,
"score": 0.9992411136627197,
"start": 114,
"tag": "USERNAME",
"value": "CrossRef"
},
{
"context": "ithub.com/CrossRef/cayenne\"\n :signing ... | project.clj | CrossRef/cayenne | 11 | (defproject crossref/cayenne "1.2.4"
:description "Index and serve CrossRef metadata"
:url "http://github.com/CrossRef/cayenne"
:signing {:gpg-key "labs@crossref.org"}
:repl-options {:port 9494 :init-ns cayenne.user}
:main cayenne.production
:jvm-opts ["-XX:+UseG1GC"]
:plugins [[lein-daemon "0.5.4"]
... | 84973 | (defproject crossref/cayenne "1.2.4"
:description "Index and serve CrossRef metadata"
:url "http://github.com/CrossRef/cayenne"
:signing {:gpg-key "<EMAIL>"}
:repl-options {:port 9494 :init-ns cayenne.user}
:main cayenne.production
:jvm-opts ["-XX:+UseG1GC"]
:plugins [[lein-daemon "0.5.4"]
[co... | true | (defproject crossref/cayenne "1.2.4"
:description "Index and serve CrossRef metadata"
:url "http://github.com/CrossRef/cayenne"
:signing {:gpg-key "PI:EMAIL:<EMAIL>END_PI"}
:repl-options {:port 9494 :init-ns cayenne.user}
:main cayenne.production
:jvm-opts ["-XX:+UseG1GC"]
:plugins [[lein-daemon "0.5.4"]
... |
[
{
"context": ";;;;;;;;;;;;;;;\n;; crypto_O Copyright (C) [2016] [Seth Schroeder] ;;\n;; ",
"end": 132,
"score": 0.9998825192451477,
"start": 118,
"tag": "NAME",
"value": "Seth Schroeder"
}
] | license.clj | foogoof/crypto_O | 0 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; crypto_O Copyright (C) [2016] [Seth Schroeder] ;;
;; ;;
;; http://www.samiam.org was the basis for much of this code. Proble... | 98386 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; crypto_O Copyright (C) [2016] [<NAME>] ;;
;; ;;
;; http://www.samiam.org was the basis for much of this code. Problems are m... | true | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; crypto_O Copyright (C) [2016] [PI:NAME:<NAME>END_PI] ;;
;; ;;
;; http://www.samiam.org was the basis for much of this code. ... |
[
{
"context": "rl \"-\" registration-method)\n :username \"username\"\n :password \"password\"\n :firstName ",
"end": 1335,
"score": 0.999163031578064,
"start": 1327,
"tag": "USERNAME",
"value": "username"
},
{
"context": "username \"username\"\n :pas... | cimi/src/com/sixsq/slipstream/ssclj/resources/user_template_direct.clj | slipstream/SlipStreamServer | 6 | (ns com.sixsq.slipstream.ssclj.resources.user-template-direct
"
Resource that is used to create a user account directly with the provided user
information. Typically this method is available only to service administrators.
"
(:require
[com.sixsq.slipstream.ssclj.resources.common.std-crud :as std-crud]
[com.... | 60684 | (ns com.sixsq.slipstream.ssclj.resources.user-template-direct
"
Resource that is used to create a user account directly with the provided user
information. Typically this method is available only to service administrators.
"
(:require
[com.sixsq.slipstream.ssclj.resources.common.std-crud :as std-crud]
[com.... | true | (ns com.sixsq.slipstream.ssclj.resources.user-template-direct
"
Resource that is used to create a user account directly with the provided user
information. Typically this method is available only to service administrators.
"
(:require
[com.sixsq.slipstream.ssclj.resources.common.std-crud :as std-crud]
[com.... |
[
{
"context": ";; Original author Hirokuni Kim\n;; Modifications by Kevin Kredit\n;; Licensed unde",
"end": 31,
"score": 0.9997240304946899,
"start": 19,
"tag": "NAME",
"value": "Hirokuni Kim"
},
{
"context": "; Original author Hirokuni Kim\n;; Modifications by Kevin Kredit\n;; Licens... | clojure/p20-for/src/p20_for/core.clj | kkredit/pl-study | 0 | ;; Original author Hirokuni Kim
;; Modifications by Kevin Kredit
;; Licensed under https://www.apache.org/licenses/LICENSE-2.0
;; See https://kimh.github.io/clojure-by-example/#for
(ns p20-for.core)
(defn -main
"Main"
[]
(println (for [x '(1 2 3)]
(+ 10 x)))
(println (for [x '(-1 1 2) :when (< ... | 82506 | ;; Original author <NAME>
;; Modifications by <NAME>
;; Licensed under https://www.apache.org/licenses/LICENSE-2.0
;; See https://kimh.github.io/clojure-by-example/#for
(ns p20-for.core)
(defn -main
"Main"
[]
(println (for [x '(1 2 3)]
(+ 10 x)))
(println (for [x '(-1 1 2) :when (< 0 x)]
... | true | ;; Original author PI:NAME:<NAME>END_PI
;; Modifications by PI:NAME:<NAME>END_PI
;; Licensed under https://www.apache.org/licenses/LICENSE-2.0
;; See https://kimh.github.io/clojure-by-example/#for
(ns p20-for.core)
(defn -main
"Main"
[]
(println (for [x '(1 2 3)]
(+ 10 x)))
(println (for [x '(-... |
[
{
"context": "ke ::qxty/m.Row\n :name :row-me\n :label \"Voila\"\n :css-class (c? (let [rg (fget :fav-css me)",
"end": 2504,
"score": 0.6454038619995117,
"start": 2499,
"tag": "NAME",
"value": "Voila"
}
] | cljs/qxia/src/hello_mobile/random_toys.cljs | kennytilton/ConnectJS | 7 | (ns hello-mobile.random-toys
(:require
[clojure.string :refer [capitalize]]
[tiltontec.util.core :refer [pln]]
[tiltontec.cell.base
:refer [ia-type unbound cells-reset]
:as cty]
[tiltontec.cell.observer
:refer-macros [fn-obs]
:refer [observe]]
[tiltontec.cell.integrity :refer-macros [wi... | 123128 | (ns hello-mobile.random-toys
(:require
[clojure.string :refer [capitalize]]
[tiltontec.util.core :refer [pln]]
[tiltontec.cell.base
:refer [ia-type unbound cells-reset]
:as cty]
[tiltontec.cell.observer
:refer-macros [fn-obs]
:refer [observe]]
[tiltontec.cell.integrity :refer-macros [wi... | true | (ns hello-mobile.random-toys
(:require
[clojure.string :refer [capitalize]]
[tiltontec.util.core :refer [pln]]
[tiltontec.cell.base
:refer [ia-type unbound cells-reset]
:as cty]
[tiltontec.cell.observer
:refer-macros [fn-obs]
:refer [observe]]
[tiltontec.cell.integrity :refer-macros [wi... |
[
{
"context": "uest getUserConfig-endpoint {:user usr} {:password psw}\n (fn [responseBody]\n (let [cod",
"end": 2516,
"score": 0.8957120180130005,
"start": 2513,
"tag": "PASSWORD",
"value": "psw"
}
] | src/homepage-cljs/account.cljs | elkiwy/homepage-cljs | 0 | (ns homepage-cljs.account
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.reader :as reader]
[homepage-cljs.utils :as utils]
[homepage-cljs.style :as style]
[homepage-cljs.ui :as ui]
[reagent.core :as r]
[goog.crypt.bas... | 112810 | (ns homepage-cljs.account
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.reader :as reader]
[homepage-cljs.utils :as utils]
[homepage-cljs.style :as style]
[homepage-cljs.ui :as ui]
[reagent.core :as r]
[goog.crypt.bas... | true | (ns homepage-cljs.account
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [cljs.reader :as reader]
[homepage-cljs.utils :as utils]
[homepage-cljs.style :as style]
[homepage-cljs.ui :as ui]
[reagent.core :as r]
[goog.crypt.bas... |
[
{
"context": "\"{ :basic_auth => { :user => 'foo', :password => 'bar' }}\"]\n (.runScriptlet scripting-containe",
"end": 4510,
"score": 0.9993031024932861,
"start": 4507,
"tag": "PASSWORD",
"value": "bar"
},
{
"context": "\"{ :basic_auth => { :user => 'foo', :password => 'ba... | test/unit/puppetlabs/puppetserver/ruby/http_client_test.clj | masterzen/puppet-server | 0 | (ns puppetlabs.puppetserver.ruby.http-client-test
(:import (org.jruby.embed LocalContextScope LocalVariableBehavior
ScriptingContainer EvalFailedException)
(org.apache.http ConnectionClosedException)
(com.puppetlabs.http.client HttpClientException)
(javax.n... | 31905 | (ns puppetlabs.puppetserver.ruby.http-client-test
(:import (org.jruby.embed LocalContextScope LocalVariableBehavior
ScriptingContainer EvalFailedException)
(org.apache.http ConnectionClosedException)
(com.puppetlabs.http.client HttpClientException)
(javax.n... | true | (ns puppetlabs.puppetserver.ruby.http-client-test
(:import (org.jruby.embed LocalContextScope LocalVariableBehavior
ScriptingContainer EvalFailedException)
(org.apache.http ConnectionClosedException)
(com.puppetlabs.http.client HttpClientException)
(javax.n... |
[
{
"context": "license \"BSD 3-Clause License <https://github.com/FundingCircle/jackdaw/blob/master/LICENSE>\"}\n (:require [cloju",
"end": 937,
"score": 0.8093753457069397,
"start": 924,
"tag": "USERNAME",
"value": "FundingCircle"
},
{
"context": "sets]\n (let [new-key-keypath (con... | src/rp/jackdaw/serdes/homogeneous_edn.clj | rentpath/rp-jackdaw-clj | 9 | (ns rp.jackdaw.serdes.homogeneous-edn
"Implements an EDN SerDe (Serializer/Deserializer). While the native jackdaw EDN SerDe fulfills
most purposes, in order for the RentPath Kafka Connect EdnConverter
(https://search.maven.org/artifact/com.rentpath/kafka-connect-converters/0.1.1/jar) to infer
the requisite ... | 26464 | (ns rp.jackdaw.serdes.homogeneous-edn
"Implements an EDN SerDe (Serializer/Deserializer). While the native jackdaw EDN SerDe fulfills
most purposes, in order for the RentPath Kafka Connect EdnConverter
(https://search.maven.org/artifact/com.rentpath/kafka-connect-converters/0.1.1/jar) to infer
the requisite ... | true | (ns rp.jackdaw.serdes.homogeneous-edn
"Implements an EDN SerDe (Serializer/Deserializer). While the native jackdaw EDN SerDe fulfills
most purposes, in order for the RentPath Kafka Connect EdnConverter
(https://search.maven.org/artifact/com.rentpath/kafka-connect-converters/0.1.1/jar) to infer
the requisite ... |
[
{
"context": "\"/\" db-name)\n :user db-user\n :password db-password}\n )\n\n {:classname \"com.mysql.jdbc.D",
"end": 1198,
"score": 0.7058959603309631,
"start": 1187,
"tag": "PASSWORD",
"value": "db-password"
}
] | src/hateoasql/dao.clj | kevinpeterson/hateoasql | 1 | (ns hateoasql.dao
(:require [clojure.java.jdbc :as jdbc]
[clojure.string :as s]
[jdbc.pool.c3p0 :as pool]
[clojure.core.reducers :as r]))
(def db-uri
(let [url (or (System/getenv "DATABASE_URL") (System/getenv "CLEARDB_DATABASE_URL"))]
(if-not (nil? url)
(java.net.URI. u... | 37450 | (ns hateoasql.dao
(:require [clojure.java.jdbc :as jdbc]
[clojure.string :as s]
[jdbc.pool.c3p0 :as pool]
[clojure.core.reducers :as r]))
(def db-uri
(let [url (or (System/getenv "DATABASE_URL") (System/getenv "CLEARDB_DATABASE_URL"))]
(if-not (nil? url)
(java.net.URI. u... | true | (ns hateoasql.dao
(:require [clojure.java.jdbc :as jdbc]
[clojure.string :as s]
[jdbc.pool.c3p0 :as pool]
[clojure.core.reducers :as r]))
(def db-uri
(let [url (or (System/getenv "DATABASE_URL") (System/getenv "CLEARDB_DATABASE_URL"))]
(if-not (nil? url)
(java.net.URI. u... |
[
{
"context": " \"/notary/\") (:name x)))\n\n(def notaryMap { \n\t:name fullname\n\t:form profession\n\t:city city})\n\n\n(defrecord Nota",
"end": 303,
"score": 0.9825678467750549,
"start": 295,
"tag": "NAME",
"value": "fullname"
}
] | src/clojsesame/integration/notary.clj | hotlib/datanest2rdf | 0 | (ns clojsesame.integration.notary
(:require
[clojsesame.vocabulary :refer :all]
[clojsesame.sesame :refer :all]))
(def notaryInfo {:filename "dumps/notaries-dump.csv" :type :notary})
(defn- notaryURI [x]
(createURI (str basicNamespace "/notary/") (:name x)))
(def notaryMap {
:name fullname
:form professio... | 95171 | (ns clojsesame.integration.notary
(:require
[clojsesame.vocabulary :refer :all]
[clojsesame.sesame :refer :all]))
(def notaryInfo {:filename "dumps/notaries-dump.csv" :type :notary})
(defn- notaryURI [x]
(createURI (str basicNamespace "/notary/") (:name x)))
(def notaryMap {
:name <NAME>
:form profession
... | true | (ns clojsesame.integration.notary
(:require
[clojsesame.vocabulary :refer :all]
[clojsesame.sesame :refer :all]))
(def notaryInfo {:filename "dumps/notaries-dump.csv" :type :notary})
(defn- notaryURI [x]
(createURI (str basicNamespace "/notary/") (:name x)))
(def notaryMap {
:name PI:NAME:<NAME>END_PI
:fo... |
[
{
"context": "awdown ret)))\n\n(defn ulcer-index\n \"ulcer index of peter g. martin (1987). the impact of long, deep drawdowns will\n ",
"end": 7989,
"score": 0.9992343187332153,
"start": 7974,
"tag": "NAME",
"value": "peter g. martin"
}
] | src/ribelo/qualsdorf.cljc | ribelo/querfurt | 0 | (ns ribelo.qualsdorf
(:require
[ribelo.halle :as h]
[ribelo.kemnath :as math]
[ribelo.stade :as stats]))
#?(:clj (set! *warn-on-reflection* true))
#?(:clj (set! *unchecked-math* :warn-on-boxed))
(comment
(do (require '[taoensso.encore :as enc])
(def data (vec (repeatedly 100000 #(/ (- 0.5 ^double (... | 36928 | (ns ribelo.qualsdorf
(:require
[ribelo.halle :as h]
[ribelo.kemnath :as math]
[ribelo.stade :as stats]))
#?(:clj (set! *warn-on-reflection* true))
#?(:clj (set! *unchecked-math* :warn-on-boxed))
(comment
(do (require '[taoensso.encore :as enc])
(def data (vec (repeatedly 100000 #(/ (- 0.5 ^double (... | true | (ns ribelo.qualsdorf
(:require
[ribelo.halle :as h]
[ribelo.kemnath :as math]
[ribelo.stade :as stats]))
#?(:clj (set! *warn-on-reflection* true))
#?(:clj (set! *unchecked-math* :warn-on-boxed))
(comment
(do (require '[taoensso.encore :as enc])
(def data (vec (repeatedly 100000 #(/ (- 0.5 ^double (... |
[
{
"context": ";; Copyright 2014-2020 King\n;; Copyright 2009-2014 Ragnar Svensson, Christian Murray\n;; Licensed under the Defold Li",
"end": 111,
"score": 0.999828040599823,
"start": 96,
"tag": "NAME",
"value": "Ragnar Svensson"
},
{
"context": "-2020 King\n;; Copyright 2009-2014 Ra... | editor/src/clj/editor/connection_properties.clj | cmarincia/defold | 0 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 Ragnar Svensson, Christian Murray
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together wi... | 78183 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 <NAME>, <NAME>
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together with FAQs at
;; https... | true | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, to... |
[
{
"context": " '[:foo (1 2) 3])\n\n\n(fact \"plush->push example per Tom Helmuth\"\n (plush->push\n helmuth-1\n :branch-map { :",
"end": 14179,
"score": 0.9989810585975647,
"start": 14168,
"tag": "NAME",
"value": "Tom Helmuth"
}
] | test/answer_factory/genome/plush_test.clj | Vaguery/answer-factory-clj | 3 | (ns answer-factory.genome.plush-test
(:use midje.sweet)
(:use answer-factory.genome.plush)
(:require [clojure.zip :as zip])
(:require [answer-factory.genome.bb8 :as bb8])
(:use clojure.pprint))
(fact "clean-insert adds a thing to a zipper without leaving the nil placeholder in an empty sub-list"
(zip/root... | 68203 | (ns answer-factory.genome.plush-test
(:use midje.sweet)
(:use answer-factory.genome.plush)
(:require [clojure.zip :as zip])
(:require [answer-factory.genome.bb8 :as bb8])
(:use clojure.pprint))
(fact "clean-insert adds a thing to a zipper without leaving the nil placeholder in an empty sub-list"
(zip/root... | true | (ns answer-factory.genome.plush-test
(:use midje.sweet)
(:use answer-factory.genome.plush)
(:require [clojure.zip :as zip])
(:require [answer-factory.genome.bb8 :as bb8])
(:use clojure.pprint))
(fact "clean-insert adds a thing to a zipper without leaving the nil placeholder in an empty sub-list"
(zip/root... |
[
{
"context": "on-schemes\n [{:scheme \"Basic\"\n :verify {[\"tom\" \"watson\"] {:email \"tom@ibm.com\"\n ",
"end": 511,
"score": 0.9831041097640991,
"start": 508,
"tag": "USERNAME",
"value": "tom"
},
{
"context": "emes\n [{:scheme \"Basic\"\n :verify {[... | examples/phonebook/src/phonebook/resources.clj | danielcompton/yada | 0 | ;; Copyright © 2015, JUXT LTD.
(ns phonebook.resources
(:require
[clojure.tools.logging :refer :all]
[clojure.java.io :as io]
[hiccup.core :refer [html]]
[schema.core :as s]
[phonebook.db :as db]
[phonebook.html :as html]
[yada.methods :as m]
[yada.resource :refer [resource]]
[yada.yada :a... | 71947 | ;; Copyright © 2015, JUXT LTD.
(ns phonebook.resources
(:require
[clojure.tools.logging :refer :all]
[clojure.java.io :as io]
[hiccup.core :refer [html]]
[schema.core :as s]
[phonebook.db :as db]
[phonebook.html :as html]
[yada.methods :as m]
[yada.resource :refer [resource]]
[yada.yada :a... | true | ;; Copyright © 2015, JUXT LTD.
(ns phonebook.resources
(:require
[clojure.tools.logging :refer :all]
[clojure.java.io :as io]
[hiccup.core :refer [html]]
[schema.core :as s]
[phonebook.db :as db]
[phonebook.html :as html]
[yada.methods :as m]
[yada.resource :refer [resource]]
[yada.yada :a... |
[
{
"context": " db mg/add\n {:user/id 1\n :user/name \"Pat\"\n :user/favorite-color {:color/hex \"9C27B0",
"end": 319,
"score": 0.9639722108840942,
"start": 316,
"tag": "NAME",
"value": "Pat"
},
{
"context": "Purple\"}}\n\n {:user/id 2\n :user/name \"R... | test/com/stuartsierra/mapgraph/readme.clj | vimsical/mapgraph | 69 | (ns com.stuartsierra.mapgraph.readme
"Examples used in documentation"
(:require [com.stuartsierra.mapgraph :as mg]
[com.stuartsierra.mapgraph.examples :as examples]))
(def db (atom (mg/new-db)))
(swap! db mg/add-id-attr :user/id :color/hex)
(swap! db mg/add
{:user/id 1
:user/name "Pat"... | 67051 | (ns com.stuartsierra.mapgraph.readme
"Examples used in documentation"
(:require [com.stuartsierra.mapgraph :as mg]
[com.stuartsierra.mapgraph.examples :as examples]))
(def db (atom (mg/new-db)))
(swap! db mg/add-id-attr :user/id :color/hex)
(swap! db mg/add
{:user/id 1
:user/name "<NAM... | true | (ns com.stuartsierra.mapgraph.readme
"Examples used in documentation"
(:require [com.stuartsierra.mapgraph :as mg]
[com.stuartsierra.mapgraph.examples :as examples]))
(def db (atom (mg/new-db)))
(swap! db mg/add-id-attr :user/id :color/hex)
(swap! db mg/add
{:user/id 1
:user/name "PI:N... |
[
{
"context": "\"login\" [message channel]\n (let [login (message \"userName\")\n password (message \"password\")]\n (if ",
"end": 218,
"score": 0.9994031190872192,
"start": 210,
"tag": "USERNAME",
"value": "userName"
},
{
"context": "n (message \"userName\")\n passw... | Labs/FP/src/chat/model/users.clj | VerkhovtsovPavel/BSUIR_Labs | 1 | (ns chat.model.users
(:use [chat.model.ws-actions])
(:require [chat.data.persistance :as domain]))
(def authUsers (atom {}))
(defmethod perform-ws-action "login" [message channel]
(let [login (message "userName")
password (message "password")]
(if (domain/isUserExist login password)
(do
... | 48020 | (ns chat.model.users
(:use [chat.model.ws-actions])
(:require [chat.data.persistance :as domain]))
(def authUsers (atom {}))
(defmethod perform-ws-action "login" [message channel]
(let [login (message "userName")
password (message "<PASSWORD>")]
(if (domain/isUserExist login password)
(do
... | true | (ns chat.model.users
(:use [chat.model.ws-actions])
(:require [chat.data.persistance :as domain]))
(def authUsers (atom {}))
(defmethod perform-ws-action "login" [message channel]
(let [login (message "userName")
password (message "PI:PASSWORD:<PASSWORD>END_PI")]
(if (domain/isUserExist login passwo... |
[
{
"context": " initialization and configuration.\"\n :author \"Jeff Rose\"}\n overtone.config.setup\n (:import [java.io Fil",
"end": 80,
"score": 0.9998745918273926,
"start": 71,
"tag": "NAME",
"value": "Jeff Rose"
}
] | src/overtone/config/setup.clj | samaaron/overtone | 2 | (ns
^{:doc "Library initialization and configuration."
:author "Jeff Rose"}
overtone.config.setup
(:import [java.io File])
(:use [overtone.config store]
[clojure.java.io :only (delete-file)]))
(defn- get-os []
(let [os (System/getProperty "os.name")]
(cond
(re-find #"[Ww]indows" os) :w... | 9985 | (ns
^{:doc "Library initialization and configuration."
:author "<NAME>"}
overtone.config.setup
(:import [java.io File])
(:use [overtone.config store]
[clojure.java.io :only (delete-file)]))
(defn- get-os []
(let [os (System/getProperty "os.name")]
(cond
(re-find #"[Ww]indows" os) :wind... | true | (ns
^{:doc "Library initialization and configuration."
:author "PI:NAME:<NAME>END_PI"}
overtone.config.setup
(:import [java.io File])
(:use [overtone.config store]
[clojure.java.io :only (delete-file)]))
(defn- get-os []
(let [os (System/getProperty "os.name")]
(cond
(re-find #"[Ww]ind... |
[
{
"context": ")\n\n(defn- form-username [value]\n (form/comp\n \"USERNAME\"\n (comp/text-field\n {:name \"username\"",
"end": 1563,
"score": 0.9937757253646851,
"start": 1555,
"tag": "USERNAME",
"value": "USERNAME"
},
{
"context": "\"USERNAME\"\n (comp/text-field\n... | ch16/swarmpit/src/cljs/swarmpit/component/registry/create.cljs | vincestorm/Docker-on-Amazon-Web-Services | 0 | (ns swarmpit.component.registry.create
(:require [material.icon :as icon]
[material.component :as comp]
[material.component.form :as form]
[material.component.panel :as panel]
[swarmpit.component.mixin :as mixin]
[swarmpit.component.state :as state]
... | 97575 | (ns swarmpit.component.registry.create
(:require [material.icon :as icon]
[material.component :as comp]
[material.component.form :as form]
[material.component.panel :as panel]
[swarmpit.component.mixin :as mixin]
[swarmpit.component.state :as state]
... | true | (ns swarmpit.component.registry.create
(:require [material.icon :as icon]
[material.component :as comp]
[material.component.form :as form]
[material.component.panel :as panel]
[swarmpit.component.mixin :as mixin]
[swarmpit.component.state :as state]
... |
[
{
"context": "gnal! [success?]\n (let [client-config {:name \"Signaller\"\n :on-open (fn [client",
"end": 3418,
"score": 0.577707052230835,
"start": 3414,
"tag": "NAME",
"value": "Sign"
},
{
"context": "! [success?]\n (let [client-config {:name \"Signall... | src/automation/dirac/automation/task.cljs | pvinis/dirac | 0 | (ns dirac.automation.task
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require [cljs.core.async :refer [put! <! chan timeout alts! close!]]
[oops.core :refer [oget oset! ocall oapply]]
[chromex.logging :refer-macros [log warn error info]]
[dirac.settings :refe... | 123606 | (ns dirac.automation.task
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require [cljs.core.async :refer [put! <! chan timeout alts! close!]]
[oops.core :refer [oget oset! ocall oapply]]
[chromex.logging :refer-macros [log warn error info]]
[dirac.settings :refe... | true | (ns dirac.automation.task
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require [cljs.core.async :refer [put! <! chan timeout alts! close!]]
[oops.core :refer [oget oset! ocall oapply]]
[chromex.logging :refer-macros [log warn error info]]
[dirac.settings :refe... |
[
{
"context": "inc)) (gen/return nil))))\n\n\n(s/def ::user-name #{\"Maggie\" \"Linh\" \"Bubba\" \"Tomm\" \"Rory\" \"Link\" \"Janie\"})\n(s",
"end": 345,
"score": 0.999718189239502,
"start": 339,
"tag": "NAME",
"value": "Maggie"
},
{
"context": "n/return nil))))\n\n\n(s/def ::user-nam... | demo/src/specmonstah_demo/examples/schemas.cljs | plexus/specmonstah | 346 | (ns specmonstah-demo.examples.schemas
(:require [clojure.spec.alpha :as s]
[clojure.test.check.generators :as gen :include-macros true]
[shadow.resource :as rc]))
(def id-seq (atom 0))
(s/def ::id
(s/with-gen
pos-int?
#(gen/fmap (fn [_] (swap! id-seq inc)) (gen/return nil))))
(s/... | 76310 | (ns specmonstah-demo.examples.schemas
(:require [clojure.spec.alpha :as s]
[clojure.test.check.generators :as gen :include-macros true]
[shadow.resource :as rc]))
(def id-seq (atom 0))
(s/def ::id
(s/with-gen
pos-int?
#(gen/fmap (fn [_] (swap! id-seq inc)) (gen/return nil))))
(s/... | true | (ns specmonstah-demo.examples.schemas
(:require [clojure.spec.alpha :as s]
[clojure.test.check.generators :as gen :include-macros true]
[shadow.resource :as rc]))
(def id-seq (atom 0))
(s/def ::id
(s/with-gen
pos-int?
#(gen/fmap (fn [_] (swap! id-seq inc)) (gen/return nil))))
(s/... |
[
{
"context": ";; Copyright (c) Alan Dipert and Micha Niskin. All rights reserved.\n;; The use",
"end": 28,
"score": 0.9998749494552612,
"start": 17,
"tag": "NAME",
"value": "Alan Dipert"
},
{
"context": ";; Copyright (c) Alan Dipert and Micha Niskin. All rights reserved.\n;; The use ... | gh-pages/index.html.out/hoplon/core.cljs | thedavidmeister/cljs-ntp | 4 | ;; Copyright (c) Alan Dipert and Micha Niskin. All rights reserved.
;; 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 this soft... | 101582 | ;; Copyright (c) <NAME> and <NAME>. All rights reserved.
;; 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 this software in any... | true | ;; Copyright (c) PI:NAME:<NAME>END_PI and PI:NAME:<NAME>END_PI. All rights reserved.
;; 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.
;; B... |
[
{
"context": "^{:doc \"Cortex activation functions\"\n :author \"Eemil Väisänen\"}\n cortex.activation\n (:require [clojure.math.n",
"end": 71,
"score": 0.9998688697814941,
"start": 57,
"tag": "NAME",
"value": "Eemil Väisänen"
}
] | src/cortex/activation.clj | vaiski/cortex | 0 | (ns
^{:doc "Cortex activation functions"
:author "Eemil Väisänen"}
cortex.activation
(:require [clojure.math.numeric-tower :as math]))
(def e Math/E)
(defn linear
"Linear activation function."
[z]
z)
; Step functions
(defn binary-threshold
"Binary threshold activation function."
[z]
(map #(if... | 653 | (ns
^{:doc "Cortex activation functions"
:author "<NAME>"}
cortex.activation
(:require [clojure.math.numeric-tower :as math]))
(def e Math/E)
(defn linear
"Linear activation function."
[z]
z)
; Step functions
(defn binary-threshold
"Binary threshold activation function."
[z]
(map #(if (>= % 0... | true | (ns
^{:doc "Cortex activation functions"
:author "PI:NAME:<NAME>END_PI"}
cortex.activation
(:require [clojure.math.numeric-tower :as math]))
(def e Math/E)
(defn linear
"Linear activation function."
[z]
z)
; Step functions
(defn binary-threshold
"Binary threshold activation function."
[z]
(ma... |
[
{
"context": ";;;; Copyright 2015 Peter Stephens. All Rights Reserved.\r\n;;;;\r\n;;;; Licensed unde",
"end": 36,
"score": 0.9996956586837769,
"start": 22,
"tag": "NAME",
"value": "Peter Stephens"
},
{
"context": "= 1 (b/get-book-meta :Exodus :index)))\r\n (is (= \"John\" (b/get... | src/test/node/common/bible/coretests.cljs | pstephens/kingjames.bible | 23 | ;;;; Copyright 2015 Peter Stephens. All Rights Reserved.
;;;;
;;;; 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
... | 51792 | ;;;; Copyright 2015 <NAME>. All Rights Reserved.
;;;;
;;;; 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
;;;;
;;... | true | ;;;; Copyright 2015 PI:NAME:<NAME>END_PI. All Rights Reserved.
;;;;
;;;; 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... |
[
{
"context": ";; Copyright © 2017 Douglas P. Fields, Jr. All Rights Reserved.\n;; Web: https://symboli",
"end": 37,
"score": 0.9998520016670227,
"start": 20,
"tag": "NAME",
"value": "Douglas P. Fields"
},
{
"context": "; Web: https://symbolics.lisp.engineer/\n;; E-mail: symbolics@lis... | test/engineer/lisp/stable_transient/core_test.clj | LispEngineer/fast-atom | 0 | ;; Copyright © 2017 Douglas P. Fields, Jr. All Rights Reserved.
;; Web: https://symbolics.lisp.engineer/
;; E-mail: symbolics@lisp.engineer
;; Twitter: @LispEngineer
(ns engineer.lisp.stable-transient.core-test
(:import (engineer.lisp.stabletransient StableTransientGenerator))
(:use [clojure.pprint])
(:require [... | 90812 | ;; Copyright © 2017 <NAME>, Jr. All Rights Reserved.
;; Web: https://symbolics.lisp.engineer/
;; E-mail: <EMAIL>
;; Twitter: @LispEngineer
(ns engineer.lisp.stable-transient.core-test
(:import (engineer.lisp.stabletransient StableTransientGenerator))
(:use [clojure.pprint])
(:require [clojure.test :refer :all]
... | true | ;; Copyright © 2017 PI:NAME:<NAME>END_PI, Jr. All Rights Reserved.
;; Web: https://symbolics.lisp.engineer/
;; E-mail: PI:EMAIL:<EMAIL>END_PI
;; Twitter: @LispEngineer
(ns engineer.lisp.stable-transient.core-test
(:import (engineer.lisp.stabletransient StableTransientGenerator))
(:use [clojure.pprint])
(:require... |
[
{
"context": " [4]\n(defn hie [person message] (str \"Hie, \" person \" : \" message)) ; [5]\n\n(defn foo [arg] ",
"end": 6715,
"score": 0.512178361415863,
"start": 6713,
"tag": "NAME",
"value": "ie"
}
] | src/clojure_by_example/ex00_introduction.clj | oitee/clojure-by-example | 0 | (ns clojure-by-example.ex00-introduction)
;; IMPORTANT:
;; - The README file explains why this project exists.
;; - Begin in this "ex00..." file, and work through it step by step.
;; - Once you are done with "ex00...", open the next file and repeat.
;; - Keep going this way, until you have worked through all the file... | 11187 | (ns clojure-by-example.ex00-introduction)
;; IMPORTANT:
;; - The README file explains why this project exists.
;; - Begin in this "ex00..." file, and work through it step by step.
;; - Once you are done with "ex00...", open the next file and repeat.
;; - Keep going this way, until you have worked through all the file... | true | (ns clojure-by-example.ex00-introduction)
;; IMPORTANT:
;; - The README file explains why this project exists.
;; - Begin in this "ex00..." file, and work through it step by step.
;; - Once you are done with "ex00...", open the next file and repeat.
;; - Keep going this way, until you have worked through all the file... |
[
{
"context": "ept \"application/json\"\n :query-params {:token \"mock-echo-system-token\"}\n :connection-manager (system/conn-mgr)\n :",
"end": 634,
"score": 0.8679987192153931,
"start": 612,
"tag": "KEY",
"value": "mock-echo-system-token"
},
{
"context": "ept \"application/... | system-int-test/test/cmr/system_int_test/ingest/job_management_test.clj | brianalexander/Common-Metadata-Repository | 0 | (ns cmr.system-int-test.ingest.job-management-test
"CMR subscription processing tests."
(:require
[cheshire.core :as json]
[clj-http.client :as client]
[clojure.test :refer :all]
[cmr.system-int-test.utils.dev-system-util :as dev-system]
[cmr.system-int-test.system :as system]
[cmr.system-int-test... | 54553 | (ns cmr.system-int-test.ingest.job-management-test
"CMR subscription processing tests."
(:require
[cheshire.core :as json]
[clj-http.client :as client]
[clojure.test :refer :all]
[cmr.system-int-test.utils.dev-system-util :as dev-system]
[cmr.system-int-test.system :as system]
[cmr.system-int-test... | true | (ns cmr.system-int-test.ingest.job-management-test
"CMR subscription processing tests."
(:require
[cheshire.core :as json]
[clj-http.client :as client]
[clojure.test :refer :all]
[cmr.system-int-test.utils.dev-system-util :as dev-system]
[cmr.system-int-test.system :as system]
[cmr.system-int-test... |
[
{
"context": "ervice :refer [create-service]]))\n\n(def test-key \"some_key\")\n(def test-value (byte-array (map byte \"some val",
"end": 276,
"score": 0.9751824736595154,
"start": 268,
"tag": "KEY",
"value": "some_key"
}
] | clojure/test/nonamedb/test/api/service_spec.clj | sndnv/nonamedb | 1 | (ns nonamedb.test.api.service-spec
(:require [clojure.test :refer :all]
[ring.mock.request :as mock]
[nonamedb.storage.engines.memory-engine :refer [create-engine]]
[nonamedb.api.service :refer [create-service]]))
(def test-key "some_key")
(def test-value (byte-array (map byte "so... | 53938 | (ns nonamedb.test.api.service-spec
(:require [clojure.test :refer :all]
[ring.mock.request :as mock]
[nonamedb.storage.engines.memory-engine :refer [create-engine]]
[nonamedb.api.service :refer [create-service]]))
(def test-key "<KEY>")
(def test-value (byte-array (map byte "some ... | true | (ns nonamedb.test.api.service-spec
(:require [clojure.test :refer :all]
[ring.mock.request :as mock]
[nonamedb.storage.engines.memory-engine :refer [create-engine]]
[nonamedb.api.service :refer [create-service]]))
(def test-key "PI:KEY:<KEY>END_PI")
(def test-value (byte-array (ma... |
[
{
"context": " ;; warnings in cheshire.generate\n(ns ^{:author [\"John Alan McDonald\"\n \"Kristina Lisa Klinkner\"\n ",
"end": 130,
"score": 0.9998751878738403,
"start": 112,
"tag": "NAME",
"value": "John Alan McDonald"
},
{
"context": "s ^{:author [\"John Alan ... | src/main/clojure/taiga/tree/leaf/double.clj | wahpenayo/taiga | 4 | (set! *warn-on-reflection* true)
(set! *unchecked-math* false) ;; warnings in cheshire.generate
(ns ^{:author ["John Alan McDonald"
"Kristina Lisa Klinkner"
"wahpenayo at gmail dot com"]
:date "2018-02-11"
:doc
"A primitive double-valued decision tree leaf." }
t... | 82616 | (set! *warn-on-reflection* true)
(set! *unchecked-math* false) ;; warnings in cheshire.generate
(ns ^{:author ["<NAME>"
"<NAME>"
"wahpenayo at gmail dot com"]
:date "2018-02-11"
:doc
"A primitive double-valued decision tree leaf." }
taiga.tree.leaf.double
(... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* false) ;; warnings in cheshire.generate
(ns ^{:author ["PI:NAME:<NAME>END_PI"
"PI:NAME:<NAME>END_PI"
"wahpenayo at gmail dot com"]
:date "2018-02-11"
:doc
"A primitive double-valued decision tree leaf." }
t... |
[
{
"context": "ys [winner_name loser_name]}] (or (= winner_name \"Roger Federer\")\n (= win",
"end": 515,
"score": 0.9998781681060791,
"start": 502,
"tag": "NAME",
"value": "Roger Federer"
},
{
"context": " (= wi... | Chapter04/tests/packt-clj.chapter-4-tests/test/packt_clj/chapter_4_tests/exercise_4_15_test.clj | transducer/The-Clojure-Workshop | 55 | (ns packt-clj.chapter-4-tests.exercise-4-15-test
(:require
[clojure.test :as t :refer [deftest is testing]]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[semantic-csv.core :as sc]
[packt-clj.chapter-4-tests.exercise-4-15 :as exo]))
;;; For convenience, we reference the csv file as a resource.
... | 17603 | (ns packt-clj.chapter-4-tests.exercise-4-15-test
(:require
[clojure.test :as t :refer [deftest is testing]]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[semantic-csv.core :as sc]
[packt-clj.chapter-4-tests.exercise-4-15 :as exo]))
;;; For convenience, we reference the csv file as a resource.
... | true | (ns packt-clj.chapter-4-tests.exercise-4-15-test
(:require
[clojure.test :as t :refer [deftest is testing]]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[semantic-csv.core :as sc]
[packt-clj.chapter-4-tests.exercise-4-15 :as exo]))
;;; For convenience, we reference the csv file as a resource.
... |
[
{
"context": "[request]\n (handler (assoc request :user {:id \"Your Name\"}))))\n\n(defrecord HookComponent [handler]\n compo",
"end": 2593,
"score": 0.9804021120071411,
"start": 2584,
"tag": "NAME",
"value": "Your Name"
}
] | src/server/solutions/advanced_server.clj | pholas/untangled-devguide | 43 | (ns solutions.advanced-server
(:require
[com.stuartsierra.component :as component]
[ring.util.response :as ring]
[taoensso.timbre :as timbre]
[untangled.server.impl.components.handler :as h]))
; Exercises 1 and 2 are mainly about the runtime JVM args. There is no real code.
;;;;;;;;;;;;;;;;;;;;;;;;;... | 63815 | (ns solutions.advanced-server
(:require
[com.stuartsierra.component :as component]
[ring.util.response :as ring]
[taoensso.timbre :as timbre]
[untangled.server.impl.components.handler :as h]))
; Exercises 1 and 2 are mainly about the runtime JVM args. There is no real code.
;;;;;;;;;;;;;;;;;;;;;;;;;... | true | (ns solutions.advanced-server
(:require
[com.stuartsierra.component :as component]
[ring.util.response :as ring]
[taoensso.timbre :as timbre]
[untangled.server.impl.components.handler :as h]))
; Exercises 1 and 2 are mainly about the runtime JVM args. There is no real code.
;;;;;;;;;;;;;;;;;;;;;;;;;... |
[
{
"context": "; Spec for clojure.spec by Tony\n;; ==============================================",
"end": 212,
"score": 0.8543890714645386,
"start": 208,
"tag": "NAME",
"value": "Tony"
}
] | data/train/clojure/6a8cc8af047f5245aa757137741a7cb30ce5c93bspecs.clj | harshp8l/deep-learning-lang-detection | 84 | (ns corefns.specs
(require [clojure.spec :as s]
[clojure.spec.test :as stest]))
;;; Spec definitions and instruments for corefns functions
;; Spec for clojure.spec by Tony
;; =======================================================================================|
;; * For every ... | 39946 | (ns corefns.specs
(require [clojure.spec :as s]
[clojure.spec.test :as stest]))
;;; Spec definitions and instruments for corefns functions
;; Spec for clojure.spec by <NAME>
;; =======================================================================================|
;; * For ever... | true | (ns corefns.specs
(require [clojure.spec :as s]
[clojure.spec.test :as stest]))
;;; Spec definitions and instruments for corefns functions
;; Spec for clojure.spec by PI:NAME:<NAME>END_PI
;; =======================================================================================|... |
[
{
"context": "d a small language feature test case.\"\r\n author \"Tero Tolonen\"\r\n license \"MIT\" \r\n)\r\n\r\noperators {\r\n when",
"end": 282,
"score": 0.9998626708984375,
"start": 270,
"tag": "NAME",
"value": "Tero Tolonen"
}
] | compiler/feature_tests.clj | terotests/Ranger | 6 |
Import "JSON.clj"
; enable default flags for the compiler
flag defaults (
foobar 'the default foobar value'
)
flag npm (
name "ranger-feature-tests"
version "0.0.5"
description "NPM output test and a small language feature test case."
author "Tero Tolonen"
license "MIT"
)
operators... | 8052 |
Import "JSON.clj"
; enable default flags for the compiler
flag defaults (
foobar 'the default foobar value'
)
flag npm (
name "ranger-feature-tests"
version "0.0.5"
description "NPM output test and a small language feature test case."
author "<NAME>"
license "MIT"
)
operators {
... | true |
Import "JSON.clj"
; enable default flags for the compiler
flag defaults (
foobar 'the default foobar value'
)
flag npm (
name "ranger-feature-tests"
version "0.0.5"
description "NPM output test and a small language feature test case."
author "PI:NAME:<NAME>END_PI"
license "MIT"
)
o... |
[
{
"context": "nput input\n :key (key-from-pass pass \"8675309\")\n :i-vec @init-vec})\n\n(defn base64-encode ",
"end": 1074,
"score": 0.5875763297080994,
"start": 1067,
"tag": "PASSWORD",
"value": "8675309"
}
] | src/conceal/core.clj | tstout/conceal | 0 | (ns conceal.core
(:require [clojure.tools.cli :refer [parse-opts]])
(:import [javax.crypto
SecretKey
SecretKeyFactory
Cipher]
[javax.crypto.spec
PBEKeySpec
SecretKeySpec
IvParameterSpec]
[java.util Base64]))
(defn ^Secret... | 65278 | (ns conceal.core
(:require [clojure.tools.cli :refer [parse-opts]])
(:import [javax.crypto
SecretKey
SecretKeyFactory
Cipher]
[javax.crypto.spec
PBEKeySpec
SecretKeySpec
IvParameterSpec]
[java.util Base64]))
(defn ^Secret... | true | (ns conceal.core
(:require [clojure.tools.cli :refer [parse-opts]])
(:import [javax.crypto
SecretKey
SecretKeyFactory
Cipher]
[javax.crypto.spec
PBEKeySpec
SecretKeySpec
IvParameterSpec]
[java.util Base64]))
(defn ^Secret... |
[
{
"context": "sts for Service Interface Import\"\n :author \"Yannick Scherer\" }\n thrift-clj.gen.iface-test\n (:use midje.swee",
"end": 80,
"score": 0.9998605847358704,
"start": 65,
"tag": "NAME",
"value": "Yannick Scherer"
},
{
"context": "\n;; ## Fixtures\n\n(def person-cl... | test-thrift/clj/thrift_clj/gen/iface_test.clj | ipostelnik/thrift-clj | 35 | (ns ^{ :doc "Tests for Service Interface Import"
:author "Yannick Scherer" }
thrift-clj.gen.iface-test
(:use midje.sweet)
(:require [thrift-clj.core :as thrift]))
;; ## Import
(thrift/import-types
[thriftclj.structs Person Name Location Country])
(thrift/import-iface
[thriftclj.services.TelephoneBook... | 28899 | (ns ^{ :doc "Tests for Service Interface Import"
:author "<NAME>" }
thrift-clj.gen.iface-test
(:use midje.sweet)
(:require [thrift-clj.core :as thrift]))
;; ## Import
(thrift/import-types
[thriftclj.structs Person Name Location Country])
(thrift/import-iface
[thriftclj.services.TelephoneBook :as TB])... | true | (ns ^{ :doc "Tests for Service Interface Import"
:author "PI:NAME:<NAME>END_PI" }
thrift-clj.gen.iface-test
(:use midje.sweet)
(:require [thrift-clj.core :as thrift]))
;; ## Import
(thrift/import-types
[thriftclj.structs Person Name Location Country])
(thrift/import-iface
[thriftclj.services.Telephon... |
[
{
"context": "xamples of Kripke Structures\n\n; Copyright (c) 2016 Burkhardt Renz, THM. All rights reserved.\n; The use and distribu",
"end": 114,
"score": 0.9998676180839539,
"start": 100,
"tag": "NAME",
"value": "Burkhardt Renz"
}
] | src/lwb/ltl/examples/kripke.clj | esb-lwb/lwb | 22 | ; lwb Logic WorkBench -- Linear Temporal Logic: Examples of Kripke Structures
; Copyright (c) 2016 Burkhardt Renz, THM. All rights reserved.
; 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).
; By using this software in a... | 84985 | ; lwb Logic WorkBench -- Linear Temporal Logic: Examples of Kripke Structures
; Copyright (c) 2016 <NAME>, THM. All rights reserved.
; 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).
; By using this software in any fashi... | true | ; lwb Logic WorkBench -- Linear Temporal Logic: Examples of Kripke Structures
; Copyright (c) 2016 PI:NAME:<NAME>END_PI, THM. All rights reserved.
; 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).
; By using this softwar... |
[
{
"context": "\n(defn authenticated? [name pass]\n (and (= name \"user\")\n (= pass \"pass\")))\n\n(def proxy-handler (p",
"end": 694,
"score": 0.7964690327644348,
"start": 690,
"tag": "USERNAME",
"value": "user"
},
{
"context": "http? false\n :key-passwo... | test/org/httpkit/client_proxy_test.clj | pubnub/http-k | 0 | (ns org.httpkit.client-proxy-test
(:require [clj-http.client :as clj-http]
[clojure.data.codec.base64 :as b64]
[clojure.test :refer :all]
[compojure.core :refer [GET defroutes wrap-routes]]
[org.httpkit.client :as http]
[org.httpkit.ring-request-proxy :refer... | 23216 | (ns org.httpkit.client-proxy-test
(:require [clj-http.client :as clj-http]
[clojure.data.codec.base64 :as b64]
[clojure.test :refer :all]
[compojure.core :refer [GET defroutes wrap-routes]]
[org.httpkit.client :as http]
[org.httpkit.ring-request-proxy :refer... | true | (ns org.httpkit.client-proxy-test
(:require [clj-http.client :as clj-http]
[clojure.data.codec.base64 :as b64]
[clojure.test :refer :all]
[compojure.core :refer [GET defroutes wrap-routes]]
[org.httpkit.client :as http]
[org.httpkit.ring-request-proxy :refer... |
[
{
"context": " \"progris riport 1 martch 3\n\nDr Strauss says I shoud rite down what I think and remembir ",
"end": 5571,
"score": 0.9946109652519226,
"start": 5564,
"tag": "NAME",
"value": "Strauss"
},
{
"context": " see if they can use me. I hope they use me beca... | src/cljs-browser/rx/browser/frame.cljs | zk/rx-lib | 0 | (ns rx.browser.frame
(:require [rx.kitchen-sink :as ks]
[rx.browser :as browser]
[rx.browser.ui :as ui]
[rx.browser.styleguide :as sg]
[rx.browser.buttons :as btn]
[clojure.string :as str]
[reagent.core :as r]))
(defn create-frame-state []
{:!... | 1462 | (ns rx.browser.frame
(:require [rx.kitchen-sink :as ks]
[rx.browser :as browser]
[rx.browser.ui :as ui]
[rx.browser.styleguide :as sg]
[rx.browser.buttons :as btn]
[clojure.string :as str]
[reagent.core :as r]))
(defn create-frame-state []
{:!... | true | (ns rx.browser.frame
(:require [rx.kitchen-sink :as ks]
[rx.browser :as browser]
[rx.browser.ui :as ui]
[rx.browser.styleguide :as sg]
[rx.browser.buttons :as btn]
[clojure.string :as str]
[reagent.core :as r]))
(defn create-frame-state []
{:!... |
[
{
"context": "ouncer-validation-lib-for-clojure/).\"\n {:author \"Leonardo Borges\"}\n #+cljs (:require [goog.string :as gstring]\n ",
"end": 562,
"score": 0.9998936653137207,
"start": 547,
"tag": "NAME",
"value": "Leonardo Borges"
}
] | src/bouncer/core.cljx | edgibbs/bouncer | 0 | (ns bouncer.core
"The `core` namespace provides the two main entry point functions in bouncer:
- `validate`
- `valid?`
All other functions are meant for internal use only and shouldn't be relied upon.
The project [README](https://github.com/leonardoborges/bouncer/blob/master/README.md) should get you started,... | 3346 | (ns bouncer.core
"The `core` namespace provides the two main entry point functions in bouncer:
- `validate`
- `valid?`
All other functions are meant for internal use only and shouldn't be relied upon.
The project [README](https://github.com/leonardoborges/bouncer/blob/master/README.md) should get you started,... | true | (ns bouncer.core
"The `core` namespace provides the two main entry point functions in bouncer:
- `validate`
- `valid?`
All other functions are meant for internal use only and shouldn't be relied upon.
The project [README](https://github.com/leonardoborges/bouncer/blob/master/README.md) should get you started,... |
[
{
"context": ")))\n\n;(defn login [token] {:status \"okay\" :email \"alexander@solovyov.net\"})\n",
"end": 435,
"score": 0.9999110698699951,
"start": 413,
"tag": "EMAIL",
"value": "alexander@solovyov.net"
}
] | src/warmagnet/persona.clj | wunderwaffle/warmagnet | 9 | (ns warmagnet.persona
(:require
[cheshire.core :as json]
[warmagnet.config :refer [config]]
[org.httpkit.client :as hk]))
(defn login [token]
(let [response @(hk/post "https://verifier.login.persona.org/verify"
{:form-params {:assertion token :audience (:persona-callback @confi... | 11511 | (ns warmagnet.persona
(:require
[cheshire.core :as json]
[warmagnet.config :refer [config]]
[org.httpkit.client :as hk]))
(defn login [token]
(let [response @(hk/post "https://verifier.login.persona.org/verify"
{:form-params {:assertion token :audience (:persona-callback @confi... | true | (ns warmagnet.persona
(:require
[cheshire.core :as json]
[warmagnet.config :refer [config]]
[org.httpkit.client :as hk]))
(defn login [token]
(let [response @(hk/post "https://verifier.login.persona.org/verify"
{:form-params {:assertion token :audience (:persona-callback @confi... |
[
{
"context": "essing functions for Loom graphs.\"\n :author \"Jude Payne\"}\n loom-viz.preprocessor\n (:require [loom.graph",
"end": 76,
"score": 0.9998867511749268,
"start": 66,
"tag": "NAME",
"value": "Jude Payne"
}
] | src/loom_viz/preprocessor.cljc | judepayne/loom-viz | 0 | (ns ^{:doc "Processing functions for Loom graphs."
:author "Jude Payne"}
loom-viz.preprocessor
(:require [loom.graph :as loom.graph]
[extra-loom.multigraph :as extra-loom]
[loom.alg-generic :as loom.gen]
[loom.attr :as loom.attr]
... | 27289 | (ns ^{:doc "Processing functions for Loom graphs."
:author "<NAME>"}
loom-viz.preprocessor
(:require [loom.graph :as loom.graph]
[extra-loom.multigraph :as extra-loom]
[loom.alg-generic :as loom.gen]
[loom.attr :as loom.attr]
... | true | (ns ^{:doc "Processing functions for Loom graphs."
:author "PI:NAME:<NAME>END_PI"}
loom-viz.preprocessor
(:require [loom.graph :as loom.graph]
[extra-loom.multigraph :as extra-loom]
[loom.alg-generic :as loom.gen]
[loom.attr :as loom.... |
[
{
"context": ";; Copyright 2014-2020 King\n;; Copyright 2009-2014 Ragnar Svensson, Christian Murray\n;; Licensed under the Defold Li",
"end": 111,
"score": 0.999809980392456,
"start": 96,
"tag": "NAME",
"value": "Ragnar Svensson"
},
{
"context": "-2020 King\n;; Copyright 2009-2014 Ra... | editor/test/editor/build_target_test.clj | cmarincia/defold | 0 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 Ragnar Svensson, Christian Murray
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together wi... | 108330 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 <NAME>, <NAME>
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together with FAQs at
;; https... | true | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, to... |
[
{
"context": "the # reader macro:\n(map #(str \"Hello, \" % \"!\") [\"Edgar\" \"Leona\" \"Jennifer\"])\n;;(\"Hello, Edgar!\" \"Hello, ",
"end": 1625,
"score": 0.9998059868812561,
"start": 1620,
"tag": "NAME",
"value": "Edgar"
},
{
"context": "ader macro:\n(map #(str \"Hello, \" % \"!... | src/clojure_tutorial/api/core/map.clj | edgar615/clojure-tutorial | 1 | ;map
; (map f coll)
;(map f c1 c2)
;(map f c1 c2 c3)
;(map f c1 c2 c3 & colls)
;Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by applying f to the set
;of second items in each coll, until any one of the colls is exhausted. Any remaining items in oth... | 67778 | ;map
; (map f coll)
;(map f c1 c2)
;(map f c1 c2 c3)
;(map f c1 c2 c3 & colls)
;Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by applying f to the set
;of second items in each coll, until any one of the colls is exhausted. Any remaining items in oth... | true | ;map
; (map f coll)
;(map f c1 c2)
;(map f c1 c2 c3)
;(map f c1 c2 c3 & colls)
;Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by applying f to the set
;of second items in each coll, until any one of the colls is exhausted. Any remaining items in oth... |
[
{
"context": "; Copyright (c) Rich Hickey. All rights reserved.\n; The use and distributio",
"end": 29,
"score": 0.9998174905776978,
"start": 18,
"tag": "NAME",
"value": "Rich Hickey"
}
] | banking-web/resources/public/js/compiled/out/clojure/string.cljs | Divina10/banking | 0 | ; Copyright (c) Rich Hickey. All rights reserved.
; 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 this software in any ... | 62980 | ; Copyright (c) <NAME>. All rights reserved.
; 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 this software in any fashi... | true | ; Copyright (c) PI:NAME:<NAME>END_PI. All rights reserved.
; 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 this softwar... |
[
{
"context": "seServerPrepStmts&cacheRSMetadata=true\"\n :user \"benchmarkdbuser\"\n :password \"benchmarkdbpass\"})\n\n(defn pool\n [",
"end": 669,
"score": 0.9572604298591614,
"start": 654,
"tag": "USERNAME",
"value": "benchmarkdbuser"
},
{
"context": "ta=true\"\n :user \"be... | frameworks/Clojure/luminus/hello/src/hello/db/core.clj | greg-hellings/FrameworkBenchmarks | 6 | (ns hello.db.core
(:require
[yesql.core :refer [defqueries]])
(:import com.mchange.v2.c3p0.ComboPooledDataSource))
(def db-spec
{:classname "com.mysql.jdbc.Driver"
:subprotocol "mysql"
:subname "//localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=tru... | 124508 | (ns hello.db.core
(:require
[yesql.core :refer [defqueries]])
(:import com.mchange.v2.c3p0.ComboPooledDataSource))
(def db-spec
{:classname "com.mysql.jdbc.Driver"
:subprotocol "mysql"
:subname "//localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=tru... | true | (ns hello.db.core
(:require
[yesql.core :refer [defqueries]])
(:import com.mchange.v2.c3p0.ComboPooledDataSource))
(def db-spec
{:classname "com.mysql.jdbc.Driver"
:subprotocol "mysql"
:subname "//localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=tru... |
[
{
"context": "t-log\n (let [doc {:crux.db/id :origin-man :name \"Adam\"}\n submitted-tx (log/spy (.submitTx *api* ",
"end": 467,
"score": 0.9985575675964355,
"start": 463,
"tag": "NAME",
"value": "Adam"
}
] | test/avisi/crux/active_objects_test.clj | avisi-apps/crux-active-objects | 8 | (ns avisi.crux.active-objects-test
(:require [avisi.crux.fixtures :refer [*api* with-ao-node] :as fix]
[crux.codec :as c]
[clojure.test :as t]
[crux.db :as db]
[crux.api :as api]
[clojure.tools.logging :as log])
(:import [java.time Duration]
[cr... | 37299 | (ns avisi.crux.active-objects-test
(:require [avisi.crux.fixtures :refer [*api* with-ao-node] :as fix]
[crux.codec :as c]
[clojure.test :as t]
[crux.db :as db]
[crux.api :as api]
[clojure.tools.logging :as log])
(:import [java.time Duration]
[cr... | true | (ns avisi.crux.active-objects-test
(:require [avisi.crux.fixtures :refer [*api* with-ao-node] :as fix]
[crux.codec :as c]
[clojure.test :as t]
[crux.db :as db]
[crux.api :as api]
[clojure.tools.logging :as log])
(:import [java.time Duration]
[cr... |
[
{
"context": "lue]\n [MSG_OUT_SET_VALUE\n pin-number\n ; TODO(Richo): Maybe clamp the value between [0 1]?\n (Math/r",
"end": 2423,
"score": 0.9051153659820557,
"start": 2418,
"tag": "NAME",
"value": "Richo"
}
] | middleware/server/src/middleware/device/protocol.cljc | GIRA/PhysicalBits | 2 | (ns middleware.device.protocol
(:require [clojure.string :as str]
[middleware.utils.conversions :as c]
[clojure.core.async :as a :refer [<! >! go-loop go]]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; CONSTANTS
; Version number
(def MAJOR_VERSION 0)
(def MINOR_VERSION 8)
; Outgoing
(def ... | 83677 | (ns middleware.device.protocol
(:require [clojure.string :as str]
[middleware.utils.conversions :as c]
[clojure.core.async :as a :refer [<! >! go-loop go]]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; CONSTANTS
; Version number
(def MAJOR_VERSION 0)
(def MINOR_VERSION 8)
; Outgoing
(def ... | true | (ns middleware.device.protocol
(:require [clojure.string :as str]
[middleware.utils.conversions :as c]
[clojure.core.async :as a :refer [<! >! go-loop go]]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; CONSTANTS
; Version number
(def MAJOR_VERSION 0)
(def MINOR_VERSION 8)
; Outgoing
(def ... |
[
{
"context": " [tools :as u]]))\n\n(def cipher-key (map int \"YELLOW SUBMARINE\"))\n\n(def ciphertext (with-open [rdr (io/reader (i",
"end": 265,
"score": 0.9714664220809937,
"start": 249,
"tag": "KEY",
"value": "YELLOW SUBMARINE"
},
{
"context": "on encryption works\")\n (def ... | test/set1/decrypt_ecb_test.clj | milapsheth/Crypto-Challenges | 3 | (ns set1.decrypt-ecb-test
(:require [clojure
[string :as str]
[test :refer :all]]
[clojure.java.io :as io]
[util
[aes :as aes]
[tools :as u]]))
(def cipher-key (map int "YELLOW SUBMARINE"))
(def ciphertext (with-open [rdr (io/reader (io/fil... | 20242 | (ns set1.decrypt-ecb-test
(:require [clojure
[string :as str]
[test :refer :all]]
[clojure.java.io :as io]
[util
[aes :as aes]
[tools :as u]]))
(def cipher-key (map int "<KEY>"))
(def ciphertext (with-open [rdr (io/reader (io/file (io/resou... | true | (ns set1.decrypt-ecb-test
(:require [clojure
[string :as str]
[test :refer :all]]
[clojure.java.io :as io]
[util
[aes :as aes]
[tools :as u]]))
(def cipher-key (map int "PI:KEY:<KEY>END_PI"))
(def ciphertext (with-open [rdr (io/reader (io/f... |
[
{
"context": "rivate component-b {:host \"server.lxc\" :username \"user\" :password \"secret\"})\n\n(def ^:private has-problem",
"end": 1950,
"score": 0.9437286853790283,
"start": 1946,
"tag": "USERNAME",
"value": "user"
},
{
"context": "b {:host \"server.lxc\" :username \"user\" :pa... | test/dspec/core_test.clj | brydoncheyney/dspec | 0 | (ns dspec.core-test
(:require [midje.sweet :refer :all]
[clojure.spec.alpha :as s]
[dspec.core :refer :all]))
(defn- has-problems-with?
"Returns true if a given spec has failed to conform and thrown an exception e"
[spec e]
(->> e ex-data vals (mapcat ::s/problems) (mapcat :via) (some #... | 44675 | (ns dspec.core-test
(:require [midje.sweet :refer :all]
[clojure.spec.alpha :as s]
[dspec.core :refer :all]))
(defn- has-problems-with?
"Returns true if a given spec has failed to conform and thrown an exception e"
[spec e]
(->> e ex-data vals (mapcat ::s/problems) (mapcat :via) (some #... | true | (ns dspec.core-test
(:require [midje.sweet :refer :all]
[clojure.spec.alpha :as s]
[dspec.core :refer :all]))
(defn- has-problems-with?
"Returns true if a given spec has failed to conform and thrown an exception e"
[spec e]
(->> e ex-data vals (mapcat ::s/problems) (mapcat :via) (some #... |
[
{
"context": "oc \"Namespace Building Utilities\"\n :author \"Yannick Scherer\" }\n thrift-clj.utils.namespaces)\n\n;; ## Reload D",
"end": 74,
"score": 0.9998600482940674,
"start": 59,
"tag": "NAME",
"value": "Yannick Scherer"
}
] | src/thrift_clj/utils/namespaces.clj | ipostelnik/thrift-clj | 0 | (ns ^{ :doc "Namespace Building Utilities"
:author "Yannick Scherer" }
thrift-clj.utils.namespaces)
;; ## Reload Detection
(defonce ^:private indicator-once (gensym))
(defmacro def-reload-indicator
"Creates a function that takes an ID (e.g. symbol, keyword) as parameter and decides
whether the ID has t... | 119620 | (ns ^{ :doc "Namespace Building Utilities"
:author "<NAME>" }
thrift-clj.utils.namespaces)
;; ## Reload Detection
(defonce ^:private indicator-once (gensym))
(defmacro def-reload-indicator
"Creates a function that takes an ID (e.g. symbol, keyword) as parameter and decides
whether the ID has to be relo... | true | (ns ^{ :doc "Namespace Building Utilities"
:author "PI:NAME:<NAME>END_PI" }
thrift-clj.utils.namespaces)
;; ## Reload Detection
(defonce ^:private indicator-once (gensym))
(defmacro def-reload-indicator
"Creates a function that takes an ID (e.g. symbol, keyword) as parameter and decides
whether the ID ... |
[
{
"context": "/] dependency-checker\"\n :url \"https://github.com/rm-hull/nvd-clojure\"\n :license {:name \"The MIT License (",
"end": 158,
"score": 0.9993930459022522,
"start": 151,
"tag": "USERNAME",
"value": "rm-hull"
},
{
"context": "rsion\n ;; (see https://gith... | project.clj | codesmith-gmbh/nvd-clojure | 0 | (defproject nvd-clojure "2.0.0"
:description "National Vulnerability Database [https://nvd.nist.gov/] dependency-checker"
:url "https://github.com/rm-hull/nvd-clojure"
:license {:name "The MIT License (MIT)"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.10.3"]
... | 57488 | (defproject nvd-clojure "2.0.0"
:description "National Vulnerability Database [https://nvd.nist.gov/] dependency-checker"
:url "https://github.com/rm-hull/nvd-clojure"
:license {:name "The MIT License (MIT)"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.10.3"]
... | true | (defproject nvd-clojure "2.0.0"
:description "National Vulnerability Database [https://nvd.nist.gov/] dependency-checker"
:url "https://github.com/rm-hull/nvd-clojure"
:license {:name "The MIT License (MIT)"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.10.3"]
... |
[
{
"context": "le-nth :day -1)\n\n \"End of month\"\n #\"(?i)סוף ה?חודש\"\n (cycle-nth :month 1)\n\n \"End of year\"\n #\"(?i)",
"end": 2279,
"score": 0.978310227394104,
"start": 2277,
"tag": "NAME",
"value": "דש"
}
] | resources/languages/he/rules/time.clj | ksseono/duckling | 922 | (
;; generic
"intersect"
[(dim :time #(not (:latent %))) (dim :time #(not (:latent %)))] ; sequence of two tokens with a time dimension
(intersect %1 %2)
; same thing, with "of" in between like "Sunday of last week"
; "intersect by \"of\", \"from\", \"'s\""
; [(dim :time #(not (:latent %))) #"(?i)ה|של" ... | 96797 | (
;; generic
"intersect"
[(dim :time #(not (:latent %))) (dim :time #(not (:latent %)))] ; sequence of two tokens with a time dimension
(intersect %1 %2)
; same thing, with "of" in between like "Sunday of last week"
; "intersect by \"of\", \"from\", \"'s\""
; [(dim :time #(not (:latent %))) #"(?i)ה|של" ... | true | (
;; generic
"intersect"
[(dim :time #(not (:latent %))) (dim :time #(not (:latent %)))] ; sequence of two tokens with a time dimension
(intersect %1 %2)
; same thing, with "of" in between like "Sunday of last week"
; "intersect by \"of\", \"from\", \"'s\""
; [(dim :time #(not (:latent %))) #"(?i)ה|של" ... |
[
{
"context": " [auth-config request]\n (let [auth-username (:username auth-config)\n auth-password (:passwo",
"end": 353,
"score": 0.890514612197876,
"start": 343,
"tag": "USERNAME",
"value": "(:username"
},
{
"context": "ig request]\n (let [auth-username (... | src/http_server/middleware/basic_auth.clj | andrewMacmurray/clojure-http | 2 | (ns http-server.middleware.basic-auth
(:require [clojure.string :as str]
[http-server.utils.base64 :refer :all]))
(defn- parse-basic [credentials]
(-> credentials
(str/split #"Basic ")
(get 1 "")
(decode)
(str/split #":" 2)))
(defn- is-authenticated? [auth-config request]
(le... | 42037 | (ns http-server.middleware.basic-auth
(:require [clojure.string :as str]
[http-server.utils.base64 :refer :all]))
(defn- parse-basic [credentials]
(-> credentials
(str/split #"Basic ")
(get 1 "")
(decode)
(str/split #":" 2)))
(defn- is-authenticated? [auth-config request]
(le... | true | (ns http-server.middleware.basic-auth
(:require [clojure.string :as str]
[http-server.utils.base64 :refer :all]))
(defn- parse-basic [credentials]
(-> credentials
(str/split #"Basic ")
(get 1 "")
(decode)
(str/split #":" 2)))
(defn- is-authenticated? [auth-config request]
(le... |
[
{
"context": " #{\"Roger Federer\" \"Rafael Nadal\"})\n ",
"end": 465,
"score": 0.9998913407325745,
"start": 452,
"tag": "NAME",
"value": "Roger Federer"
},
{
"context": " #{\"Ro... | Chapter04/Exercise4.15/test/packt_clj/tennis_test.clj | transducer/The-Clojure-Workshop | 55 | (ns packt-clj.tennis-test
(:require [packt-clj.tennis :as tennis]
[clojure.test :refer [testing is deftest]]))
(def tennis-data-csv "../tennis-data/match_scores_1991-2016_unindexed_csv.csv")
(deftest verify-rivalry
(let [fed-nadal-matches (tennis/match-query tennis-data-csv
... | 10684 | (ns packt-clj.tennis-test
(:require [packt-clj.tennis :as tennis]
[clojure.test :refer [testing is deftest]]))
(def tennis-data-csv "../tennis-data/match_scores_1991-2016_unindexed_csv.csv")
(deftest verify-rivalry
(let [fed-nadal-matches (tennis/match-query tennis-data-csv
... | true | (ns packt-clj.tennis-test
(:require [packt-clj.tennis :as tennis]
[clojure.test :refer [testing is deftest]]))
(def tennis-data-csv "../tennis-data/match_scores_1991-2016_unindexed_csv.csv")
(deftest verify-rivalry
(let [fed-nadal-matches (tennis/match-query tennis-data-csv
... |
[
{
"context": ";; Copyright © 2015-2020 Esko Luontola\n;; This software is released under the Apache Lic",
"end": 38,
"score": 0.9998824000358582,
"start": 25,
"tag": "NAME",
"value": "Esko Luontola"
}
] | src/territory_bro/domain/facade.clj | orfjackal/territory-bro | 2 | ;; Copyright © 2015-2020 Esko Luontola
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.domain.facade
(:require [territory-bro.domain.card-minimap-viewport :as card-minimap-viewport]
[territory-bro.domain.con... | 34721 | ;; Copyright © 2015-2020 <NAME>
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.domain.facade
(:require [territory-bro.domain.card-minimap-viewport :as card-minimap-viewport]
[territory-bro.domain.congregati... | true | ;; Copyright © 2015-2020 PI:NAME:<NAME>END_PI
;; This software is released under the Apache License 2.0.
;; The license text is at http://www.apache.org/licenses/LICENSE-2.0
(ns territory-bro.domain.facade
(:require [territory-bro.domain.card-minimap-viewport :as card-minimap-viewport]
[territory-bro.dom... |
[
{
"context": "ady (atom true))\n(def ^:private lobby-only-keys [:messages :spectators :mute-spectators :spectatorhands :timer :api-access])\n\n(defn- game-public-view\n \"Strips private serv",
"end": 1898,
"score": 0.8038037419319153,
"start": 1826,
"tag": "KEY",
"value": "messages :spectat... | src/clj/web/lobby.clj | kjchiu/netrunner | 0 | (ns web.lobby
(:require
[clj-time.core :as t]
[clojure.string :refer [trim]]
[crypto.password.bcrypt :as bcrypt]
[differ.core :as differ]
[game.core :as core]
[game.utils :refer [remove-once]]
[jinteki.cards :refer [all-cards]]
[jinteki.utils :refer [superuser?]]
[jinteki.validator :refer [... | 38126 | (ns web.lobby
(:require
[clj-time.core :as t]
[clojure.string :refer [trim]]
[crypto.password.bcrypt :as bcrypt]
[differ.core :as differ]
[game.core :as core]
[game.utils :refer [remove-once]]
[jinteki.cards :refer [all-cards]]
[jinteki.utils :refer [superuser?]]
[jinteki.validator :refer [... | true | (ns web.lobby
(:require
[clj-time.core :as t]
[clojure.string :refer [trim]]
[crypto.password.bcrypt :as bcrypt]
[differ.core :as differ]
[game.core :as core]
[game.utils :refer [remove-once]]
[jinteki.cards :refer [all-cards]]
[jinteki.utils :refer [superuser?]]
[jinteki.validator :refer [... |
[
{
"context": "er)\n )\n )\n\n\n\n(def spider-man\n {:name \"Peter Parker\"\n :alias \"Spider Man\"\n :mentor {\n\n ",
"end": 210,
"score": 0.9997685551643372,
"start": 197,
"tag": "NAME",
"value": "Peter Parker"
},
{
"context": "ias \"Spider Man\"\n :men... | workspace/real-clojure/src/real_clojure/json/core.clj | muthuishere/clojure-workshop-template | 0 | (ns real-clojure.json.core
(:require [clojure.data.json :as json])
(:import (java.time LocalDate)
(java.time.format DateTimeFormatter)
)
)
(def spider-man
{:name "Peter Parker"
:alias "Spider Man"
:mentor {
:name "Tony Stark"
:alias "Iron Man"
... | 91696 | (ns real-clojure.json.core
(:require [clojure.data.json :as json])
(:import (java.time LocalDate)
(java.time.format DateTimeFormatter)
)
)
(def spider-man
{:name "<NAME>"
:alias "Spider Man"
:mentor {
:name "<NAME>"
:alias "<NAME>"
}
} )
;... | true | (ns real-clojure.json.core
(:require [clojure.data.json :as json])
(:import (java.time LocalDate)
(java.time.format DateTimeFormatter)
)
)
(def spider-man
{:name "PI:NAME:<NAME>END_PI"
:alias "Spider Man"
:mentor {
:name "PI:NAME:<NAME>END_PI"
:alias "PI:... |
[
{
"context": " (>! publisher (assoc {:topic topic} data))))\n\n;; Rob Pike's \"hello world\" of CSP (google search) -----\n\n(de",
"end": 836,
"score": 0.9969146251678467,
"start": 828,
"tag": "NAME",
"value": "Rob Pike"
}
] | src/abstractions/async.cljc | priyatam/thinking-clojurescript | 4 | (ns abstractions.async
(:refer-clojure
:exclude [map reduce into partition partition-by take merge])
#?(:clj
(:require [clojure.core.async :as async :refer [alt! go go-loop <! <!! >! >!!]]))
#?(:cljs
(:require [cljs.core.async :as async :refer [<! >!]]))
#?(:cljs
(:require-macros [cljs.core.as... | 33478 | (ns abstractions.async
(:refer-clojure
:exclude [map reduce into partition partition-by take merge])
#?(:clj
(:require [clojure.core.async :as async :refer [alt! go go-loop <! <!! >! >!!]]))
#?(:cljs
(:require [cljs.core.async :as async :refer [<! >!]]))
#?(:cljs
(:require-macros [cljs.core.as... | true | (ns abstractions.async
(:refer-clojure
:exclude [map reduce into partition partition-by take merge])
#?(:clj
(:require [clojure.core.async :as async :refer [alt! go go-loop <! <!! >! >!!]]))
#?(:cljs
(:require [cljs.core.async :as async :refer [<! >!]]))
#?(:cljs
(:require-macros [cljs.core.as... |
[
{
"context": "\" :name \"San Francisco\"}\n {:id \"KMACHESH5\" :name \"Mt. Greylock\"}]))\n\n(defn interval [delta",
"end": 981,
"score": 0.6759656667709351,
"start": 974,
"tag": "USERNAME",
"value": "MACHESH"
},
{
"context": "cisco\"}\n {:id \"KMACH... | src/cljs/tutorials/react_frontend/weather.cljs | jocrau/clojure-meetup | 7 | (ns tutorials.react-frontend.weather
(:require-macros
[cljs.core.async.macros :refer [go go-loop]])
(:require
[reagent.core :as r]
[taoensso.timbre :refer-macros [log trace debug info warn error fatal report spy]]
[cljs.core.async :refer [<! >! chan sliding-buffer pipe timeout close! pub sub unsub u... | 34302 | (ns tutorials.react-frontend.weather
(:require-macros
[cljs.core.async.macros :refer [go go-loop]])
(:require
[reagent.core :as r]
[taoensso.timbre :refer-macros [log trace debug info warn error fatal report spy]]
[cljs.core.async :refer [<! >! chan sliding-buffer pipe timeout close! pub sub unsub u... | true | (ns tutorials.react-frontend.weather
(:require-macros
[cljs.core.async.macros :refer [go go-loop]])
(:require
[reagent.core :as r]
[taoensso.timbre :refer-macros [log trace debug info warn error fatal report spy]]
[cljs.core.async :refer [<! >! chan sliding-buffer pipe timeout close! pub sub unsub u... |
[
{
"context": ";; Copyright (c) Nicola Mometto, Rich Hickey & contributors.\n;; The use and dis",
"end": 33,
"score": 0.999854564666748,
"start": 19,
"tag": "NAME",
"value": "Nicola Mometto"
},
{
"context": ";; Copyright (c) Nicola Mometto, Rich Hickey & contributors.\n;; The ... | src/lucid/legacy/analyzer/passes/jvm/validate_loop_locals.clj | willcohen/lucidity | 3 | ;; Copyright (c) Nicola Mometto, 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 this s... | 73950 | ;; Copyright (c) <NAME>, <NAME> & 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 this software in an... | true | ;; Copyright (c) PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI & 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.
;; ... |
[
{
"context": "r\n (assoc :from \"lipasinfo@jyu.fi\"))))\n emailer2\n (send-permissions-updated-email",
"end": 5232,
"score": 0.999921441078186,
"start": 5216,
"tag": "EMAIL",
"value": "lipasinfo@jyu.fi"
},
{
"context": "ler2\n (send-permissions-upd... | webapp/src/clj/lipas/backend/email.clj | lipas-liikuntapaikat/lipas | 49 | (ns lipas.backend.email
(:require
[clojure.string :as str]
[clojure.pprint :as pprint]
[clojure.java.io :as io]
[postal.core :as postal]))
(defprotocol Emailer
(send! [config message]))
(def templates
{:fi
{:permissions-updated
{:subject "Käyttöikeutesi on päivitetty"
:html (slurp (io... | 93299 | (ns lipas.backend.email
(:require
[clojure.string :as str]
[clojure.pprint :as pprint]
[clojure.java.io :as io]
[postal.core :as postal]))
(defprotocol Emailer
(send! [config message]))
(def templates
{:fi
{:permissions-updated
{:subject "Käyttöikeutesi on päivitetty"
:html (slurp (io... | true | (ns lipas.backend.email
(:require
[clojure.string :as str]
[clojure.pprint :as pprint]
[clojure.java.io :as io]
[postal.core :as postal]))
(defprotocol Emailer
(send! [config message]))
(def templates
{:fi
{:permissions-updated
{:subject "Käyttöikeutesi on päivitetty"
:html (slurp (io... |
[
{
"context": "; MIT License\n;\n; Copyright (c) 2017 Frederic Merizen\n;\n; Permission is hereby granted, free of charge,",
"end": 53,
"score": 0.9998462796211243,
"start": 37,
"tag": "NAME",
"value": "Frederic Merizen"
}
] | src/plumula/soles/dependencies.clj | plumula/soles | 0 | ; MIT License
;
; Copyright (c) 2017 Frederic Merizen
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, me... | 124009 | ; MIT License
;
; Copyright (c) 2017 <NAME>
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publi... | true | ; MIT License
;
; Copyright (c) 2017 PI:NAME:<NAME>END_PI
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify... |
[
{
"context": "; Copyright (c) 2021 Mikołaj Kuranowski\n; SPDX-License-Identifier: WTFPL\n(ns day18b\n (:r",
"end": 39,
"score": 0.9997345805168152,
"start": 21,
"tag": "NAME",
"value": "Mikołaj Kuranowski"
}
] | src/day18b.clj | MKuranowski/AdventOfCode2020 | 0 | ; Copyright (c) 2021 Mikołaj Kuranowski
; SPDX-License-Identifier: WTFPL
(ns day18b
(:require [core]
[day18a :refer [tokenize]]))
(defn calc [tokens]
(letfn
[(eval-token [token] (if (vector? token) (calc token)
(if (string? token) (Long/parseLong token) token)))
(coll... | 13093 | ; Copyright (c) 2021 <NAME>
; SPDX-License-Identifier: WTFPL
(ns day18b
(:require [core]
[day18a :refer [tokenize]]))
(defn calc [tokens]
(letfn
[(eval-token [token] (if (vector? token) (calc token)
(if (string? token) (Long/parseLong token) token)))
(collapse-bracket... | true | ; Copyright (c) 2021 PI:NAME:<NAME>END_PI
; SPDX-License-Identifier: WTFPL
(ns day18b
(:require [core]
[day18a :refer [tokenize]]))
(defn calc [tokens]
(letfn
[(eval-token [token] (if (vector? token) (calc token)
(if (string? token) (Long/parseLong token) token)))
(co... |
[
{
"context": " \"Marilyn Campaign\"\n ",
"end": 3509,
"score": 0.8774568438529968,
"start": 3493,
"tag": "NAME",
"value": "Marilyn Campaign"
},
{
"context": "ius\"])\n (default-chall... | test/clj/game_test/cards/identities.clj | rezwits/carncode | 15 | (ns game-test.cards.identities
(:require [game.core :as core]
[game-test.core :refer :all]
[game-test.utils :refer :all]
[game-test.macros :refer :all]
[clojure.test :refer :all]))
(use-fixtures :once load-all-cards (partial reset-card-defs "identities"))
(deftest and... | 21144 | (ns game-test.cards.identities
(:require [game.core :as core]
[game-test.core :refer :all]
[game-test.utils :refer :all]
[game-test.macros :refer :all]
[clojure.test :refer :all]))
(use-fixtures :once load-all-cards (partial reset-card-defs "identities"))
(deftest and... | true | (ns game-test.cards.identities
(:require [game.core :as core]
[game-test.core :refer :all]
[game-test.utils :refer :all]
[game-test.macros :refer :all]
[clojure.test :refer :all]))
(use-fixtures :once load-all-cards (partial reset-card-defs "identities"))
(deftest and... |
[
{
"context": "rue\n :ppt nil})\n\n;;From Stuart Sierra's blog post, for catching otherwise \"slien",
"end": 1494,
"score": 0.5734372138977051,
"start": 1488,
"tag": "NAME",
"value": "Stuart"
}
] | src/marathon/core.clj | fs-craig/m4 | 0 | (ns marathon.core
(:require [spork.util [table :as tbl]
[io :as io]]
[helmet [core :as helm]]
[stoke [core :as stoke]
[io :as stokeio]]
[demand_builder [core :as builder]]
[marathon.processing [highwater :as hw]]
[marath... | 88671 | (ns marathon.core
(:require [spork.util [table :as tbl]
[io :as io]]
[helmet [core :as helm]]
[stoke [core :as stoke]
[io :as stokeio]]
[demand_builder [core :as builder]]
[marathon.processing [highwater :as hw]]
[marath... | true | (ns marathon.core
(:require [spork.util [table :as tbl]
[io :as io]]
[helmet [core :as helm]]
[stoke [core :as stoke]
[io :as stokeio]]
[demand_builder [core :as builder]]
[marathon.processing [highwater :as hw]]
[marath... |
[
{
"context": "datoms to transact\n(def datoms [{:db/id -1 :name \"Bob\" :age 30}\n {:db/id -2 :name \"Sally\" :",
"end": 359,
"score": 0.9996302127838135,
"start": 356,
"tag": "NAME",
"value": "Bob"
},
{
"context": "ame \"Bob\" :age 30}\n {:db/id -2 :name \"Sa... | datascript-test/src/core.clj | ahuggins0006/process-spreadsheets-playground | 0 | (ns my-app.core
(:require [datascript.core :as d]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[dk.ative.docjure.spreadsheet :as spr]
))
;;; Create a DataScript "connection" (an atom with the current DB value)
(def conn (d/create-conn))
;; Define datoms to tran... | 88107 | (ns my-app.core
(:require [datascript.core :as d]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[dk.ative.docjure.spreadsheet :as spr]
))
;;; Create a DataScript "connection" (an atom with the current DB value)
(def conn (d/create-conn))
;; Define datoms to tran... | true | (ns my-app.core
(:require [datascript.core :as d]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[dk.ative.docjure.spreadsheet :as spr]
))
;;; Create a DataScript "connection" (an atom with the current DB value)
(def conn (d/create-conn))
;; Define datoms to tran... |
[
{
"context": "n]\n [mano :tom]\n [mano :bob]\n [mano :raj]\n [mano :jon]\n [mano :pal]\n [mano :ben]\n [mano :jay]\n [womano ",
"end": 486,
"score": 0.6049854755401611,
"start": 483,
"tag": "NAME",
"value": "jon"
},
{
"context": "hildo :kim :ver :bar)\n (db-fact childo :rui :bar :rik... | src/logical_7in7/core_day_1_hard.clj | zz-monad-zz/logical-7in7 | 0 | (ns logical-7in7.core-day-1-hard
(:refer-clojure :exclude [==])
(:use [clojure.core.logic])
(:use [clojure.core.logic.pldb]))
(db-rel mano x)
(db-rel womano x)
(def facts
(db
[mano :rog]
[mano :anu]
[mano :vic]
[mano :lil]
[mano :pre]
[mano :min]
[mano :kim]
[mano :rui]
[mano :rik]
[womano :lin]
[wo... | 22899 | (ns logical-7in7.core-day-1-hard
(:refer-clojure :exclude [==])
(:use [clojure.core.logic])
(:use [clojure.core.logic.pldb]))
(db-rel mano x)
(db-rel womano x)
(def facts
(db
[mano :rog]
[mano :anu]
[mano :vic]
[mano :lil]
[mano :pre]
[mano :min]
[mano :kim]
[mano :rui]
[mano :rik]
[womano :lin]
[wo... | true | (ns logical-7in7.core-day-1-hard
(:refer-clojure :exclude [==])
(:use [clojure.core.logic])
(:use [clojure.core.logic.pldb]))
(db-rel mano x)
(db-rel womano x)
(def facts
(db
[mano :rog]
[mano :anu]
[mano :vic]
[mano :lil]
[mano :pre]
[mano :min]
[mano :kim]
[mano :rui]
[mano :rik]
[womano :lin]
[wo... |
[
{
"context": "nd-message\n {:host host\n :user user\n :pass password\n :ssl true}\n {:from from\n :to to",
"end": 677,
"score": 0.9977231621742249,
"start": 669,
"tag": "PASSWORD",
"value": "password"
}
] | src/clj/tenfren/notifier.clj | neilfigg/clojure-usermanager-rest-api | 1 | (ns tenfren.notifier
"Notifies the User of events. Currently uses emails, but could also be expanded to include SMS.
To log, rather than email, change the dev `config.edn` to `:notifier-enabled false`.
The test `config.edn` is already configured to log."
(:require
[clojure.java.io :as io]
[clojure.string ... | 114413 | (ns tenfren.notifier
"Notifies the User of events. Currently uses emails, but could also be expanded to include SMS.
To log, rather than email, change the dev `config.edn` to `:notifier-enabled false`.
The test `config.edn` is already configured to log."
(:require
[clojure.java.io :as io]
[clojure.string ... | true | (ns tenfren.notifier
"Notifies the User of events. Currently uses emails, but could also be expanded to include SMS.
To log, rather than email, change the dev `config.edn` to `:notifier-enabled false`.
The test `config.edn` is already configured to log."
(:require
[clojure.java.io :as io]
[clojure.string ... |
[
{
"context": " (assoc :email nil)\n (assoc :pass (str \"1passWord\" (-> (spec/gen string?) gen/generate))))\n (d",
"end": 2041,
"score": 0.9993884563446045,
"start": 2032,
"tag": "PASSWORD",
"value": "1passWord"
},
{
"context": "\n (db/create-user! (-> {:id user :... | src/clj/plus_minus/routes/multiplayer/persist.clj | Liverm0r/plusminus.me | 3 | (ns plus-minus.routes.multiplayer.persist
(:require [plus-minus.db.core :as db]
[plus-minus.routes.multiplayer.topics :as topics]
[plus-minus.multiplayer.contract :refer [->Reply ->Result] :as c]
[clojure.core.async :refer [>! <! >!! chan alts! go-loop close!]]
[clojure... | 63541 | (ns plus-minus.routes.multiplayer.persist
(:require [plus-minus.db.core :as db]
[plus-minus.routes.multiplayer.topics :as topics]
[plus-minus.multiplayer.contract :refer [->Reply ->Result] :as c]
[clojure.core.async :refer [>! <! >!! chan alts! go-loop close!]]
[clojure... | true | (ns plus-minus.routes.multiplayer.persist
(:require [plus-minus.db.core :as db]
[plus-minus.routes.multiplayer.topics :as topics]
[plus-minus.multiplayer.contract :refer [->Reply ->Result] :as c]
[clojure.core.async :refer [>! <! >!! chan alts! go-loop close!]]
[clojure... |
[
{
"context": "(ns ^{:author \"Ido Barkan\"}\n aerospike-clj.metrics-test\n (:require [cloju",
"end": 25,
"score": 0.9998769760131836,
"start": 15,
"tag": "NAME",
"value": "Ido Barkan"
},
{
"context": " loopback-v4 \"127-0-0-1\"\n loopback-v6 \"0:0:0:0:0:0:0:1\"]\n (is... | test/aerospike_clj/metrics_test.clj | sol-sh/aerospike-clj | 0 | (ns ^{:author "Ido Barkan"}
aerospike-clj.metrics-test
(:require [clojure.test :refer [deftest is]]
[aerospike-clj.client :as client]))
(deftest get-cluster-stats
(let [c (client/init-simple-aerospike-client ["localhost"] "test")
loopback-v4 "127-0-0-1"
loopback-v6 "0:0:0:0:0:0:0:1"]
... | 57468 | (ns ^{:author "<NAME>"}
aerospike-clj.metrics-test
(:require [clojure.test :refer [deftest is]]
[aerospike-clj.client :as client]))
(deftest get-cluster-stats
(let [c (client/init-simple-aerospike-client ["localhost"] "test")
loopback-v4 "127-0-0-1"
loopback-v6 "0:0:0:0:0:0:0:1"]
... | true | (ns ^{:author "PI:NAME:<NAME>END_PI"}
aerospike-clj.metrics-test
(:require [clojure.test :refer [deftest is]]
[aerospike-clj.client :as client]))
(deftest get-cluster-stats
(let [c (client/init-simple-aerospike-client ["localhost"] "test")
loopback-v4 "127-0-0-1"
loopback-v6 "0:0:0:0:... |
[
{
"context": "scm {:name \"git\"\n :url \"https://github.com/KeepSafe/measure\"}\n :license {:name \"Apache License, Vers",
"end": 239,
"score": 0.9978377819061279,
"start": 231,
"tag": "USERNAME",
"value": "KeepSafe"
},
{
"context": "m :fail :update :always}}}\n\n :signing ... | project.clj | KeepSafe/measure | 3 | (defproject com.getkeepsafe/measure "0.1.8"
:description "Say things about your application with authority, using Coda Hale's Metrics."
:url "http://measure.getkeepsafe.com"
:scm {:name "git"
:url "https://github.com/KeepSafe/measure"}
:license {:name "Apache License, Version 2.0"
:url "http... | 118643 | (defproject com.getkeepsafe/measure "0.1.8"
:description "Say things about your application with authority, using Coda Hale's Metrics."
:url "http://measure.getkeepsafe.com"
:scm {:name "git"
:url "https://github.com/KeepSafe/measure"}
:license {:name "Apache License, Version 2.0"
:url "http... | true | (defproject com.getkeepsafe/measure "0.1.8"
:description "Say things about your application with authority, using Coda Hale's Metrics."
:url "http://measure.getkeepsafe.com"
:scm {:name "git"
:url "https://github.com/KeepSafe/measure"}
:license {:name "Apache License, Version 2.0"
:url "http... |
[
{
"context": "nilable false\n :default \"username\"\n :type :any})]\n ",
"end": 1946,
"score": 0.9956281185150146,
"start": 1938,
"tag": "USERNAME",
"value": "username"
},
{
"context": " (c/with-parameter :api-username :... | test/configurati/core_test.clj | tobyclemson/configurati | 3 | (ns configurati.core-test
(:refer-clojure :exclude [replace resolve])
(:require
[clojure.test :refer :all]
[clojure.string :refer [replace]]
[clojure.spec.alpha :as spec]
[jason.core :as jason]
[jason.convenience :as jason-c]
[configurati.core :as c]
[configurati.key-fns
:refer [add-prefi... | 61530 | (ns configurati.core-test
(:refer-clojure :exclude [replace resolve])
(:require
[clojure.test :refer :all]
[clojure.string :refer [replace]]
[clojure.spec.alpha :as spec]
[jason.core :as jason]
[jason.convenience :as jason-c]
[configurati.core :as c]
[configurati.key-fns
:refer [add-prefi... | true | (ns configurati.core-test
(:refer-clojure :exclude [replace resolve])
(:require
[clojure.test :refer :all]
[clojure.string :refer [replace]]
[clojure.spec.alpha :as spec]
[jason.core :as jason]
[jason.convenience :as jason-c]
[configurati.core :as c]
[configurati.key-fns
:refer [add-prefi... |
[
{
"context": "! *unchecked-math* :warn-on-boxed)\n(ns ^{:author \"wahpenayo at gmail dot com\" \n :date \"2018-04-14\"\n ",
"end": 96,
"score": 0.6749927997589111,
"start": 87,
"tag": "EMAIL",
"value": "wahpenayo"
},
{
"context": "ath* :warn-on-boxed)\n(ns ^{:author \"wahpen... | src/main/clojure/zana/optimization/math3/cg.clj | wahpenayo/zana | 2 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "wahpenayo at gmail dot com"
:date "2018-04-14"
:doc
"Pose unconstrained differentiable optimization problems
using `Function` and solve them with the
commons math3 `NonLinearConjugateGradientOptimiz... | 18370 | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "<EMAIL> at g<EMAIL> dot <EMAIL>"
:date "2018-04-14"
:doc
"Pose unconstrained differentiable optimization problems
using `Function` and solve them with the
commons math3 `NonLinearConjugateGradientOp... | true | (set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(ns ^{:author "PI:EMAIL:<EMAIL>END_PI at gPI:EMAIL:<EMAIL>END_PI dot PI:EMAIL:<EMAIL>END_PI"
:date "2018-04-14"
:doc
"Pose unconstrained differentiable optimization problems
using `Function` and solve them with the
... |
[
{
"context": ";; Copyright 2014-2020 King\n;; Copyright 2009-2014 Ragnar Svensson, Christian Murray\n;; Licensed under the Defold Li",
"end": 111,
"score": 0.9998154044151306,
"start": 96,
"tag": "NAME",
"value": "Ragnar Svensson"
},
{
"context": "-2020 King\n;; Copyright 2009-2014 R... | editor/src/clj/internal/util.clj | cmarincia/defold | 0 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 Ragnar Svensson, Christian Murray
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together wi... | 3095 | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 <NAME>, <NAME>
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together with FAQs at
;; https... | true | ;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, to... |
[
{
"context": "success-deferred\n {:id id\n :firstName \"Winston\"\n :lastName \"Churchill\"})))\n\n(defrecord Mes",
"end": 573,
"score": 0.9997150897979736,
"start": 566,
"tag": "NAME",
"value": "Winston"
},
{
"context": " id\n :firstName \"Winston\"\n :l... | test/muse/pull_spec.clj | Yarikx/muse | 332 | (ns muse.pull-spec
(:require [clojure.test :refer :all]
[muse.deferred :as muse]
[muse.protocol :as proto]
[muse.pull :as pull]
[manifold.deferred :as d])
(:refer-clojure :exclude (run!)))
;;
;; data sources
;;
(defn fetch-messages-by-thread [_]
(range 2))
(defn ... | 48086 | (ns muse.pull-spec
(:require [clojure.test :refer :all]
[muse.deferred :as muse]
[muse.protocol :as proto]
[muse.pull :as pull]
[manifold.deferred :as d])
(:refer-clojure :exclude (run!)))
;;
;; data sources
;;
(defn fetch-messages-by-thread [_]
(range 2))
(defn ... | true | (ns muse.pull-spec
(:require [clojure.test :refer :all]
[muse.deferred :as muse]
[muse.protocol :as proto]
[muse.pull :as pull]
[manifold.deferred :as d])
(:refer-clojure :exclude (run!)))
;;
;; data sources
;;
(defn fetch-messages-by-thread [_]
(range 2))
(defn ... |
[
{
"context": "iny-parse (load-tiny-file \"simple.yml\")) => \"name: Bob\\nage: 123\\n\")\n (fact \"imports from another ",
"end": 288,
"score": 0.9989522695541382,
"start": 285,
"tag": "NAME",
"value": "Bob"
},
{
"context": "ny-parse (load-tiny-file \"simple.tiny\")) => \"name:... | tiny-parser/test/tiny_parser/core_test.clj | sjolicoeur/tiny | 0 | (ns tiny-parser.core-test
(:use midje.sweet)
(:require [tiny-parser.core :refer :all]))
(defn load-tiny-file [filename]
(str "test/tiny/" filename))
(facts "tiny-parse"
(fact "passes through simple YAML"
(tiny-parse (load-tiny-file "simple.yml")) => "name: Bob\nage: 123\n")
(fact "imp... | 94911 | (ns tiny-parser.core-test
(:use midje.sweet)
(:require [tiny-parser.core :refer :all]))
(defn load-tiny-file [filename]
(str "test/tiny/" filename))
(facts "tiny-parse"
(fact "passes through simple YAML"
(tiny-parse (load-tiny-file "simple.yml")) => "name: <NAME>\nage: 123\n")
(fact "... | true | (ns tiny-parser.core-test
(:use midje.sweet)
(:require [tiny-parser.core :refer :all]))
(defn load-tiny-file [filename]
(str "test/tiny/" filename))
(facts "tiny-parse"
(fact "passes through simple YAML"
(tiny-parse (load-tiny-file "simple.yml")) => "name: PI:NAME:<NAME>END_PI\nage: 123\n")
... |
[
{
"context": "userid password remember?]}]]\n (if (= password \"top-secret\")\n {:db (-> db\n (assoc-in [:auth",
"end": 1803,
"score": 0.9992715716362,
"start": 1793,
"tag": "PASSWORD",
"value": "top-secret"
},
{
"context": "rs :sign-in-site]\n {... | src/mui_templates/views/sign_in_site.cljs | ozFri/mui-templates | 74 | (ns mui-templates.views.sign-in-site
(:require
[goog.object :as gobj]
[reagent.core :as reagent]
[re-frame.core :as rf]
[day8.re-frame.tracing :refer-macros [fn-traced]]
[mui-templates.components :refer [copyright]]
["@material-ui/core/CssBaseline" :default CssBaseline]
["@material-ui/core" :refe... | 51611 | (ns mui-templates.views.sign-in-site
(:require
[goog.object :as gobj]
[reagent.core :as reagent]
[re-frame.core :as rf]
[day8.re-frame.tracing :refer-macros [fn-traced]]
[mui-templates.components :refer [copyright]]
["@material-ui/core/CssBaseline" :default CssBaseline]
["@material-ui/core" :refe... | true | (ns mui-templates.views.sign-in-site
(:require
[goog.object :as gobj]
[reagent.core :as reagent]
[re-frame.core :as rf]
[day8.re-frame.tracing :refer-macros [fn-traced]]
[mui-templates.components :refer [copyright]]
["@material-ui/core/CssBaseline" :default CssBaseline]
["@material-ui/core" :refe... |
[
{
"context": "a the dog\"))\n; (anna)\n(println (find-palindromes \"Bob went to Harrah and gambled with Otto and Steve\"))",
"end": 357,
"score": 0.9974779486656189,
"start": 354,
"tag": "NAME",
"value": "Bob"
},
{
"context": ")\n; (anna)\n(println (find-palindromes \"Bob went to Har... | src/main/clojure/com/moqi/clojure/a04/a0421_palindrome/core.clj | moqimoqidea/functional-programming | 0 | (ns com.moqi.clojure.a04.a0421-palindrome.core)
; 查找回文词, Clojure 实现
(defn palindrome? [s]
(let [sl (.toLowerCase s)]
(= sl (apply str (reverse sl)))))
(defn find-palindromes [s]
(filter palindrome? (clojure.string/split s #" ")))
(println (find-palindromes "The quick brown fox jumped over anna the dog"))
; (... | 27343 | (ns com.moqi.clojure.a04.a0421-palindrome.core)
; 查找回文词, Clojure 实现
(defn palindrome? [s]
(let [sl (.toLowerCase s)]
(= sl (apply str (reverse sl)))))
(defn find-palindromes [s]
(filter palindrome? (clojure.string/split s #" ")))
(println (find-palindromes "The quick brown fox jumped over anna the dog"))
; (... | true | (ns com.moqi.clojure.a04.a0421-palindrome.core)
; 查找回文词, Clojure 实现
(defn palindrome? [s]
(let [sl (.toLowerCase s)]
(= sl (apply str (reverse sl)))))
(defn find-palindromes [s]
(filter palindrome? (clojure.string/split s #" ")))
(println (find-palindromes "The quick brown fox jumped over anna the dog"))
; (... |
[
{
"context": "; Copyright (c) 2021 Mikołaj Kuranowski\n; SPDX-License-Identifier: WTFPL\n(ns day4a\n (:re",
"end": 39,
"score": 0.9995818138122559,
"start": 21,
"tag": "NAME",
"value": "Mikołaj Kuranowski"
}
] | src/day04a.clj | MKuranowski/AdventOfCode2020 | 0 | ; Copyright (c) 2021 Mikołaj Kuranowski
; SPDX-License-Identifier: WTFPL
(ns day4a
(:require [core]
[clojure.string :refer [split]]
[clojure.set :refer [subset?]]))
(def required-fields
#{"byr" "iyr" "eyr" "hgt"
"hcl" "ecl" "pid"})
(defn parse-passport
[passport-lines]
(->> passpor... | 80464 | ; Copyright (c) 2021 <NAME>
; SPDX-License-Identifier: WTFPL
(ns day4a
(:require [core]
[clojure.string :refer [split]]
[clojure.set :refer [subset?]]))
(def required-fields
#{"byr" "iyr" "eyr" "hgt"
"hcl" "ecl" "pid"})
(defn parse-passport
[passport-lines]
(->> passport-lines
... | true | ; Copyright (c) 2021 PI:NAME:<NAME>END_PI
; SPDX-License-Identifier: WTFPL
(ns day4a
(:require [core]
[clojure.string :refer [split]]
[clojure.set :refer [subset?]]))
(def required-fields
#{"byr" "iyr" "eyr" "hgt"
"hcl" "ecl" "pid"})
(defn parse-passport
[passport-lines]
(->> passp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.