text:
// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: google/type/datetime.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Google.Type {

  /// Holder for reflection information generated from google/type/datetime.proto
  public static partial class DatetimeReflection {

    #region Descriptor
    /// File descriptor for google/type/datetime.proto
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static DatetimeReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "Chpnb29nbGUvdHlwZS9kYXRldGltZS5wcm90bxILZ29vZ2xlLnR5cGUaHmdv",
            "b2dsZS9wcm90b2J1Zi9kdXJhdGlvbi5wcm90byLgAQoIRGF0ZVRpbWUSDAoE",
            "eWVhchgBIAEoBRINCgVtb250aBgCIAEoBRILCgNkYXkYAyABKAUSDQoFaG91",
            "cnMYBCABKAUSDwoHbWludXRlcxgFIAEoBRIPCgdzZWNvbmRzGAYgASgFEg0K",
            "BW5hbm9zGAcgASgFEi8KCnV0Y19vZmZzZXQYCCABKAsyGS5nb29nbGUucHJv",
            "dG9idWYuRHVyYXRpb25IABIqCgl0aW1lX3pvbmUYCSABKAsyFS5nb29nbGUu",
            "dHlwZS5UaW1lWm9uZUgAQg0KC3RpbWVfb2Zmc2V0IicKCFRpbWVab25lEgoK",
            "AmlkGAEgASgJEg8KB3ZlcnNpb24YAiABKAlCaQoPY29tLmdvb2dsZS50eXBl",
            "Qg1EYXRlVGltZVByb3RvUAFaPGdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv",
            "L2dvb2dsZWFwaXMvdHlwZS9kYXRldGltZTtkYXRldGltZfgBAaICA0dUUGIG",
            "cHJvdG8z"));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Type.DateTime), global::Google.Type.DateTime.Parser, new[]{ "Year", "Month", "Day", "Hours", "Minutes", "Seconds", "Nanos", "UtcOffset", "TimeZone" }, new[]{ "TimeOffset" }, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Type.TimeZone), global::Google.Type.TimeZone.Parser, new[]{ "Id", "Version" }, null, null, null, null)
          }));
    }
    #endregion

  }
  #region Messages
  ///
  /// Represents civil time (or occasionally physical time).
  ///
  /// This type can represent a civil time in one of a few possible ways:
  ///
  ///  * When utc_offset is set and time_zone is unset: a civil time on a calendar
  ///    day with a particular offset from UTC.
  ///  * When time_zone is set and utc_offset is unset: a civil time on a calendar
  ///    day in a particular time zone.
  ///  * When neither time_zone nor utc_offset is set: a civil time on a calendar
  ///    day in local time.
  ///
  /// The date is relative to the Proleptic Gregorian Calendar.
  ///
  /// If year is 0, the DateTime is considered not to have a specific year. month
  /// and day must have valid, non-zero values.
  ///
  /// This type may also be used to represent a physical time if all the date and
  /// time fields are set and either case of the `time_offset` oneof is set.
  /// Consider using `Timestamp` message for physical time instead. If your use
  /// case also would like to store the user's timezone, that can be done in
  /// another field.
  ///
  /// This type is more flexible than some applications may want. Make sure to
  /// document and validate your application's limitations.
  ///
  public sealed partial class DateTime : pb::IMessage<DateTime>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<DateTime> _parser = new pb::MessageParser<DateTime>(() => new DateTime());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<DateTime> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Google.Type.DatetimeReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public DateTime() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public DateTime(DateTime other) : this() {
      year_ = other.year_;
      month_ = other.month_;
      day_ = other.day_;
      hours_ = other.hours_;
      minutes_ = other.minutes_;
      seconds_ = other.seconds_;
      nanos_ = other.nanos_;
      switch (other.TimeOffsetCase) {
        case TimeOffsetOneofCase.UtcOffset:
          UtcOffset = other.UtcOffset.Clone();
          break;
        case TimeOffsetOneofCase.TimeZone:
          TimeZone = other.TimeZone.Clone();
          break;
      }

      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public DateTime Clone() {
      return new DateTime(this);
    }

    /// Field number for the "year" field.
    public const int YearFieldNumber = 1;
    private int year_;
    ///
    /// Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
    /// datetime without a year.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int Year {
      get { return year_; }
      set {
        year_ = value;
      }
    }

    /// Field number for the "month" field.
    public const int MonthFieldNumber = 2;
    private int month_;
    ///
    /// Required. Month of year. Must be from 1 to 12.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int Month {
      get { return month_; }
      set {
        month_ = value;
      }
    }

    /// Field number for the "day" field.
    public const int DayFieldNumber = 3;
    private int day_;
    ///
    /// Required. Day of month. Must be from 1 to 31 and valid for the year and
    /// month.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int Day {
      get { return day_; }
      set {
        day_ = value;
      }
    }

    /// Field number for the "hours" field.
    public const int HoursFieldNumber = 4;
    private int hours_;
    ///
    /// Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
    /// may choose to allow the value "24:00:00" for scenarios like business
    /// closing time.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int Hours {
      get { return hours_; }
      set {
        hours_ = value;
      }
    }

    /// Field number for the "minutes" field.
    public const int MinutesFieldNumber = 5;
    private int minutes_;
    ///
    /// Required. Minutes of hour of day. Must be from 0 to 59.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int Minutes {
      get { return minutes_; }
      set {
        minutes_ = value;
      }
    }

    /// Field number for the "seconds" field.
    public const int SecondsFieldNumber = 6;
    private int seconds_;
    ///
    /// Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
    /// API may allow the value 60 if it allows leap-seconds.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int Seconds {
      get { return seconds_; }
      set {
        seconds_ = value;
      }
    }

    /// Field number for the "nanos" field.
    public const int NanosFieldNumber = 7;
    private int nanos_;
    ///
    /// Required. Fractions of seconds in nanoseconds. Must be from 0 to
    /// 999,999,999.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int Nanos {
      get { return nanos_; }
      set {
        nanos_ = value;
      }
    }

    /// Field number for the "utc_offset" field.
    public const int UtcOffsetFieldNumber = 8;
    ///
    /// UTC offset. Must be whole seconds, between -18 hours and +18 hours.
    /// For example, a UTC offset of -4:00 would be represented as
    /// { seconds: -14400 }.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Google.Protobuf.WellKnownTypes.Duration UtcOffset {
      get { return timeOffsetCase_ == TimeOffsetOneofCase.UtcOffset ? (global::Google.Protobuf.WellKnownTypes.Duration) timeOffset_ : null; }
      set {
        timeOffset_ = value;
        timeOffsetCase_ = value == null ? TimeOffsetOneofCase.None : TimeOffsetOneofCase.UtcOffset;
      }
    }

    /// Field number for the "time_zone" field.
    public const int TimeZoneFieldNumber = 9;
    ///
    /// Time zone.
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public global::Google.Type.TimeZone TimeZone {
      get { return timeOffsetCase_ == TimeOffsetOneofCase.TimeZone ? (global::Google.Type.TimeZone) timeOffset_ : null; }
      set {
        timeOffset_ = value;
        timeOffsetCase_ = value == null ? TimeOffsetOneofCase.None : TimeOffsetOneofCase.TimeZone;
      }
    }

    private object timeOffset_;
    /// Enum of possible cases for the "time_offset" oneof.
    public enum TimeOffsetOneofCase {
      None = 0,
      UtcOffset = 8,
      TimeZone = 9,
    }
    private TimeOffsetOneofCase timeOffsetCase_ = TimeOffsetOneofCase.None;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TimeOffsetOneofCase TimeOffsetCase {
      get { return timeOffsetCase_; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void ClearTimeOffset() {
      timeOffsetCase_ = TimeOffsetOneofCase.None;
      timeOffset_ = null;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override bool Equals(object other) {
      return Equals(other as DateTime);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(DateTime other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Year != other.Year) return false;
      if (Month != other.Month) return false;
      if (Day != other.Day) return false;
      if (Hours != other.Hours) return false;
      if (Minutes != other.Minutes) return false;
      if (Seconds != other.Seconds) return false;
      if (Nanos != other.Nanos) return false;
      if (!object.Equals(UtcOffset, other.UtcOffset)) return false;
      if (!object.Equals(TimeZone, other.TimeZone)) return false;
      if (TimeOffsetCase != other.TimeOffsetCase) return false;
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override int GetHashCode() {
      int hash = 1;
      if (Year != 0) hash ^= Year.GetHashCode();
      if (Month != 0) hash ^= Month.GetHashCode();
      if (Day != 0) hash ^= Day.GetHashCode();
      if (Hours != 0) hash ^= Hours.GetHashCode();
      if (Minutes != 0) hash ^= Minutes.GetHashCode();
      if (Seconds != 0) hash ^= Seconds.GetHashCode();
      if (Nanos != 0) hash ^= Nanos.GetHashCode();
      if (timeOffsetCase_ == TimeOffsetOneofCase.UtcOffset) hash ^= UtcOffset.GetHashCode();
      if (timeOffsetCase_ == TimeOffsetOneofCase.TimeZone) hash ^= TimeZone.GetHashCode();
      hash ^= (int) timeOffsetCase_;
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void WriteTo(pb::CodedOutputStream output) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      output.WriteRawMessage(this);
    #else
      if (Year != 0) {
        output.WriteRawTag(8);
        output.WriteInt32(Year);
      }
      if (Month != 0) {
        output.WriteRawTag(16);
        output.WriteInt32(Month);
      }
      if (Day != 0) {
        output.WriteRawTag(24);
        output.WriteInt32(Day);
      }
      if (Hours != 0) {
        output.WriteRawTag(32);
        output.WriteInt32(Hours);
      }
      if (Minutes != 0) {
        output.WriteRawTag(40);
        output.WriteInt32(Minutes);
      }
      if (Seconds != 0) {
        output.WriteRawTag(48);
        output.WriteInt32(Seconds);
      }
      if (Nanos != 0) {
        output.WriteRawTag(56);
        output.WriteInt32(Nanos);
      }
      if (timeOffsetCase_ == TimeOffsetOneofCase.UtcOffset) {
        output.WriteRawTag(66);
        output.WriteMessage(UtcOffset);
      }
      if (timeOffsetCase_ == TimeOffsetOneofCase.TimeZone) {
        output.WriteRawTag(74);
        output.WriteMessage(TimeZone);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
      if (Year != 0) {
        output.WriteRawTag(8);
        output.WriteInt32(Year);
      }
      if (Month != 0) {
        output.WriteRawTag(16);
        output.WriteInt32(Month);
      }
      if (Day != 0) {
        output.WriteRawTag(24);
        output.WriteInt32(Day);
      }
      if (Hours != 0) {
        output.WriteRawTag(32);
        output.WriteInt32(Hours);
      }
      if (Minutes != 0) {
        output.WriteRawTag(40);
        output.WriteInt32(Minutes);
      }
      if (Seconds != 0) {
        output.WriteRawTag(48);
        output.WriteInt32(Seconds);
      }
      if (Nanos != 0) {
        output.WriteRawTag(56);
        output.WriteInt32(Nanos);
      }
      if (timeOffsetCase_ == TimeOffsetOneofCase.UtcOffset) {
        output.WriteRawTag(66);
        output.WriteMessage(UtcOffset);
      }
      if (timeOffsetCase_ == TimeOffsetOneofCase.TimeZone) {
        output.WriteRawTag(74);
        output.WriteMessage(TimeZone);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(ref output);
      }
    }
    #endif

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int CalculateSize() {
      int size = 0;
      if (Year != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Year);
      }
      if (Month != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Month);
      }
      if (Day != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Day);
      }
      if (Hours != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Hours);
      }
      if (Minutes != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Minutes);
      }
      if (Seconds != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Seconds);
      }
      if (Nanos != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Nanos);
      }
      if (timeOffsetCase_ == TimeOffsetOneofCase.UtcOffset) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(UtcOffset);
      }
      if (timeOffsetCase_ == TimeOffsetOneofCase.TimeZone) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeZone);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(DateTime other) {
      if (other == null) {
        return;
      }
      if (other.Year != 0) {
        Year = other.Year;
      }
      if (other.Month != 0) {
        Month = other.Month;
      }
      if (other.Day != 0) {
        Day = other.Day;
      }
      if (other.Hours != 0) {
        Hours = other.Hours;
      }
      if (other.Minutes != 0) {
        Minutes = other.Minutes;
      }
      if (other.Seconds != 0) {
        Seconds = other.Seconds;
      }
      if (other.Nanos != 0) {
        Nanos = other.Nanos;
      }
      switch (other.TimeOffsetCase) {
        case TimeOffsetOneofCase.UtcOffset:
          if (UtcOffset == null) {
            UtcOffset = new global::Google.Protobuf.WellKnownTypes.Duration();
          }
          UtcOffset.MergeFrom(other.UtcOffset);
          break;
        case TimeOffsetOneofCase.TimeZone:
          if (TimeZone == null) {
            TimeZone = new global::Google.Type.TimeZone();
          }
          TimeZone.MergeFrom(other.TimeZone);
          break;
      }

      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(pb::CodedInputStream input) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      input.ReadRawMessage(this);
    #else
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 8: {
            Year = input.ReadInt32();
            break;
          }
          case 16: {
            Month = input.ReadInt32();
            break;
          }
          case 24: {
            Day = input.ReadInt32();
            break;
          }
          case 32: {
            Hours = input.ReadInt32();
            break;
          }
          case 40: {
            Minutes = input.ReadInt32();
            break;
          }
          case 48: {
            Seconds = input.ReadInt32();
            break;
          }
          case 56: {
            Nanos = input.ReadInt32();
            break;
          }
          case 66: {
            global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
            if (timeOffsetCase_ == TimeOffsetOneofCase.UtcOffset) {
              subBuilder.MergeFrom(UtcOffset);
            }
            input.ReadMessage(subBuilder);
            UtcOffset = subBuilder;
            break;
          }
          case 74: {
            global::Google.Type.TimeZone subBuilder = new global::Google.Type.TimeZone();
            if (timeOffsetCase_ == TimeOffsetOneofCase.TimeZone) {
              subBuilder.MergeFrom(TimeZone);
            }
            input.ReadMessage(subBuilder);
            TimeZone = subBuilder;
            break;
          }
        }
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 8: {
            Year = input.ReadInt32();
            break;
          }
          case 16: {
            Month = input.ReadInt32();
            break;
          }
          case 24: {
            Day = input.ReadInt32();
            break;
          }
          case 32: {
            Hours = input.ReadInt32();
            break;
          }
          case 40: {
            Minutes = input.ReadInt32();
            break;
          }
          case 48: {
            Seconds = input.ReadInt32();
            break;
          }
          case 56: {
            Nanos = input.ReadInt32();
            break;
          }
          case 66: {
            global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
            if (timeOffsetCase_ == TimeOffsetOneofCase.UtcOffset) {
              subBuilder.MergeFrom(UtcOffset);
            }
            input.ReadMessage(subBuilder);
            UtcOffset = subBuilder;
            break;
          }
          case 74: {
            global::Google.Type.TimeZone subBuilder = new global::Google.Type.TimeZone();
            if (timeOffsetCase_ == TimeOffsetOneofCase.TimeZone) {
              subBuilder.MergeFrom(TimeZone);
            }
            input.ReadMessage(subBuilder);
            TimeZone = subBuilder;
            break;
          }
        }
      }
    }
    #endif

  }

  ///
  /// Represents a time zone from the
  /// [IANA Time Zone Database](https://www.iana.org/time-zones).
  ///
  public sealed partial class TimeZone : pb::IMessage<TimeZone>
  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      , pb::IBufferMessage
  #endif
  {
    private static readonly pb::MessageParser<TimeZone> _parser = new pb::MessageParser<TimeZone>(() => new TimeZone());
    private pb::UnknownFieldSet _unknownFields;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pb::MessageParser<TimeZone> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Google.Type.DatetimeReflection.Descriptor.MessageTypes[1]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TimeZone() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TimeZone(TimeZone other) : this() {
      id_ = other.id_;
      version_ = other.version_;
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public TimeZone Clone() {
      return new TimeZone(this);
    }

    /// Field number for the "id" field.
    public const int IdFieldNumber = 1;
    private string id_ = "";
    ///
    /// IANA Time Zone Database time zone, e.g. "America/New_York".
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Id {
      get { return id_; }
      set {
        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// Field number for the "version" field.
    public const int VersionFieldNumber = 2;
    private string version_ = "";
    ///
    /// Optional. IANA Time Zone Database version number, e.g. "2019a".
    ///
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public string Version {
      get { return version_; }
      set {
        version_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override bool Equals(object other) {
      return Equals(other as TimeZone);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public bool Equals(TimeZone other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Id != other.Id) return false;
      if (Version != other.Version) return false;
      return Equals(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override int GetHashCode() {
      int hash = 1;
      if (Id.Length != 0) hash ^= Id.GetHashCode();
      if (Version.Length != 0) hash ^= Version.GetHashCode();
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void WriteTo(pb::CodedOutputStream output) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      output.WriteRawMessage(this);
    #else
      if (Id.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Id);
      }
      if (Version.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(Version);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
      if (Id.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Id);
      }
      if (Version.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(Version);
      }
      if (_unknownFields != null) {
        _unknownFields.WriteTo(ref output);
      }
    }
    #endif

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public int CalculateSize() {
      int size = 0;
      if (Id.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
      }
      if (Version.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Version);
      }
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(TimeZone other) {
      if (other == null) {
        return;
      }
      if (other.Id.Length != 0) {
        Id = other.Id;
      }
      if (other.Version.Length != 0) {
        Version = other.Version;
      }
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    public void MergeFrom(pb::CodedInputStream input) {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
      input.ReadRawMessage(this);
    #else
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
            break;
          case 10: {
            Id = input.ReadString();
            break;
          }
          case 18: {
            Version = input.ReadString();
            break;
          }
        }
      }
    #endif
    }

    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
            break;
          case 10: {
            Id = input.ReadString();
            break;
          }
          case 18: {
            Version = input.ReadString();
            break;
          }
        }
      }
    }
    #endif

  }

  #endregion

}

#endregion Designer generated code


text:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Icons</title>

    <link rel="stylesheet" href="styles/demo.css"/>
    <link rel="stylesheet" href="styles/skycons.css"/>

Skycons
        v{{ site.version }}

                Github Repo

            Name
            Default
            Active
            hover
            SVG

        <% _.each(glyphs, function(glyph) { %>

            skycon--<%= glyph.name %>
            <i class="skycon skycon--<%= glyph.name %>" aria-hidden=true>
            <i class="skycon skycon--<%= glyph.name %> skycon--active" aria-hidden=true>
            <i class="skycon skycon--<%= glyph.name %>" aria-hidden=true>
            <a href="icons/<%= glyph.name %>.svg" target="_new" title="Right click and 'Save as...'">view...

        <% }); %>

redpajama_set_name: RedPajamaGithub


text:
namespace CRMApiGatewayEndpoint
{
    using Microsoft.Crm.Sdk.Samples.HelperCode;
    using Newtonsoft.Json.Linq;
    using System;
    using System.Text;
    using System.Net.Http;
    using System.Net.Http.Headers;
    using System.Threading.Tasks;
    using System.Linq;
    using System.Net;

    public class CRMApiManager : IDisposable
    {
        private HttpClient httpClient { get; }

        public CRMApiManager()
        {
            Configuration config = new FileConfiguration(null);

            Authentication auth = new Authentication(config);
            //Next use a HttpClient object to connect to specified CRM Web service.
            httpClient = new HttpClient(auth.ClientHandler, true);
            //Define the Web API base address, the max period of execute time, the
            // default OData version, and the default response payload format.
            httpClient.BaseAddress = new Uri(config.ServiceUrl + "api/data/v8.1/");
            httpClient.Timeout = new TimeSpan(0, 2, 0);
            httpClient.DefaultRequestHeaders.Add("OData-MaxVersion", "4.0");
            httpClient.DefaultRequestHeaders.Add("OData-Version", "4.0");
            httpClient.DefaultRequestHeaders.Accept.Add(
                new MediaTypeWithQualityHeaderValue("application/json"));
        }

        public async Task<string> CreateTaskForContact(Guid contactId, string subject, string description, DateTimeOffset deadline)
        {
            //Get the URI from the connectionstring and build the proper Customer URI
            //var connection = System.Configuration.ConfigurationManager.ConnectionStrings["default"].ConnectionString;
            // var connection = System.Environment.GetEnvironmentVariable("Dynamics365API.ConnectionString");
            //var crmcontactURI = connection.Substring(connection.IndexOf('=') + 1, (connection.IndexOf(';')) - (connection.IndexOf('=') + 1)) + $"api/data/v8.1/contacts({contactId})" ;

            var crmcontactUri = httpClient.BaseAddress.OriginalString + $"contacts({contactId})";
            var task = new JObject
            {
                {"subject", subject},
                {"description", description},
                {"scheduledend", deadline},
                {"statecode", 0},
                {"statuscode", 3},
                {"regardingobjectid_contact@odata.bind", crmcontactUri}
            };

            HttpRequestMessage createRequest = new HttpRequestMessage(HttpMethod.Post, "tasks");
            createRequest.Content = new StringContent(task.ToString(), Encoding.UTF8, "application/json");
            HttpResponseMessage createResponse = await httpClient.SendAsync(createRequest);
            if (createResponse.StatusCode == HttpStatusCode.NoContent)
            {
                var newtaskuri = createResponse.Headers.GetValues("OData-EntityId").
                    FirstOrDefault();

                Console.WriteLine("Task '{0}' created. {1}", task.GetValue("subject"), newtaskuri);
                return newtaskuri;
            }

            Console.WriteLine("Failed to create task for reason: {0}.", createResponse.ReasonPhrase);
            throw new CrmHttpResponseException(createResponse.Content);
        }

        internal enum TaskStatus
        {
            InProgress = 3,
            Completed = 5
        }

        internal enum TaskState
        {
            Open = 0,
            Completed = 1,
            Cancelled = 2
        }

        public async Task<Guid> UpdateTask(Guid taskId, bool markAsCompleted, Guid assignTo, string description)
        {
            //Get the URI from the connectionstring and build the proper Customer URI
            Console.WriteLine($"Updating Task {taskId} with Mark complete = {markAsCompleted}");
            var taskUri = httpClient.BaseAddress.OriginalString + $"tasks({taskId})";

            var taskAdd = new JObject();

            if (markAsCompleted)
            {
                taskAdd.Add("statuscode", (int)TaskStatus.Completed);
                taskAdd.Add("statecode", (int)TaskState.Completed);
                taskAdd.Add("percentcomplete", 100);
            }
            else
            {
                taskAdd.Add("statuscode", (int)TaskStatus.InProgress);
                taskAdd.Add("statecode", (int)TaskState.Open);
            }
            taskAdd.Add("description", description);
            //  taskAdd.Add("owninguser", assignTo);

            HttpRequestMessage updateRequest1 = new HttpRequestMessage(new HttpMethod("PATCH"), taskUri);
            updateRequest1.Content = new StringContent(taskAdd.ToString(), Encoding.UTF8, "application/json");
            HttpResponseMessage updateResponse1 = await httpClient.SendAsync(updateRequest1);
            if (updateResponse1.StatusCode == HttpStatusCode.NoContent) //204
            {

                Console.WriteLine($"Task {taskId} has been updated");
                return new Guid();
            }

            //Console.WriteLine("Failed to update contact for reason: {0}",
            //  updateResponse1.ReasonPhrase);
            throw new CrmHttpResponseException(updateResponse1.Content);
        }

        public void Dispose()
        {
            if (this.httpClient != null)
            {
                httpClient.CancelPendingRequests();
                httpClient.Dispose();
            }
        }
    }
}


text:
<?php
/**
 * The contents of this file was generated using the WSDLs as provided by eBay.
 *
 * DO NOT EDIT THIS FILE!
 */

namespace DTS\eBaySDK\Trading\Enums;

/**
 *
 */
class BoldTitleCodeType
{
    const C_CUSTOM_CODE = 'CustomCode';
    const C_DISABLED = 'Disabled';
    const C_ENABLED = 'Enabled';
}


text:
<?php

namespace MwbExporter\Formatter;

use MwbExporter\Model\Column;

interface DatatypeConverterInterface
{
    const DATATYPE_TINYINT             = 'com.mysql.rdbms.mysql.datatype.tinyint';
    const DATATYPE_SMALLINT            = 'com.mysql.rdbms.mysql.datatype.smallint';
    const DATATYPE_MEDIUMINT           = 'com.mysql.rdbms.mysql.datatype.mediumint';
    const DATATYPE_INT                 = 'com.mysql.rdbms.mysql.datatype.int';
    const DATATYPE_BIGINT              = 'com.mysql.rdbms.mysql.datatype.bigint';
    const DATATYPE_FLOAT               = 'com.mysql.rdbms.mysql.datatype.float';
    const DATATYPE_DOUBLE              = 'com.mysql.rdbms.mysql.datatype.double';
    const DATATYPE_DECIMAL             = 'com.mysql.rdbms.mysql.datatype.decimal';
    const DATATYPE_CHAR                = 'com.mysql.rdbms.mysql.datatype.char';
    const DATATYPE_VARCHAR             = 'com.mysql.rdbms.mysql.datatype.varchar';
    const DATATYPE_BINARY              = 'com.mysql.rdbms.mysql.datatype.binary';
    const DATATYPE_VARBINARY           = 'com.mysql.rdbms.mysql.datatype.varbinary';
    const DATATYPE_TINYTEXT            = 'com.mysql.rdbms.mysql.datatype.tinytext';
    const DATATYPE_TEXT                = 'com.mysql.rdbms.mysql.datatype.text';
    const DATATYPE_MEDIUMTEXT          = 'com.mysql.rdbms.mysql.datatype.mediumtext';
    const DATATYPE_LONGTEXT            = 'com.mysql.rdbms.mysql.datatype.longtext';
    const DATATYPE_TINYBLOB            = 'com.mysql.rdbms.mysql.datatype.tinyblob';
    const DATATYPE_BLOB                = 'com.mysql.rdbms.mysql.datatype.blob';
    const DATATYPE_MEDIUMBLOB          = 'com.mysql.rdbms.mysql.datatype.mediumblob';
    const DATATYPE_LONGBLOB            = 'com.mysql.rdbms.mysql.datatype.longblob';
    const DATATYPE_DATETIME            = 'com.mysql.rdbms.mysql.datatype.datetime';
    const DATATYPE_DATE                = 'com.mysql.rdbms.mysql.datatype.date';
    const DATATYPE_TIME                = 'com.mysql.rdbms.mysql.datatype.time';
    const DATATYPE_YEAR                = 'com.mysql.rdbms.mysql.datatype.year';
    const DATATYPE_TIMESTAMP           = 'com.mysql.rdbms.mysql.datatype.timestamp';
    const DATATYPE_GEOMETRY            = 'com.mysql.rdbms.mysql.datatype.geometry';
    const DATATYPE_LINESTRING          = 'com.mysql.rdbms.mysql.datatype.linestring';
    const DATATYPE_POLYGON             = 'com.mysql.rdbms.mysql.datatype.polygon';
    const DATATYPE_MULTIPOINT          = 'com.mysql.rdbms.mysql.datatype.multipoint';
    const DATATYPE_MULTILINESTRING     = 'com.mysql.rdbms.mysql.datatype.multilinestring';
    const DATATYPE_MULTIPOLYGON        = 'com.mysql.rdbms.mysql.datatype.multipolygon';
    const DATATYPE_GEOMETRYCOLLECTION  = 'com.mysql.rdbms.mysql.datatype.geometrycollection';
    const DATATYPE_BIT                 = 'com.mysql.rdbms.mysql.datatype.bit';
    const DATATYPE_ENUM                = 'com.mysql.rdbms.mysql.datatype.enum';
    const DATATYPE_SET                 = 'com.mysql.rdbms.mysql.datatype.set';
    const USERDATATYPE_DATETIME        = 'com.mysql.rdbms.mysql.datatype.datetime_f';
    const USERDATATYPE_BOOLEAN         = 'com.mysql.rdbms.mysql.userdatatype.boolean';
    const USERDATATYPE_BOOL            = 'com.mysql.rdbms.mysql.userdatatype.bool';
    const USERDATATYPE_FIXED           = 'com.mysql.rdbms.mysql.userdatatype.fixed';
    const USERDATATYPE_FLOAT4          = 'com.mysql.rdbms.mysql.userdatatype.float4';
    const USERDATATYPE_FLOAT8          = 'com.mysql.rdbms.mysql.userdatatype.float8';
    const USERDATATYPE_INT1            = 'com.mysql.rdbms.mysql.userdatatype.int1';
    const USERDATATYPE_INT2            = 'com.mysql.rdbms.mysql.userdatatype.int2';
    const USERDATATYPE_INT3            = 'com.mysql.rdbms.mysql.userdatatype.int3';
    const USERDATATYPE_INT4            = 'com.mysql.rdbms.mysql.userdatatype.int4';
    const USERDATATYPE_INT8            = 'com.mysql.rdbms.mysql.userdatatype.int8';
    const USERDATATYPE_INTEGER         = 'com.mysql.rdbms.mysql.userdatatype.integer';
    const USERDATATYPE_LONGVARBINARY   = 'com.mysql.rdbms.mysql.userdatatype.longvarbinary';
    const USERDATATYPE_LONGVARCHAR     = 'com.mysql.rdbms.mysql.userdatatype.longvarchar';
    const USERDATATYPE_LONG            = 'com.mysql.rdbms.mysql.userdatatype.long';
    const USERDATATYPE_MIDDLEINT       = 'com.mysql.rdbms.mysql.userdatatype.middleint';
    const USERDATATYPE_NUMERIC         = 'com.mysql.rdbms.mysql.userdatatype.numeric';
    const USERDATATYPE_DEC             = 'com.mysql.rdbms.mysql.userdatatype.dec';
    const USERDATATYPE_CHARACTER       = 'com.mysql.rdbms.mysql.userdatatype.character';

    const USERDATATYPE_DATETIME_WITH_MILLISECOND_NATIVE = 'datetime_with_millisecond';
    const USERDATATYPE_TIMESTAMP        = 'com.mysql.rdbms.mysql.datatype.timestamp_f';

    const USERDATATYPE_DATETIME_NATIVE = 'datetime';
    const USERDATATYPE_DATEINTERVAL_NATIVE = 'dateinterval';

    public function setup();
    public function getDataType($key);
    public function getNativeType($type);
    public function getMappedType(Column $column);
    public function getType(Column $column);
}


text:
import { eventSandbox } from '../../deps/hammerhead';
import {
    EstablishConnectionMessage,
    CommandExecutedMessage,
    HasPendingActionFlagsMessage,
} from '../messages';
import { CurrentIframeIsNotLoadedError } from '../../../../shared/errors';
import sendMessageToDriver from '../send-message-to-driver';
import { WAIT_FOR_IFRAME_DRIVER_RESPONSE_TIMEOUT } from '../timeouts';
import sendConfirmationMessage from '../send-confirmation-message';

export default class ParentIframeDriverLink {
    constructor (parentDriverWindow) {
        this.driverWindow = parentDriverWindow;
    }

    establishConnection () {
        const msg = new EstablishConnectionMessage();

        return sendMessageToDriver(msg, this.driverWindow, WAIT_FOR_IFRAME_DRIVER_RESPONSE_TIMEOUT, CurrentIframeIsNotLoadedError)
            .then(response => response.result.id);
    }

    sendConfirmationMessage (requestMsgId) {
        sendConfirmationMessage({
            requestMsgId,
            window: this.driverWindow,
        });
    }

    onCommandExecuted (status) {
        const msg = new CommandExecutedMessage(status);

        eventSandbox.message.sendServiceMsg(msg, this.driverWindow);
    }

    async hasPendingActionFlags () {
        const response = await sendMessageToDriver(
            new HasPendingActionFlagsMessage(),
            this.driverWindow,
            WAIT_FOR_IFRAME_DRIVER_RESPONSE_TIMEOUT,
            CurrentIframeIsNotLoadedError
        );

        return response.result;
    }
}


text:
import React from 'react';
import PropTypes from 'prop-types';
import { messageActions } from '../../actions';
import {Pagination} from 'react-bootstrap';
import {
    Card,
    CardText,
    RaisedButton,
    CardTitle,
    CardActions,
    Table,
    TableBody,
    TableHeader
} from 'material-ui';
import RelatoriosSearch from './RelatoriosSearch';

class Relatorios extends React.Component
{
    constructor(props)
    {
        super(props);

        this.handleConsultar = this.handleConsultar.bind(this);
        this.handleAdicionar = this.handleAdicionar.bind(this);

        this.resource = `${window.App.basePath}/app/${this.props.resource}`;
        this.state = {
            itens: [],
            form: false,
            obj: null
        };

        this.consulta = {
            page: 1,
            rows: 15,
            total: 1,
            info: '',
            filtros: (this.props.filtros || {}),
            sidx: this.props.sidx,
            sord: this.props.sord
        };
    }

    componentWillReceiveProps(nextProps)
    {
        if (this.consulta.sidx != nextProps.sidx || this.consulta.sord != nextProps.sord) {
            this.consulta.sidx = nextProps.sidx;
            this.consulta.sord = nextProps.sord;
            this.consultar(this.consulta.page);
        }
    }

    consultar(page)
    {
        this.consulta.page = page;

        App.fetch.getJson(this.resource + '/consultar', {
            body: JSON.stringify(this.consulta),
            method: "POST"
        }).then((resp) => {

            var inicio = 0,
                info = '',
                fim = 0;

            if (resp.rows.length) {
                inicio = ((resp.page - 1) * 10) + 1;
                fim = inicio + resp.rows.length - 1;
            }

            var info = 'Mostrando ' + inicio + ' até ' + fim + ' de ' + resp.records + ' registros';

            this.consulta.info = info;
            this.consulta.page = resp.page;
            this.consulta.total = resp.total;
            this.setState({itens: resp.rows});
        });
    }

    remover(id)
    {
        App.fetch.getJson(this.resource + '/excluir/' + id).then((data) => {
            if (data.type === "success") {
                this.consultar();
                this.props.clear && this.props.clear();
                this.context.store.dispatch(messageActions.showNotify(data.msg));
                return;
            }
            this.consulta.setState({bloqueado: false});
            if (!data.exception) {
                this.context.store.dispatch(messageActions.showNotify(data.msg));
                return;
            }

            this.context.store.dispatch(messageActions.showError(data.msg, data.exception));
        });
    }

    handleConsultar()
    {
        this.consultar(this.consulta.page);
    }

    onPageChange(page)
    {
        this.consultar(page);
    }

    handleAdicionar()
    {
        this.setState({form: true, obj: {}});
    }

    handleCancelar()
    {
        this.props.clear && this.props.clear();
        this.setState({form: false, obj: null});
    }

    onSearch(filtros)
    {
        this.consulta.filtros = filtros;
        this.consultar(this.consulta.page);
    }

    handleKeyPress(e)
    {
        var types = ['TEXTAREA', 'textarea', 'BUTTON', 'submit', 'button'];
        if(jQuery.inArray(e['target'].type, types) === -1 && jQuery.inArray(e.charCode, [10, 13]) !== -1 ) {
            e.preventDefault();
        }
    }

    render()
    {
       var itens = this.props.renderItens(this.state.itens);
        return (
            <Card style={{ margin: '2em'}}>
                <RelatoriosSearch
                    title={this.props.title}
                    campos={this.props.campos}
                    filtros={this.consulta.filtros}
                    filters={this.props.filters}
                    onSearch={this.onSearch.bind(this)}
                    handleConsultar={this.handleConsultar}
                    handleAdicionar={this.handleAdicionar}
                />

 { this.table = elm; }} wrapperStyle={{'width': '100%'}}>
                    {this.props.tableHeader}
                    <TableBody displayRowCheckbox={false}>{itens}</TableBody>

                    <Pagination
                        prev next first last ellipsis boundaryLinks
                        maxButtons={5}
                        items={this.consulta.total}
                        activePage={this.consulta.page}
                        onSelect={this.onPageChange.bind(this)} />

                    {this.consulta.info}

            </Card>
        );
    }
};

