test_class.file: base/lang/src/test/java/leap/lang/util/ShortUUIDTest.java
test_class.identifier: ShortUUIDTest
test_class.superclass: extends TestBase
test_case.body: @Test
      public void testEncoding() {
          String[][] tests = getTests();
  
          for (String[] test : tests) {
              assertEquals(test[1], ShortUUID.encode(test[0]));
          }
      }
test_case.class_method_signature: ShortUUIDTest.testEncoding()
test_case.full_signature: @Test public void testEncoding()
test_case.identifier: testEncoding
test_case.invocations: getTests assertEquals encode
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEncoding()
focal_class.declarator: ALPHABET     = "23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".toCharArray()
focal_class.modifier: private static final
focal_class.original_string: private static final char[] ALPHABET     = "23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz".toCharArray();
focal_class.type: char[]
focal_class.var_name: ALPHABET
focal_class.declarator: ALPHABET_LEN = ALPHABET.length
focal_class.modifier: private static final
focal_class.original_string: private static final int    ALPHABET_LEN = ALPHABET.length;
focal_class.type: int
focal_class.var_name: ALPHABET_LEN
focal_class.file: base/lang/src/main/java/leap/lang/util/ShortUUID.java
focal_class.identifier: ShortUUID
focal_class.class_method_signature: ShortUUID.randomUUID()
focal_class.full_signature: public static String randomUUID()
focal_class.identifier: randomUUID
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String randomUUID()
focal_class.class_method_signature: ShortUUID.encode(String longUUID)
focal_class.full_signature: public static String encode(String longUUID)
focal_class.identifier: encode
focal_class.modifiers: public static
focal_class.parameters: (String longUUID)
focal_class.return: String
focal_class.signature: String encode(String longUUID)
focal_class.class_method_signature: ShortUUID.decode(String shortUUID)
focal_class.full_signature: public static String decode(String shortUUID)
focal_class.identifier: decode
focal_class.modifiers: public static
focal_class.parameters: (String shortUUID)
focal_class.return: String
focal_class.signature: String decode(String shortUUID)
focal_class.class_method_signature: ShortUUID.encode(final BigInteger bigInt, final char[] alphabet, final int padToLen)
focal_class.full_signature: private static String encode(final BigInteger bigInt, final char[] alphabet, final int padToLen)
focal_class.identifier: encode
focal_class.modifiers: private static
focal_class.parameters: (final BigInteger bigInt, final char[] alphabet, final int padToLen)
focal_class.return: String
focal_class.signature: String encode(final BigInteger bigInt, final char[] alphabet, final int padToLen)
focal_class.class_method_signature: ShortUUID.decode(final char[] encoded, final char[] alphabet)
focal_class.full_signature: private static String decode(final char[] encoded, final char[] alphabet)
focal_class.identifier: decode
focal_class.modifiers: private static
focal_class.parameters: (final char[] encoded, final char[] alphabet)
focal_class.return: String
focal_class.signature: String decode(final char[] encoded, final char[] alphabet)
focal_method.body: public static String encode(String longUUID) {
          String uuidStr = longUUID.toString().replaceAll("-", "");
  
          Double factor = Math.log(25d) / Math.log(ALPHABET_LEN);
          Double length = Math.ceil(factor * 16);
  
          BigInteger number = new BigInteger(uuidStr, 16);
  
          return encode(number, ALPHABET, length.intValue());
      }
focal_method.class_method_signature: ShortUUID.encode(String longUUID)
focal_method.full_signature: public static String encode(String longUUID)
focal_method.identifier: encode
focal_method.invocations: replaceAll toString log log ceil encode intValue
focal_method.modifiers: public static
focal_method.parameters: (String longUUID)
focal_method.return: String
focal_method.signature: String encode(String longUUID)