package main.java.org.wikidata.analyzer.Processor;

import org.wikidata.wdtk.datamodel.interfaces.*;

/**
 * This processor simply outputs status lines to the console.
 *
 * @author Addshore
 */
public class NoisyProcessor implements EntityDocumentProcessor {

    private int itemCount = 0;
    private int propertyCount = 0;

    @Override
    public void processItemDocument(ItemDocument item) {
        this.itemCount++;
        //Output a line ever 250,000 items
        if (this.itemCount % 250000 == 0) {
            System.out.println("Processed " + this.itemCount + " items " + Runtime.getRuntime().totalMemory() / 1024 / 1024 + "MB mem used");
        }
    }

    @Override
    public void processPropertyDocument(PropertyDocument property) {
        this.propertyCount++;
        //Output a line ever 100 properties
        if (this.propertyCount % 100 == 0) {
            System.out.println("Processed " + this.itemCount + " properties " + Runtime.getRuntime().totalMemory() / 1024 / 1024 + "MB mem used");
        }
    }

}
@@ -909,36 +909,40 @@
 cessed %22 + this.
-item
+property
 Count + %22 proper

Fix noisy processor propertycount output