Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>0.1-SNAPSHOT</version>
<dependencies>
<dependency>
Result "com.hubspot.dropwizard.BootstrapRestBenchmark.hitBootstrapRest":
N = 24402
mean = 2.050 ±(99.9%) 0.063 ms/op
Histogram, ms/op:
[ 0.000, 12.500) = 24155
[ 12.500, 25.000) = 181
[ 25.000, 37.500) = 41
[ 37.500, 50.000) = 14
[ 50.000, 62.500) = 5
private SignalFxProtocolBuffers.DataPoint toSignalFxDatapoint(Data.DataPoint dataPoint) {
long timestamp = TimeUnit.SECONDS.toMillis(dataPoint.getTimestamp());
recordLag(timestamp);
final String metricSource = getMetricSourceTag(dataPoint.getTagsList());
final String source = toSignalFxSource(dataPoint.getTagsList());
return SignalFxProtocolBuffers.DataPoint.newBuilder()
.setMetric(toSignalFxMetric(dataPoint.getTagsList()))
.setMetricType(toSignalFxMetricType(dataPoint.getTagsList()))
.setValue(toSignalFxValue(dataPoint))
.setSource(source)
import hashlib
import requests
artifacts = [
{
'path': 'com/mycila/license-maven-plugin/2.11/license-maven-plugin-2.11.pom',
'actual_sha1': 'ca4834f90a2091bbd50cc0d72dff94c743a7fc9f'
},
{
'path': 'com/mycila/license-maven-plugin-parent/2.11/license-maven-plugin-parent-2.11.pom',
Caused by: java.lang.RuntimeException: Unable to find proto buffer class
at com.google.protobuf.GeneratedMessageLite$SerializedForm.readResolve(GeneratedMessageLite.java:775)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1148)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2036)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hubspot</groupId>
<artifactId>basepom</artifactId>
<version>15.7</version>
</parent>
/**
* Use a @JsonAnySetter method which will get called even for empty/null fields, but won't get called if the field
* isn't set at all. This allows us to distinguish set/unset, but can't be used with final fields. However, it plays
* nicely with more complex objects with other fields, such as nested objects or arrays (you'd just make a @JsonCreator
* constructor or setters for the other fields). Also, make sure to put @JsonIgnore on the field, otherwise
* Jackson will set the field directly (to null) instead of calling your @JsonAnySetter method, making it impossible
* to distinguish set/unset fields. To compensate for the @JsonIgnore, you probably want @JsonGetter on the corresponding getter.
*/
public class AnySetter {
@JsonIgnore
[WARNING] Used undeclared dependencies found:
[WARNING] com.google.inject:guice:jar:4.1.0:compile
[WARNING] com.google.guava:guava:jar:19.0:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
import java.io.IOException;
import java.io.InputStream;
import java.io.SequenceInputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.util.function.Supplier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
AmazonS3 s3 = ... // construct client normally
return HystrixS3Decorator.decorate(s3);