<commit_before>module PipedrivePUT
  class Activity
    include PipedrivePUT

  end
end<commit_msg>added method for Activity Class to get all activities for a user<commit_after>module PipedrivePUT
  class Activity
    include PipedrivePUT

#----------------------------------------- Gets activites of a specific user----------------------------------------------------------
    def self.getActivity(user_id)
      @base = 'https://api.pipedrive.com/v1/activities/' + user_id.to_s + '?api_token=' + @@key.to_s
      @content = open(@base.to_s).read
      @parsed = JSON.parse(@content)
      return @parsed
    end
#-------------------------------------------------------------------------------------------------------------------------------------
  end
end
{'fraction_non_alphanumeric': 0.3689064558629776, 'fraction_numerical': 0.0013175230566534915, 'mean_word_length': 1.177650429799427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2824434', 'n_tokens_mistral': 181, 'n_tokens_neox': 179, 'n_words': 46}