<commit_before>﻿using System;

namespace UltimateTeam.Toolkit.Parameters 
{
    public class TrainingSearchParameters : SearchParameters
    {
        public TrainingSearchParameters()
            : base(ResourceType.Training)
        {
        }

        internal override string BuildUriString(ref string uriString)
        {
        
            SetLevel(ref uriString);

            uriString += "&cat=" + TrainingType;

            uriString += "&type=" + Type.ToLower();

            if (MinBuy > 0)
                uriString += "&minb=" + MinBuy;

            if (MaxBuy > 0)
                uriString += "&maxb=" + MaxBuy;

            if (MinBid > 0)
                uriString += "&micr=" + MinBid;

            if (MaxBid > 0)
                uriString += "&macr=" + MaxBid;


            return uriString;
        }

        private void SetLevel(ref string uriString)<commit_msg>added ability to search for a specific chemstyle<commit_after>﻿using System;

namespace UltimateTeam.Toolkit.Parameters 
{
    public class TrainingSearchParameters : SearchParameters
    {
        public TrainingSearchParameters()
            : base(ResourceType.Training)
        {
        }

        internal override string BuildUriString(ref string uriString)
        {
        
            SetLevel(ref uriString);

            uriString += "&cat=" + TrainingType;

            uriString += "&type=" + Type.ToLower();

            if (MinBuy > 0)
                uriString += "&minb=" + MinBuy;

            if (MaxBuy > 0)
                uriString += "&maxb=" + MaxBuy;

            if (MinBid > 0)
                uriString += "&micr=" + MinBid;

            if (MaxBid > 0)
                uriString += "&macr=" + MaxBid;

            if (ChemistryStyle > 0)
                uriString += "&playStyle=" + (ushort)ChemistryStyle;


            return uriString;
        }

        private void SetLevel(ref string uriString)
{'fraction_non_alphanumeric': 0.10140405616224649, 'fraction_numerical': 0.0046801872074883, 'mean_word_length': 1.6501377410468319, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6538733', 'n_tokens_mistral': 559, 'n_tokens_neox': 504, 'n_words': 124}