test_class.file: tool/hash/src/test/java/org/openscience/cdk/hash/stereo/GeometricDoubleBondEncoderFactoryTest.java
test_class.identifier: GeometricDoubleBondEncoderFactoryTest
test_case.body: @Test
      public void testPermutation_TwoSubstituents() throws Exception {
          PermutationParity p = permutation(new int[]{1, 2, 0});
          assertTrue(p instanceof BasicPermutationParity);
          Field field = p.getClass().getDeclaredField("indices");
          field.setAccessible(true);
          assertArrayEquals((int[]) field.get(p), new int[]{1, 2});
      }
test_case.class_method_signature: GeometricDoubleBondEncoderFactoryTest.testPermutation_TwoSubstituents()
test_case.full_signature: @Test public void testPermutation_TwoSubstituents()
test_case.identifier: testPermutation_TwoSubstituents
test_case.invocations: permutation assertTrue getDeclaredField getClass setAccessible assertArrayEquals get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPermutation_TwoSubstituents()
focal_class.file: tool/hash/src/main/java/org/openscience/cdk/hash/stereo/GeometricDoubleBondEncoderFactory.java
focal_class.identifier: GeometricDoubleBondEncoderFactory
focal_class.interfaces: implements StereoEncoderFactory
focal_class.class_method_signature: GeometricDoubleBondEncoderFactory.create(IAtomContainer container, int[][] graph)
focal_class.full_signature: @Override public StereoEncoder create(IAtomContainer container, int[][] graph)
focal_class.identifier: create
focal_class.modifiers: @Override public
focal_class.parameters: (IAtomContainer container, int[][] graph)
focal_class.return: StereoEncoder
focal_class.signature: StereoEncoder create(IAtomContainer container, int[][] graph)
focal_class.class_method_signature: GeometricDoubleBondEncoderFactory.newEncoder(IAtomContainer container, IAtom left, IAtom leftParent, IAtom right,
              IAtom rightParent, int[][] graph)
focal_class.full_signature: static StereoEncoder newEncoder(IAtomContainer container, IAtom left, IAtom leftParent, IAtom right,
              IAtom rightParent, int[][] graph)
focal_class.identifier: newEncoder
focal_class.modifiers: static
focal_class.parameters: (IAtomContainer container, IAtom left, IAtom leftParent, IAtom right,
              IAtom rightParent, int[][] graph)
focal_class.return: StereoEncoder
focal_class.signature: StereoEncoder newEncoder(IAtomContainer container, IAtom left, IAtom leftParent, IAtom right,
              IAtom rightParent, int[][] graph)
focal_class.class_method_signature: GeometricDoubleBondEncoderFactory.geometric(IAtomContainer mol, int l, int r, int l1, int l2, int r1, int r2)
focal_class.full_signature: static GeometricParity geometric(IAtomContainer mol, int l, int r, int l1, int l2, int r1, int r2)
focal_class.identifier: geometric
focal_class.modifiers: static
focal_class.parameters: (IAtomContainer mol, int l, int r, int l1, int l2, int r1, int r2)
focal_class.return: GeometricParity
focal_class.signature: GeometricParity geometric(IAtomContainer mol, int l, int r, int l1, int l2, int r1, int r2)
focal_class.class_method_signature: GeometricDoubleBondEncoderFactory.permutation(int[] neighbors)
focal_class.full_signature: static PermutationParity permutation(int[] neighbors)
focal_class.identifier: permutation
focal_class.modifiers: static
focal_class.parameters: (int[] neighbors)
focal_class.return: PermutationParity
focal_class.signature: PermutationParity permutation(int[] neighbors)
focal_class.class_method_signature: GeometricDoubleBondEncoderFactory.moveToBack(int[] neighbors, int v)
focal_class.full_signature: static int[] moveToBack(int[] neighbors, int v)
focal_class.identifier: moveToBack
focal_class.modifiers: static
focal_class.parameters: (int[] neighbors, int v)
focal_class.return: int[]
focal_class.signature: int[] moveToBack(int[] neighbors, int v)
focal_class.class_method_signature: GeometricDoubleBondEncoderFactory.accept(IAtom atom, List<IBond> bonds)
focal_class.full_signature: static boolean accept(IAtom atom, List<IBond> bonds)
focal_class.identifier: accept
focal_class.modifiers: static
focal_class.parameters: (IAtom atom, List<IBond> bonds)
focal_class.return: boolean
focal_class.signature: boolean accept(IAtom atom, List<IBond> bonds)
focal_method.body: static PermutationParity permutation(int[] neighbors) {
          return neighbors.length == 2 ? PermutationParity.IDENTITY : new BasicPermutationParity(Arrays.copyOf(neighbors,
                  neighbors.length - 1));
      }
focal_method.class_method_signature: GeometricDoubleBondEncoderFactory.permutation(int[] neighbors)
focal_method.full_signature: static PermutationParity permutation(int[] neighbors)
focal_method.identifier: permutation
focal_method.invocations: copyOf
focal_method.modifiers: static
focal_method.parameters: (int[] neighbors)
focal_method.return: PermutationParity
focal_method.signature: PermutationParity permutation(int[] neighbors)