Relatorios.propTypes = {
    resource: PropTypes.string.isRequired,
    renderItens: PropTypes.func.isRequired,
    onSubmit: PropTypes.func.isRequired,
    campos: PropTypes.array,
    tableHeader: PropTypes.object
};

Relatorios.defaultProps = {

};

Relatorios.contextTypes = {
    router: React.PropTypes.object.isRequired,
    store: React.PropTypes.object.isRequired
};

export default Relatorios;


text:
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*                                                                       */
/*    This file is part of the HiGHS linear optimization suite           */
/*                                                                       */
/*    Written and engineered 2008-2020 at the University of Edinburgh    */
/*                                                                       */
/*    Available as open-source under the MIT License                     */
/*                                                                       */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/**@file lp_data/HStruct.h
 * @brief Structs for HiGHS
 * @author Julian Hall, Ivet Galabova, Qi Huangfu and Michael Feldmeier
 */
#ifndef LP_DATA_HSTRUCT_H_
#define LP_DATA_HSTRUCT_H_

#include <vector>

#include "lp_data/HConst.h"

struct HighsIterationCounts {
  int simplex = 0;
  int ipm = 0;
  int crossover = 0;
};

struct HighsScale {
  bool is_scaled_ = false;
  double cost_;
  std::vector<double> col_;
  std::vector<double> row_;
};

