// Path: src/main/java/org/sonar/plugins/stash/IssuePathResolver.java
// @FunctionalInterface
// public interface IssuePathResolver {
//   String getIssuePath(PostJobIssue issue);
// }
// 
// Path: src/main/java/org/sonar/plugins/stash/StashPluginUtils.java
// public static long countIssuesBySeverity(Collection<PostJobIssue> issues, final Severity severity) {
//   return issues.stream().filter(i -> severity.equals(i.severity())).count();
// }


import com.google.common.collect.ListMultimap;
import com.google.common.collect.Multimaps;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Arrays;
import java.util.function.Function;
import java.util.stream.Collectors;
import com.google.common.collect.ArrayListMultimap;
import org.sonar.api.batch.postjob.issue.PostJobIssue;
import org.sonar.api.batch.rule.Severity;
import org.sonar.api.rule.RuleKey;
import org.sonar.plugins.stash.IssuePathResolver;
import static org.sonar.plugins.stash.StashPluginUtils.countIssuesBySeverity;

package org.sonar.plugins.stash.issue;




public final class MarkdownPrinter {

  private static final String NEW_LINE = "\n";
  private static final String CODING_RULES_RULE_KEY = "coding_rules#rule_key=";

  private int issueThreshold;

// Path: src/main/java/org/sonar/plugins/stash/IssuePathResolver.java
// @FunctionalInterface
// public interface IssuePathResolver {
//   String getIssuePath(PostJobIssue issue);
// }
// 
// Path: src/main/java/org/sonar/plugins/stash/StashPluginUtils.java
// public static long countIssuesBySeverity(Collection<PostJobIssue> issues, final Severity severity) {
//   return issues.stream().filter(i -> severity.equals(i.severity())).count();
// }


// Path: src/main/java/org/sonar/plugins/stash/issue/MarkdownPrinter.java
import com.google.common.collect.ListMultimap;
import com.google.common.collect.Multimaps;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Arrays;
import java.util.function.Function;
import java.util.stream.Collectors;
import com.google.common.collect.ArrayListMultimap;
import org.sonar.api.batch.postjob.issue.PostJobIssue;
import org.sonar.api.batch.rule.Severity;
import org.sonar.api.rule.RuleKey;
import org.sonar.plugins.stash.IssuePathResolver;
import static org.sonar.plugins.stash.StashPluginUtils.countIssuesBySeverity;

package org.sonar.plugins.stash.issue;




public final class MarkdownPrinter {

  private static final String NEW_LINE = "\n";
  private static final String CODING_RULES_RULE_KEY = "coding_rules#rule_key=";

  private int issueThreshold;

  private String sonarQubeURL;
