text:
/**
 * Autogenerated by Thrift Compiler (0.10.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package com.facebook.buck.distributed.thrift;

@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.10.0)", date = "2017-08-18")
public class CoordinatorService {

  public interface Iface {

    public GetTargetsToBuildResponse getTargetsToBuild(GetTargetsToBuildRequest request) throws org.apache.thrift.TException;

    public FinishedBuildingResponse finishedBuilding(FinishedBuildingRequest request) throws org.apache.thrift.TException;

  }

  public interface AsyncIface {

    public void getTargetsToBuild(GetTargetsToBuildRequest request, org.apache.thrift.async.AsyncMethodCallback<GetTargetsToBuildResponse> resultHandler) throws org.apache.thrift.TException;

    public void finishedBuilding(FinishedBuildingRequest request, org.apache.thrift.async.AsyncMethodCallback<FinishedBuildingResponse> resultHandler) throws org.apache.thrift.TException;

  }

  public static class Client extends org.apache.thrift.TServiceClient implements Iface {
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
      public Factory() {}
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
        return new Client(prot);
      }
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
        return new Client(iprot, oprot);
      }
    }

    public Client(org.apache.thrift.protocol.TProtocol prot)
    {
      super(prot, prot);
    }

    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
      super(iprot, oprot);
    }

    public GetTargetsToBuildResponse getTargetsToBuild(GetTargetsToBuildRequest request) throws org.apache.thrift.TException
    {
      send_getTargetsToBuild(request);
      return recv_getTargetsToBuild();
    }

    public void send_getTargetsToBuild(GetTargetsToBuildRequest request) throws org.apache.thrift.TException
    {
      getTargetsToBuild_args args = new getTargetsToBuild_args();
      args.setRequest(request);
      sendBase("getTargetsToBuild", args);
    }

    public GetTargetsToBuildResponse recv_getTargetsToBuild() throws org.apache.thrift.TException
    {
      getTargetsToBuild_result result = new getTargetsToBuild_result();
      receiveBase(result, "getTargetsToBuild");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTargetsToBuild failed: unknown result");
    }

    public FinishedBuildingResponse finishedBuilding(FinishedBuildingRequest request) throws org.apache.thrift.TException
    {
      send_finishedBuilding(request);
      return recv_finishedBuilding();
    }

    public void send_finishedBuilding(FinishedBuildingRequest request) throws org.apache.thrift.TException
    {
      finishedBuilding_args args = new finishedBuilding_args();
      args.setRequest(request);
      sendBase("finishedBuilding", args);
    }

    public FinishedBuildingResponse recv_finishedBuilding() throws org.apache.thrift.TException
    {
      finishedBuilding_result result = new finishedBuilding_result();
      receiveBase(result, "finishedBuilding");
      if (result.isSetSuccess()) {
        return result.success;
      }
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "finishedBuilding failed: unknown result");
    }

  }
  public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
      private org.apache.thrift.async.TAsyncClientManager clientManager;
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
        this.clientManager = clientManager;
        this.protocolFactory = protocolFactory;
      }
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
        return new AsyncClient(protocolFactory, clientManager, transport);
      }
    }

    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
      super(protocolFactory, clientManager, transport);
    }

    public void getTargetsToBuild(GetTargetsToBuildRequest request, org.apache.thrift.async.AsyncMethodCallback<GetTargetsToBuildResponse> resultHandler) throws org.apache.thrift.TException {
      checkReady();
      getTargetsToBuild_call method_call = new getTargetsToBuild_call(request, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class getTargetsToBuild_call extends org.apache.thrift.async.TAsyncMethodCall<GetTargetsToBuildResponse> {
      private GetTargetsToBuildRequest request;
      public getTargetsToBuild_call(GetTargetsToBuildRequest request, org.apache.thrift.async.AsyncMethodCallback<GetTargetsToBuildResponse> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.request = request;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTargetsToBuild", org.apache.thrift.protocol.TMessageType.CALL, 0));
        getTargetsToBuild_args args = new getTargetsToBuild_args();
        args.setRequest(request);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public GetTargetsToBuildResponse getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new java.lang.IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_getTargetsToBuild();
      }
    }

    public void finishedBuilding(FinishedBuildingRequest request, org.apache.thrift.async.AsyncMethodCallback<FinishedBuildingResponse> resultHandler) throws org.apache.thrift.TException {
      checkReady();
      finishedBuilding_call method_call = new finishedBuilding_call(request, resultHandler, this, ___protocolFactory, ___transport);
      this.___currentMethod = method_call;
      ___manager.call(method_call);
    }

    public static class finishedBuilding_call extends org.apache.thrift.async.TAsyncMethodCall<FinishedBuildingResponse> {
      private FinishedBuildingRequest request;
      public finishedBuilding_call(FinishedBuildingRequest request, org.apache.thrift.async.AsyncMethodCallback<FinishedBuildingResponse> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
        super(client, protocolFactory, transport, resultHandler, false);
        this.request = request;
      }

      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("finishedBuilding", org.apache.thrift.protocol.TMessageType.CALL, 0));
        finishedBuilding_args args = new finishedBuilding_args();
        args.setRequest(request);
        args.write(prot);
        prot.writeMessageEnd();
      }

      public FinishedBuildingResponse getResult() throws org.apache.thrift.TException {
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
          throw new java.lang.IllegalStateException("Method call not finished!");
        }
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
        return (new Client(prot)).recv_finishedBuilding();
      }
    }

  }

  public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
    private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName());
    public Processor(I iface) {
      super(iface, getProcessMap(new java.util.HashMap<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
    }

    protected Processor(I iface, java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
      super(iface, getProcessMap(processMap));
    }

    private static <I extends Iface> java.util.Map<java.lang.String,  org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(java.util.Map<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
      processMap.put("getTargetsToBuild", new getTargetsToBuild());
      processMap.put("finishedBuilding", new finishedBuilding());
      return processMap;
    }

    public static class getTargetsToBuild<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTargetsToBuild_args> {
      public getTargetsToBuild() {
        super("getTargetsToBuild");
      }

      public getTargetsToBuild_args getEmptyArgsInstance() {
        return new getTargetsToBuild_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public getTargetsToBuild_result getResult(I iface, getTargetsToBuild_args args) throws org.apache.thrift.TException {
        getTargetsToBuild_result result = new getTargetsToBuild_result();
        result.success = iface.getTargetsToBuild(args.request);
        return result;
      }
    }

    public static class finishedBuilding<I extends Iface> extends org.apache.thrift.ProcessFunction<I, finishedBuilding_args> {
      public finishedBuilding() {
        super("finishedBuilding");
      }

      public finishedBuilding_args getEmptyArgsInstance() {
        return new finishedBuilding_args();
      }

      protected boolean isOneway() {
        return false;
      }

      public finishedBuilding_result getResult(I iface, finishedBuilding_args args) throws org.apache.thrift.TException {
        finishedBuilding_result result = new finishedBuilding_result();
        result.success = iface.finishedBuilding(args.request);
        return result;
      }
    }

  }

  public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
    private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(AsyncProcessor.class.getName());
    public AsyncProcessor(I iface) {
      super(iface, getProcessMap(new java.util.HashMap<java.lang.String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
    }

    protected AsyncProcessor(I iface, java.util.Map<java.lang.String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
      super(iface, getProcessMap(processMap));
    }

    private static <I extends AsyncIface> java.util.Map<java.lang.String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase,?>> getProcessMap(java.util.Map<java.lang.String,  org.apache.thrift.AsyncProcessFunction<I, ? extends  org.apache.thrift.TBase, ?>> processMap) {
      processMap.put("getTargetsToBuild", new getTargetsToBuild());
      processMap.put("finishedBuilding", new finishedBuilding());
      return processMap;
    }

    public static class getTargetsToBuild<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getTargetsToBuild_args, GetTargetsToBuildResponse> {
      public getTargetsToBuild() {
        super("getTargetsToBuild");
      }

      public getTargetsToBuild_args getEmptyArgsInstance() {
        return new getTargetsToBuild_args();
      }

      public org.apache.thrift.async.AsyncMethodCallback<GetTargetsToBuildResponse> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new org.apache.thrift.async.AsyncMethodCallback<GetTargetsToBuildResponse>() {
          public void onComplete(GetTargetsToBuildResponse o) {
            getTargetsToBuild_result result = new getTargetsToBuild_result();
            result.success = o;
            try {
              fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
            } catch (org.apache.thrift.transport.TTransportException e) {
              _LOGGER.error("TTransportException writing to internal frame buffer", e);
              fb.close();
            } catch (java.lang.Exception e) {
              _LOGGER.error("Exception writing to internal frame buffer", e);
              onError(e);
            }
          }
          public void onError(java.lang.Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TSerializable msg;
            getTargetsToBuild_result result = new getTargetsToBuild_result();
            if (e instanceof org.apache.thrift.transport.TTransportException) {
              _LOGGER.error("TTransportException inside handler", e);
              fb.close();
              return;
            } else if (e instanceof org.apache.thrift.TApplicationException) {
              _LOGGER.error("TApplicationException inside handler", e);
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TApplicationException)e;
            } else {
              _LOGGER.error("Exception inside handler", e);
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
            } catch (java.lang.Exception ex) {
              _LOGGER.error("Exception writing to internal frame buffer", ex);
              fb.close();
            }
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, getTargetsToBuild_args args, org.apache.thrift.async.AsyncMethodCallback<GetTargetsToBuildResponse> resultHandler) throws org.apache.thrift.TException {
        iface.getTargetsToBuild(args.request,resultHandler);
      }
    }

    public static class finishedBuilding<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, finishedBuilding_args, FinishedBuildingResponse> {
      public finishedBuilding() {
        super("finishedBuilding");
      }

      public finishedBuilding_args getEmptyArgsInstance() {
        return new finishedBuilding_args();
      }

      public org.apache.thrift.async.AsyncMethodCallback<FinishedBuildingResponse> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
        final org.apache.thrift.AsyncProcessFunction fcall = this;
        return new org.apache.thrift.async.AsyncMethodCallback<FinishedBuildingResponse>() {
          public void onComplete(FinishedBuildingResponse o) {
            finishedBuilding_result result = new finishedBuilding_result();
            result.success = o;
            try {
              fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
            } catch (org.apache.thrift.transport.TTransportException e) {
              _LOGGER.error("TTransportException writing to internal frame buffer", e);
              fb.close();
            } catch (java.lang.Exception e) {
              _LOGGER.error("Exception writing to internal frame buffer", e);
              onError(e);
            }
          }
          public void onError(java.lang.Exception e) {
            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
            org.apache.thrift.TSerializable msg;
            finishedBuilding_result result = new finishedBuilding_result();
            if (e instanceof org.apache.thrift.transport.TTransportException) {
              _LOGGER.error("TTransportException inside handler", e);
              fb.close();
              return;
            } else if (e instanceof org.apache.thrift.TApplicationException) {
              _LOGGER.error("TApplicationException inside handler", e);
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = (org.apache.thrift.TApplicationException)e;
            } else {
              _LOGGER.error("Exception inside handler", e);
              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
              msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
            }
            try {
              fcall.sendResponse(fb,msg,msgType,seqid);
            } catch (java.lang.Exception ex) {
              _LOGGER.error("Exception writing to internal frame buffer", ex);
              fb.close();
            }
          }
        };
      }

      protected boolean isOneway() {
        return false;
      }

      public void start(I iface, finishedBuilding_args args, org.apache.thrift.async.AsyncMethodCallback<FinishedBuildingResponse> resultHandler) throws org.apache.thrift.TException {
        iface.finishedBuilding(args.request,resultHandler);
      }
    }

  }

  public static class getTargetsToBuild_args implements org.apache.thrift.TBase<getTargetsToBuild_args, getTargetsToBuild_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTargetsToBuild_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTargetsToBuild_args");

    private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);

    private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTargetsToBuild_argsStandardSchemeFactory();
    private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTargetsToBuild_argsTupleSchemeFactory();

    public GetTargetsToBuildRequest request; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      REQUEST((short)1, "request");

      private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();

      static {
        for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 1: // REQUEST
            return REQUEST;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(java.lang.String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final java.lang.String _fieldName;

      _Fields(short thriftId, java.lang.String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public java.lang.String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTargetsToBuildRequest.class)));
      metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTargetsToBuild_args.class, metaDataMap);
    }

    public getTargetsToBuild_args() {
    }

    public getTargetsToBuild_args(
      GetTargetsToBuildRequest request)
    {
      this();
      this.request = request;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getTargetsToBuild_args(getTargetsToBuild_args other) {
      if (other.isSetRequest()) {
        this.request = new GetTargetsToBuildRequest(other.request);
      }
    }

    public getTargetsToBuild_args deepCopy() {
      return new getTargetsToBuild_args(this);
    }

    @Override
    public void clear() {
      this.request = null;
    }

    public GetTargetsToBuildRequest getRequest() {
      return this.request;
    }

    public getTargetsToBuild_args setRequest(GetTargetsToBuildRequest request) {
      this.request = request;
      return this;
    }

    public void unsetRequest() {
      this.request = null;
    }

    /** Returns true if field request is set (has been assigned a value) and false otherwise */
    public boolean isSetRequest() {
      return this.request != null;
    }

    public void setRequestIsSet(boolean value) {
      if (!value) {
        this.request = null;
      }
    }

    public void setFieldValue(_Fields field, java.lang.Object value) {
      switch (field) {
      case REQUEST:
        if (value == null) {
          unsetRequest();
        } else {
          setRequest((GetTargetsToBuildRequest)value);
        }
        break;

      }
    }

    public java.lang.Object getFieldValue(_Fields field) {
      switch (field) {
      case REQUEST:
        return getRequest();

      }
      throw new java.lang.IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new java.lang.IllegalArgumentException();
      }

      switch (field) {
      case REQUEST:
        return isSetRequest();
      }
      throw new java.lang.IllegalStateException();
    }

    @Override
    public boolean equals(java.lang.Object that) {
      if (that == null)
        return false;
      if (that instanceof getTargetsToBuild_args)
        return this.equals((getTargetsToBuild_args)that);
      return false;
    }

    public boolean equals(getTargetsToBuild_args that) {
      if (that == null)
        return false;
      if (this == that)
        return true;

      boolean this_present_request = true && this.isSetRequest();
      boolean that_present_request = true && that.isSetRequest();
      if (this_present_request || that_present_request) {
        if (!(this_present_request && that_present_request))
          return false;
        if (!this.request.equals(that.request))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      int hashCode = 1;

      hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
      if (isSetRequest())
        hashCode = hashCode * 8191 + request.hashCode();

      return hashCode;
    }

    @Override
    public int compareTo(getTargetsToBuild_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = java.lang.Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetRequest()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      scheme(iprot).read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      scheme(oprot).write(oprot, this);
    }

    @Override
    public java.lang.String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder("getTargetsToBuild_args(");
      boolean first = true;

      sb.append("request:");
      if (this.request == null) {
        sb.append("null");
      } else {
        sb.append(this.request);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
      if (request != null) {
        request.validate();
      }
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getTargetsToBuild_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
      public getTargetsToBuild_argsStandardScheme getScheme() {
        return new getTargetsToBuild_argsStandardScheme();
      }
    }

    private static class getTargetsToBuild_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getTargetsToBuild_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getTargetsToBuild_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
            break;
          }
          switch (schemeField.id) {
            case 1: // REQUEST
              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
                struct.request = new GetTargetsToBuildRequest();
                struct.request.read(iprot);
                struct.setRequestIsSet(true);
              } else {
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getTargetsToBuild_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.request != null) {
          oprot.writeFieldBegin(REQUEST_FIELD_DESC);
          struct.request.write(oprot);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getTargetsToBuild_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
      public getTargetsToBuild_argsTupleScheme getScheme() {
        return new getTargetsToBuild_argsTupleScheme();
      }
    }

    private static class getTargetsToBuild_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getTargetsToBuild_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getTargetsToBuild_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet optionals = new java.util.BitSet();
        if (struct.isSetRequest()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetRequest()) {
          struct.request.write(oprot);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getTargetsToBuild_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.request = new GetTargetsToBuildRequest();
          struct.request.read(iprot);
          struct.setRequestIsSet(true);
        }
      }
    }

    private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
      return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
    }
  }

  public static class getTargetsToBuild_result implements org.apache.thrift.TBase<getTargetsToBuild_result, getTargetsToBuild_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTargetsToBuild_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTargetsToBuild_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);

    private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getTargetsToBuild_resultStandardSchemeFactory();
    private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getTargetsToBuild_resultTupleSchemeFactory();

    public GetTargetsToBuildResponse success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();

      static {
        for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(java.lang.String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final java.lang.String _fieldName;

      _Fields(short thriftId, java.lang.String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public java.lang.String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetTargetsToBuildResponse.class)));
      metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTargetsToBuild_result.class, metaDataMap);
    }

    public getTargetsToBuild_result() {
    }

    public getTargetsToBuild_result(
      GetTargetsToBuildResponse success)
    {
      this();
      this.success = success;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public getTargetsToBuild_result(getTargetsToBuild_result other) {
      if (other.isSetSuccess()) {
        this.success = new GetTargetsToBuildResponse(other.success);
      }
    }

    public getTargetsToBuild_result deepCopy() {
      return new getTargetsToBuild_result(this);
    }

    @Override
    public void clear() {
      this.success = null;
    }

    public GetTargetsToBuildResponse getSuccess() {
      return this.success;
    }

    public getTargetsToBuild_result setSuccess(GetTargetsToBuildResponse success) {
      this.success = success;
      return this;
    }

    public void unsetSuccess() {
      this.success = null;
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return this.success != null;
    }

    public void setSuccessIsSet(boolean value) {
      if (!value) {
        this.success = null;
      }
    }

    public void setFieldValue(_Fields field, java.lang.Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((GetTargetsToBuildResponse)value);
        }
        break;

      }
    }

    public java.lang.Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return getSuccess();

      }
      throw new java.lang.IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new java.lang.IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new java.lang.IllegalStateException();
    }

    @Override
    public boolean equals(java.lang.Object that) {
      if (that == null)
        return false;
      if (that instanceof getTargetsToBuild_result)
        return this.equals((getTargetsToBuild_result)that);
      return false;
    }

    public boolean equals(getTargetsToBuild_result that) {
      if (that == null)
        return false;
      if (this == that)
        return true;

      boolean this_present_success = true && this.isSetSuccess();
      boolean that_present_success = true && that.isSetSuccess();
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (!this.success.equals(that.success))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      int hashCode = 1;

      hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
      if (isSetSuccess())
        hashCode = hashCode * 8191 + success.hashCode();

      return hashCode;
    }

    @Override
    public int compareTo(getTargetsToBuild_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      scheme(iprot).read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      scheme(oprot).write(oprot, this);
      }

    @Override
    public java.lang.String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder("getTargetsToBuild_result(");
      boolean first = true;

      sb.append("success:");
      if (this.success == null) {
        sb.append("null");
      } else {
        sb.append(this.success);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
      if (success != null) {
        success.validate();
      }
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class getTargetsToBuild_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
      public getTargetsToBuild_resultStandardScheme getScheme() {
        return new getTargetsToBuild_resultStandardScheme();
      }
    }

    private static class getTargetsToBuild_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getTargetsToBuild_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, getTargetsToBuild_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
                struct.success = new GetTargetsToBuildResponse();
                struct.success.read(iprot);
                struct.setSuccessIsSet(true);
              } else {
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, getTargetsToBuild_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.success != null) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          struct.success.write(oprot);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class getTargetsToBuild_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
      public getTargetsToBuild_resultTupleScheme getScheme() {
        return new getTargetsToBuild_resultTupleScheme();
      }
    }

    private static class getTargetsToBuild_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getTargetsToBuild_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, getTargetsToBuild_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet optionals = new java.util.BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          struct.success.write(oprot);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, getTargetsToBuild_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.success = new GetTargetsToBuildResponse();
          struct.success.read(iprot);
          struct.setSuccessIsSet(true);
        }
      }
    }

    private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
      return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
    }
  }

  public static class finishedBuilding_args implements org.apache.thrift.TBase<finishedBuilding_args, finishedBuilding_args._Fields>, java.io.Serializable, Cloneable, Comparable<finishedBuilding_args>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("finishedBuilding_args");

    private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1);

    private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new finishedBuilding_argsStandardSchemeFactory();
    private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new finishedBuilding_argsTupleSchemeFactory();

    public FinishedBuildingRequest request; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      REQUEST((short)1, "request");

      private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();

      static {
        for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 1: // REQUEST
            return REQUEST;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(java.lang.String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final java.lang.String _fieldName;

      _Fields(short thriftId, java.lang.String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public java.lang.String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT,
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FinishedBuildingRequest.class)));
      metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(finishedBuilding_args.class, metaDataMap);
    }

    public finishedBuilding_args() {
    }

    public finishedBuilding_args(
      FinishedBuildingRequest request)
    {
      this();
      this.request = request;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public finishedBuilding_args(finishedBuilding_args other) {
      if (other.isSetRequest()) {
        this.request = new FinishedBuildingRequest(other.request);
      }
    }

    public finishedBuilding_args deepCopy() {
      return new finishedBuilding_args(this);
    }

    @Override
    public void clear() {
      this.request = null;
    }

    public FinishedBuildingRequest getRequest() {
      return this.request;
    }

    public finishedBuilding_args setRequest(FinishedBuildingRequest request) {
      this.request = request;
      return this;
    }

    public void unsetRequest() {
      this.request = null;
    }

    /** Returns true if field request is set (has been assigned a value) and false otherwise */
    public boolean isSetRequest() {
      return this.request != null;
    }

    public void setRequestIsSet(boolean value) {
      if (!value) {
        this.request = null;
      }
    }

    public void setFieldValue(_Fields field, java.lang.Object value) {
      switch (field) {
      case REQUEST:
        if (value == null) {
          unsetRequest();
        } else {
          setRequest((FinishedBuildingRequest)value);
        }
        break;

      }
    }

    public java.lang.Object getFieldValue(_Fields field) {
      switch (field) {
      case REQUEST:
        return getRequest();

      }
      throw new java.lang.IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new java.lang.IllegalArgumentException();
      }

      switch (field) {
      case REQUEST:
        return isSetRequest();
      }
      throw new java.lang.IllegalStateException();
    }

    @Override
    public boolean equals(java.lang.Object that) {
      if (that == null)
        return false;
      if (that instanceof finishedBuilding_args)
        return this.equals((finishedBuilding_args)that);
      return false;
    }

    public boolean equals(finishedBuilding_args that) {
      if (that == null)
        return false;
      if (this == that)
        return true;

      boolean this_present_request = true && this.isSetRequest();
      boolean that_present_request = true && that.isSetRequest();
      if (this_present_request || that_present_request) {
        if (!(this_present_request && that_present_request))
          return false;
        if (!this.request.equals(that.request))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      int hashCode = 1;

      hashCode = hashCode * 8191 + ((isSetRequest()) ? 131071 : 524287);
      if (isSetRequest())
        hashCode = hashCode * 8191 + request.hashCode();

      return hashCode;
    }

    @Override
    public int compareTo(finishedBuilding_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = java.lang.Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetRequest()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      scheme(iprot).read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      scheme(oprot).write(oprot, this);
    }

    @Override
    public java.lang.String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder("finishedBuilding_args(");
      boolean first = true;

      sb.append("request:");
      if (this.request == null) {
        sb.append("null");
      } else {
        sb.append(this.request);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
      if (request != null) {
        request.validate();
      }
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class finishedBuilding_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
      public finishedBuilding_argsStandardScheme getScheme() {
        return new finishedBuilding_argsStandardScheme();
      }
    }

    private static class finishedBuilding_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<finishedBuilding_args> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, finishedBuilding_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
            break;
          }
          switch (schemeField.id) {
            case 1: // REQUEST
              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
                struct.request = new FinishedBuildingRequest();
                struct.request.read(iprot);
                struct.setRequestIsSet(true);
              } else {
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, finishedBuilding_args struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.request != null) {
          oprot.writeFieldBegin(REQUEST_FIELD_DESC);
          struct.request.write(oprot);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class finishedBuilding_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
      public finishedBuilding_argsTupleScheme getScheme() {
        return new finishedBuilding_argsTupleScheme();
      }
    }

    private static class finishedBuilding_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<finishedBuilding_args> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, finishedBuilding_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet optionals = new java.util.BitSet();
        if (struct.isSetRequest()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetRequest()) {
          struct.request.write(oprot);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, finishedBuilding_args struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.request = new FinishedBuildingRequest();
          struct.request.read(iprot);
          struct.setRequestIsSet(true);
        }
      }
    }

    private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
      return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
    }
  }

  public static class finishedBuilding_result implements org.apache.thrift.TBase<finishedBuilding_result, finishedBuilding_result._Fields>, java.io.Serializable, Cloneable, Comparable<finishedBuilding_result>   {
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("finishedBuilding_result");

    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);

    private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new finishedBuilding_resultStandardSchemeFactory();
    private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new finishedBuilding_resultTupleSchemeFactory();

    public FinishedBuildingResponse success; // required

    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
      SUCCESS((short)0, "success");

      private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();

      static {
        for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
          byName.put(field.getFieldName(), field);
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, or null if its not found.
       */
      public static _Fields findByThriftId(int fieldId) {
        switch(fieldId) {
          case 0: // SUCCESS
            return SUCCESS;
          default:
            return null;
        }
      }

      /**
       * Find the _Fields constant that matches fieldId, throwing an exception
       * if it is not found.
       */
      public static _Fields findByThriftIdOrThrow(int fieldId) {
        _Fields fields = findByThriftId(fieldId);
        if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
        return fields;
      }

      /**
       * Find the _Fields constant that matches name, or null if its not found.
       */
      public static _Fields findByName(java.lang.String name) {
        return byName.get(name);
      }

      private final short _thriftId;
      private final java.lang.String _fieldName;

      _Fields(short thriftId, java.lang.String fieldName) {
        _thriftId = thriftId;
        _fieldName = fieldName;
      }

      public short getThriftFieldId() {
        return _thriftId;
      }

      public java.lang.String getFieldName() {
        return _fieldName;
      }
    }

    // isset id assignments
    public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
    static {
      java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FinishedBuildingResponse.class)));
      metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(finishedBuilding_result.class, metaDataMap);
    }

    public finishedBuilding_result() {
    }

    public finishedBuilding_result(
      FinishedBuildingResponse success)
    {
      this();
      this.success = success;
    }

    /**
     * Performs a deep copy on <i>other</i>.
     */
    public finishedBuilding_result(finishedBuilding_result other) {
      if (other.isSetSuccess()) {
        this.success = new FinishedBuildingResponse(other.success);
      }
    }

    public finishedBuilding_result deepCopy() {
      return new finishedBuilding_result(this);
    }

    @Override
    public void clear() {
      this.success = null;
    }

    public FinishedBuildingResponse getSuccess() {
      return this.success;
    }

    public finishedBuilding_result setSuccess(FinishedBuildingResponse success) {
      this.success = success;
      return this;
    }

    public void unsetSuccess() {
      this.success = null;
    }

    /** Returns true if field success is set (has been assigned a value) and false otherwise */
    public boolean isSetSuccess() {
      return this.success != null;
    }

    public void setSuccessIsSet(boolean value) {
      if (!value) {
        this.success = null;
      }
    }

    public void setFieldValue(_Fields field, java.lang.Object value) {
      switch (field) {
      case SUCCESS:
        if (value == null) {
          unsetSuccess();
        } else {
          setSuccess((FinishedBuildingResponse)value);
        }
        break;

      }
    }

    public java.lang.Object getFieldValue(_Fields field) {
      switch (field) {
      case SUCCESS:
        return getSuccess();

      }
      throw new java.lang.IllegalStateException();
    }

    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
    public boolean isSet(_Fields field) {
      if (field == null) {
        throw new java.lang.IllegalArgumentException();
      }

      switch (field) {
      case SUCCESS:
        return isSetSuccess();
      }
      throw new java.lang.IllegalStateException();
    }

    @Override
    public boolean equals(java.lang.Object that) {
      if (that == null)
        return false;
      if (that instanceof finishedBuilding_result)
        return this.equals((finishedBuilding_result)that);
      return false;
    }

    public boolean equals(finishedBuilding_result that) {
      if (that == null)
        return false;
      if (this == that)
        return true;

      boolean this_present_success = true && this.isSetSuccess();
      boolean that_present_success = true && that.isSetSuccess();
      if (this_present_success || that_present_success) {
        if (!(this_present_success && that_present_success))
          return false;
        if (!this.success.equals(that.success))
          return false;
      }

      return true;
    }

    @Override
    public int hashCode() {
      int hashCode = 1;

      hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
      if (isSetSuccess())
        hashCode = hashCode * 8191 + success.hashCode();

      return hashCode;
    }

    @Override
    public int compareTo(finishedBuilding_result other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSuccess()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }

    public _Fields fieldForId(int fieldId) {
      return _Fields.findByThriftId(fieldId);
    }

    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
      scheme(iprot).read(iprot, this);
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
      scheme(oprot).write(oprot, this);
      }

    @Override
    public java.lang.String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder("finishedBuilding_result(");
      boolean first = true;

      sb.append("success:");
      if (this.success == null) {
        sb.append("null");
      } else {
        sb.append(this.success);
      }
      first = false;
      sb.append(")");
      return sb.toString();
    }

    public void validate() throws org.apache.thrift.TException {
      // check for required fields
      // check for sub-struct validity
      if (success != null) {
        success.validate();
      }
    }

    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
      try {
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
      try {
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
      } catch (org.apache.thrift.TException te) {
        throw new java.io.IOException(te);
      }
    }

    private static class finishedBuilding_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
      public finishedBuilding_resultStandardScheme getScheme() {
        return new finishedBuilding_resultStandardScheme();
      }
    }

    private static class finishedBuilding_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<finishedBuilding_result> {

      public void read(org.apache.thrift.protocol.TProtocol iprot, finishedBuilding_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TField schemeField;
        iprot.readStructBegin();
        while (true)
        {
          schemeField = iprot.readFieldBegin();
          if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
            break;
          }
          switch (schemeField.id) {
            case 0: // SUCCESS
              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
                struct.success = new FinishedBuildingResponse();
                struct.success.read(iprot);
                struct.setSuccessIsSet(true);
              } else {
                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
              }
              break;
            default:
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
          }
          iprot.readFieldEnd();
        }
        iprot.readStructEnd();

        // check for required fields of primitive type, which can't be checked in the validate method
        struct.validate();
      }

      public void write(org.apache.thrift.protocol.TProtocol oprot, finishedBuilding_result struct) throws org.apache.thrift.TException {
        struct.validate();

        oprot.writeStructBegin(STRUCT_DESC);
        if (struct.success != null) {
          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
          struct.success.write(oprot);
          oprot.writeFieldEnd();
        }
        oprot.writeFieldStop();
        oprot.writeStructEnd();
      }

    }

    private static class finishedBuilding_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
      public finishedBuilding_resultTupleScheme getScheme() {
        return new finishedBuilding_resultTupleScheme();
      }
    }

    private static class finishedBuilding_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<finishedBuilding_result> {

      @Override
      public void write(org.apache.thrift.protocol.TProtocol prot, finishedBuilding_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet optionals = new java.util.BitSet();
        if (struct.isSetSuccess()) {
          optionals.set(0);
        }
        oprot.writeBitSet(optionals, 1);
        if (struct.isSetSuccess()) {
          struct.success.write(oprot);
        }
      }

      @Override
      public void read(org.apache.thrift.protocol.TProtocol prot, finishedBuilding_result struct) throws org.apache.thrift.TException {
        org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
        java.util.BitSet incoming = iprot.readBitSet(1);
        if (incoming.get(0)) {
          struct.success = new FinishedBuildingResponse();
          struct.success.read(iprot);
          struct.setSuccessIsSet(true);
        }
      }
    }

    private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
      return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
    }
  }

}


