!752

!include #1004863 // Dynamic Concepts
!include #1005530 // PIF Classes (Clip, Found, FullySearched)

p {
  final Concepts in = new Concepts("#1005522").load();
  
  new MultiMap<Clip, Rect> positions;
  for (Screenshot screenshot : in.list(Screenshot)) {
    L<Found> found = in.findBackRefs(screenshot, Found);
    for (Found f : found)
      positions.put(f.clip!, f.fi.r);
  }
  print("\nPOSITIONS\n");
  
  new L<S> out;
  for (Clip clip : positions.keySet()) {
    L l = positions.get(clip);
    L set = asList(new HashSet(l));
    out.add(l(set) + "/" + l(l) + " " + clip.description + ": " + struct(set));
  }
  print(joinLines(reversed(orderByFirstInt(out))));
}