struct HighsSolution {
  std::vector<double> col_value;
  std::vector<double> col_dual;
  std::vector<double> row_value;
  std::vector<double> row_dual;
};

struct HighsBasis {
  bool valid_ = false;
  std::vector<HighsBasisStatus> col_status;
  std::vector<HighsBasisStatus> row_status;
};

struct HighsSolutionParams {
  // Input to solution analysis method
  double primal_feasibility_tolerance;
  double dual_feasibility_tolerance;
  int primal_status = PrimalDualStatus::STATUS_NOTSET;
  int dual_status = PrimalDualStatus::STATUS_NOTSET;
  // Output from solution analysis method
  double objective_function_value;
  int num_primal_infeasibilities;
  double sum_primal_infeasibilities;
  double max_primal_infeasibility;
  int num_dual_infeasibilities;
  double sum_dual_infeasibilities;
  double max_dual_infeasibility;
};

#endif /* LP_DATA_HSTRUCT_H_ */


text:
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of BCGControlBar Library Professional Edition
// Copyright (C) 1998-2014 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions
// of the accompanying license agreement.
//*******************************************************************************
//
// BCGPPlannerPrintDay.h : header file
//

#include "BCGCBPro.h"

#ifndef BCGP_EXCLUDE_PLANNER

#include "BCGPPlannerView.h"
#include "BCGPPlannerPrint.h"

