text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v11/common/click_location.proto

package com.google.ads.googleads.v11.common;

/**
 *

 * Location criteria associated with a click.
 *

 *
 * Protobuf type {@code google.ads.googleads.v11.common.ClickLocation}
 */
public final class ClickLocation extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.ads.googleads.v11.common.ClickLocation)
    ClickLocationOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ClickLocation.newBuilder() to construct.
  private ClickLocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ClickLocation() {
    city_ = "";
    country_ = "";
    metro_ = "";
    mostSpecific_ = "";
    region_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ClickLocation();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.ads.googleads.v11.common.ClickLocationProto.internal_static_google_ads_googleads_v11_common_ClickLocation_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.ads.googleads.v11.common.ClickLocationProto.internal_static_google_ads_googleads_v11_common_ClickLocation_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.ads.googleads.v11.common.ClickLocation.class, com.google.ads.googleads.v11.common.ClickLocation.Builder.class);
  }

  private int bitField0_;
  public static final int CITY_FIELD_NUMBER = 6;
  private volatile java.lang.Object city_;
  /**
   *

   * The city location criterion associated with the impression.
   *

   *
   * optional string city = 6;
   * @return Whether the city field is set.
   */
  @java.lang.Override
  public boolean hasCity() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   *

   * The city location criterion associated with the impression.
   *

   *
   * optional string city = 6;
   * @return The city.
   */
  @java.lang.Override
  public java.lang.String getCity() {
    java.lang.Object ref = city_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      city_ = s;
      return s;
    }
  }
  /**
   *

   * The city location criterion associated with the impression.
   *

   *
   * optional string city = 6;
   * @return The bytes for city.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCityBytes() {
    java.lang.Object ref = city_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      city_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int COUNTRY_FIELD_NUMBER = 7;
  private volatile java.lang.Object country_;
  /**
   *

   * The country location criterion associated with the impression.
   *

   *
   * optional string country = 7;
   * @return Whether the country field is set.
   */
  @java.lang.Override
  public boolean hasCountry() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   *

   * The country location criterion associated with the impression.
   *

   *
   * optional string country = 7;
   * @return The country.
   */
  @java.lang.Override
  public java.lang.String getCountry() {
    java.lang.Object ref = country_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      country_ = s;
      return s;
    }
  }
  /**
   *

   * The country location criterion associated with the impression.
   *

   *
   * optional string country = 7;
   * @return The bytes for country.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCountryBytes() {
    java.lang.Object ref = country_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      country_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int METRO_FIELD_NUMBER = 8;
  private volatile java.lang.Object metro_;
  /**
   *

   * The metro location criterion associated with the impression.
   *

   *
   * optional string metro = 8;
   * @return Whether the metro field is set.
   */
  @java.lang.Override
  public boolean hasMetro() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   *

   * The metro location criterion associated with the impression.
   *

   *
   * optional string metro = 8;
   * @return The metro.
   */
  @java.lang.Override
  public java.lang.String getMetro() {
    java.lang.Object ref = metro_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      metro_ = s;
      return s;
    }
  }
  /**
   *

   * The metro location criterion associated with the impression.
   *

   *
   * optional string metro = 8;
   * @return The bytes for metro.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMetroBytes() {
    java.lang.Object ref = metro_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      metro_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MOST_SPECIFIC_FIELD_NUMBER = 9;
  private volatile java.lang.Object mostSpecific_;
  /**
   *

   * The most specific location criterion associated with the impression.
   *

   *
   * optional string most_specific = 9;
   * @return Whether the mostSpecific field is set.
   */
  @java.lang.Override
  public boolean hasMostSpecific() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   *

   * The most specific location criterion associated with the impression.
   *

   *
   * optional string most_specific = 9;
   * @return The mostSpecific.
   */
  @java.lang.Override
  public java.lang.String getMostSpecific() {
    java.lang.Object ref = mostSpecific_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      mostSpecific_ = s;
      return s;
    }
  }
  /**
   *

   * The most specific location criterion associated with the impression.
   *

   *
   * optional string most_specific = 9;
   * @return The bytes for mostSpecific.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMostSpecificBytes() {
    java.lang.Object ref = mostSpecific_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      mostSpecific_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REGION_FIELD_NUMBER = 10;
  private volatile java.lang.Object region_;
  /**
   *

   * The region location criterion associated with the impression.
   *

   *
   * optional string region = 10;
   * @return Whether the region field is set.
   */
  @java.lang.Override
  public boolean hasRegion() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   *

   * The region location criterion associated with the impression.
   *

   *
   * optional string region = 10;
   * @return The region.
   */
  @java.lang.Override
  public java.lang.String getRegion() {
    java.lang.Object ref = region_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs =
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      region_ = s;
      return s;
    }
  }
  /**
   *

   * The region location criterion associated with the impression.
   *

   *
   * optional string region = 10;
   * @return The bytes for region.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getRegionBytes() {
    java.lang.Object ref = region_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      region_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, city_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, country_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, metro_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, mostSpecific_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, region_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, city_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, country_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, metro_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, mostSpecific_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, region_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.google.ads.googleads.v11.common.ClickLocation)) {
      return super.equals(obj);
    }
    com.google.ads.googleads.v11.common.ClickLocation other = (com.google.ads.googleads.v11.common.ClickLocation) obj;

    if (hasCity() != other.hasCity()) return false;
    if (hasCity()) {
      if (!getCity()
          .equals(other.getCity())) return false;
    }
    if (hasCountry() != other.hasCountry()) return false;
    if (hasCountry()) {
      if (!getCountry()
          .equals(other.getCountry())) return false;
    }
    if (hasMetro() != other.hasMetro()) return false;
    if (hasMetro()) {
      if (!getMetro()
          .equals(other.getMetro())) return false;
    }
    if (hasMostSpecific() != other.hasMostSpecific()) return false;
    if (hasMostSpecific()) {
      if (!getMostSpecific()
          .equals(other.getMostSpecific())) return false;
    }
    if (hasRegion() != other.hasRegion()) return false;
    if (hasRegion()) {
      if (!getRegion()
          .equals(other.getRegion())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasCity()) {
      hash = (37 * hash) + CITY_FIELD_NUMBER;
      hash = (53 * hash) + getCity().hashCode();
    }
    if (hasCountry()) {
      hash = (37 * hash) + COUNTRY_FIELD_NUMBER;
      hash = (53 * hash) + getCountry().hashCode();
    }
    if (hasMetro()) {
      hash = (37 * hash) + METRO_FIELD_NUMBER;
      hash = (53 * hash) + getMetro().hashCode();
    }
    if (hasMostSpecific()) {
      hash = (37 * hash) + MOST_SPECIFIC_FIELD_NUMBER;
      hash = (53 * hash) + getMostSpecific().hashCode();
    }
    if (hasRegion()) {
      hash = (37 * hash) + REGION_FIELD_NUMBER;
      hash = (53 * hash) + getRegion().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.ads.googleads.v11.common.ClickLocation parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.ads.googleads.v11.common.ClickLocation prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *

   * Location criteria associated with a click.
   *

   *
   * Protobuf type {@code google.ads.googleads.v11.common.ClickLocation}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.ads.googleads.v11.common.ClickLocation)
      com.google.ads.googleads.v11.common.ClickLocationOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.ads.googleads.v11.common.ClickLocationProto.internal_static_google_ads_googleads_v11_common_ClickLocation_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.ads.googleads.v11.common.ClickLocationProto.internal_static_google_ads_googleads_v11_common_ClickLocation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.ads.googleads.v11.common.ClickLocation.class, com.google.ads.googleads.v11.common.ClickLocation.Builder.class);
    }

    // Construct using com.google.ads.googleads.v11.common.ClickLocation.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      city_ = "";
      bitField0_ = (bitField0_ & ~0x00000001);
      country_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      metro_ = "";
      bitField0_ = (bitField0_ & ~0x00000004);
      mostSpecific_ = "";
      bitField0_ = (bitField0_ & ~0x00000008);
      region_ = "";
      bitField0_ = (bitField0_ & ~0x00000010);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.ads.googleads.v11.common.ClickLocationProto.internal_static_google_ads_googleads_v11_common_ClickLocation_descriptor;
    }

    @java.lang.Override
    public com.google.ads.googleads.v11.common.ClickLocation getDefaultInstanceForType() {
      return com.google.ads.googleads.v11.common.ClickLocation.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.ads.googleads.v11.common.ClickLocation build() {
      com.google.ads.googleads.v11.common.ClickLocation result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.ads.googleads.v11.common.ClickLocation buildPartial() {
      com.google.ads.googleads.v11.common.ClickLocation result = new com.google.ads.googleads.v11.common.ClickLocation(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        to_bitField0_ |= 0x00000001;
      }
      result.city_ = city_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.country_ = country_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        to_bitField0_ |= 0x00000004;
      }
      result.metro_ = metro_;
      if (((from_bitField0_ & 0x00000008) != 0)) {
        to_bitField0_ |= 0x00000008;
      }
      result.mostSpecific_ = mostSpecific_;
      if (((from_bitField0_ & 0x00000010) != 0)) {
        to_bitField0_ |= 0x00000010;
      }
      result.region_ = region_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.ads.googleads.v11.common.ClickLocation) {
        return mergeFrom((com.google.ads.googleads.v11.common.ClickLocation)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.ads.googleads.v11.common.ClickLocation other) {
      if (other == com.google.ads.googleads.v11.common.ClickLocation.getDefaultInstance()) return this;
      if (other.hasCity()) {
        bitField0_ |= 0x00000001;
        city_ = other.city_;
        onChanged();
      }
      if (other.hasCountry()) {
        bitField0_ |= 0x00000002;
        country_ = other.country_;
        onChanged();
      }
      if (other.hasMetro()) {
        bitField0_ |= 0x00000004;
        metro_ = other.metro_;
        onChanged();
      }
      if (other.hasMostSpecific()) {
        bitField0_ |= 0x00000008;
        mostSpecific_ = other.mostSpecific_;
        onChanged();
      }
      if (other.hasRegion()) {
        bitField0_ |= 0x00000010;
        region_ = other.region_;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 50: {
              city_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 50
            case 58: {
              country_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000002;
              break;
            } // case 58
            case 66: {
              metro_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 66
            case 74: {
              mostSpecific_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 74
            case 82: {
              region_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000010;
              break;
            } // case 82
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.lang.Object city_ = "";
    /**
     *

     * The city location criterion associated with the impression.
     *

     *
     * optional string city = 6;
     * @return Whether the city field is set.
     */
    public boolean hasCity() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *

     * The city location criterion associated with the impression.
     *

     *
     * optional string city = 6;
     * @return The city.
     */
    public java.lang.String getCity() {
      java.lang.Object ref = city_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        city_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *

     * The city location criterion associated with the impression.
     *

     *
     * optional string city = 6;
     * @return The bytes for city.
     */
    public com.google.protobuf.ByteString
        getCityBytes() {
      java.lang.Object ref = city_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        city_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *

     * The city location criterion associated with the impression.
     *

     *
     * optional string city = 6;
     * @param value The city to set.
     * @return This builder for chaining.
     */
    public Builder setCity(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
      city_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * The city location criterion associated with the impression.
     *

     *
     * optional string city = 6;
     * @return This builder for chaining.
     */
    public Builder clearCity() {
      bitField0_ = (bitField0_ & ~0x00000001);
      city_ = getDefaultInstance().getCity();
      onChanged();
      return this;
    }
    /**
     *

     * The city location criterion associated with the impression.
     *

     *
     * optional string city = 6;
     * @param value The bytes for city to set.
     * @return This builder for chaining.
     */
    public Builder setCityBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      bitField0_ |= 0x00000001;
      city_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object country_ = "";
    /**
     *

     * The country location criterion associated with the impression.
     *

     *
     * optional string country = 7;
     * @return Whether the country field is set.
     */
    public boolean hasCountry() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *

     * The country location criterion associated with the impression.
     *

     *
     * optional string country = 7;
     * @return The country.
     */
    public java.lang.String getCountry() {
      java.lang.Object ref = country_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        country_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *

     * The country location criterion associated with the impression.
     *

     *
     * optional string country = 7;
     * @return The bytes for country.
     */
    public com.google.protobuf.ByteString
        getCountryBytes() {
      java.lang.Object ref = country_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        country_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *

     * The country location criterion associated with the impression.
     *

     *
     * optional string country = 7;
     * @param value The country to set.
     * @return This builder for chaining.
     */
    public Builder setCountry(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      country_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * The country location criterion associated with the impression.
     *

     *
     * optional string country = 7;
     * @return This builder for chaining.
     */
    public Builder clearCountry() {
      bitField0_ = (bitField0_ & ~0x00000002);
      country_ = getDefaultInstance().getCountry();
      onChanged();
      return this;
    }
    /**
     *

     * The country location criterion associated with the impression.
     *

     *
     * optional string country = 7;
     * @param value The bytes for country to set.
     * @return This builder for chaining.
     */
    public Builder setCountryBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      bitField0_ |= 0x00000002;
      country_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object metro_ = "";
    /**
     *

     * The metro location criterion associated with the impression.
     *

     *
     * optional string metro = 8;
     * @return Whether the metro field is set.
     */
    public boolean hasMetro() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *

     * The metro location criterion associated with the impression.
     *

     *
     * optional string metro = 8;
     * @return The metro.
     */
    public java.lang.String getMetro() {
      java.lang.Object ref = metro_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        metro_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *

     * The metro location criterion associated with the impression.
     *

     *
     * optional string metro = 8;
     * @return The bytes for metro.
     */
    public com.google.protobuf.ByteString
        getMetroBytes() {
      java.lang.Object ref = metro_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        metro_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *

     * The metro location criterion associated with the impression.
     *

     *
     * optional string metro = 8;
     * @param value The metro to set.
     * @return This builder for chaining.
     */
    public Builder setMetro(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      metro_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * The metro location criterion associated with the impression.
     *

     *
     * optional string metro = 8;
     * @return This builder for chaining.
     */
    public Builder clearMetro() {
      bitField0_ = (bitField0_ & ~0x00000004);
      metro_ = getDefaultInstance().getMetro();
      onChanged();
      return this;
    }
    /**
     *

     * The metro location criterion associated with the impression.
     *

     *
     * optional string metro = 8;
     * @param value The bytes for metro to set.
     * @return This builder for chaining.
     */
    public Builder setMetroBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      bitField0_ |= 0x00000004;
      metro_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object mostSpecific_ = "";
    /**
     *

     * The most specific location criterion associated with the impression.
     *

     *
     * optional string most_specific = 9;
     * @return Whether the mostSpecific field is set.
     */
    public boolean hasMostSpecific() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     *

     * The most specific location criterion associated with the impression.
     *

     *
     * optional string most_specific = 9;
     * @return The mostSpecific.
     */
    public java.lang.String getMostSpecific() {
      java.lang.Object ref = mostSpecific_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mostSpecific_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *

     * The most specific location criterion associated with the impression.
     *

     *
     * optional string most_specific = 9;
     * @return The bytes for mostSpecific.
     */
    public com.google.protobuf.ByteString
        getMostSpecificBytes() {
      java.lang.Object ref = mostSpecific_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mostSpecific_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *

     * The most specific location criterion associated with the impression.
     *

     *
     * optional string most_specific = 9;
     * @param value The mostSpecific to set.
     * @return This builder for chaining.
     */
    public Builder setMostSpecific(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      mostSpecific_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * The most specific location criterion associated with the impression.
     *

     *
     * optional string most_specific = 9;
     * @return This builder for chaining.
     */
    public Builder clearMostSpecific() {
      bitField0_ = (bitField0_ & ~0x00000008);
      mostSpecific_ = getDefaultInstance().getMostSpecific();
      onChanged();
      return this;
    }
    /**
     *

     * The most specific location criterion associated with the impression.
     *

     *
     * optional string most_specific = 9;
     * @param value The bytes for mostSpecific to set.
     * @return This builder for chaining.
     */
    public Builder setMostSpecificBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      bitField0_ |= 0x00000008;
      mostSpecific_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object region_ = "";
    /**
     *

     * The region location criterion associated with the impression.
     *

     *
     * optional string region = 10;
     * @return Whether the region field is set.
     */
    public boolean hasRegion() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     *

     * The region location criterion associated with the impression.
     *

     *
     * optional string region = 10;
     * @return The region.
     */
    public java.lang.String getRegion() {
      java.lang.Object ref = region_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        region_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *

     * The region location criterion associated with the impression.
     *

     *
     * optional string region = 10;
     * @return The bytes for region.
     */
    public com.google.protobuf.ByteString
        getRegionBytes() {
      java.lang.Object ref = region_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        region_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *

     * The region location criterion associated with the impression.
     *

     *
     * optional string region = 10;
     * @param value The region to set.
     * @return This builder for chaining.
     */
    public Builder setRegion(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      region_ = value;
      onChanged();
      return this;
    }
    /**
     *

     * The region location criterion associated with the impression.
     *

     *
     * optional string region = 10;
     * @return This builder for chaining.
     */
    public Builder clearRegion() {
      bitField0_ = (bitField0_ & ~0x00000010);
      region_ = getDefaultInstance().getRegion();
      onChanged();
      return this;
    }
    /**
     *

     * The region location criterion associated with the impression.
     *

     *
     * optional string region = 10;
     * @param value The bytes for region to set.
     * @return This builder for chaining.
     */
    public Builder setRegionBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      bitField0_ |= 0x00000010;
      region_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.ads.googleads.v11.common.ClickLocation)
  }

  // @@protoc_insertion_point(class_scope:google.ads.googleads.v11.common.ClickLocation)
  private static final com.google.ads.googleads.v11.common.ClickLocation DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.ads.googleads.v11.common.ClickLocation();
  }

  public static com.google.ads.googleads.v11.common.ClickLocation getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ClickLocation>
      PARSER = new com.google.protobuf.AbstractParser<ClickLocation>() {
    @java.lang.Override
    public ClickLocation parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser<ClickLocation> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<ClickLocation> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.ads.googleads.v11.common.ClickLocation getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}


text:
'use strict';

function spacerStr (len) {
    var str = '';
    for(var i = 0; i < len; i += 1) {
        str += ' ';
    }
    return str;
}

function StringWriter (config) {
    this.lines = [];
    this.lineSeparator = config.lineSeparator;
    this.regex = new RegExp(this.lineSeparator, 'g');
    this.spacer = spacerStr(config.outputOffset);
}

StringWriter.prototype.write = function (str) {
    this.lines.push(this.spacer + str.replace(this.regex, this.lineSeparator + this.spacer));
};

StringWriter.prototype.flush = function () {
    var str = this.lines.join(this.lineSeparator);
    this.lines.length = 0;
    return str;
};

module.exports = StringWriter;

redpajama_set_name: RedPajamaGithub


text:
define(["dojo/on", "dojo/_base/declare", "dojo/aspect", "dijit/registry", "dijit/WidgetSet", "dijit/_Widget", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin",
    "epi/epi", "epi/shell/widget/_ValueRequiredMixin", "epi-cms/_ContentContextMixin", "epi/i18n!epi/cms/nls/focalpoint", "xstyle/css!./WidgetTemplate.css"],
function (on, declare, aspect, registry, WidgetSet, _Widget, _TemplatedMixin, _WidgetsInTemplateMixin, epi, _ValueRequiredMixin, _ContentContextMixin, resources) {
	return declare([_Widget, _TemplatedMixin, _WidgetsInTemplateMixin, _ValueRequiredMixin, _ContentContextMixin], {
		templateString: dojo.cache("focal-point", "WidgetTemplate.html"),
		imageUrl: null,
		intermediateChanges: true,
		resources: resources,
		value: null,
		constructor: function () {
			var context = this.getCurrentContext();
			this.imageUrl = context.previewUrl;
		},
		onChange: function (value) { },
		postCreate: function () {
			this.inherited(arguments);
		},
		startup: function () {
			this.initializeFocalPoint();
		},
		initializeFocalPoint: function () {
			if (this.hasCoordinates()) {
				this._setFocalPoint(this.value.x, this.value.y, true);
			} else {
				this.focalpoint.className = "empty";
			}
			if (this.readOnly) {
				this.clearbutton.disabled = true;
				this.focalpoint.className = "empty";
			}
			else {
				this.canvas.addEventListener("click", this.setFocalPoint.bind(this));
				this.clearbutton.addEventListener("click", this.clearCoordinates.bind(this));
			}
		},
		hasCoordinates: function () {
			if (!this.isValid() || !this.value || this.valueOf === "" || (typeof this.value === "object" && (isNaN(this.value.x) || isNaN(this.value.y)))) {
				return false;
			}
			return this.value.x !== undefined &&
				   this.value.y !== undefined &&
				   !isNaN(this.value.x) &&
				   !isNaN(this.value.y) &&
				   this.value.x !== 0 &&
				   this.value.y !== 0;
		},
		_setFocalPoint: function (x, y, isPercentage) {
			if (x === undefined || y === undefined) {
				return undefined;
			}
			var offsetX = x;
			var offsetY = y;
			if (isPercentage) {
				offsetX = this.image.width * x / 100;
				offsetY = this.image.height * y / 100;
			} else {
				x = (offsetX / this.image.width) * 100;
				y = (offsetY / this.image.height) * 100;
			}
			var focalPointSize = this.focalpoint.offsetWidth;
			this.focalpoint.style.left = offsetX - (focalPointSize / 2) + "px";
			this.focalpoint.style.top = offsetY - (focalPointSize / 2) + "px";
			this.focalpoint.className = "";
			return { y: y, x: x };
		},
		setFocalPoint: function (ev) {
			var coordinates = this._setFocalPoint(ev.offsetX, ev.offsetY, false);
			this._onCoordinateChanged(coordinates.x, coordinates.y);
			this.focalpoint.className = "";
		},
		_onCoordinateChanged: function (x, y) {
			if (!this._started) {
				return;
			}
			if (x === undefined || y === undefined) {
				return;
			}
			var value = { y: parseFloat(y), x: parseFloat(x) };
			this._set("value", value);
			this.onChange(value);
		},
		clearCoordinates: function (e) {
			e.preventDefault();
			this._set("value", null);
			this._setFocalPoint(50, 50, true);
			this.focalpoint.className = "empty";
			this.onChange(null);
		},
		isValid: function () {
			if (!this.value || this.value === "" || this.value == undefined || (typeof this.value === "object" && (isNaN(this.value.x) || isNaN(this.value.y)))) {
				return !this.required;
			}
			var isValidCoordinatesObject = this.value.x !== undefined &&
										   this.value.y !== undefined &&
										   !isNaN(this.value.x) &&
										   !isNaN(this.value.y) &&
										   this.value.x !== 0 &&
										   this.value.y !== 0;
			return isValidCoordinatesObject;
		},
		_setValueAttr: function (value) {
			if (value === this.value) {
				return;
			}
			this._set("value", value);
			var that = this;
			this.image.addEventListener("load", function () {
				that._setFocalPoint(value.x, value.y, true);
			});
			if (!value) {
				this.clearCoordinates();
				return;
			}
		}
	});
});


text:
public class InputNode : INode
{
    public InputNode()
    {
        input = new INode[1];
    }

    public INode[] input { get; set; }

    public INode output { get; set; }
}


text:
package com.jcwhatever.nucleus.internal.managed.scripting.api.views;

import com.jcwhatever.nucleus.mixins.IDisposable;
import com.jcwhatever.nucleus.utils.PreCon;
import com.jcwhatever.nucleus.utils.items.ItemStackMatcher;
import com.jcwhatever.nucleus.utils.text.TextUtils;
import com.jcwhatever.nucleus.views.View;
import com.jcwhatever.nucleus.views.ViewOpenReason;
import com.jcwhatever.nucleus.views.ViewSession;
import com.jcwhatever.nucleus.views.menu.MenuItem;
import com.jcwhatever.nucleus.views.menu.MenuItemBuilder;
import com.jcwhatever.nucleus.views.menu.MenuView;

import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * A {@link MenuView} implementation for scripts.
 */
public class ScriptMenuView extends MenuView implements IDisposable {

    private final CharSequence _title;
    private final Map<Integer, MenuItem> _menuItems = new HashMap<>(16);
    private final Player _player;

    private boolean _isDisposed;

    /**
     * Constructor.
     *
     * @param plugin  The owning plugin.
     * @param player  The player the view is for.
     * @param title   The view title.
     */
    protected ScriptMenuView(Plugin plugin, Player player, CharSequence title) {
        super(plugin, ItemStackMatcher.getDefault());

        PreCon.notNull(title);
        PreCon.notNull(player);

        _title = TextUtils.format(title);
        _player = player;
    }

    /**
     * Put a {@link MenuItem} into the menu view.
     *
     *
Use before opening the view.

     *
     * @param menuItem  The {@link MenuItem} to add.
     *
     * @return  Self for chaining.
     */
    public ScriptMenuView putItem(MenuItem menuItem) {
        _menuItems.put(menuItem.getSlot(), menuItem);

        return this;
    }

    /**
     * Put a {@link MenuItemBuilder} into the menu view.
     *
     *
Use before opening the view.

     *
     * @param slot             The inventory slot the {@link MenuItem} will be put into.
     * @param menuItemBuilder  The {@link MenuItemBuilder} to use to build the {@link MenuItem}.
     *
     * @return  Self for chaining.
     */
    public ScriptMenuView putItem(int slot, MenuItemBuilder menuItemBuilder) {

        MenuItem menuItem = menuItemBuilder.build(slot);

        _menuItems.put(menuItem.getSlot(), menuItem);

        return this;
    }

    /**
     * Open the view to the player.
     *
     * @return  Self for chaining.
     */
    public ScriptMenuView open() {

        ViewSession viewSession = ViewSession.get(_player, null);

        viewSession.next(this);

        return this;
    }

    /**
     * Close the view to the player.
     *
     * @return  Self for chaining.
     */
    public ScriptMenuView close() {

        ViewSession viewSession = ViewSession.get(_player, null);

        if (!viewSession.contains(this))
            return this;

        View view = viewSession.getCurrent();

        // close all views opened after this view
        while (view != null && !view.equals(this)) {
            viewSession.previous();
            view = viewSession.getCurrent();
        }

        if (view != null && view.equals(this))
            viewSession.previous();

        return this;
    }

    @Override
    public String getTitle() {
        return _title.toString();
    }

    @Override
    protected List<MenuItem> createMenuItems() {
        return new ArrayList<>(_menuItems.values());
    }

    @Override
    protected void onItemSelect(MenuItem menuItem) {
        // do nothing
    }

    @Override
    protected void onShow(ViewOpenReason reason) {
        // do nothing
    }

    @Override
    public boolean isDisposed() {
        return _isDisposed;
    }

    @Override
    public void dispose() {

        List<MenuItem> menuItems = new ArrayList<>(getMenuItems());

        for (MenuItem menuItem : menuItems) {
            menuItem.clearOnClick();
        }

        _menuItems.clear();

        _isDisposed = true;
    }
}


text:
<!DOCTYPE html>

	<title>AngularJS DatePicker</title>
	<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
	<link rel="stylesheet" type="text/css" href="src/css/ngDatepicker.css">

Basic Example

		<ng-datepicker ng-model="ctrl.date1" first-week-day-sunday="true" placeholder="Pick a date">
		</ng-datepicker>

Example with locale

		<ng-datepicker ng-model="ctrl.date2" locale="sl" format="DD.MM.YYYY" view-format="Do MMMM YYYY">
		</ng-datepicker>


text:
package amora.converter

import amora.backend.services.DottySourceIndexer
import amora.backend.IgnoreLogger
import org.junit.Test

class DotcConverterTest extends ScalaCompilerTest {

  import amora.TestUtils._

  def convert(data: (String, String)*): Set[String] = {
    val indexer = new DottySourceIndexer(IgnoreLogger)
    val res = indexer.convertToSchema(data).flatMap(_._2)
    res.map(_.asString).toSet
  }
}


text:
using System;
using System.IO;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;

namespace AldursLab.Persistence.Simple
{
    public class DefaultJsonSerializer : ISerializer
    {
        readonly JsonSerializer serializer;

        public DefaultJsonSerializer()
        {
            var settings = new JsonSerializerSettings()
            {
                Formatting = Formatting.Indented,
                PreserveReferencesHandling = PreserveReferencesHandling.All,
                ReferenceLoopHandling = ReferenceLoopHandling.Serialize,
                ObjectCreationHandling = ObjectCreationHandling.Replace,
                TypeNameHandling = TypeNameHandling.Auto,
                ContractResolver = new ExtendedContractResolver()
            };
            serializer = JsonSerializer.Create(settings);
        }

        public string Serialize<T>(T @object)
        {
            var sb = new StringBuilder();
            using (var sw = new StringWriter(sb))
            {
                using (var jtw = new JsonTextWriter(sw))
                {
                    serializer.Serialize(jtw, @object);
                }
            }
            return sb.ToString();
        }

        public T Deserialize<T>(string data)
        {
            using (var sr = new StringReader(data))
            {
                using (var jtr = new JsonTextReader(sr))
                {
                    return serializer.Deserialize<T>(jtr);
                }
            }
        }

        class ExtendedContractResolver : DefaultContractResolver
        {
            protected override JsonDictionaryContract CreateDictionaryContract(Type objectType)
            {
                var contract = base.CreateDictionaryContract(objectType);

                // Serialize Enums as numeric.
                var keyType = contract.DictionaryKeyType;
                if (keyType.BaseType == typeof(Enum))
                {
                    contract.DictionaryKeyResolver =
                        propName => ((int)Enum.Parse(keyType, propName)).ToString();
                }

                return contract;
            }
        }
    }
}


text:
<Type Name="DomEventPhase" FullName="MonoMac.WebKit.DomEventPhase">
  <TypeSignature Language="C#" Value="public enum DomEventPhase" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed DomEventPhase extends System.Enum" />
  <AssemblyInfo>
    <AssemblyName>MonoMac</AssemblyName>
    <AssemblyVersion>0.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>System.Enum</BaseTypeName>
  </Base>
  <Docs>
    To be added.
    <remarks>To be added.</remarks>
  </Docs>
  <Members>
    <Member MemberName="AtTarget">
      <MemberSignature Language="C#" Value="AtTarget" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.WebKit.DomEventPhase AtTarget = unsigned int16(2)" />
      <MemberType>Field</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>MonoMac.WebKit.DomEventPhase</ReturnType>
      </ReturnValue>
      <Docs>
        To be added.
      </Docs>
    </Member>
    <Member MemberName="Bubbling">
      <MemberSignature Language="C#" Value="Bubbling" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.WebKit.DomEventPhase Bubbling = unsigned int16(3)" />
      <MemberType>Field</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>MonoMac.WebKit.DomEventPhase</ReturnType>
      </ReturnValue>
      <Docs>
        To be added.
      </Docs>
    </Member>
    <Member MemberName="Capturing">
      <MemberSignature Language="C#" Value="Capturing" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.WebKit.DomEventPhase Capturing = unsigned int16(1)" />
      <MemberType>Field</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>MonoMac.WebKit.DomEventPhase</ReturnType>
      </ReturnValue>
      <Docs>
        To be added.
      </Docs>
    </Member>
  </Members>
</Type>


text:
package org.acme

import javax.ws.rs.\{GET, Path, Produces}
import javax.ws.rs.core.MediaType

@Path("{resource.path}")
class {resource.class-name} {

    @GET
    @Produces(Array[String](MediaType.TEXT_PLAIN))
    def hello() = "{resource.response}"
}


text:
div.cumulated_figure {
    float: left;
    width: 16%;
    background-color: #77b8e2;
    margin: 6px 0.3%;
    border-radius: 4px;
}

div.cumulated_figure:nth-child(2),
div.cumulated_figure:nth-child(7),
div.cumulated_figure:nth-child(12)
{
    background-color: #77b8e2;
}

div.cumulated_figure:nth-child(3),
div.cumulated_figure:nth-child(8),
div.cumulated_figure:nth-child(13)
{
    background-color: #e35d52;
}

div.cumulated_figure:nth-child(4),
div.cumulated_figure:nth-child(9)
{
    background-color: #d7a76A;
}

div.cumulated_figure:nth-child(5),
div.cumulated_figure:nth-child(10)
{
    background-color: rgb(78,167,165);
}

div.cumulated_figure:nth-child(6),
div.cumulated_figure:nth-child(11)
{
    background-color: #156FAF;
}

div.cumulated_figure div.innerTitle {
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.53);
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
    margin: 3px 5px 7px !important;
    padding-bottom: 10px !important;
}

div.cumulated_figure div.figure {
    font-size: 30px;
    text-align: center;
    color: white;
    padding: 2px 0 11px;
    letter-spacing: 1px;
}

svg text {
    font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif !important;
}

.tabbed_editor table.innerTitle {
    border-bottom: 1px solid #6F7B88;
    text-align: left;
    color: #4C555F;
    font-size: 15px;
    margin: 10px !important;
    padding: 8px !important;
    letter-spacing: 1px;
    width: 94%;
}

.tabbed_editor table.innerTitle td.chart_links{
    letter-spacing: 0;
    font-size: 13px;
}


text: Web Front-End of 52prog.com.


text:
<?php

namespace Grid\Paragraph\Model\Paragraph\Structure;

use Zork\Stdlib\String;
use Zend\View\Renderer\RendererInterface;

/**
 * Html
 *
 * @author David Pozsar <david.pozsar@megaweb.hu>
 */
class Html extends AbstractLeaf
        implements RepresentsTextContentInterface
{

    /**
     * Paragraph type
     *
     * @var string
     */
    protected static $type = 'html';

    /**
     * Locale-aware properties
     *
     * @var array
     */
    protected static $localeAwareProperties = array(
        'html' => true,
    );

    /**
     * Html content
     *
     * @var string
     */
    public $html = '';

    /**
     * Render view-open
     *
     * @param \Zend\View\Renderer\RendererInterface $renderer
     * @return string
     */
    public function renderOpen( RendererInterface $renderer )
    {
        return $this->html;
    }

    /**
     * @return  string
     */
    public function getRepresentedTextContent()
    {
        return String::stripHtml( $this->html ) ?: null;
    }

    /**
     * @return \Paragraph\Model\Paragraph\Structure\Html
     */
    public function prepareCreate()
    {
        if ( empty( $this->html ) )
        {
            $this->html = <<<HTML

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nam eu condimentum est. In mattis odio non elit fermentum porttitor.
Nam et felis quis dui vestibulum faucibus. Curabitur molestie rutrum porta.
Mauris cursus, nisl quis tincidunt auctor, mi neque facilisis nisl,
quis adipiscing elit magna eget libero. Nam imperdiet pretium dolor,
in mattis lectus sodales luctus. Vestibulum ante ipsum primis in faucibus
orci luctus et ultrices posuere cubilia Curae.

HTML;
        }

        return parent::prepareCreate();
    }

}