text:
/* Table of Content

==================================================
	#Site Styles
	#Page Styles
	#Media Queries
	#Font-Face */

/* #Site Styles
================================================== */

/* #Page Styles
================================================== */

/* #Media Queries
================================================== */

	/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 9999px) {

	#languageToggle{
		position:absolute;
		right:0px;
		top:-3px;
		width:170px;
		height: 42px;
		border-left: 1px solid #fff;
		padding: 0 0 0 10px;
	}
	.language {
		float:left;
		padding:2px 5px 2px 5px;
		vertical-align: middle;
		margin: 12px 0 5px 0;
	}
	.language a {
		color: gray;
		text-decoration:none !important;
	}
	#navMenu{
		position: absolute;
		right: 190px;
		top: 15px;
	}
	.one-language #navMenu {
		right: 10px;
	}
	.one-language #languageToggle {
		display: none;
	}
	#navMenu ul li{
		float: left;
		padding:0 10px 0 5px;
		margin-bottom:0px;
		height: 40px;
	}
	#spanish{
		border-left: 1px solid #fff;
	}
	#flagTitle{
		position:absolute;
		top:9px;
		right:10px;
		font-size:16px;
		z-index:500;
		width: 145px;
		padding-left: 20px;
	}
}
#flagTitle:hover{
	color:black;
	text-decoration:none;
}

