You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by pt...@apache.org on 2014/04/23 21:14:34 UTC

[1/2] git commit: Fix the position of documentation strings.

Repository: incubator-storm
Updated Branches:
  refs/heads/master a5130af70 -> d2315e90b


Fix the position of documentation strings.

A documentation string should be between a function name
and a parameter list.


Project: http://git-wip-us.apache.org/repos/asf/incubator-storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-storm/commit/3569e226
Tree: http://git-wip-us.apache.org/repos/asf/incubator-storm/tree/3569e226
Diff: http://git-wip-us.apache.org/repos/asf/incubator-storm/diff/3569e226

Branch: refs/heads/master
Commit: 3569e2265cebb4c6f48291c5cb57163aba98e4da
Parents: 6cc9bfe
Author: Muneyuki Noguchi <no...@gmail.com>
Authored: Sat Apr 19 05:56:54 2014 -0700
Committer: Muneyuki Noguchi <no...@gmail.com>
Committed: Sat Apr 19 06:08:43 2014 -0700

----------------------------------------------------------------------
 storm-core/src/clj/backtype/storm/daemon/common.clj | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/3569e226/storm-core/src/clj/backtype/storm/daemon/common.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/backtype/storm/daemon/common.clj b/storm-core/src/clj/backtype/storm/daemon/common.clj
index 63d9b9b..e6bf81a 100644
--- a/storm-core/src/clj/backtype/storm/daemon/common.clj
+++ b/storm-core/src/clj/backtype/storm/daemon/common.clj
@@ -244,13 +244,15 @@
        (second)
        (reverse)))
 
-(defn number-duplicates [coll]
+(defn number-duplicates
   "(number-duplicates [\"a\", \"b\", \"a\"]) => [\"a\", \"b\", \"a#2\"]"
+  [coll]
   (map-occurrences (fn [x occurences] (if (>= occurences 2) (str x "#" occurences) x)) coll))
 
-(defn metrics-consumer-register-ids [storm-conf]
+(defn metrics-consumer-register-ids
   "Generates a list of component ids for each metrics consumer
    e.g. [\"__metrics_org.mycompany.MyMetricsConsumer\", ..] "
+  [storm-conf]
   (->> (get storm-conf TOPOLOGY-METRICS-CONSUMER-REGISTER)         
        (map #(get % "class"))
        (number-duplicates)


[2/2] git commit: Merge branch 'fix-doc-string-pos' of github.com:mnogu/incubator-storm

Posted by pt...@apache.org.
Merge branch 'fix-doc-string-pos' of github.com:mnogu/incubator-storm


Project: http://git-wip-us.apache.org/repos/asf/incubator-storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-storm/commit/d2315e90
Tree: http://git-wip-us.apache.org/repos/asf/incubator-storm/tree/d2315e90
Diff: http://git-wip-us.apache.org/repos/asf/incubator-storm/diff/d2315e90

Branch: refs/heads/master
Commit: d2315e90b17cddcd87a5aac3a3823ba3a1f11868
Parents: a5130af 3569e22
Author: P. Taylor Goetz <pt...@gmail.com>
Authored: Wed Apr 23 15:11:22 2014 -0400
Committer: P. Taylor Goetz <pt...@gmail.com>
Committed: Wed Apr 23 15:11:22 2014 -0400

----------------------------------------------------------------------
 storm-core/src/clj/backtype/storm/daemon/common.clj | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------