<commit_before>// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.sps.classes;

import java.util.ArrayList;

// represents the settings of a keyword campaign that can be copied to a DSA campaign
// contains all the necessary information about a keyword campaign, including id, input settings, and statistics
public class KeywordCampaign {

    public int keywordCampaignId;
    public int userId;
    // the id's of all the DSA campaigns associated with this keyword campaign
    public ArrayList<Integer> DSACampaignIds;

    // settings
    public String name;
    public String fromDate;
    public String toDate;
    public double dailyBudget;
    public String location;
    public String domain;
    public String target;

    // statistics
    public int impressions;
    public int clicks;
    public double cost;

    public KeywordCampaign(int keywordCampaignId, int userId, String name, String fromDate, String toDate, double dailyBudget, String location, String domain, String target, int impressions, int clicks, double cost, ArrayList<Integer> DSACampaignIds) {
        this.keywordCampaignId = keywordCampaignId;
        this.userId = userId;
        this.name = name;
        this.fromDate = fromDate;
        this.toDate = toDate;
        this.dailyBudget = dailyBudget;
        this.location = location;
        this.domain = domain;
        this.target = target;
        this.impressions = impressions;
        this.clicks = clicks;
        this.cost = cost;
        this.DSACampaignIds = DSACampaignIds;
    }
}<commit_msg>Update KeywordCampaign.java with new settings, add comments.<commit_after>// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.sps.classes;

import java.util.ArrayList;

// contains all the necessary information about a keyword campaign
public class KeywordCampaign {

    // unique identifier for the keyword campaign
    public String keywordCampaignId;
    // id of the user who created the keyword campaign
    public String userId;
    // the id's of all the DSA campaigns associated with this keyword campaign
    public ArrayList<String> DSACampaignIds;
    // name of the keyword campaign (used for display purposes)
    public String name;

    // statistics used to calculate the uplift of a DSA campaign (e.g. impressions uplift = DSA campaign impressions - keyword campaign impressions)

    //  how many times an ad appears on a search result page
    public int impressions;
    // how many times a user clicks on an ad link
    public int clicks;
    // total money spent on the ad campaign
    public double cost;

    public KeywordCampaign(String keywordCampaignId, String userId, ArrayList<String> DSACampaignIds, String name, int impressions, int clicks, double cost) {
        this.keywordCampaignId = keywordCampaignId;
        this.userId = userId;
        this.DSACampaignIds = DSACampaignIds;
        this.name = name;

        this.impressions = impressions;
        this.clicks = clicks;
        this.cost = cost;
    }
}
{'fraction_non_alphanumeric': 0.06873019741652449, 'fraction_numerical': 0.0038995856690226664, 'mean_word_length': 3.1287726358148893, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4559784', 'n_tokens_mistral': 1060, 'n_tokens_neox': 1022, 'n_words': 464}