#languageSpanish>div,
#languageBahasa>div{
	float:left;
}

#basemapContainer{
	position:absolute;
	left:100px;
	top:10px;
	z-index:20;
}

#basemapContentPane{
	width:300px;
	height:200px;
}

#map{
position:absolute;
left:0;
right:0;
bottom:0;
top:0px;

}

#mapTools {
	position:absolute;
	background-color: #ccc;
	right:10px;
	top:10px;
	width:400px;
	height:300px;
	z-index:20;
}

#mapLegend {
	position:absolute;
	background-color: #ccc;
	right:10px;
	bottom:10px;
	width:300px;
	height:200px;
	z-index:20;
}

#countryFlagContainer{
	text-align:right;
	height:100%;
	line-height: 70px;
	position:relative;
	margin-right: 280px;
	vertical-align: middle;
	margin-top: -7px;

}

#countryFlag {
	vertical-align: middle;
	margin-top: 8px;
	height: 40px;
	float: right;
}

.app label{
	display:inline;
}

#editingDiv{
	width:100%;
	height:100%;
}
#searchMenu{
	postion: absolute;
	z-index:1400;
}
#search{

	float:left;
}

#mobileMenu {
	display: none;
}

#gridDiv {
  	height: 240px;
  	font-size: 14px;
}

