test_class.declarator: jdkLoggerForConfig =
        Logger.getLogger(LoggingMediaHttpUploaderProgressListener.class.getCanonicalName())
test_class.modifier: private static final
test_class.original_string: private static final Logger jdkLoggerForConfig =
        Logger.getLogger(LoggingMediaHttpUploaderProgressListener.class.getCanonicalName());
test_class.type: Logger
test_class.var_name: jdkLoggerForConfig
test_class.declarator: LOG_FORMATTER =
        new Formatter() {
          @Override
          public String format(LogRecord record) {
            return record.getLevel() + ": " + record.getMessage();
          }
        }
test_class.modifier: private static final
test_class.original_string: private static final Formatter LOG_FORMATTER =
        new Formatter() {
          @Override
          public String format(LogRecord record) {
            return record.getLevel() + ": " + record.getMessage();
          }
        };
test_class.type: Formatter
test_class.var_name: LOG_FORMATTER
test_class.declarator: listener
test_class.modifier: private
test_class.original_string: private LoggingMediaHttpUploaderProgressListener listener;
test_class.type: LoggingMediaHttpUploaderProgressListener
test_class.var_name: listener
test_class.declarator: logCapturingStream
test_class.modifier: private
test_class.original_string: private ByteArrayOutputStream logCapturingStream;
test_class.type: ByteArrayOutputStream
test_class.var_name: logCapturingStream
test_class.declarator: customLogHandler
test_class.modifier: private
test_class.original_string: private StreamHandler customLogHandler;
test_class.type: StreamHandler
test_class.var_name: customLogHandler
test_class.file: util/src/test/java/com/google/cloud/hadoop/util/LoggingMediaHttpUploaderProgressListenerTest.java
test_class.identifier: LoggingMediaHttpUploaderProgressListenerTest
test_case.body: @Test
    public void testLoggingProgressAfterSixtySeconds() {
      listener.progressChanged(UploadState.MEDIA_IN_PROGRESS, 10485760L, 60001L);
      assertThat(getTestCapturedLog())
          .isEqualTo(
              "FINE: Uploading:"
                  + " NAME Average Rate: 0.167 MiB/s, Current Rate: 0.167 MiB/s, Total: 10.000 MiB");
  
      listener.progressChanged(UploadState.MEDIA_IN_PROGRESS, 104857600L, 120002L);
      assertThat(getTestCapturedLog())
          .isEqualTo(
              "FINE: Uploading:"
                  + " NAME Average Rate: 0.833 MiB/s, Current Rate: 1.500 MiB/s, Total: 100.000 MiB");
    }
test_case.class_method_signature: LoggingMediaHttpUploaderProgressListenerTest.testLoggingProgressAfterSixtySeconds()
test_case.full_signature: @Test public void testLoggingProgressAfterSixtySeconds()
test_case.identifier: testLoggingProgressAfterSixtySeconds
test_case.invocations: progressChanged isEqualTo assertThat getTestCapturedLog progressChanged isEqualTo assertThat getTestCapturedLog
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLoggingProgressAfterSixtySeconds()
focal_class.declarator: logger = GoogleLogger.forEnclosingClass()
focal_class.modifier: private static final
focal_class.original_string: private static final GoogleLogger logger = GoogleLogger.forEnclosingClass();
focal_class.type: GoogleLogger
focal_class.var_name: logger
focal_class.declarator: BYTES_IN_MB = 1024 * 1024
focal_class.modifier: private static final
focal_class.original_string: private static final double BYTES_IN_MB = 1024 * 1024;
focal_class.type: double
focal_class.var_name: BYTES_IN_MB
focal_class.declarator: minLoggingInterval
focal_class.modifier: private final
focal_class.original_string: private final long minLoggingInterval;
focal_class.type: long
focal_class.var_name: minLoggingInterval
focal_class.declarator: name
focal_class.modifier: private final
focal_class.original_string: private final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: startTime
focal_class.modifier: private
focal_class.original_string: private long startTime;
focal_class.type: long
focal_class.var_name: startTime
focal_class.declarator: prevTime
focal_class.modifier: private
focal_class.original_string: private long prevTime;
focal_class.type: long
focal_class.var_name: prevTime
focal_class.declarator: prevUploadedBytes
focal_class.modifier: private
focal_class.original_string: private long prevUploadedBytes;
focal_class.type: long
focal_class.var_name: prevUploadedBytes
focal_class.file: util/src/main/java/com/google/cloud/hadoop/util/LoggingMediaHttpUploaderProgressListener.java
focal_class.identifier: LoggingMediaHttpUploaderProgressListener
focal_class.interfaces: implements MediaHttpUploaderProgressListener
focal_class.class_method_signature: LoggingMediaHttpUploaderProgressListener.LoggingMediaHttpUploaderProgressListener(String name, long minLoggingInterval)
focal_class.full_signature: public  LoggingMediaHttpUploaderProgressListener(String name, long minLoggingInterval)
focal_class.identifier: LoggingMediaHttpUploaderProgressListener
focal_class.modifiers: public
focal_class.parameters: (String name, long minLoggingInterval)
focal_class.signature:  LoggingMediaHttpUploaderProgressListener(String name, long minLoggingInterval)
focal_class.class_method_signature: LoggingMediaHttpUploaderProgressListener.progressChanged(MediaHttpUploader uploader)
focal_class.full_signature: @Override public void progressChanged(MediaHttpUploader uploader)
focal_class.identifier: progressChanged
focal_class.modifiers: @Override public
focal_class.parameters: (MediaHttpUploader uploader)
focal_class.return: void
focal_class.signature: void progressChanged(MediaHttpUploader uploader)
focal_class.class_method_signature: LoggingMediaHttpUploaderProgressListener.progressChanged(UploadState uploadState, long bytesUploaded, long currentTime)
focal_class.full_signature: @VisibleForTesting void progressChanged(UploadState uploadState, long bytesUploaded, long currentTime)
focal_class.identifier: progressChanged
focal_class.modifiers: @VisibleForTesting
focal_class.parameters: (UploadState uploadState, long bytesUploaded, long currentTime)
focal_class.return: void
focal_class.signature: void progressChanged(UploadState uploadState, long bytesUploaded, long currentTime)
focal_method.body: @Override
    public void progressChanged(MediaHttpUploader uploader) throws IOException {
      progressChanged(
          uploader.getUploadState(), uploader.getNumBytesUploaded(), System.currentTimeMillis());
    }
focal_method.class_method_signature: LoggingMediaHttpUploaderProgressListener.progressChanged(MediaHttpUploader uploader)
focal_method.full_signature: @Override public void progressChanged(MediaHttpUploader uploader)
focal_method.identifier: progressChanged
focal_method.invocations: progressChanged getUploadState getNumBytesUploaded currentTimeMillis
focal_method.modifiers: @Override public
focal_method.parameters: (MediaHttpUploader uploader)
focal_method.return: void
focal_method.signature: void progressChanged(MediaHttpUploader uploader)