@@ -0,0 +1,1363 @@
+package com.hubspot.blazar.external.models.singularity;%0A%0Aimport com.fasterxml.jackson.annotation.JsonCreator;%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0A%0Apublic class BuildCGroupResources %7B%0A%0A  private final double cpus;%0A  private final double memoryMb;%0A%0A  private static BuildCGroupResources fromMesosResources(com.hubspot.mesos.Resources resources) %7B%0A    return new BuildCGroupResources(resources.getCpus(), resources.getMemoryMb());%0A  %7D%0A%0A  /**%0A   * Blazar's view of mesos resources, currently we do not care about ports or disk, so we leave those fields at 0%0A   * when converting to Mesos Resources  %7B@link BuildCGroupResources#toMesosResources(BuildCGroupResources) toMesosResources(Resources)%7D%0A   * @param cpus number of cpu%0A   * @param memoryMb mb ram for build%0A   */%0A  @JsonCreator%0A  public BuildCGroupResources(@JsonProperty(%22cpus%22) double cpus, @JsonProperty(%22memoryMb%22) double memoryMb) %7B%0A    this.cpus = cpus;%0A    this.memoryMb = memoryMb;%0A  %7D%0A%0A  public double getCpus() %7B%0A    return cpus;%0A  %7D%0A%0A  public double getMemoryMb() %7B%0A    return memoryMb;%0A  %7D%0A%0A  public BuildCGroupResources add(BuildCGroupResources other) %7B%0A    return new BuildCGroupResources(other.getCpus() + cpus, other.getMemoryMb() + memoryMb);%0A  %7D%0A%0A  public com.hubspot.mesos.Resources toMesosResources() %7B%0A    return new com.hubspot.mesos.Resources(cpus, memoryMb, 0);%0A  %7D%0A%7D%0A

fix caps