<commit_before>using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace ReadingList
{
	public class ReadingListServiceProfiler : IReadingListService
	{
		private IReadingListService m_readingListService;
		private ILog m_logger;
		public ReadingListServiceProfiler(IReadingListService readingListService, ILogFactory logFactory)
		{
			m_readingListService = readingListService;
			m_logger = logFactory.GetLogger(GetType());

		}

		public bool AddBookToBacklog(string book, string authors, string label)
		{
			var stopWatch = Stopwatch.StartNew();
			var addResult = m_readingListService.AddBookToBacklog(book, authors, label);
			stopWatch.Stop();
			m_logger.Info($"AddBookToBacklig: Call took {stopWatch.ElapsedMilliseconds} Ms");
			return addResult;
		}

		public IEnumerable<Book> GetReadingList(string listName, string label = null)<commit_msg>logger to readonly in serviceprofiler<commit_after>using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace ReadingList
{
	public class ReadingListServiceProfiler : IReadingListService
	{
		private IReadingListService m_readingListService;
		private readonly ILog m_logger;
		public ReadingListServiceProfiler(IReadingListService readingListService, ILogFactory logFactory)
		{
			m_readingListService = readingListService;
			m_logger = logFactory.GetLogger(GetType());

		}

		public bool AddBookToBacklog(string book, string authors, string label)
		{
			var stopWatch = Stopwatch.StartNew();
			var addResult = m_readingListService.AddBookToBacklog(book, authors, label);
			stopWatch.Stop();
			m_logger.Info($"AddBookToBacklig: Call took {stopWatch.ElapsedMilliseconds} Ms");
			return addResult;
		}

		public IEnumerable<Book> GetReadingList(string listName, string label = null)
{'fraction_non_alphanumeric': 0.07568169170840289, 'fraction_numerical': 0.0, 'mean_word_length': 6.134920634920635, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6432067', 'n_tokens_mistral': 574, 'n_tokens_neox': 515, 'n_words': 120}