System.out.println("run");
File sortedWordsFile = new File("..\\wordlists\\unsorted\\rockyou.txt");
BufferedReader buffered = new BufferedReader(new FileReader(sortedWordsFile));
String word = buffered.readLine().trim();
ParallelFinder finder = BuildFinders.build("..\\wordlists\\sorted");
double currStrengthAverage = 0;
double currTimeAverage = 0;
int count = 1;
int batchCount = 0;
PasswordResults passwords[] = new PasswordResults[batchSize];
for(int i=0; i<recordStart;i++){
buffered.readLine();
count++;
}
long start = System.currentTimeMillis();
while (word != null) {
word = buffered.readLine();
if (word == null || word.length() == 0 || word.charAt(0) == '#') {
continue;
}
word = word.trim();
PasswordResults normal = new PasswordAnalysis(word);
finder.analyze(normal);
passwords[batchCount] = normal;
if (batchCount == batchSize - 1) {
for (PasswordResults password : passwords) {
finder.waitForAnalysis(password);
PathCost normCost = password.calculateHighestProbablePatterns();
// password# cost patternsCount
out.printf("%s\t%s\t%s\t",
password.getCharSequence(), normCost.cost, normCost.getPath().size() );
List<PasswordPattern> path = normCost.getPath();