.editorDialogPane {
	position:absolute;
	top:100px;
	left:300px;
	width:400px;
	height:400px;
	overflow-y:auto;
	font-size: 12px;
}

.legendMoreOptions{
	position:absolute;
	right:3px;
	top:3px;
}

.legendContainer{
	max-height: 300px;
	position:absolute;
	right:80px;
	z-Index:999;
	overflow:hidden;
	max-width:300px;
}

#mainTitle{
	display: block;
	text-align: left;
	line-height: 58px;
	vertical-align: middle;
	position:absolute;
	width: 100%;
	height:58px;
	font-size: 26px;
	font-weight: 600;
	margin: 0px 12px;
	background-color: rgb(255,255,255);
}

.app #mainTitle h4{
	line-height: 60px;
}

#layersCP p{
	text-align: center;
	margin: 10px 0 0 0;
}
#carpeLink{
	position:absolute;
	bottom: 5px;
	left:30px;
	cursor:pointer;
}
#usaidLink{
	position:absolute;
	bottom: 5px;
	left:150px;
	cursor:pointer;
}

#mobileFlagContainer {
	position: absolute;
	display: none;
	z-index: 5000;
	left: 0;
}

#mobileFlagContainer img {
	height: 42px;
}

#mobileMenu {
	background: rgb(240, 171, 0);
	padding: 20px 20px 0;
	position: absolute;
	display: none;
	z-index: 500;
	width: 100%;
	top: 43px;
}

