test_class.file: tool/sdg/src/test/java/org/openscience/cdk/layout/IdentityTemplateLibraryTest.java
test_class.identifier: IdentityTemplateLibraryTest
test_case.body: @Test
      public void decodeCoordinates() throws Exception {
          Point2d[] points = IdentityTemplateLibrary.decodeCoordinates("12.5, 5.5, 4, 2");
          assertThat(points.length, is(2));
          assertThat(points[0].x, closeTo(12.5, 0.01));
          assertThat(points[0].y, closeTo(5.5, 0.01));
          assertThat(points[1].x, closeTo(4, 0.01));
          assertThat(points[1].y, closeTo(2, 0.01));
      }
test_case.class_method_signature: IdentityTemplateLibraryTest.decodeCoordinates()
test_case.full_signature: @Test public void decodeCoordinates()
test_case.identifier: decodeCoordinates
test_case.invocations: decodeCoordinates assertThat is assertThat closeTo assertThat closeTo assertThat closeTo assertThat closeTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void decodeCoordinates()
focal_class.declarator: templateMap = LinkedListMultimap.create()
focal_class.modifier: private final
focal_class.original_string: private final Multimap<String, Point2d[]> templateMap = LinkedListMultimap.create();
focal_class.type: Multimap<String, Point2d[]>
focal_class.var_name: templateMap
focal_class.declarator: smigen = SmilesGenerator.unique()
focal_class.modifier: private final
focal_class.original_string: private final SmilesGenerator smigen = SmilesGenerator.unique();
focal_class.type: SmilesGenerator
focal_class.var_name: smigen
focal_class.declarator: logger = LoggingToolFactory.createLoggingTool(getClass())
focal_class.modifier: private final
focal_class.original_string: private final ILoggingTool    logger = LoggingToolFactory.createLoggingTool(getClass());
focal_class.type: ILoggingTool
focal_class.var_name: logger
focal_class.file: tool/sdg/src/main/java/org/openscience/cdk/layout/IdentityTemplateLibrary.java
focal_class.identifier: IdentityTemplateLibrary
focal_class.class_method_signature: IdentityTemplateLibrary.IdentityTemplateLibrary()
focal_class.full_signature: private  IdentityTemplateLibrary()
focal_class.identifier: IdentityTemplateLibrary
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  IdentityTemplateLibrary()
focal_class.class_method_signature: IdentityTemplateLibrary.add(IdentityTemplateLibrary library)
focal_class.full_signature: public IdentityTemplateLibrary add(IdentityTemplateLibrary library)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (IdentityTemplateLibrary library)
focal_class.return: IdentityTemplateLibrary
focal_class.signature: IdentityTemplateLibrary add(IdentityTemplateLibrary library)
focal_class.class_method_signature: IdentityTemplateLibrary.cansmi(IAtomContainer mol, int[] ordering)
focal_class.full_signature: private String cansmi(IAtomContainer mol, int[] ordering)
focal_class.identifier: cansmi
focal_class.modifiers: private
focal_class.parameters: (IAtomContainer mol, int[] ordering)
focal_class.return: String
focal_class.signature: String cansmi(IAtomContainer mol, int[] ordering)
focal_class.class_method_signature: IdentityTemplateLibrary.createEntry(final IAtomContainer container)
focal_class.full_signature:  Entry<String, Point2d[]> createEntry(final IAtomContainer container)
focal_class.identifier: createEntry
focal_class.parameters: (final IAtomContainer container)
focal_class.return: Entry<String, Point2d[]>
focal_class.signature: Entry<String, Point2d[]> createEntry(final IAtomContainer container)
focal_class.class_method_signature: IdentityTemplateLibrary.decodeEntry(String str)
focal_class.full_signature: static Entry<String, Point2d[]> decodeEntry(String str)
focal_class.identifier: decodeEntry
focal_class.modifiers: static
focal_class.parameters: (String str)
focal_class.return: Entry<String, Point2d[]>
focal_class.signature: Entry<String, Point2d[]> decodeEntry(String str)
focal_class.class_method_signature: IdentityTemplateLibrary.decodeCoordinates(String str)
focal_class.full_signature: static Point2d[] decodeCoordinates(String str)
focal_class.identifier: decodeCoordinates
focal_class.modifiers: static
focal_class.parameters: (String str)
focal_class.return: Point2d[]
focal_class.signature: Point2d[] decodeCoordinates(String str)
focal_class.class_method_signature: IdentityTemplateLibrary.encodeEntry(Entry<String, Point2d[]> entry)
focal_class.full_signature: static String encodeEntry(Entry<String, Point2d[]> entry)
focal_class.identifier: encodeEntry
focal_class.modifiers: static
focal_class.parameters: (Entry<String, Point2d[]> entry)
focal_class.return: String
focal_class.signature: String encodeEntry(Entry<String, Point2d[]> entry)
focal_class.class_method_signature: IdentityTemplateLibrary.encodeCoordinates(Point2d[] points)
focal_class.full_signature: static String encodeCoordinates(Point2d[] points)
focal_class.identifier: encodeCoordinates
focal_class.modifiers: static
focal_class.parameters: (Point2d[] points)
focal_class.return: String
focal_class.signature: String encodeCoordinates(Point2d[] points)
focal_class.class_method_signature: IdentityTemplateLibrary.add(Entry<String, Point2d[]> entry)
focal_class.full_signature:  void add(Entry<String, Point2d[]> entry)
focal_class.identifier: add
focal_class.parameters: (Entry<String, Point2d[]> entry)
focal_class.return: void
focal_class.signature: void add(Entry<String, Point2d[]> entry)
focal_class.class_method_signature: IdentityTemplateLibrary.add(IAtomContainer container)
focal_class.full_signature:  void add(IAtomContainer container)
focal_class.identifier: add
focal_class.parameters: (IAtomContainer container)
focal_class.return: void
focal_class.signature: void add(IAtomContainer container)
focal_class.class_method_signature: IdentityTemplateLibrary.assignLayout(IAtomContainer container)
focal_class.full_signature:  boolean assignLayout(IAtomContainer container)
focal_class.identifier: assignLayout
focal_class.parameters: (IAtomContainer container)
focal_class.return: boolean
focal_class.signature: boolean assignLayout(IAtomContainer container)
focal_class.class_method_signature: IdentityTemplateLibrary.getCoordinates(IAtomContainer mol)
focal_class.full_signature:  Collection<Point2d[]> getCoordinates(IAtomContainer mol)
focal_class.identifier: getCoordinates
focal_class.parameters: (IAtomContainer mol)
focal_class.return: Collection<Point2d[]>
focal_class.signature: Collection<Point2d[]> getCoordinates(IAtomContainer mol)
focal_class.class_method_signature: IdentityTemplateLibrary.empty()
focal_class.full_signature: static IdentityTemplateLibrary empty()
focal_class.identifier: empty
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: IdentityTemplateLibrary
focal_class.signature: IdentityTemplateLibrary empty()
focal_class.class_method_signature: IdentityTemplateLibrary.loadFromResource(String resource)
focal_class.full_signature: static IdentityTemplateLibrary loadFromResource(String resource)
focal_class.identifier: loadFromResource
focal_class.modifiers: static
focal_class.parameters: (String resource)
focal_class.return: IdentityTemplateLibrary
focal_class.signature: IdentityTemplateLibrary loadFromResource(String resource)
focal_class.class_method_signature: IdentityTemplateLibrary.load(InputStream in)
focal_class.full_signature: static IdentityTemplateLibrary load(InputStream in)
focal_class.identifier: load
focal_class.modifiers: static
focal_class.parameters: (InputStream in)
focal_class.return: IdentityTemplateLibrary
focal_class.signature: IdentityTemplateLibrary load(InputStream in)
focal_class.class_method_signature: IdentityTemplateLibrary.reorderCoords(Point2d[] coords, int[] order)
focal_class.full_signature: static Point2d[] reorderCoords(Point2d[] coords, int[] order)
focal_class.identifier: reorderCoords
focal_class.modifiers: static
focal_class.parameters: (Point2d[] coords, int[] order)
focal_class.return: Point2d[]
focal_class.signature: Point2d[] reorderCoords(Point2d[] coords, int[] order)
focal_class.class_method_signature: IdentityTemplateLibrary.update(IChemObjectBuilder bldr)
focal_class.full_signature:  void update(IChemObjectBuilder bldr)
focal_class.identifier: update
focal_class.parameters: (IChemObjectBuilder bldr)
focal_class.return: void
focal_class.signature: void update(IChemObjectBuilder bldr)
focal_class.class_method_signature: IdentityTemplateLibrary.store(OutputStream out)
focal_class.full_signature:  void store(OutputStream out)
focal_class.identifier: store
focal_class.parameters: (OutputStream out)
focal_class.return: void
focal_class.signature: void store(OutputStream out)
focal_method.body: static Point2d[] decodeCoordinates(String str) {
          if (str.startsWith("|(")) {
              int end = str.indexOf(')', 2);
              if (end < 0)
                  return new Point2d[0];
              String[] strs = str.substring(2, end).split(";");
              Point2d[] points = new Point2d[strs.length];
              for (int i = 0; i < strs.length; i++) {
                  String coord = strs[i];
                  int first  = coord.indexOf(',');
                  int second = coord.indexOf(',', first+1);
                  points[i] = new Point2d(Double.parseDouble(coord.substring(0, first)),
                                          Double.parseDouble(coord.substring(first + 1, second)));
              }
              return points;
          } else {
              String[] strs = str.split(", ");
              Point2d[] points = new Point2d[strs.length / 2];
              for (int i = 0; i < strs.length; i += 2) {
                  points[i / 2] = new Point2d(Double.parseDouble(strs[i]), Double.parseDouble(strs[i + 1]));
              }
              return points;
          }
      }
focal_method.class_method_signature: IdentityTemplateLibrary.decodeCoordinates(String str)
focal_method.full_signature: static Point2d[] decodeCoordinates(String str)
focal_method.identifier: decodeCoordinates
focal_method.invocations: startsWith indexOf split substring indexOf indexOf parseDouble substring parseDouble substring split parseDouble parseDouble
focal_method.modifiers: static
focal_method.parameters: (String str)
focal_method.return: Point2d[]
focal_method.signature: Point2d[] decodeCoordinates(String str)