internal void method_7() { if (File.Exists("ignoreCode.txt")) { string string_; using (StreamReader streamReader = new StreamReader("ignoreCode.txt")) { string_ = streamReader.ReadToEnd(); } List <CodeFile> list = this.method_8(string_); foreach (CodeFile current in list) { foreach (CodeFile current2 in this.observableCollection_1) { AllSequences allSequences_ = Analysis.smethod_1(current, current2, current.Hashes.Length - 1); this.method_9(current2, allSequences_); } } this.method_2(this.observableCollection_0.First <CodeDir>()); this.method_3(); } }
private void method_10() { try { DirectoryInfo directoryInfo = new DirectoryInfo(this.string_0); int minSimilarityLineLength = this.options_0.MinSimilarityLineLength; FileInfo[] files = directoryInfo.GetFiles(this.options_0.FileSearchPattern, SearchOption.AllDirectories); int num = 0; List <Regex> excludeRegexes = this.options_0.GetExcludeRegexes(); FileInfo[] array = files; int i = 0; IL_98: while (i < array.Length) { FileInfo fileInfo = array[i]; bool flag = false; for (int j = 0; j < excludeRegexes.Count; j++) { if (excludeRegexes[j].IsMatch(fileInfo.FullName)) { flag = true; IL_87: if (!flag) { num++; } i++; goto IL_98; } } goto IL_87; } if (num == 0) { this.AlertAction("No " + this.options_0.FileSearchPattern + " Files Found"); this.Done(); } else { this.UpdateProgressAction(0, num, "Loading Files..."); CodeDir codeDir = this.method_4(directoryInfo, this.options_0.MinSimilarityLineLength, ""); this.observableCollection_0.Add(codeDir); ObservableCollection <CodeFile> observableCollection = this.observableCollection_1; this.UpdateProgressAction(0, observableCollection.Count * observableCollection.Count / 2, "Comparing Files..."); int num2 = 0; StringBuilder stringBuilder = new StringBuilder(); for (int j = 0; j < observableCollection.Count; j++) { CodeFile codeFile = observableCollection[j]; for (int k = j; k < observableCollection.Count; k++) { num2++; if (num2 % 500 == 0) { this.UpdateProgressValue(num2); } try { CodeFile codeFile_ = observableCollection[k]; AllSequences allSequences = Analysis.smethod_1(codeFile, codeFile_, minSimilarityLineLength); foreach (Sequence current in allSequences.Sequences) { Analysis.smethod_4(codeFile, codeFile_, current); } goto IL_24D; } catch (Exception ex) { stringBuilder.AppendLine(codeFile.Name + " - " + observableCollection[k].Name); goto IL_24D; } break; IL_24D :; } codeFile.method_1(); codeFile.Similarities.Sort(new Comparison <Similarity>(Analysis.smethod_0)); } this.method_2(codeDir); this.method_3(); this.method_7(); if (stringBuilder.Length > 0) { this.AlertAction("Atomiq experienced an error with the following file combinations: " + stringBuilder.ToString()); } this.bool_0 = true; this.Done(); } } catch (Exception ex) { if (!(ex is ThreadAbortException)) { this.CaughtException = ex; } this.Done(); } }