#mobileToggle {
	position: absolute;
	cursor: pointer;
	display: none;
	height: 32px;
	width: 32px;
	right: 22px;
	top: 5px;
}

#mobileToggle .mobileMenuButton {
  -webkit-box-shadow: 1px 8px 0 2px #69737d, 1px 16px 0 2px #69737d, 1px 24px 0 2px #69737d;
  box-shadow: 0 8px 0 2px #69737d, 0 16px 0 2px #69737d, 0 24px 0 2px #69737d;
  position: absolute;
  content: "";
  width: 20px;
  left: 5px;
}

#stackContainer .esriPopup {
	display: none;
}

/*#mobilePopupUnderlay {
	background-color: #CCC;
	position: absolute;
	z-index: 9999;
	display: none;
	opacity: 0.75;
	bottom: 0;
	right: 0;
	left: 0;
	top: 0;
}*/

#customPopup {
	background-color: #fff;
	border: 1px solid #b5b5b5;
	box-sizing: border-box;
	position: absolute;
	overflow: hidden;
	display: none;
	z-index: 999;
	width: 400px;
	top: 100px;
	bottom: 0;
	left: 0;
}

#customPopupClose {
	background: url('../images/close_x.png') no-repeat center;
	position: absolute;
	cursor: pointer;
	height: 50px;
	width: 50px;
	z-index: 10;
	right: 0;
	top: 0;
}

.customPopupPrevious,
.customPopupNext {
	position: absolute;
	font-size: 35px;
	cursor: pointer;
	z-index: 50;
	color: #FFF;
	top: 10px;
}

.customPopupPrevious {
	background: url('../images/popup.png') no-repeat center;
	background-position: -24px 0;
	height: 15px;
	width: 15px;
	right: 30px;
}

.customPopupNext {
	background: url('../images/popup.png') no-repeat center;
	background-position: -12px 0;
	height: 15px;
	width: 15px;
	right: 5px;
}

#customPopupBody {
	position: absolute;
	background: #CCC;
	height: 100%;
	width: 100%;
}

#popupTabs {
	position: absolute;
	height: 40px;
	z-index: 5;
	top: 10px;
	right: 0;
	left: 0;
}

#popupTabs:first-child {
	margin-left: 5px;
}

.popup-tab {
	box-sizing: border-box;
	display: inline-block;
	border-bottom: none;
	line-height: 34px;
	cursor: pointer;
	font-size: 18px;
	padding: 0 5px;
	margin: 0 2px;
	height: 40px;
	color: #000;
}

#popupTabContent {
	border-top: 1px solid #000;
	position: absolute;
	overflow-y: auto;
	background: #FFF;
	top: 50px;
	bottom: 0;
	right: 0;
	left: 0;
}

.popup-tab.active {
	border-top: 6px solid #eeab02;
	background-color: #FFF;
}

.draw-uploaded-feature #popupDataTab,
.draw-uploaded-feature #popupData,
.draw-uploaded-feature #analysis-footer .actionList,
.draw-uploaded-feature #analysis-footer #legislative {
	display: none;
}

.draw-uploaded-feature .results-header .title {
	padding-left: 36px;
}

.results-container {
	position: absolute;
	top: 40px;
	bottom: 0;
	right: 0;
	left: 0;
}

#analysis-loader,
#documents-loader,
#results-chart-container {
	background-color: #FFF;
	position: absolute;
	bottom: 30px;
	right: 0;
	left: 0;
	top: 0;
}

.popup-footer {
	position: absolute;
	height: 30px;
	bottom: 0;
	right: 0;
	left: 0;
}

#analysis-loader,
#documents-loader {
	z-index: 50;
}

.analysis-options-row,
.analysis-options-row-header {
	padding-left: 5px;
	font-size: 13px;
}

.analysis-options-row-header {
	font-weight: bold;
}

.analysis-options-row .active {
	border-bottom: 3px solid red;
}

.analysis-options-row span {
	white-space: nowrap;
	cursor: pointer;
	padding: 0 4px;
}

