<commit_before>﻿using Smartsheet.Api.Internal.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Smartsheet.Api.Models
{
	public class PaginationParameters
	{
		private bool includeAll;

		private int? pageSize;

		private int? page;

		public PaginationParameters(bool includeAll, int? pageSize, int? page)
		{
			this.includeAll = includeAll;
			this.pageSize = pageSize;
			this.page = page;
		}

		public bool IncludeAll
		{
			get { return includeAll; }
			set { includeAll = value; }
		}
		public int? PageSize
		{
			get { return pageSize; }
			set { pageSize = value; }
		}
		public int? Page
		{
			get { return page; }
			set { page = value; }
		}


		public string ToQueryString()
		{
			IDictionary<string, string> parameters = this.toDictionary();
			return QueryUtil.GenerateUrl(null, parameters);
		}

		public IDictionary<string, string> toDictionary()
		{
			Dictionary<string, string> parameters = new Dictionary<string, string>();

			parameters.Add("includeAll", includeAll.ToString());

			if (!includeAll)
			{
				if (pageSize.HasValue)
				{
					parameters.Add("pageSize", pageSize.ToString());
				}
				if (page.HasValue)
				{
					parameters.Add("page", page.ToString());
				}
			}
			return parameters;
		}
	}
}<commit_msg>Update to PaginationParameter<commit_after>﻿using Smartsheet.Api.Internal.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Smartsheet.Api.Models
{
	public class PaginationParameters
	{
		private bool includeAll;

		private int? pageSize;

		private int? page;

		public PaginationParameters(bool includeAll, int? pageSize, int? page)
		{
			this.includeAll = includeAll;
			this.pageSize = pageSize;
			this.page = page;
		}

		public bool IncludeAll
		{
			get { return includeAll; }
			set { includeAll = value; }
		}
		public int? PageSize
		{
			get { return pageSize; }
			set { pageSize = value; }
		}
		public int? Page
		{
			get { return page; }
			set { page = value; }
		}


		public string ToQueryString()
		{
			IDictionary<string, string> parameters = this.toDictionary();
			return QueryUtil.GenerateUrl(null, parameters);
		}

		public IDictionary<string, string> toDictionary()
		{
			Dictionary<string, string> parameters = new Dictionary<string, string>();

			parameters.Add("includeAll", includeAll.ToString().ToLower());

			if (!includeAll)
			{
				if (pageSize.HasValue)
				{
					parameters.Add("pageSize", pageSize.ToString().ToLower());
				}
				if (page.HasValue)
				{
					parameters.Add("page", page.ToString().ToLower());
				}
			}
			return parameters;
		}
	}
}
{'fraction_non_alphanumeric': 0.11851015801354402, 'fraction_numerical': 0.0, 'mean_word_length': 3.3733552631578947, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5904353', 'n_tokens_mistral': 1011, 'n_tokens_neox': 826, 'n_words': 198}