<commit_before># @see https://developers.podio.com/doc/calendar
class Podio::CalendarEvent < ActivePodio::Base
  property :type, :string
  property :id, :integer
  property :group, :string
  property :title, :string
  property :description, :string
  property :location, :string
  property :status, :string
  property :start, :datetime, :convert_timezone => false
  property :start_date, :date
  property :start_time, :string
  property :end, :datetime, :convert_timezone => false
  property :end_date, :date
  property :end_time, :string
  property :link, :string

  class << self

    # @see https://developers.podio.com/doc/calendar/get-global-calendar-22458
    def find_all(options = {})
      list Podio.connection.get { |req|
        req.url('/calendar/', options)
      }.body
    end

    # @see https://developers.podio.com/doc/calendar/get-space-calendar-22459
    def find_all_for_space(space_id, options={})
      list Podio.connection.get { |req|
        req.url("/calendar/space/#{space_id}/", options)
      }.body
    end

    # @see https://developers.podio.com/doc/calendar/get-app-calendar-22460
    def find_all_for_app(app_id, options={})
      list Podio.connection.get { |req|
        req.url("/calendar/app/#{app_id}/", options)
      }.body
    end

    def get_calendars_for_linked_acc(acc_id, options={})
      list Podio.connection.get { |req|<commit_msg>Add new start_utc and end_utc attributes<commit_after># @see https://developers.podio.com/doc/calendar
class Podio::CalendarEvent < ActivePodio::Base
  property :type, :string
  property :id, :integer
  property :group, :string
  property :title, :string
  property :description, :string
  property :location, :string
  property :status, :string
  property :start, :datetime, :convert_timezone => false
  property :start_utc, :datetime
  property :start_date, :date
  property :start_time, :string
  property :end, :datetime, :convert_timezone => false
  property :end_utc, :datetime
  property :end_date, :date
  property :end_time, :string
  property :link, :string

  class << self

    # @see https://developers.podio.com/doc/calendar/get-global-calendar-22458
    def find_all(options = {})
      list Podio.connection.get { |req|
        req.url('/calendar/', options)
      }.body
    end

    # @see https://developers.podio.com/doc/calendar/get-space-calendar-22459
    def find_all_for_space(space_id, options={})
      list Podio.connection.get { |req|
        req.url("/calendar/space/#{space_id}/", options)
      }.body
    end

    # @see https://developers.podio.com/doc/calendar/get-app-calendar-22460
    def find_all_for_app(app_id, options={})
      list Podio.connection.get { |req|
        req.url("/calendar/app/#{app_id}/", options)
      }.body
    end

    def get_calendars_for_linked_acc(acc_id, options={})
      list Podio.connection.get { |req|
{'fraction_non_alphanumeric': 0.13571178733823014, 'fraction_numerical': 0.01049317943336831, 'mean_word_length': 3.5253164556962027, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4902360', 'n_tokens_mistral': 962, 'n_tokens_neox': 928, 'n_words': 200}