#analysis-loader .loading-wheel,
#documents-loader .loading-wheel {
	background: url('../images/ajax-loader.gif') center no-repeat;
	background-size: 32px;
	position: absolute;
	margin-left: -16px;
	margin-top: -16px;
	height: 32px;
	width: 32px;
	left: 50%;
	top: 50%;
}

#results-chart-container {
	overflow: auto;
}

#analysis-chart {
	height: 100%;
	width: 98%; /* Give the labels a little extra padding */
}

.slope-select-label {
	padding-left: 10px;
}

.slope-select select {
	position: relative;
	text-align: center;
	display: inline;
	width: 100px;
	left: 5px;
	top: -2px;
}

.restoration-chart {
	height: 135px;
}

.restoration-chart.error {
	height: auto;
}

.restoration-chart-title {
	font-weight: bold;
	margin-left: 5px;
	font-size: 16px;
}

.restoration-nodata {
	border: 3px solid rgb(240, 171, 0);
	text-align: center;
	padding: 10px 20px;
	margin: 30px auto;
	font-size: 18px;
	width: 200px;
}

.restoration-error {
	border: 3px solid rgb(240, 0, 0);
	text-align: center;
	padding: 10px 20px;
	margin: 30px auto;
	font-size: 18px;
	width: 200px;
}

.highcharts-title {
	font-size: 12px !important;
	left: 5px !important;
	top: 5px !important;
}

.highcharts-button {
	transform: translate(365px, 0px) !important;
}

.highcharts-tooltip span {
	white-space: normal !important;
	width: 240px;
	height: auto;
}

.result-badge {
	position: relative;
	text-align: center;
	padding: 10px 20px;
	margin: 10px auto;
	font-size: 18px;
	width: 200px;
	top: 30px;
}
.result-badge.fires {
	border: 3px solid rgb(240, 171, 0);
}
.result-badge.gain {
	border: 3px solid #6d6de5;
}
.gain-count {
	font-size: 24px;
	color: #6d6de5;
}
.result-badge.loss {
	border: 3px solid #DE86A9;
}
.loss-count {
	font-size: 24px;
	color: #DE86A9;
}
.result-badge div {
	margin: 5px 0;
}
.fire-count {
	font-size: 24px;
	color: red;
}
.unavailable-badge {
	border: 3px solid rgb(240, 171, 0);
	text-align: center;
	padding: 10px 20px;
	margin: 30px auto;
	font-size: 18px;
	width: 200px;
}

.hidden {
	display: none;
}

.esriPopupWrapper {
	width: auto !important;
	bottom: 0 !important;
	right: 0 !important;
	left: 0 !important;
	top: 0 !important;
}

.esriPopupWrapper .sizer,
.esriPopupWrapper .contentPane {
	width: 100% !important;
}

.esriPopupWrapper .actionsPane {
	width: auto !important;
}

.esriPopupWrapper .contentPane {
	position: absolute;
	overflow-y: auto;
	bottom: 30px;
	top: 40px;
}

.clear-all-features {
	text-decoration: underline;
	margin: 10px 20px 5px 0;
	cursor: pointer;
	display: none;
	float: right;
	color: blue;
}

.documents-results {
	position: absolute;
	overflow-y: auto;
	bottom: 30px;
	right: 0;
	left: 0;
	top: 0;
}

.documents-not-available {
	font-size: 16px;
	margin: 10px;
}

.feature-documents {
	margin: 10px;
	width: 380px;
}

.feature-documents a {
	background: url('../images/download.png') no-repeat center bottom;
	background-size: 16px;
	padding-top: 5px;
	display: block;
	height: 16px;
	width: 16px;
}

.table-header {
	font-weight: bold;
	text-align: left;
}

/* Hide some elements earlier to prevent collisions with other elements */
@media only screen and (max-width: 900px) {
	#searchBox {
		display: none;
	}
}

/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {

	#flagTitle,
	#navMenu,
	#uploadFeatures {
		display: none;
	}

	#mobileToggle,
	#mobileFlagContainer,
	.open-layers-button {
		display: block;
	}

	#navView {
		border-bottom: 1px solid #000;
		box-shadow: none !important;
		top: 0 !important;
	}

	#languageToggle {
		width: 180px !important;
		border-left: none;
		right: 60px;
		top: -3px; /* Top is -3 because the content is not vertically centered, this improves it */
	}

	#languageToggle a {
		float: right;
	}

	.analysis-controls-container {
		width: 150px !important;
	}

	.basemap-container {
		height: 250px !important;
		width: 150px !important;
	}

	#toolsContainer {
		top: 43px !important;
		width: 0;
	}

	#stackContainer {
		top: 43px !important;
	}

	#customPopup {
		width: auto;
		bottom: 0;
		right: 0;
		left: 0;
		top: 0;
	}

	#headerView {
		height: 0px !important;
	}

	#analysis-loader,
	#documents-loader,
	#results-chart-container {
		bottom: 0;
	}

	#analysis-footer {
		display: none;
	}

	.landsat-layers {
		height: 60px;
	}

	.analysis-options-select {
		width: 185px;
	}

	.tree-cover-dialog {
		border: 2px solid black;
		margin-left: -120px;
		height: 220px;
		width: 240px;
		left: 45%;
	}

	.mobile-map-theme-list {
		margin-top: 10px;
	}

	.mobile-map-theme-list a {
		display: inline-block;
		margin-right: 20px;
	}

}

/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {}
/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 500px) {}
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {}

redpajama_set_name: RedPajamaGithub


text:
FROM java:8

VOLUME /tmp
ADD project-rest-api-1.0-SNAPSHOT.jar app.jar
ADD wait-for-it.sh wait-for-it.sh
ADD start.sh start.sh

RUN chmod +x wait-for-it.sh
RUN chmod +x start.sh

EXPOSE 8082

RUN sh -c 'touch /app.jar'
CMD ["sh", "start.sh"]


text:
<?php
/**
 * Created by PhpStorm.
 * User: air
 * Date: 16/9/11
 * Time: 下午2:33
 */

namespace common\helpers;

class WechatHelper
{
    /**
     * @param bool|false $refresh
     * @return bool
     */
    public static function accessToken($refresh = false)
    {
        $cacheName = "WechatAccessToken";
        if ($accessToken = \Yii::$app->cache->get($cacheName) && !$refresh) {

        } else {
            $response = \Requests::get("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . \Yii::$app->params['wechat']["appid"] . "&secret=" . \Yii::$app->params['wechat']["secret"]);
            $response = json_decode($response->body, true);
            $accessToken = $response["access_token"];
            \Yii::$app->cache->set($cacheName, $accessToken, 6000);
        }

        return $accessToken;
    }

    /**
     * @return false|mixed|null
     */
    public static function jsApiTicket()
    {
        $cacheName = "WechatJSTicket";
        if ($accessToken = \Yii::$app->cache->get($cacheName)) {

        } else {
            $response = \Requests::get("https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=" . self::accessToken() . "&type=jsapi");
            $response = json_decode($response->body, true);
            if (!isset($response["ticket"])) {
                \Yii::$app->cache->set("WechatAccessToken", null);
                return null;
            }
            $accessToken = $response["ticket"];
            \Yii::$app->cache->set($cacheName, $accessToken, 6000);
        }

        return $accessToken;
    }

    /**
     * @return array
     */
    public static function jsApiSignature()
    {
        // 注意 URL 一定要动态获取.
        $protocol = CommonHelper::currentProtocol();
        $url = "$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";

        $result = [
            "jsapi_ticket" => self::jsApiTicket(),
            "noncestr" => uniqid(),
            "timestamp" => time(),
            "url" => $url,
        ];
        $str = [];
        foreach ($result as $k => $v) {
            $str[] = $k . "=" . $v;
        }

        $return = [
            "debug" => false,
            "appId" => \Yii::$app->params['wechat']["appid"],
            "timestamp" => $result["timestamp"],
            "nonceStr" => $result["noncestr"],
            "signature" => sha1(implode("&", $str)),
            "jsApiList" => [
                "onMenuShareTimeline",
                "onMenuShareAppMessage",
                "onMenuShareWeibo",
                "onMenuShareQQ",
            ],
        ];

        return $return;
    }
}


text:
"""Entrypoint to start app."""

from cvrminer.app import create_app

app = create_app()

if __name__ == '__main__':
    app.run(debug=True)


text:
/**
 *
 */
package com.netflix.conductor.core.execution;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import com.netflix.conductor.common.metadata.tasks.Task;
import com.netflix.conductor.common.metadata.tasks.TaskDef;
import com.netflix.conductor.common.metadata.workflow.WorkflowTask;
import com.netflix.conductor.common.run.Workflow;

/**
 * @author Viren
 *
 */
public class SystemTask extends Task {

