Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

(doc) make consistency changes regarding casing with comments and spacing of imports

Kenneth230b987005f5
diff --git a/src/java/org/apache/nutch/parse/ParseOutputFormat.java b/src/java/org/apache/nutch/parse/ParseOutputFormat.java
index 1cca63acc..6e84b1265 100644
--- a/src/java/org/apache/nutch/parse/ParseOutputFormat.java
+++ b/src/java/org/apache/nutch/parse/ParseOutputFormat.java
@@ -20,6 +20,7 @@ package org.apache.nutch.parse;
// Commons Logging imports
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.apache.hadoop.io.*;
import org.apache.hadoop.io.MapFile.Writer.Option;
import org.apache.hadoop.io.SequenceFile.CompressionType;
@@ -239,7 +240,7 @@ public class ParseOutputFormat implements OutputFormat<Text, Parse> {
for (int i = 0; i < links.length && validCount < outlinksToStore; i++) {
String toUrl = links[i].getToUrl();
- // Only normalize and filter if fetcher.parse = false
+ // only normalize and filter if fetcher.parse = false
if (!isParsing) {
toUrl = ParseOutputFormat.filterNormalize(fromUrl, toUrl, origin,
ignoreInternalLinks, ignoreExternalLinks, ignoreExternalLinksMode, filters, exemptionFilters, normalizers);
@@ -269,7 +270,7 @@ public class ParseOutputFormat implements OutputFormat<Text, Parse> {
targets.add(new SimpleEntry(targetUrl, target));
- // OVerwrite URL in Outlink object with normalized URL (NUTCH-1174)
+ // overwrite URL in Outlink object with normalized URL (NUTCH-1174)
links[i].setUrl(toUrl);
outlinkList.add(links[i]);
validCount++;
diff --git a/src/java/org/apache/nutch/parse/ParserChecker.java b/src/java/org/apache/nutch/parse/ParserChecker.java
index 6b1d764dc..9dee311e2 100644
--- a/src/java/org/apache/nutch/parse/ParserChecker.java
+++ b/src/java/org/apache/nutch/parse/ParserChecker.java
@@ -24,6 +24,7 @@ import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.util.StringUtils;
@@ -137,7 +138,7 @@ public class ParserChecker implements Tool {
Text turl = new Text(url);
ProtocolOutput output = protocol.getProtocolOutput(turl, cd);
- // If the configuration permits, handle redirects until we either run
+ // if the configuration permits, handle redirects until we either run
// out of allowed redirects or we stop getting redirect statuses.
int maxRedirects = conf.getInt("http.redirect.max", 0);
int numRedirects = 0;
@@ -205,7 +206,7 @@ public class ParserChecker implements Tool {
return (-1);
}
- // Calculate the signature
+ // calculate the signature
byte[] signature = SignatureFactory.getSignature(getConf()).calculate(
content, parseResult.get(new Text(url)));