<commit_before>﻿using System.Threading.Tasks;

using Discord.Commands;

namespace BotMyst.Commands
{
    public class LmgtfyCommand : ModuleBase
    {
        [Command ("lmgtfy"), Summary ("Generates a lmgtfy link for a specified search.")]
        [Alias ("help", "google")]
        public async Task Lmgtfy ([Remainder] string search)
        {
            string url = "http://lmgtfy.com/?q=";
            string [] parameters = search.Split (' ');

            foreach (string param in parameters)
                url += $"{param}+";

            await ReplyAsync ($"Help is on the way! :rotating_light:\n{url.Remove (url.Length - 1)}");
        }
    }
}<commit_msg>LMGTFY would break with special characters<commit_after>﻿using System.Web;
using System.Threading.Tasks;

using Discord.Commands;

namespace BotMyst.Commands
{
    public class LmgtfyCommand : ModuleBase
    {
        [Command ("lmgtfy"), Summary ("Generates a lmgtfy link for a specified search.")]
        [Alias ("help", "google")]
        public async Task Lmgtfy ([Remainder] string search)
        {
            string url = "http://lmgtfy.com/?q=";
            await ReplyAsync ($"Help is on the way! :rotating_light:\n{url + HttpUtility.UrlEncode (search)}");
        }
    }
}
{'fraction_non_alphanumeric': 0.12818471337579618, 'fraction_numerical': 0.0007961783439490446, 'mean_word_length': 2.5811965811965814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5076782', 'n_tokens_mistral': 378, 'n_tokens_neox': 374, 'n_words': 105}