/////////////////////////////////////////////////////////////////////////////
// CBCGPPlannerPrintDay

class BCGCBPRODLLEXPORT CBCGPPlannerPrintDay : public CBCGPPlannerPrint
{
	DECLARE_DYNCREATE(CBCGPPlannerPrintDay)

public:
	virtual ~CBCGPPlannerPrintDay();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	CBCGPPlannerView::BCGP_PLANNER_TIME_DELTA GetTimeDelta () const
	{
		return m_TimeDelta;
	}

	int GetViewHours () const;
	int GetViewHourOffset () const;

	virtual void OnPaint (CDC* pDC, CPrintInfo* pInfo);

	virtual void AdjustAppointments ();

protected:
	CBCGPPlannerPrintDay ();

	virtual void CalculateDates (const COleDateTime& date);

	virtual void GetCaptionFormatStrings (CStringArray& sa);
	virtual void AdjustLayout (CDC* pDC, const CRect& rectClient);
	virtual void AdjustRects ();

	virtual void OnDrawClient (CDC* pDC);
	virtual void OnDrawHeader (CDC* pDC, const CRect& rectHeader);
	virtual void OnDrawHeaderAllDay (CDC* pDC, const CRect& rectHeader);
	virtual void OnDrawTimeBar (CDC* pDC, const CRect& rectBar);
	virtual void OnDrawAppointmentsDuration (CDC* pDC);

	virtual void OnDrawPageHeader (CDC* pDC);

	virtual void DrawAppointment (CDC* pDC, CBCGPAppointment* pApp, CBCGPAppointmentDrawStruct* pDS);

	virtual void CheckVisibleAppointments(const COleDateTime& date, const CRect& rect,
		BOOL bFullVisible);

protected:
	CRect				m_rectTimeBar;
	int                 m_nHeaderHeight;
	int					m_nHeaderAllDayHeight;