	private SystemTask(){}

	public static Task decisionTask(String workflowId, String taskId, String correlationId, String refName, Map<String, Object> input, String caseValue, List<String> caseOuput){
		SystemTask st = new SystemTask();
		st.setTaskType(SystemTaskType.DECISION.name());
		st.setTaskDefName(SystemTaskType.DECISION.name());
		st.setReferenceTaskName(refName);
		st.setWorkflowInstanceId(workflowId);
		st.setCorrelationId(correlationId);
		st.setScheduledTime(System.currentTimeMillis());
		st.setEndTime(System.currentTimeMillis());
		st.getInputData().put("case", caseValue);
		st.getOutputData().put("caseOutput", caseOuput);
		st.setTaskId(taskId);
		st.setStatus(Status.IN_PROGRESS);
		return st;
	}

	public static Task forkTask(String workflowId, String taskId, String correlationId, String refName, Map<String, Object> input){
		SystemTask st = new SystemTask();
		st.setTaskType(SystemTaskType.FORK.name());
		st.setTaskDefName(SystemTaskType.FORK.name());
		st.setReferenceTaskName(refName);
		st.setWorkflowInstanceId(workflowId);
		st.setCorrelationId(correlationId);
		st.setScheduledTime(System.currentTimeMillis());
		st.setEndTime(System.currentTimeMillis());
		st.setInputData(input);;
		st.setTaskId(taskId);
		st.setStatus(Status.COMPLETED);
		return st;
	}

	public static Task forkDynamicTask(String workflowId, String taskId, String correlationId, String refName, List<WorkflowTask> dynTaskList){
		SystemTask st = new SystemTask();
		st.setTaskType(SystemTaskType.FORK.name());
		st.setTaskDefName(SystemTaskType.FORK.name());
		st.setReferenceTaskName(refName);
		st.setWorkflowInstanceId(workflowId);
		st.setCorrelationId(correlationId);
		st.setScheduledTime(System.currentTimeMillis());
		st.setEndTime(System.currentTimeMillis());
		List<String> forkedTasks = dynTaskList.stream().map(t -> t.getTaskReferenceName()).collect(Collectors.toList());
		st.getInputData().put("forkedTasks", forkedTasks);
		st.getInputData().put("forkedTaskDefs", dynTaskList);	//TODO: Remove this parameter in the later releases
		st.setTaskId(taskId);
		st.setStatus(Status.COMPLETED);
		return st;
	}

	public static Task JoinTask(String workflowId, String taskId, String correlationId, String refName, Map<String, Object> input){
		SystemTask st = new SystemTask();
		st.setTaskType(SystemTaskType.JOIN.name());
		st.setTaskDefName(SystemTaskType.JOIN.name());
		st.setReferenceTaskName(refName);
		st.setWorkflowInstanceId(workflowId);
		st.setCorrelationId(correlationId);
		st.setScheduledTime(System.currentTimeMillis());
		st.setEndTime(System.currentTimeMillis());
		st.setInputData(input);
		st.setTaskId(taskId);
		st.setStatus(Status.IN_PROGRESS);
		return st;
	}

	public static Task subWorkflowTask(String workflowId, String taskId, String correlationId, String refName, String subWorkflowName, Integer subWorkflowVersion, Map<String, Object> workflowInput){
		SystemTask st = new SystemTask();
		st.setTaskType(SystemTaskType.SUB_WORKFLOW.name());
		st.setTaskDefName(SystemTaskType.SUB_WORKFLOW.name());
		st.setReferenceTaskName(refName);
		st.setWorkflowInstanceId(workflowId);
		st.setCorrelationId(correlationId);
		st.setScheduledTime(System.currentTimeMillis());
		st.setEndTime(System.currentTimeMillis());
		st.getInputData().put("subWorkflowName", subWorkflowName);
		st.getInputData().put("subWorkflowVersion", subWorkflowVersion);
		st.getInputData().put("workflowInput", workflowInput);
		st.setTaskId(taskId);
		st.setStatus(Status.SCHEDULED);
		return st;
	}

	public static Task userDefined(Workflow workflow, WorkflowTask taskToSchedule, TaskDef taskDef, int retryCount, String taskId, Map<String, Object> input) {
		String taskType = taskToSchedule.getType();
		SystemTask st = new SystemTask();
		st.setTaskType(taskType);
		st.setTaskDefName(taskToSchedule.getName());
		st.setReferenceTaskName(taskToSchedule.getTaskReferenceName());
		st.setWorkflowInstanceId(workflow.getWorkflowId());
		st.setCorrelationId(workflow.getCorrelationId());
		st.setScheduledTime(System.currentTimeMillis());
		st.setTaskId(taskId);
		st.setInputData(input);
		st.setStatus(Status.SCHEDULED);
		st.setCallbackFromWorker(taskToSchedule.isCallbackFromWorker());
	    st.setRetryCount(retryCount);
	    st.setCallbackAfterSeconds(taskToSchedule.getStartDelay());

		return st;
	}

}


text:
@interface CommandDelegate ()
@property(nonatomic) BOOL didStartExecution;
@property(nonatomic) BOOL didExecute;
@property(nonatomic, strong) NSError *error;
@property(nonatomic) BOOL cancelled;
@end

@implementation CommandDelegate

- (void)commandWillExecute:(FLCommand *)command {
    self.didStartExecution = YES;
}

- (void)command:(FLCommand *)command didExecuteWithError:(NSError *)error {
    self.didExecute = YES;
    self.error = error;
}

- (void)commandCancelled:(FLCommand *)command {
    self.cancelled = YES;
}

#pragma mark test states

- (BOOL)isInInitialState {
    return !self.didStartExecution &&
            !self.didExecute &&
            self.error == nil &&
            !self.cancelled;
}

- (BOOL)isInExecuteState {
    return self.didStartExecution &&
            !self.didExecute &&
            self.error == nil &&
            !self.cancelled;
}

- (BOOL)isInDidExecuteWithoutErrorState {
    return self.didStartExecution &&
            self.didExecute &&
            self.error == nil &&
            !self.cancelled;
}

- (BOOL)isInDidExecuteWithErrorState {
    return self.didStartExecution &&
            self.didExecute &&
            self.error != nil &&
            !self.cancelled;
}

- (BOOL)isInCancelledState {
    return !self.didExecute &&
            self.error == nil &&
            self.cancelled;
}

@end


text:
<form method="post" action="" id="frmModules">
    <input type="hidden" id="txtHcTemplateId" name="txtHcTemplateId" value="<?php echo $hid; ?>" />

                        Module Name
                        Create
                        Read
                        Update
                        Delete
                        Status

