<commit_before>module Ttdrest
  module Concerns
    module DataGroup

      def get_data_groups(options = {})
        advertiser_id = self.advertiser_id || options[:advertiser_id]
        path = "/datagroups/#{advertiser_id}"
        params = {}
        result = get(path, params)
        return result
      end
      
      def get_data_group(data_group_id, options = {})
        path = "/datagroup/#{data_group_id}"
        params = {}
        result = get(path, params)
        return result
      end
      
      def create_data_group(name, options = {})
        advertiser_id = self.advertiser_id || options[:advertiser_id]
        path = "/datagroup"
        content_type = 'application/json'
        data_group_data = {
          "AdvertiserId" => advertiser_id,
          "DataGroupName " => name
          }
        params = options[:params] || {}
        if !params[:description].nil?
          data_group_data = data_group_data.merge({"Description" => params[:description]})
        end
        if !params[:first_party_data_ids].nil?
          data_group_data = data_group_data.merge({"FirstPartyDataIds" => params[:first_party_data_ids]})
        end
        if !params[:third_party_data_ids].nil?
          data_group_data = data_group_data.merge({"ThirdPartyDataIds" => params[:third_party_data_ids]})
        end<commit_msg>Remove another extra space<commit_after>module Ttdrest
  module Concerns
    module DataGroup

      def get_data_groups(options = {})
        advertiser_id = self.advertiser_id || options[:advertiser_id]
        path = "/datagroups/#{advertiser_id}"
        params = {}
        result = get(path, params)
        return result
      end
      
      def get_data_group(data_group_id, options = {})
        path = "/datagroup/#{data_group_id}"
        params = {}
        result = get(path, params)
        return result
      end
      
      def create_data_group(name, options = {})
        advertiser_id = self.advertiser_id || options[:advertiser_id]
        path = "/datagroup"
        content_type = 'application/json'
        data_group_data = {
          "AdvertiserId" => advertiser_id,
          "DataGroupName" => name
          }
        params = options[:params] || {}
        if !params[:description].nil?
          data_group_data = data_group_data.merge({"Description" => params[:description]})
        end
        if !params[:first_party_data_ids].nil?
          data_group_data = data_group_data.merge({"FirstPartyDataIds" => params[:first_party_data_ids]})
        end
        if !params[:third_party_data_ids].nil?
          data_group_data = data_group_data.merge({"ThirdPartyDataIds" => params[:third_party_data_ids]})
        end
{'fraction_non_alphanumeric': 0.11061618411284335, 'fraction_numerical': 0.0, 'mean_word_length': 2.47741935483871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '3811582', 'n_tokens_mistral': 816, 'n_tokens_neox': 817, 'n_words': 136}