	CBCGPPlannerView::BCGP_PLANNER_TIME_DELTA
						m_TimeDelta;
};

#endif // BCGP_EXCLUDE_PLANNER

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BCGPPLANNERPRINTDAY_H__5B346DCD_33F3_4E8B_AA24_5D2015EF78D1__INCLUDED_)


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic;
using Xoqal.Core.Query;

namespace Xoqal.Data.Relational.EF6.Extensions
{
    public static class QueryableExtensions
    {
        /// <summary>
        /// Sorts the specified query.
        /// </summary>
        /// <typeparam name="T"> </typeparam>
        /// <param name="query"> The query. </param>
        /// <param name="sortDescriptions"> The sort descriptions. </param>
        /// <returns> </returns>
        public static IQueryable<T> Sort<T>(this IQueryable<T> query, SortDescription[] sortDescriptions)
        {
            if (query == null)
            {
                throw new ArgumentNullException("query");
            }

            if (sortDescriptions != null)
            {
                foreach (SortDescription sortDescription in sortDescriptions.Reverse())
                {
                    string property = sortDescription.PropertyName;
                    if (sortDescription.Direction == SortDirection.Descending)
                    {
                        property += " DESC";
                    }

                    query = query.OrderBy(property);
                }
            }

            return query;
        }

        /// <summary>
        /// Gets the paginated data.
        /// </summary>
        /// <typeparam name="T"> </typeparam>
        /// <param name="query"> The query. </param>
        /// <param name="startIndex"> Start index of the row. </param>
        /// <param name="itemCount"> Size of the page. </param>
        /// <param name="sortDescriptions"> The sort descriptions. </param>
        /// <returns> </returns>
        public static IQueryable<T> ToPage<T>(this IQueryable<T> query, int startIndex, int itemCount, SortDescription[] sortDescriptions)
        {
            if (query == null)
            {
                throw new ArgumentNullException("query");
            }

            if (sortDescriptions != null)
            {
                foreach (SortDescription sortDescription in sortDescriptions.Reverse())
                {
                    string property = sortDescription.PropertyName;
                    if (sortDescription.Direction == SortDirection.Descending)
                    {
                        property += " DESC";
                    }

                    query = query.OrderBy(property);
                }
            }

            if (startIndex < 0)
            {
                startIndex = 0;
            }

            return query.Skip(startIndex).Take(itemCount);
        }

        /// <summary>
        /// Gets the paginated data.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="query">The query.</param>
        /// <param name="page">The page.</param>
        /// <param name="pageSize">Size of the page.</param>
        /// <param name="sortExpression">The sort expression.</param>
        /// <returns></returns>
        /// <exception cref="System.ArgumentNullException"></exception>
        /// <exception cref="System.ArgumentNullException"></exception>
        public static IQueryable<T> ToPage<T>(this IQueryable<T> query, int? page, int pageSize, string sortExpression)
        {
            if (query == null)
            {
                throw new ArgumentNullException("query");
            }

            return query.ToPage(
                ((page ?? 1) - 1) * pageSize,
                pageSize,
                GetSortDescriptions(sortExpression).ToArray());
        }

        /// <summary>
        /// Gets the paginated data.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="query">The query.</param>
        /// <param name="paginatedCriteria">The paginated criteria.</param>
        /// <returns></returns>
        /// <exception cref="System.ArgumentNullException">query</exception>
        /// <exception cref="System.ArgumentNullException"></exception>
        public static IQueryable<T> ToPage<T>(this IQueryable<T> query, IPaginatedCriteria paginatedCriteria)
        {
            if (query == null)
            {
                throw new ArgumentNullException("query");
            }

            return query.ToPage(paginatedCriteria.StartIndex, paginatedCriteria.PageSize, paginatedCriteria.SortDescriptions);
        }

        /// <summary>
        /// Creates an <see cref="IPaginated{T}" /> instance from the specified query.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="query">The query.</param>
        /// <param name="paginatedCriteria">The paginated criteria.</param>
        /// <returns></returns>
        public static IPaginated<T> ToPaginated<T>(this IQueryable<T> query, IPaginatedCriteria paginatedCriteria)
        {
            return new Paginated<T>(
                query.ToPage(paginatedCriteria.StartIndex, paginatedCriteria.PageSize,paginatedCriteria.SortDescriptions),
                query.Count(),
                paginatedCriteria.CurrentPage,
                paginatedCriteria.PageSize);
        }

        /// <summary>
        /// Gets the sort descriptions from the specified criteria.
        /// </summary>
        /// <param name="sort">The sort.</param>
        /// <returns></returns>
        private static IEnumerable<SortDescription> GetSortDescriptions(string sort)
        {
            SortDescription sortDescription;
            if (SortDescription.TryParse(sort, out sortDescription))
            {
                yield return sortDescription;
            }
        }
    }
}


text:
package com.google.javascript.rhino.jstype;

import static com.google.javascript.rhino.jstype.TernaryValue.FALSE;
import static com.google.javascript.rhino.jstype.TernaryValue.TRUE;
import static com.google.javascript.rhino.jstype.TernaryValue.UNKNOWN;

import junit.framework.TestCase;

/**
 * Tests the behavior of {@link TernaryValue} by verifying the truth tables
 * of the operations {@link TernaryValue#and(TernaryValue)},
 * {@link TernaryValue#not()}, {@link TernaryValue#or(TernaryValue)}
 * and {@link TernaryValue#xor(TernaryValue)} as well as the
 * {@link TernaryValue#toBoolean(boolean)} method.
 *
*
 */
public class TernaryValueTest extends TestCase {
  public void testOrdinal() throws Exception {
    assertEquals(0, FALSE.ordinal());
    assertEquals(1, TRUE.ordinal());
    assertEquals(2, UNKNOWN.ordinal());
  }

  public void testAnd() throws Exception {
    assertEquals(TRUE, TRUE.and(TRUE));
    assertEquals(FALSE, TRUE.and(FALSE));
    assertEquals(UNKNOWN, TRUE.and(UNKNOWN));

    assertEquals(FALSE, FALSE.and(TRUE));
    assertEquals(FALSE, FALSE.and(FALSE));
    assertEquals(FALSE, FALSE.and(UNKNOWN));

    assertEquals(UNKNOWN, UNKNOWN.and(TRUE));
    assertEquals(FALSE, UNKNOWN.and(FALSE));
    assertEquals(UNKNOWN, UNKNOWN.and(UNKNOWN));
  }

  public void testNot() throws Exception {
    assertEquals(FALSE, TRUE.not());
    assertEquals(TRUE, FALSE.not());
    assertEquals(UNKNOWN, UNKNOWN.not());
  }

  public void testOr() throws Exception {
    assertEquals(TRUE, TRUE.or(TRUE));
    assertEquals(TRUE, TRUE.or(FALSE));
    assertEquals(TRUE, TRUE.or(UNKNOWN));

    assertEquals(TRUE, FALSE.or(TRUE));
    assertEquals(FALSE, FALSE.or(FALSE));
    assertEquals(UNKNOWN, FALSE.or(UNKNOWN));

    assertEquals(TRUE, UNKNOWN.or(TRUE));
    assertEquals(UNKNOWN, UNKNOWN.or(FALSE));
    assertEquals(UNKNOWN, UNKNOWN.or(UNKNOWN));
  }

  public void testXor() throws Exception {
    assertEquals(FALSE, TRUE.xor(TRUE));
    assertEquals(TRUE, TRUE.xor(FALSE));
    assertEquals(UNKNOWN, TRUE.xor(UNKNOWN));

    assertEquals(TRUE, FALSE.xor(TRUE));
    assertEquals(FALSE, FALSE.xor(FALSE));
    assertEquals(UNKNOWN, FALSE.xor(UNKNOWN));

    assertEquals(UNKNOWN, UNKNOWN.xor(TRUE));
    assertEquals(UNKNOWN, UNKNOWN.xor(FALSE));
    assertEquals(UNKNOWN, UNKNOWN.xor(UNKNOWN));
  }

  public void testToBoolean() throws Exception {
    assertTrue(TRUE.toBoolean(true));
    assertTrue(TRUE.toBoolean(false));

    assertFalse(FALSE.toBoolean(true));
    assertFalse(FALSE.toBoolean(false));

    assertTrue(UNKNOWN.toBoolean(true));
    assertFalse(UNKNOWN.toBoolean(false));
  }

  public void testToString() {
    assertEquals("true", TRUE.toString());
    assertEquals("false", FALSE.toString());
    assertEquals("unknown", UNKNOWN.toString());
  }
}


text:
using System;

namespace CasinoStrats.Core
{
    public class Player
    {
        public decimal Bankroll { get; private set; }

        public Player(decimal bankroll)
        {
            this.Bankroll = bankroll;
        }

        public bool TryDeduct(decimal amount)
        {
            if (amount < 0)
                throw new ArgumentException("Deductions must be positive", nameof(amount));

            if (Bankroll < amount)
                return false;

            Bankroll -= amount;
            return true;
        }

        public void Pay(decimal amount)
        {
            if (amount < 0)
                throw new ArgumentException("Payments must be positive", nameof(amount));

            Bankroll += amount;
        }
    }
}


text:
using CompareCloudware.Web;
using System;
using System.Runtime.CompilerServices;

namespace CompareCloudware.Web.Models
{
    public class GlobalSearchPageContainerModel : BaseModel
    {
        public GlobalSearchPageContainerModel()
        {
            this.SearchResultsModel = new GlobalSearchResultsModel();
            this.ChosenCloudApplicationModel = new CloudApplicationModel();
        }

        public GlobalSearchPageContainerModel(ICustomSession session)
        {
            base.CustomSession = session;
            this.SearchResultsModel = new GlobalSearchResultsModel(session);
            this.ChosenCloudApplicationModel = new CloudApplicationModel(session);
        }

        public CloudApplicationModel ChosenCloudApplicationModel { get; set; }
        public GlobalSearchResultsModel SearchResultsModel { get; set; }
    }
}


text:
layout: default
title: Welcome
---
<!-- Hello world! -->
<img src="public/home.jpg">


text:
package net.pubnative.player.model;

import java.math.BigInteger;

public class VASTMediaFile {

