<commit_before>﻿using Blog.ViewModels;
using Sakura.AspNetCore;
using System.Collections.Generic;

namespace Blog.Models.Data
{
    public interface IPostService
    {
        
        ICollection<Post> GetAll();
        ICollection<Post> GetAllUnpublished();
        ICollection<Post> FindPostsByText(string text);
        ICollection<Post> GetPostByTag(string tagName);
        Post FindPostById(int id);
        Post FindPostBySlug(string slug);
        void AddPost(Post post);
        void SaveAll();
    }
}<commit_msg>Added search by category<commit_after>﻿using Blog.ViewModels;
using Sakura.AspNetCore;
using System.Collections.Generic;

namespace Blog.Models.Data
{
    public interface IPostService
    {
        
        ICollection<Post> GetAll();
        ICollection<Post> GetAllUnpublished();
        ICollection<Post> FindPostsByText(string text);
        ICollection<Post> GetPostByTag(string tagName);
        ICollection<Post> GetPostsByCategory(string categoryName);
        Post FindPostById(int id);
        Post FindPostBySlug(string slug);
        void AddPost(Post post);
        void SaveAll();
    }
}
{'fraction_non_alphanumeric': 0.09131205673758866, 'fraction_numerical': 0.0, 'mean_word_length': 3.197026022304833, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '7567273', 'n_tokens_mistral': 319, 'n_tokens_neox': 325, 'n_words': 70}