test_class.file: core/src/test/java/com/github/olivergondza/dumpling/query/TopContendersTest.java
test_class.identifier: TopContendersTest
test_case.body: @Test
      public void trivial() throws Exception {
          ThreadDumpRuntime runtime = new ThreadDumpFactory().fromStream(Util.resource("jstack/producer-consumer.log"));
  
          TopContenders.Result<ThreadDumpThreadSet, ThreadDumpRuntime, ThreadDumpThread> contenders = new TopContenders().query(runtime.getThreads());
  
          final ThreadDumpThread owning = runtime.getThreads().where(nameIs("owning_thread")).onlyThread();
  
          assertThat(contenders.getBlockers().size(), equalTo(1));
          assertThat(contenders.blockedBy(owning), equalTo(runtime.getThreads().where(nameIs("blocked_thread"))));
      }
test_case.class_method_signature: TopContendersTest.trivial()
test_case.full_signature: @Test public void trivial()
test_case.identifier: trivial
test_case.invocations: fromStream resource query getThreads onlyThread where getThreads nameIs assertThat size getBlockers equalTo assertThat blockedBy equalTo where getThreads nameIs
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void trivial()
focal_class.declarator: showStackTraces = false
focal_class.modifier: private
focal_class.original_string: private boolean showStackTraces = false;
focal_class.type: boolean
focal_class.var_name: showStackTraces
focal_class.file: core/src/main/java/com/github/olivergondza/dumpling/query/TopContenders.java
focal_class.identifier: TopContenders
focal_class.interfaces: implements SingleThreadSetQuery<TopContenders.Result<?, ?, ?>>
focal_class.class_method_signature: TopContenders.showStackTraces()
focal_class.full_signature: public TopContenders showStackTraces()
focal_class.identifier: showStackTraces
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TopContenders
focal_class.signature: TopContenders showStackTraces()
focal_class.class_method_signature: TopContenders.query(SetType threads)
focal_class.full_signature: @Override public @Nonnull Result<SetType, RuntimeType, ThreadType> query(SetType threads)
focal_class.identifier: query
focal_class.modifiers: @Override public @Nonnull
focal_class.parameters: (SetType threads)
focal_class.return: Result<SetType, RuntimeType, ThreadType>
focal_class.signature: Result<SetType, RuntimeType, ThreadType> query(SetType threads)
focal_method.body: @Override
      public @Nonnull <
              SetType extends ThreadSet<SetType, RuntimeType, ThreadType>,
              RuntimeType extends ProcessRuntime<RuntimeType, SetType, ThreadType>,
              ThreadType extends ProcessThread<ThreadType, SetType, RuntimeType>
      > Result<SetType, RuntimeType, ThreadType> query(SetType threads) {
          return new Result<SetType, RuntimeType, ThreadType>(threads, showStackTraces);
      }
focal_method.class_method_signature: TopContenders.query(SetType threads)
focal_method.full_signature: @Override public @Nonnull Result<SetType, RuntimeType, ThreadType> query(SetType threads)
focal_method.identifier: query
focal_method.modifiers: @Override public @Nonnull
focal_method.parameters: (SetType threads)
focal_method.return: Result<SetType, RuntimeType, ThreadType>
focal_method.signature: Result<SetType, RuntimeType, ThreadType> query(SetType threads)