    private String     value;
    private String     id;
    private String     delivery;
    private String     type;
    private BigInteger bitrate;
    private BigInteger width;
    private BigInteger height;
    private Boolean    scalable;
    private Boolean    maintainAspectRatio;
    private String     apiFramework;

    public String getValue() {

        return value;
    }

    public void setValue(String value) {

        this.value = value;
    }

    public String getId() {

        return id;
    }

    public void setId(String value) {

        this.id = value;
    }

    public String getDelivery() {

        return delivery;
    }

    public void setDelivery(String value) {

        this.delivery = value;
    }

    public String getType() {

        return type;
    }

    public void setType(String value) {

        this.type = value;
    }

    public BigInteger getBitrate() {

        return bitrate;
    }

    public void setBitrate(BigInteger value) {

        this.bitrate = value;
    }

    public BigInteger getWidth() {

        return width;
    }

    public void setWidth(BigInteger value) {

        this.width = value;
    }

    public BigInteger getHeight() {

        return height;
    }

    public void setHeight(BigInteger value) {

        this.height = value;
    }

    public Boolean isScalable() {

        return scalable;
    }

    public void setScalable(Boolean value) {

        this.scalable = value;
    }

    public Boolean isMaintainAspectRatio() {

        return maintainAspectRatio;
    }

    public void setMaintainAspectRatio(Boolean value) {

        this.maintainAspectRatio = value;
    }

    public String getApiFramework() {

        return apiFramework;
    }

    public void setApiFramework(String value) {

        this.apiFramework = value;
    }

    @Override
    public String toString() {

        return "MediaFile [value=" + value + ", id=" + id + ", delivery=" + delivery + ", type=" + type + ", bitrate=" + bitrate + ", width=" + width + ", height=" + height + ", scalable=" + scalable + ", maintainAspectRatio=" + maintainAspectRatio + ", apiFramework=" + apiFramework + "]";
    }
}


text:
#include <aws/keyspaces/model/RestoreTableRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>

#include <utility>

using namespace Aws::Keyspaces::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;

RestoreTableRequest::RestoreTableRequest() :
    m_sourceKeyspaceNameHasBeenSet(false),
    m_sourceTableNameHasBeenSet(false),
    m_targetKeyspaceNameHasBeenSet(false),
    m_targetTableNameHasBeenSet(false),
    m_restoreTimestampHasBeenSet(false),
    m_capacitySpecificationOverrideHasBeenSet(false),
    m_encryptionSpecificationOverrideHasBeenSet(false),
    m_pointInTimeRecoveryOverrideHasBeenSet(false),
    m_tagsOverrideHasBeenSet(false)
{
}

Aws::String RestoreTableRequest::SerializePayload() const
{
  JsonValue payload;

  if(m_sourceKeyspaceNameHasBeenSet)
  {
   payload.WithString("sourceKeyspaceName", m_sourceKeyspaceName);

  }

  if(m_sourceTableNameHasBeenSet)
  {
   payload.WithString("sourceTableName", m_sourceTableName);

  }

  if(m_targetKeyspaceNameHasBeenSet)
  {
   payload.WithString("targetKeyspaceName", m_targetKeyspaceName);

  }

  if(m_targetTableNameHasBeenSet)
  {
   payload.WithString("targetTableName", m_targetTableName);

  }

  if(m_restoreTimestampHasBeenSet)
  {
   payload.WithDouble("restoreTimestamp", m_restoreTimestamp.SecondsWithMSPrecision());
  }

  if(m_capacitySpecificationOverrideHasBeenSet)
  {
   payload.WithObject("capacitySpecificationOverride", m_capacitySpecificationOverride.Jsonize());

  }

  if(m_encryptionSpecificationOverrideHasBeenSet)
  {
   payload.WithObject("encryptionSpecificationOverride", m_encryptionSpecificationOverride.Jsonize());

  }

  if(m_pointInTimeRecoveryOverrideHasBeenSet)
  {
   payload.WithObject("pointInTimeRecoveryOverride", m_pointInTimeRecoveryOverride.Jsonize());

  }

  if(m_tagsOverrideHasBeenSet)
  {
   Array<JsonValue> tagsOverrideJsonList(m_tagsOverride.size());
   for(unsigned tagsOverrideIndex = 0; tagsOverrideIndex < tagsOverrideJsonList.GetLength(); ++tagsOverrideIndex)
   {
     tagsOverrideJsonList[tagsOverrideIndex].AsObject(m_tagsOverride[tagsOverrideIndex].Jsonize());
   }
   payload.WithArray("tagsOverride", std::move(tagsOverrideJsonList));

  }

  return payload.View().WriteReadable();
}

Aws::Http::HeaderValueCollection RestoreTableRequest::GetRequestSpecificHeaders() const
{
  Aws::Http::HeaderValueCollection headers;
  headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "KeyspacesService.RestoreTable"));
  return headers;

}


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

namespace MtgApiManager.Lib.Dto
{
    internal class SetDto
    {
        [JsonPropertyName("block")]
        public string Block { get; set; }

        [JsonPropertyName("booster")]
        public JsonElement Booster { get; set; }

        [JsonPropertyName("border")]
        public string Border { get; set; }

        [JsonPropertyName("code")]
        public string Code { get; set; }

        [JsonPropertyName("expansion")]
        public string Expansion { get; set; }

        [JsonPropertyName("gathererCode")]
        public string GathererCode { get; set; }

        [JsonPropertyName("magicCardsInfoCode")]
        public string MagicCardsInfoCode { get; set; }

        [JsonPropertyName("name")]
        public string Name { get; set; }

        [JsonPropertyName("oldCode")]
        public string OldCode { get; set; }

        [JsonPropertyName("onlineOnly")]
        public bool? OnlineOnly { get; set; }

        [JsonPropertyName("releaseDate")]
        public string ReleaseDate { get; set; }

        [JsonPropertyName("type")]
        public string Type { get; set; }
    }
}


text:
if (typeof define === 'function' && define.amd) {
    define(['chrome.storage'], function (chromeStorage) {
        "use strict";

        var getPersonalKey;

        /**
         * Retrieves the Github personal key and passes it as a parameter to the callback function.
         * @param {function} callback with personal key.
         *
         * The callback parameter should be a function that looks like this:
         * <tt>function(object items) {...};</tt>
         */
        getPersonalKey = function (callback) {
            chromeStorage.get('store.settings.personalKey', callback);
        };

        return {
            getPersonalKey: getPersonalKey
        };
    });
}


text:
redirect_to:
- http://tech.hbc.com/2014-09-19-gilt-presents-at-this-weekends-droidcon-nyc.html
layout:: post
title: Gilt Presents at This Weekend's Droidcon NYC!
date: '2014-09-19T19:05:41-04:00'
tags:
- Gilt
- Gilt Groupe
- Gilt Tech
- gilttech
- Droidcon NYC
- Android
- Kevin Schultz
- conferences
- mobile development
- mobile
- NYC
- tech
tumblr_url: http://tech.gilt.com/post/97921325269/gilt-presents-at-this-weekends-droidcon-nyc
---

Gilt Senior Software Engineer Kevin Schultz represents for our mobile team in a big way this weekend, when he takes the stage at the first-ever Droidcon NYC conference for Android developers. Kevin will present at 5:10 PM tomorrow (Saturday, Sept. 20) on “Building Maintainable Android Applications”–focusing on Android-specific architecture, testing patterns, best practices, and tools to help teams build large-scale apps successfully. Droidcon takes place tomorrow and Sunday at the Metropolitan Pavilion in Manhattan; go here to register!


text:
class PEGParser {
	_lexer: PEGLexer;
	_tokens: PEGToken[];

	constructor(lexer: PEGLexer) {
		this._lexer = lexer;
	}

	_can_be(tokens:string[]): boolean {

		if (this._tokens == null)
		{
			this._tokens = this._lexer.tokens(tokens.length);
			if (this._tokens.length<tokens.length) return false;
		}
		else
		{
			if (this._tokens.length<tokens.length)
			{
				var tt: PEGToken[] = this._lexer.tokens(tokens.length-this._tokens.length);
				tt.forEach(xx => this._tokens.push(xx));
				if (this._tokens.length<tokens.length) return false;
			}
		}
		var i:number = 0;
		while(true)
		{
			if (i == tokens.length) break;
			if (tokens[i] != this._tokens[i].name) return false;
			i++;
		}

		return true;
	}

	// it doesn't check anything. Use with _can_be!
	_capture(n:number):PEGToken[]
	{
		return this._tokens.splice(0, n);
	}

    parse(): PEGProduction[] {
        var productions: PEGProduction[] = [];
        var temp: PEGToken[];

        // production loop
        var current_production: PEGProduction = {
            name: ""
            , actions: []
        };
        var commit_current_production: () => void = () => {
            // commit current production
            productions[current_production.name] = current_production;
            // next production
            current_production = {
                name: ""
                , actions: []
            };
        };
        while (true)
        {
            if (!this._can_be(["IDENTIFIER", "EQUALS"])) throw Error("Expected production name");
            temp = this._capture(2);
            current_production.name = temp[0].value;

            // production alternatives loop
            var production_empty = true;
            var current_action: PEGParseAction = {
                steps: []
                , javascript: ""
            };
            var commit_current_action: () => void = () => {
                current_production.actions.push(current_action);
                var current_action: PEGParseAction = {
                    steps: []
                    , javascript: ""
                };
            };
            while (true)
            {
                if (this._can_be(["COMMENT"]))
                {
                    this._capture(1);
                    continue;
                }
                else if (this._can_be(["QUOTE"])) {
                    temp = this._capture(1);
                    current_action.steps.push({
                        type: "QUOTE"
                        , value: temp[0].value
                    });

                    production_empty = false;
                    continue;
                }
                else if (this._can_be(["IDENTIFIER"]))
                {
                    temp = this._capture(1);
                    var current_identifier: PEGIdentifierStep =
                    {
                        type: "IDENTIFIER"
                        , value: temp[0].value
                        , identifier_type: "NONE"
                        , identifier_type_type: "NONE"
                    };

                    if (this._can_be(["COLON"]))
                    {
                        temp = this._capture(1);
                        if (this._can_be(["IDENTIFIER"])) {
                            temp = this._capture(1);
                            current_identifier.identifier_type = temp[0].value;
                            current_identifier.identifier_type_type = "PRODUCTION";
                        }
                        else if (this._can_be(["REGULAREXPRESSION"])) {
                            temp = this._capture(1);
                            current_identifier.identifier_type = temp[0].value;
                            current_identifier.identifier_type_type = "REGULAREXPRESSION";
                       }
                        else
                            throw Error("Typename expected");
                    }
                    // else nothing....untyped
                    current_action.steps.push(current_identifier);

                    production_empty = false;
                    continue;
                }

                if (this._can_be(["JAVASCRIPT"]))
                {
                    temp = this._capture(1);
                    current_action.javascript = temp[0].value;
                }

                if (this._can_be(["PIPE"])) {
                    commit_current_action();
                    this._capture(1);
                    continue;
                }
                else if (this._can_be(["IDENTIFIER", "EQUALS"])) {
                    commit_current_action();
                    if (production_empty)
                        throw Error("Production is empty");
                    else {
                        commit_current_production();
                        production_empty = true;
                    }
                    break;
                }
            }
        }

        return productions;
	}
}


