Browse files

Fix comments.

  • Loading branch information...
1 parent 2425154 commit c70f5e77a29bb187eebad566846a41b12dc10662 @echen committed May 5, 2012
View
11 distributed-grep/DistributedGrep.scala
@@ -1,10 +1,11 @@
import com.twitter.scalding._
-/** Grep! Distributed-ly!
- *
- * Run this in local mode with:
- * scald.rb --local DistributedGrep.scala
- */
+/**
+ * Distributed grep.
+ *
+ * Run this in local mode with:
+ * scald.rb --local DistributedGrep.scala
+ */
class DistributedGrep(args : Args) extends Job(args) {
val Pattern = ".*hello.*";
View
2 distributed-grep/distributed-grep.pig
@@ -1,4 +1,4 @@
-/* Grep! Distributed-ly!
+/* Distributed grep.
*
* Run this in local mode with:
* pig -x local distributed-grep.pig
View
2 distributed-grep/distributed_grep.clj
@@ -1,4 +1,4 @@
-;;;; Distributed grep in Cascalog!
+;;;; Distributed grep in Cascalog.
(def pattern #".*hello.*")
View
3 distributed-grep/distributed_grep.rb
@@ -1,4 +1,5 @@
-# Grep big data using Hadoop Streaming (Ruby version)!
+# Grep big data using Hadoop Streaming (Ruby version).
+#
# To run on the command-line:
# cat tweets.tsv | ruby distributed_grep.rb mapper |
# sort | ruby distributed_grep.rb reducer
View
17 inverted-index/InvertedIndex.scala
@@ -1,13 +1,14 @@
import com.twitter.scalding._
-/** Build an inverted index!
- *
- * An inverted index maps words to the documents
- * they appear in.
- *
- * Run this in local mode with:
- * scald.rb --local InvertedIndex.scala
- */
+/**
+ * Build an inverted index.
+ *
+ * An inverted index maps words to the documents
+ * they appear in.
+ *
+ * Run this in local mode with:
+ * scald.rb --local InvertedIndex.scala
+ */
class InvertedIndex(args : Args) extends Job(args) {
val tweets = Tsv("tweets.tsv", ('id, 'text))
View
2 inverted-index/inverted-index.pig
@@ -1,4 +1,4 @@
-/* Build an inverted index!
+/* Build an inverted index.
*
* An inverted index maps words to the documents
* they appear in.
View
2 inverted-index/inverted_index.rb
@@ -1,5 +1,5 @@
# Create an inverted index using Hadoop Streaming
-# (Ruby version)!
+# (Ruby version).
#
# To run on the command-line:
# cat tweets.tsv | ruby inverted_index.rb mapper |
View
2 word-count/WordCount.scala
@@ -1,6 +1,6 @@
import com.twitter.scalding._
-/** Count words in Scalding!
+/** Count words in Scalding.
*
* Run this in local mode with:
* scald.rb --local WordCount.scala
View
2 word-count/word-count.hql
@@ -1,4 +1,4 @@
--- Count words in Hive!
+-- Count words in Hive.
CREATE TABLE tweets (text STRING);
LOAD DATA LOCAL INPATH 'tweets.tsv' OVERWRITE INTO TABLE tweets;
View
2 word-count/word-count.pig
@@ -1,4 +1,4 @@
-/* Count words in Pig!
+/* Count words in Pig.
*
* Run this in local mode with:
* pig -x local word-count.pig
View
2 word-count/word_count.clj
@@ -1,4 +1,4 @@
-;;;; Count words in Cascalog!
+;;;; Count words in Cascalog.
; Takes a single piece of text as input.
; Outputs a tuple for each word in the text.
View
3 word-count/word_count.rb
@@ -1,4 +1,5 @@
-# Count words using Hadoop Streaming (Ruby version)!
+# Count words using Hadoop Streaming (Ruby version).
+#
# To run on the command-line:
# cat tweets.tsv | ruby word_count.rb mapper | sort | ruby word_count.rb reducer

0 comments on commit c70f5e7

Please sign in to comment.