<commit_before>package org.springframework.social.botFramework.api.data.to;

import java.util.ArrayList;
import java.util.List;

import org.springframework.social.botFramework.api.data.from.BaseBotFrameworkMessage;
import org.springframework.social.botFramework.api.json.ActivityTypeDeserializer;
import org.springframework.social.botFramework.api.json.ActivityTypeSerializer;
import org.springframework.social.common.api.dict.AttachmentLayout;
import org.springframework.social.common.api.dict.ActivityType;
import org.springframework.social.common.api.dict.TextFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * @author <NAME>
 */
public class Activity extends BaseBotFrameworkMessage {

    /**
     * ContactAdded/Removed action
     */
    private String action;

    /**
     * Layout of multiple attachments
    */
    private AttachmentLayout attachmentLayout = AttachmentLayout.list;

    private List<Attachment> attachments = new ArrayList<>();

    /**
     * Channel specific payload
     */
    private Object channelData;

    private ConversationAccount conversation;

    /**
     * Entities Collection of Entity which contain metadata about this activity (each is typed)
     */
    private List<Entity> entities;

    /**
     * Sender address
     */
    private ChannelAccount from;

    /**
     * The previous history of the channel was disclosed
     */
    private boolean historyDisclosed;

    /**
     * The language code of the Text field
     */
    private String locale;

    /**
     * Addresses of added contacts
     */
    private List<ChannelAccount> membersAdded = new ArrayList<>();

    /**
     * Addresses of removed contacts
     */
    private List<ChannelAccount> membersRemoved = new ArrayList<>();


    private Object properties;

    /**
     * (Outbound to bot only) Bot's address that received the message 
     */
    private ChannelAccount recipient;

    /**
     * The original id this message is a response to
     */
    private String replyToId;

    /**
     * Text to display if you can't render cards
     */
    private String summary;

    /**
     * Content for the message
     */
    private String text;

    /**
     * Format of text fields
     */
    private TextFormat textFormat = TextFormat.markdown;

    /**
     * Conversations new topic name
     */
    private String topicName;

    /**
     * The type of the activity
     */
    @JsonSerialize(using = ActivityTypeSerializer.class)
    @JsonDeserialize(using = ActivityTypeDeserializer.class)
    private ActivityType type;

    public Activity createReplay(){
        Activity replay = new Activity();
        replay.setFrom(recipient);
        replay.setRecipient(from);
        return replay;
    }

    @JsonIgnore
    @Override
    public ActivityType getActivity() {
        return type;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public AttachmentLayout getAttachmentLayout() {
        return attachmentLayout;
    }

    public void setAttachmentLayout(AttachmentLayout attachmentLayout) {
        this.attachmentLayout = attachmentLayout;
    }

    public List<Attachment> getAttachments() {
        return attachments;<commit_msg>Messaging through botFramework<commit_after>package org.springframework.social.botFramework.api.data.to;

import java.util.ArrayList;
import java.util.List;

import org.springframework.social.botFramework.api.data.from.BaseBotFrameworkMessage;
import org.springframework.social.botFramework.api.json.ActivityTypeDeserializer;
import org.springframework.social.botFramework.api.json.ActivityTypeSerializer;
import org.springframework.social.common.api.dict.AttachmentLayout;
import org.springframework.social.common.api.dict.ActivityType;
import org.springframework.social.common.api.dict.TextFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * @author <NAME>
 */
public class Activity extends BaseBotFrameworkMessage {

    /**
     * ContactAdded/Removed action
     */
    private String action;

    /**
     * Layout of multiple attachments
    */
    private AttachmentLayout attachmentLayout = AttachmentLayout.list;

    private List<Attachment> attachments = new ArrayList<>();

    /**
     * Channel specific payload
     */
    private Object channelData;

    private ConversationAccount conversation;

    /**
     * Entities Collection of Entity which contain metadata about this activity (each is typed)
     */
    private List<Entity> entities;

    /**
     * Sender address
     */
    private ChannelAccount from;

    /**
     * The previous history of the channel was disclosed
     */
    private boolean historyDisclosed;

    /**
     * The language code of the Text field
     */
    private String locale;

    /**
     * Addresses of added contacts
     */
    private List<ChannelAccount> membersAdded = new ArrayList<>();

    /**
     * Addresses of removed contacts
     */
    private List<ChannelAccount> membersRemoved = new ArrayList<>();


    private Object properties;

    /**
     * (Outbound to bot only) Bot's address that received the message 
     */
    private ChannelAccount recipient;

    /**
     * The original id this message is a response to
     */
    private String replyToId;

    /**
     * Text to display if you can't render cards
     */
    private String summary;

    /**
     * Content for the message
     */
    private String text;

    /**
     * Format of text fields
     */
    private TextFormat textFormat = TextFormat.markdown;

    /**
     * Conversations new topic name
     */
    private String topicName;

    /**
     * The type of the activity
     */
    @JsonSerialize(using = ActivityTypeSerializer.class)
    @JsonDeserialize(using = ActivityTypeDeserializer.class)
    private ActivityType type;

    public Activity createReplay(){
        Activity replay = new Activity();
        replay.setFrom(recipient);
        replay.setRecipient(from);
        replay.setServiceUrl(getServiceUrl());
        replay.setChannelId(getChannelId());
        return replay;
    }

    @JsonIgnore
    @Override
    public ActivityType getActivity() {
        return type;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public AttachmentLayout getAttachmentLayout() {
        return attachmentLayout;
    }

    public void setAttachmentLayout(AttachmentLayout attachmentLayout) {
        this.attachmentLayout = attachmentLayout;
    }

    public List<Attachment> getAttachments() {
        return attachments;
{'fraction_non_alphanumeric': 0.08755561934835654, 'fraction_numerical': 0.0, 'mean_word_length': 2.8518518518518516, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '6651453', 'n_tokens_mistral': 1828, 'n_tokens_neox': 1737, 'n_words': 475}