text:
package util

import (
	"bytes"
	"fmt"
	"html/template"
	"os"
	"path/filepath"
	"strconv"
	"strings"

	"google.golang.org/protobuf/types/known/structpb"
)

type FileFilter func(fileName string) bool

// StringBoolMapToSlice creates and returns a slice of all the map keys with true.
func StringBoolMapToSlice(m map[string]bool) []string {
	s := make([]string, 0, len(m))
	for k, v := range m {
		if v {
			s = append(s, k)
		}
	}
	return s
}

// ReadFilesWithFilter reads files from path, for a directory it recursively reads files and filters the results
// for single file it directly reads the file. It returns a concatenated output of all matching files' content.
func ReadFilesWithFilter(path string, filter FileFilter) (string, error) {
	fileList, err := FindFiles(path, filter)
	if err != nil {
		return "", err
	}
	var sb strings.Builder
	for _, file := range fileList {
		a, err := os.ReadFile(file)
		if err != nil {
			return "", err
		}
		if _, err := sb.WriteString(string(a) + "\n"); err != nil {
			return "", err
		}
	}
	return sb.String(), nil
}

// FindFiles reads files from path, and returns the file names that match the filter.
func FindFiles(path string, filter FileFilter) ([]string, error) {
	fi, err := os.Stat(path)
	if err != nil {
		return nil, err
	}
	var fileList []string
	if fi.IsDir() {
		err := filepath.Walk(path, func(path string, info os.FileInfo, err error) error {
			if err != nil {
				return err
			}
			if info.IsDir() || !filter(path) {
				return nil
			}
			fileList = append(fileList, path)
			return nil
		})
		if err != nil {
			return nil, err
		}
	} else {
		fileList = append(fileList, path)
	}
	return fileList, nil
}

// ParseValue parses string into a value
func ParseValue(valueStr string) any {
	var value any
	if v, err := strconv.Atoi(valueStr); err == nil {
		value = v
	} else if v, err := strconv.ParseFloat(valueStr, 64); err == nil {
		value = v
	} else if v, err := strconv.ParseBool(valueStr); err == nil {
		value = v
	} else {
		value = strings.ReplaceAll(valueStr, "\\,", ",")
	}
	return value
}

// ConsolidateLog is a helper function to dedup the log message.
func ConsolidateLog(logMessage string) string {
	logCountMap := make(map[string]int)
	stderrSlice := strings.Split(logMessage, "\n")
	for _, item := range stderrSlice {
		if item == "" {
			continue
		}
		_, exist := logCountMap[item]
		if exist {
			logCountMap[item]++
		} else {
			logCountMap[item] = 1
		}
	}
	var sb strings.Builder
	for _, item := range stderrSlice {
		if logCountMap[item] == 0 {
			continue
		}
		sb.WriteString(fmt.Sprintf("%s (repeated %v times)\n", item, logCountMap[item]))
		// reset seen log count
		logCountMap[item] = 0
	}
	return sb.String()
}

// RenderTemplate is a helper method to render a template with the given values.
func RenderTemplate(tmpl string, ts any) (string, error) {
	t, err := template.New("").Parse(tmpl)
	if err != nil {
		return "", err
	}
	buf := new(bytes.Buffer)
	err = t.Execute(buf, ts)
	if err != nil {
		return "", err
	}
	return buf.String(), nil
}

func ValueString(v *structpb.Value) string {
	switch x := v.Kind.(type) {
	case *structpb.Value_StringValue:
		return x.StringValue
	case *structpb.Value_NumberValue:
		return fmt.Sprint(x.NumberValue)
	default:
		return v.String()
	}
}

func MustStruct(m map[string]any) *structpb.Struct {
	s, _ := structpb.NewStruct(m)
	return s
}


text:
package com.github.badoualy.telegram.tl.api;

import com.github.badoualy.telegram.tl.core.TLBool;
import com.github.badoualy.telegram.tl.core.TLBytes;
import com.github.badoualy.telegram.tl.core.TLIntVector;
import com.github.badoualy.telegram.tl.core.TLLongVector;
import com.github.badoualy.telegram.tl.core.TLObject;
import com.github.badoualy.telegram.tl.core.TLStringVector;
import com.github.badoualy.telegram.tl.core.TLVector;

import org.apache.commons.lang3.RandomStringUtils;
import org.reflections.Reflections;
import org.reflections.util.ClasspathHelper;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Random;
import java.util.Set;

public abstract class AbsTLApiTest {

    public static final String BASE_PACKAGE = "com.github.badoualy.telegram.tl.api";

    public static List<Class<? extends TLObject>> constructorList;
    public static Random random;
    public static Reflections reflections;

    public static void init() {
        random = new PositiveRandom(System.currentTimeMillis());

        System.out.println("Looking for tl api classes in package " + BASE_PACKAGE);
        ArrayList<URL> urls = new ArrayList<>();
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".account"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".auth"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".channels"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".contacts"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".help"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".messages"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".photos"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".request"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".storage"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".updates"));
        urls.addAll(ClasspathHelper.forPackage(BASE_PACKAGE + ".upload"));
        reflections = new Reflections(urls);

        Set<Class<? extends TLObject>> classList = reflections.getSubTypesOf(TLObject.class);
        System.out.println("Found " + classList.size() + " classes");
        constructorList = new ArrayList<>();

        for (Class<? extends TLObject> clazz : classList) {
            if (!((clazz.getModifiers() & Modifier.ABSTRACT) == 0)) {
                continue;
            }
            if (clazz.getPackage().getName().equalsIgnoreCase("com.github.badoualy.telegram.tl.core")) {
                continue;
            }
            constructorList.add(clazz);
        }
        Collections.sort(constructorList, new Comparator<Class<? extends TLObject>>() {
            @Override
            public int compare(Class<? extends TLObject> o1, Class<? extends TLObject> o2) {
                return o1.getSimpleName().compareTo(o2.getSimpleName());
            }
        });

        System.out.println("Found " + constructorList.size() + " non abstract classes");
    }

    public <T extends TLObject> T randomize(T object) {
        Class<? extends TLObject> clazz = object.getClass();

        // Get class + superclass fields
        List<Field> fields = new ArrayList<>();
        Collections.addAll(fields, clazz.getDeclaredFields());
        if (clazz.getSuperclass() != TLObject.class) {
            Collections.addAll(fields, clazz.getSuperclass().getDeclaredFields());
        }

        for (Field field : fields) {
            if (field.getName().equalsIgnoreCase("flags")) {
                continue;
            }
            if (!(((field.getModifiers() & Modifier.TRANSIENT) == 0))) {
                continue;
            }
            if (!((field.getModifiers() & Modifier.STATIC) == 0)) {
                continue;
            }
            if (!((field.getModifiers() & Modifier.FINAL) == 0)) {
                continue;
            }

            field.setAccessible(true);
            try {
                field.set(object, getRandom(field.getType(), field));
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }

        return object;
    }

    @SuppressWarnings("unchecked")
    public <T extends TLObject> T newInstanceOf(Class<T> clazz) throws Exception {
        for (Constructor<?> c : clazz.getConstructors()) {
            if (c.getParameterTypes().length == 0) {
                c.setAccessible(true);
                return (T) c.newInstance();
            }
        }

        throw new RuntimeException("No constructor found for type " + clazz.getSimpleName());
    }

    public TLObject getRandomTLObject(Class<? extends TLObject> clazz) throws Exception {
        if (clazz == TLBool.FALSE.getClass()) return TLBool.FALSE;
        if (clazz == TLBool.TRUE.getClass()) return TLBool.TRUE;

        TLObject object = newInstanceOf(clazz);
        randomize(object);

        return object;
    }

    @SuppressWarnings("unchecked")
    public TLVector getRandomTLVector(Class<?> clazz) throws Exception {
        TLVector obj;
        if (is(clazz, Integer.class)) {
            obj = new TLIntVector();
        } else if (is(clazz, Long.class)) {
            obj = new TLLongVector();
        } else if (is(clazz, String.class)) {
            obj = new TLStringVector();
        } else {
            obj = new TLVector(clazz);
        }

        int size = random.nextInt(3);
        for (int i = 0; i < size; i++) {
            obj.add(getRandom(clazz, null));
        }

        return obj;
    }

    @SuppressWarnings("unchecked")
    public <T> T getRandom(Class<T> type, Field field) throws Exception {
        // Base types
        if (is(type, int.class, Integer.class)) {
            return (T) Integer.valueOf(random.nextInt());
        }
        if (is(type, long.class, Long.class)) {
            return (T) Long.valueOf(random.nextLong());
        }
        if (is(type, float.class, Float.class)) {
            return (T) Float.valueOf(random.nextFloat());
        }
        if (is(type, double.class, Double.class)) {
            return (T) Double.valueOf(random.nextDouble());
        }
        if (is(type, boolean.class, Boolean.class)) {
            return (T) Boolean.valueOf(random.nextBoolean());
        }
        if (is(type, String.class)) {
            return (T) RandomStringUtils.random(random.nextInt(25) + 5, true, true);
        }
        if (is(type, TLBytes.class)) {
            byte[] bytes = new byte[random.nextInt(256)];
            random.nextBytes(bytes);
            return (T) new TLBytes(bytes);
        }

        // Vector
        if (is(type, TLIntVector.class)) {
            return (T) getRandomTLVector(Integer.class);
        }
        if (is(type, TLLongVector.class)) {
            return (T) getRandomTLVector(Long.class);
        }
        if (is(type, TLStringVector.class)) {
            return (T) getRandomTLVector(String.class);
        }
        if (is(type, TLVector.class)) {
            ParameterizedType genericType = (ParameterizedType) field.getGenericType();
            Type vectorType = genericType.getActualTypeArguments()[0];
            return (T) getRandomTLVector((Class<?>) vectorType);
        }

        // TLObject
        if (TLObject.class.isAssignableFrom(type)) {
            if ((type.getModifiers() & Modifier.ABSTRACT) != 0) {
                // Abstract, not a real constructor, get a random one
                Set<Class<? extends T>> subtypes = reflections.getSubTypesOf(type);
                int randomIndex = random.nextInt(subtypes.size());
                type = (Class<T>) subtypes.toArray()[randomIndex];
            }

            return (T) getRandomTLObject((Class<? extends TLObject>) type);
        }

        throw new RuntimeException("Unsupported type " + type.getName());
    }

    public boolean is(Class<?> type, Class<?>... types) {
        for (Class<?> clazz : types) {
            if (clazz == type) {
                return true;
            }
        }
        return false;
    }

    private static class PositiveRandom extends Random {

        public PositiveRandom(long seed) {
            super(seed);
        }

        @Override
        public int nextInt() {
            return super.next(Integer.MAX_VALUE - 1);
        }

        @Override
        public long nextLong() {
            return super.next(Integer.MAX_VALUE - 1);
        }

        @Override
        public double nextDouble() {
            return Double.longBitsToDouble(nextLong());
        }

        @Override
        public float nextFloat() {
            return (float) nextDouble();
        }
    }
}