                    <?php
                    foreach ($active_modules as $org_module) {
                        $org_module_links = $this->utilities->findAllByAttribute("ati_module_links", array("MODULE_ID" => $org_module->MODULE_IDS, "ACTIVE_STATUS" => 1));
                        ?>

                              <?php echo $org_module->SA_MODULE_NAME; ?>

                        <?php
                        foreach ($org_module_links as $org_module_link):
                            $org_active_module_links = $this->utilities->findByAttribute("sa_org_mlinks", array("LINK_ID" => $org_module_link->LINK_ID, "ORG_ID" => $hid));
                            if (!empty($org_active_module_links)) {
                                $is_checked_create = ($org_active_module_links->CREATE == 1) ? "checked='checked'" : "";
                                $is_checked_read = ($org_active_module_links->READ == 1) ? "checked='checked'" : "";
                                $is_checked_update = ($org_active_module_links->UPDATE == 1) ? "checked='checked'" : "";
                                $is_checked_delete = ($org_active_module_links->DELETE == 1) ? "checked='checked'" : "";
                                $is_checked_status = ($org_active_module_links->STATUS == 1) ? "checked='checked'" : "";
                            }
                            ?>

                                <?php echo $org_module_link->LINK_NAME; ?>
                                <input type="checkbox" class="chkAssignPage" <?php echo (!empty($org_active_module_links)) ? $is_checked_create : ""; ?>  title="Create" value="<?php echo $org_module->SA_MODULE_ID . ',' . $org_module_link->LINK_ID . ',' . 'C' . "," . $hid; ?>" />
                                <input type="checkbox" class="chkAssignPage" <?php echo (!empty($org_active_module_links)) ? $is_checked_read : ""; ?>  title="Create" value="<?php echo $org_module->SA_MODULE_ID . ',' . $org_module_link->LINK_ID . ',' . 'R' . "," . $hid; ?>" />
                                <input type="checkbox" class="chkAssignPage" <?php echo (!empty($org_active_module_links)) ? $is_checked_update : ""; ?>  title="Create" value="<?php echo $org_module->SA_MODULE_ID . ',' . $org_module_link->LINK_ID . ',' . 'U' . "," . $hid; ?>" />

                                    <input type="checkbox" class="chkAssignPage" <?php echo (!empty($org_active_module_links)) ? $is_checked_delete : ""; ?>  title="Create" value="<?php echo $org_module->SA_MODULE_ID . ',' . $org_module_link->LINK_ID . ',' . 'D' . "," . $hid; ?>" />

                                    <input type="checkbox" class="chkAssignPage" <?php echo (!empty($org_active_module_links)) ? $is_checked_status : ""; ?>  title="Create" value="<?php echo $org_module->SA_MODULE_ID . ',' . $org_module_link->LINK_ID . ',' . 'S' . "," . $hid; ?>" />

                        <?php endforeach; ?>
                        <?php
                    }
                    ?>

</form>


text:
<?php

namespace Asm89\Twig\CacheExtension\Tests\CacheStrategy;

use Asm89\Twig\CacheExtension\CacheStrategy\LifetimeCacheStrategy;

class LifetimeCacheStrategyTest extends \PHPUnit_Framework_TestCase
{
    private $cacheProviderMock;

    public function createCacheStrategy()
    {
        $this->cacheProviderMock = $this->createCacheProviderMock();

        return new LifetimeCacheStrategy($this->cacheProviderMock);
    }

    public function testGenerateKeyUsesGivenLifetime()
    {
        $strategy = $this->createCacheStrategy();

        $key = $strategy->generateKey('v42', 42);

        $this->assertEquals(42, $key['lifetime']);
    }

    public function testGenerateKeyAnnotatesKey()
    {
        $strategy = $this->createCacheStrategy();

        $key = $strategy->generateKey('the_annotation', 42);

        $this->assertContains('the_annotation', $key['key']);
    }

    /**
     * @dataProvider getInvalidLifetimeValues
     * @expectedException \Asm89\Twig\CacheExtension\Exception\InvalidCacheLifetimeException
     */
    public function testGenerateKeyThrowsExceptionWhenNoLifetimeProvided($value)
    {
        $strategy = $this->createCacheStrategy();

        $strategy->generateKey('v42', $value);
    }

    public function getInvalidLifetimeValues()
    {
        return array(
            array('foo'),
            array(array('foo')),
        );
    }

    public function createCacheProviderMock()
    {
        return $this->createMock('Asm89\Twig\CacheExtension\CacheProviderInterface');
    }
}


text:
using System;
using System.Collections.Generic;
using EspaceClient.FrontOffice.Domaine;

namespace EspaceClient.BackOffice.Silverlight.Business.Depots
{
    /// <summary>
    /// Dépôt des TypeTraductions.
    /// </summary>
    public partial interface IDepotTypeTraduction
    {
        /// <summary>
        /// Récupère toutes les données du dépôt.
        /// </summary>
        /// <param name="callback">Méthode à appeler lorsque l opération est terminée.</param>
        void GetAll(Action<IEnumerable<TypeTraductionDto>> callback, Action<Exception> error);
    }
}


text:
import sys
from setuptools import setup, find_packages

# To install the library, open a Terminal shell, then run this
# file by typing:
#
# python setup.py install
#
# You need to have the setuptools module installed.
# Try reading the setuptools documentation:
# http://pypi.python.org/pypi/setuptools

REQUIRES = []

setup(
    name="SwaggerPetstore",
    version="1.0",
    description="default Title",
    author_email="",
    url="Contact Email",
    keywords=["Swagger", "default Title"],
    install_requires=REQUIRES,
    packages=find_packages(),
    include_package_data=True,
    long_description="""\
    Api Description
    """
)


text:
#import "NSObject.h"

#import "NSCoding-Protocol.h"
#import "NSCopying-Protocol.h"

@class NSString;

@interface IDEArchivableStringIndexPair : NSObject <NSCopying, NSCoding>
{
    NSString *_identifier;
    unsigned long long _index;
}

- (id)copyWithZone:(struct _NSZone *)arg1;
- (id)description;
- (void)encodeWithCoder:(id)arg1;
- (unsigned long long)hash;
@property(readonly) NSString *identifier; // @synthesize identifier=_identifier;
@property(readonly) unsigned long long index; // @synthesize index=_index;
- (id)initWithCoder:(id)arg1;
- (id)initWithIdentifier:(id)arg1 index:(unsigned long long)arg2;
- (BOOL)isEqual:(id)arg1;

@end


text:
package go.models

import io.apibuilder.spec.v0.models.Service
import lib.Datatype
import play.api.libs.json._

object Defaults {

  /**
    * Returns a default for a field if
    * - a default exists
    * - the default can be parsed into a Golang type
    *
    * The string returned should be ready to include on the right side of an assignment. Examples are
    * true
    * "hello world"
    * 7.85
    * string[]
    *
    */
  def mkGolangDefault(default: Option[String], dt: Datatype, svc: Service,  importBuilder: ImportBuilder): Option[String] = {
    default match {
      case Some(defaultText) => {
        dt match {
          case Datatype.Primitive.Boolean => Some(wrapInQuotes(defaultText))
          case Datatype.Primitive.Decimal => Some(toBigDecimal(Json.parse(defaultText)).toString)
          case Datatype.Primitive.Integer => Some(toBigDecimal(Json.parse(defaultText)).toInt.toString)
          case Datatype.Primitive.Double => Some(toBigDecimal(Json.parse(defaultText)).toDouble.toString)
          case Datatype.Primitive.Long => Some(toBigDecimal(Json.parse(defaultText)).toLong.toString)
          case Datatype.Primitive.String => Some(wrapInQuotes(defaultText))
          case Datatype.Primitive.Uuid => Some(wrapInQuotes(defaultText))
          case Datatype.Primitive.DateTimeIso8601 => Some(wrapInQuotes(defaultText))
          case Datatype.Primitive.DateIso8601 => Some(wrapInQuotes(defaultText))
          case Datatype.UserDefined.Enum(enumName) => {
              svc.enums.find(_.name == enumName).flatMap(e=> e.values.find(_.name == defaultText).map(v=> importBuilder.publicName(enumName) + importBuilder.publicName(v.name)))
          }
          case Datatype.Container.List(t) => {
            val arr = Json.parse(defaultText).as[JsArray]
            val seq = arr.value.map { value =>
              mkGolangDefault(Some(value.toString), t, svc, importBuilder)
            }
            if (seq.isEmpty) {
              None
            } else {
              Some(s"[]string{${seq.collect{case Some(x)=>x}.mkString(",")}}")
            }
          }
          case _ => None
        }
      }
      case None => None
    }
  }

  private[this] def toBigDecimal(json: JsValue): BigDecimal = {
    json match {
      case v: JsString => {
        if (v.value.matches("0+")) {
          BigDecimal("0")
        } else {
          BigDecimal(json.toString)
        }
      }
      case v: JsNumber => v.value
      case _ => BigDecimal(json.toString)
    }
  }

  private[this] def wrapInQuotes(value: String): String = {
    val inQuotesAlready = "\".*\"".r
    value match {
      case inQuotesAlready() => value
      case _ => s""""$value""""
    }
  }
}