<commit_before>Gem for access to the full pagerduty API.

  require 'date'
  require 'pagerduty/full'

  # Get some dates to use
  start_date = Date.parse("2012-09-24T00:00Z")
  end_date = Date.parse("2012-10-09T07:01Z")

  pd = PagerDuty::Full.new(apikey = YOURKEY, subdomain = YOURDOMAIN)

  # Get list of schedules
  sched = pd.Schedule.search()

  # Get who is on call
  # You can use iso8601, i suppose, if you have newer ruby
  oncallthen = pd.Schedule.find(id = sid, since_date = start_date.strftime("%FT%T%:z"), until_date = end_date.strftime("%FT%T%:z"))

  # Get incidents
  incs = pd.Incident.search(
    status = "resolved,triggered,acknowledged",
    service = SERVICEID,
    since_date = start_date.strftime("%FT%T%:z"),
    until_date = end_date.strftime("%FT%T%:z")
  )<commit_msg>FIx sammple<commit_after>Gem for access to the full pagerduty API.

    require 'date'
    require 'pagerduty/full'

    # Get some dates to use
    start_date = Date.parse("2012-09-24T00:00Z")
    end_date = Date.parse("2012-10-09T07:01Z")

    pd = PagerDuty::Full.new(apikey = YOURKEY, subdomain = YOURDOMAIN)

    # Get list of schedules
    sched = pd.Schedule.search()

    # Get who is on call
    # You can use iso8601, i suppose, if you have newer ruby
    oncallthen = pd.Schedule.find(id = sid, since_date = start_date.strftime("%FT%T%:z"), until_date = end_date.strftime("%FT%T%:z"))

    # Get incidents
    incs = pd.Incident.search(
      status = "resolved,triggered,acknowledged",
      service = SERVICEID,
      since_date = start_date.strftime("%FT%T%:z"),
      until_date = end_date.strftime("%FT%T%:z")
    )
{'fraction_non_alphanumeric': 0.13513513513513514, 'fraction_numerical': 0.0343980343980344, 'mean_word_length': 3.6542857142857144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4832532', 'n_tokens_mistral': 649, 'n_tokens_neox': 581, 'n_words': 135}