<commit_before>package accepting.builder;

import static accepting.builder.SocialTimeBuilder.aTime;

import java.time.LocalDateTime;

import accepting.Message;
import accepting.Post;
import accepting.SocialTime;

public class PostBuilder {

    private String messageText = "default message";
    private SocialTime timestamp = aTime().create();

    public static PostBuilder aPost() {
        return new PostBuilder();
    }

    public PostBuilder withMessage(String messageText) {
        this.messageText = messageText;
        return this;
    }

    public PostBuilder withPostingTime(LocalDateTime timestamp) {
        this.timestamp = aTime().withTimestamp(timestamp).create();
        return this;
    }

    public PostBuilder withPostingTime(SocialTimeBuilder timestamp) {
        this.timestamp = timestamp.create();
        return this;
    }

    public Post create() {
        return new Post(new Message("-> " + messageText), timestamp);
    }
}<commit_msg>Increased convenience options in PostBuilder<commit_after>package accepting.builder;

import static accepting.builder.SocialTimeBuilder.aTime;

import java.time.LocalDateTime;

import accepting.Message;
import accepting.Post;
import accepting.SocialTime;

public class PostBuilder {

    private String messageText = "default message";
    private SocialTime timestamp = aTime().create();

    public static PostBuilder aPost() {
        return new PostBuilder();
    }

    public PostBuilder withMessage(String messageText) {
        this.messageText = messageText;
        return this;
    }

    public PostBuilder withPostingTime(SocialTime timestamp) {
        this.timestamp = timestamp;
        return this;
    }

    public PostBuilder withPostingTime(SocialTimeBuilder timestampBuilder) {
        return withPostingTime(timestampBuilder.create());
    }

    public PostBuilder withPostingTime(LocalDateTime timestamp) {
        return withPostingTime(aTime().withTimestamp(timestamp));
    }

    public Post create() {
        return new Post(new Message("-> " + messageText), timestamp);
    }

}
{'fraction_non_alphanumeric': 0.08589251439539347, 'fraction_numerical': 0.0, 'mean_word_length': 3.512987012987013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5556465', 'n_tokens_mistral': 536, 'n_tokens_neox': 513, 'n_words': 138}