text:
package concurrency;
//: concurrency/SerialNumberGenerator.java

public class SerialNumberGenerator {
  private static volatile int serialNumber = 0;
  public static int nextSerialNumber() {
    return serialNumber++; // Not thread-safe
  }
} ///:~


text:
<?php

namespace Puli\Repository;

use Puli\Repository\Api\ChangeStream\ChangeStream;
use Puli\Repository\Api\EditableRepository;
use Puli\Repository\Api\Resource\PuliResource;

/**
 * Abstract base for editable repositories providing tools to avoid code duplication.
 *
 * @since  1.0
 *
 * @author Bernhard Schussek <bschussek@gmail.com>
 * @author Titouan Galopin <galopintitouan@gmail.com>
 */
abstract class AbstractEditableRepository extends AbstractRepository implements EditableRepository
{
    /**
     * @var ChangeStream
     */
    private $changeStream;

    /**
     * Create the repository.
     *
     * @param ChangeStream|null $changeStream If provided, the repository will log
     *                                        resources changes in this change stream.
     */
    public function __construct(ChangeStream $changeStream = null)
    {
        $this->changeStream = $changeStream;
    }

    /**
     * {@inheritdoc}
     */
    public function getVersions($path)
    {
        if (null === $this->changeStream) {
            return parent::getVersions($path);
        }

        return $this->changeStream->getVersions($path, $this);
    }

    /**
     * Stores a version of a resource in the change stream.
     *
     * @param PuliResource $resource The resource version.
     */
    protected function storeVersion(PuliResource $resource)
    {
        if (null !== $this->changeStream) {
            $this->changeStream->append($resource);
        }
    }

    /**
     * Removes all versions of a resource from the change stream.
     *
     * @param string $path The Puli path.
     */
    protected function removeVersions($path)
    {
        if (null !== $this->changeStream) {
            $this->changeStream->purge($path);
        }
    }

    /**
     * Clears the change stream.
     */
    protected function clearVersions()
    {
        if (null !== $this->changeStream) {
            $this->changeStream->clear();
        }
    }
}


text:
from gun import Gun

class Rifle(Gun):

	def __init__(self):

		super(Rifle, self).__init__(400, "rifle")


text:
package com.rimerosolutions.ant.git;

import java.io.File;
import java.io.IOException;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.lib.RepositoryBuilder;

/**
 * Base Ant Task with a managed reference to the Git repository.
 *
 * @author Yves Zoundi
 */
public abstract class AbstractGitRepoAwareTask extends AbstractGitTask {

        protected Git git;
        private boolean failOnError = true;

        /**
         * Whether or not an exception should be thrown if the task fails.
         *
         * @antdoc.notrequired
         * @param failOnError Build fails on error?
         */
        public void setFailOnError(boolean failOnError) {
                this.failOnError = failOnError;
        }

        /**
         * Whether or not an exception should be thrown if the task fails.
         *
         * @return True if the build should fail when an exception is thrown
         */
        public boolean isFailOnError() {
                return failOnError;
        }

        protected abstract void doExecute() throws BuildException;

        @Override
        public final void execute() {
                try {
                        try {
                                Repository repository = new RepositoryBuilder().
                                        readEnvironment().
                                        findGitDir(getDirectory()).
                                        build();
                                git = new Git(repository);
                        }
                        catch (IOException ioe) {
                                String errorMsg = "Specified path (%s) doesn't seem to be a git repository.";

                                throw new BuildException(String.format(errorMsg, getDirectory().getAbsolutePath()), ioe);
                        }

                        doExecute();

                }
                catch (GitBuildException e) {
                        log(e, Project.MSG_ERR);

                        if (failOnError) {
                                throw new BuildException(e);
                        }
                }
                finally {
                        if (git != null) {
                                git.getRepository().close();
                        }
                }
        }

        /**
         * return either a "." if file and prefix have the same value,
         * or the right part of file - length of prefix plus one removed
         * @param file file on which a git operation needs to be done
         * @param prefix folder of the git sandbox
         * @return path relative to git sandbox folder
         * @throws IOException the method uses File#getCanonicalPath which can throw IOException
         */
        protected String translateFilePathUsingPrefix(String file, String prefix) throws IOException {
                if (file.equals(prefix)) {
                        return ".";
                }
                String result = new File(file).getCanonicalPath().substring(prefix.length() + 1);
                if (File.separatorChar != '/') {
                        result = result.replace(File.separatorChar, '/');
                }
                return result;
        }

}


text:
#import "SoomlaVerification.h"
#import "StoreUtils.h"
#import "PurchasableVirtualItem.h"
#import "EventHandling.h"
#import "StoreConfig.h"

#import "FBEncryptorAES.h"
#import "ObscuredNSUserDefaults.h"

@implementation SoomlaVerification

static NSString* TAG = @"SOOMLA SoomlaVerification";

- (id) initWithTransaction:(SKPaymentTransaction*)t andPurchasable:(PurchasableVirtualItem*)pvi {
    if (self = [super init]) {
        transaction = t;
        purchasable = pvi;
    }

    return self;
}

- (void)verifyData {
    LogDebug(TAG, ([NSString stringWithFormat:@"verifying purchase for: %@", transaction.payment.productIdentifier]));

    float version = [[[UIDevice currentDevice] systemVersion] floatValue];

    NSData* data = nil;
    if (version < 7) {
        data = transaction.transactionReceipt;
    } else {
        NSURL* receiptUrl = [[NSBundle mainBundle] appStoreReceiptURL];
        if ([[NSFileManager defaultManager] fileExistsAtPath:[receiptUrl path]]) {
            data = [NSData dataWithContentsOfURL:receiptUrl];
        }
    }

    if (data) {

        NSDictionary* postDict = [NSDictionary dictionaryWithObjectsAndKeys:
                                  [data base64Encoding], @"receipt_base64",
                                  nil];

        NSData *postData = [[StoreUtils dictToJsonString:postDict] dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];

        NSString *postLength = [NSString stringWithFormat:@"%d", [postData length]];

        NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];

        LogDebug(TAG, ([NSString stringWithFormat:@"verifying purchase on server: %@", VERIFY_URL]));

        [request setURL:[NSURL URLWithString:VERIFY_URL]];
        [request setHTTPMethod:@"POST"];
        [request setValue:postLength forHTTPHeaderField:@"Content-Length"];
        [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
        [request setHTTPBody:postData];

        NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest:request delegate:self];
        [conn start];
    } else {
        LogError(TAG, ([NSString stringWithFormat:@"An error occured while trying to get receipt data. Stopping the purchasing process for: %@", transaction.payment.productIdentifier]));
        [EventHandling postUnexpectedError:ERR_VERIFICATION_TIMEOUT forObject:self];
    }
}

- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
    responseData = [[NSMutableData alloc] init];
    NSHTTPURLResponse * httpResponse = (NSHTTPURLResponse*)response;
    responseCode = [httpResponse statusCode];
}

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
    [responseData appendData:data];
}

- (NSCachedURLResponse *)connection:(NSURLConnection *)connection
                  willCacheResponse:(NSCachedURLResponse*)cachedResponse {
    return nil;
}

- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
    NSString* dataStr = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
    NSNumber* verifiedNum = nil;
    if (![dataStr isEqualToString:@""]) {
        @try {
            NSDictionary* responseDict = [StoreUtils jsonStringToDict:dataStr];
            verifiedNum = (NSNumber*)[responseDict objectForKey:@"verified"];
        } @catch (NSException* e) {
            LogError(TAG, @"There was a problem when verifying when handling response.");
        }
    }

    BOOL verified = NO;
    if (responseCode==200 && verifiedNum) {
        verified = [verifiedNum boolValue];
        [EventHandling postMarketPurchaseVerification:verified forItem:purchasable andTransaction:transaction forObject:self];
    } else {
        LogError(TAG, @"There was a problem when verifying. Will try again later.");
        [EventHandling postUnexpectedError:ERR_VERIFICATION_TIMEOUT forObject:self];
    }
}

- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
    LogError(TAG, @"Failed to connect to verification server. Not doing anything ... the purchasing process will happen again next time the service is initialized.");
    LogDebug(TAG, [error description]);
    [EventHandling postUnexpectedError:ERR_VERIFICATION_TIMEOUT forObject:self];
}

// - (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace {
//     return [protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust];
// }
//
// - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge {
//     if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust])
//             [challenge.sender useCredential:[NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust] forAuthenticationChallenge:challenge];
//
//     [challenge.sender continueWithoutCredentialForAuthenticationChallenge:challenge];
// }

@end