test_class.file: tycho-packaging-plugin/src/test/java/org/eclipse/tycho/buildversion/TimestampFinderTest.java
test_class.identifier: TimestampFinderTest
test_case.body: @Test
      public void testFindInString() throws Exception {
          TimestampFinder finder = new TimestampFinder();
  
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("N201205062200"));
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("I201205062200"));
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("R201205062200"));
  
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("N20120506-2200"));
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("I20120506-2200"));
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("R20120506-2200"));
  
          assertEquals(utcTimestamp(2012, 05, 06, 00, 00), finder.findInString("N20120506"));
          assertEquals(utcTimestamp(2012, 05, 06, 00, 00), finder.findInString("I20120506"));
          assertEquals(utcTimestamp(2012, 05, 06, 00, 00), finder.findInString("R20120506"));
  
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("v201205062200"));
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("v20120506-2200"));
  
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("20120506220000"));
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00), finder.findInString("20120506-220000"));
  
          assertEquals(utcTimestamp(2012, 05, 06, 22, 00),
                  finder.findInString("scdasdcasdc.sd0320-sdva-201205062200-dscsadvj0239inacslj"));
      }
test_case.class_method_signature: TimestampFinderTest.testFindInString()
test_case.full_signature: @Test public void testFindInString()
test_case.identifier: testFindInString
test_case.invocations: assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString assertEquals utcTimestamp findInString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindInString()
focal_class.declarator: datePatternsByRegularExpressions
focal_class.modifier: private final
focal_class.original_string: private final Map<SimpleDateFormat, Pattern> datePatternsByRegularExpressions;
focal_class.type: Map<SimpleDateFormat, Pattern>
focal_class.var_name: datePatternsByRegularExpressions
focal_class.file: tycho-packaging-plugin/src/main/java/org/eclipse/tycho/buildversion/TimestampFinder.java
focal_class.identifier: TimestampFinder
focal_class.class_method_signature: TimestampFinder.defaultPatterns()
focal_class.full_signature: private static Map<SimpleDateFormat, Pattern> defaultPatterns()
focal_class.identifier: defaultPatterns
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: Map<SimpleDateFormat, Pattern>
focal_class.signature: Map<SimpleDateFormat, Pattern> defaultPatterns()
focal_class.class_method_signature: TimestampFinder.utcFormat(String pattern)
focal_class.full_signature: private static SimpleDateFormat utcFormat(String pattern)
focal_class.identifier: utcFormat
focal_class.modifiers: private static
focal_class.parameters: (String pattern)
focal_class.return: SimpleDateFormat
focal_class.signature: SimpleDateFormat utcFormat(String pattern)
focal_class.class_method_signature: TimestampFinder.TimestampFinder()
focal_class.full_signature: public  TimestampFinder()
focal_class.identifier: TimestampFinder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  TimestampFinder()
focal_class.class_method_signature: TimestampFinder.findInString(String string)
focal_class.full_signature: public Date findInString(String string)
focal_class.identifier: findInString
focal_class.modifiers: public
focal_class.parameters: (String string)
focal_class.return: Date
focal_class.signature: Date findInString(String string)
focal_class.class_method_signature: TimestampFinder.parseTimestamp(String timestampString, SimpleDateFormat format)
focal_class.full_signature: private Date parseTimestamp(String timestampString, SimpleDateFormat format)
focal_class.identifier: parseTimestamp
focal_class.modifiers: private
focal_class.parameters: (String timestampString, SimpleDateFormat format)
focal_class.return: Date
focal_class.signature: Date parseTimestamp(String timestampString, SimpleDateFormat format)
focal_method.body: public Date findInString(String string) {
          for (Entry<SimpleDateFormat, Pattern> e : datePatternsByRegularExpressions.entrySet()) {
              Matcher matcher = e.getValue().matcher(string);
              if (matcher.find()) {
                  String group = matcher.group();
                  Date timestamp = parseTimestamp(group, e.getKey());
                  if (timestamp != null)
                      return timestamp;
              }
          }
          return null;
      }
focal_method.class_method_signature: TimestampFinder.findInString(String string)
focal_method.full_signature: public Date findInString(String string)
focal_method.identifier: findInString
focal_method.invocations: entrySet matcher getValue find group parseTimestamp getKey
focal_method.modifiers: public
focal_method.parameters: (String string)
focal_method.return: Date
focal_method.signature: Date findInString(String string)