<commit_before>/*
* Copyright (C) 2008-2011 <NAME> <EMAIL>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*/

#include "commandparser.h"
#include <IrcCommand>
#include <QHash>
#include <QMap>

static QMap<QString, QString>& command_syntaxes()
{
    static QMap<QString, QString> syntaxes;
    if (syntaxes.isEmpty())
    {
        syntaxes.insert("INVITE", "<user>");
        syntaxes.insert("JOIN", "<channel> (<key>)");
        syntaxes.insert("KICK", "<user> (<reason>)");
        syntaxes.insert("LIST", "<channel> (<server>)");
        syntaxes.insert("ME", "<message>");
        syntaxes.insert("MODE", "<target> <mode> (<arg>) (<mask>)");
        syntaxes.insert("NAMES", "");
        syntaxes.insert("NICK", "<nick>");
        syntaxes.insert("NOTICE", "<target> <message>");
        syntaxes.insert("PART", "(<reason>)");
        syntaxes.insert("PING", "<target>");
        syntaxes.insert("QUERY" , "(<user>)");
        syntaxes.insert("QUIT" , "(<message>)");
        syntaxes.insert("TOPIC", "(<topic>)");
        syntaxes.insert("WHO", "<user>");
        syntaxes.insert("WHOIS", "<user>");
        syntaxes.insert("WHOWAS", "<user>");
    }
    return syntaxes;
}

CommandParser::CommandParser(QObject* parent) : QObject(parent)
{
}

CommandParser::~CommandParser()
{
}

QStringList CommandParser::availableCommands()<commit_msg>CommandParser: removed query syntax that slipped in by accident<commit_after>/*
* Copyright (C) 2008-2011 <NAME> <EMAIL>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*/

#include "commandparser.h"
#include <IrcCommand>
#include <QHash>
#include <QMap>

static QMap<QString, QString>& command_syntaxes()
{
    static QMap<QString, QString> syntaxes;
    if (syntaxes.isEmpty())
    {
        syntaxes.insert("INVITE", "<user>");
        syntaxes.insert("JOIN", "<channel> (<key>)");
        syntaxes.insert("KICK", "<user> (<reason>)");
        syntaxes.insert("LIST", "<channel> (<server>)");
        syntaxes.insert("ME", "<message>");
        syntaxes.insert("MODE", "<target> <mode> (<arg>) (<mask>)");
        syntaxes.insert("NAMES", "");
        syntaxes.insert("NICK", "<nick>");
        syntaxes.insert("NOTICE", "<target> <message>");
        syntaxes.insert("PART", "(<reason>)");
        syntaxes.insert("PING", "<target>");
        syntaxes.insert("QUIT" , "(<message>)");
        syntaxes.insert("TOPIC", "(<topic>)");
        syntaxes.insert("WHO", "<user>");
        syntaxes.insert("WHOIS", "<user>");
        syntaxes.insert("WHOWAS", "<user>");
    }
    return syntaxes;
}

CommandParser::CommandParser(QObject* parent) : QObject(parent)
{
}

CommandParser::~CommandParser()
{
}

QStringList CommandParser::availableCommands()
{'fraction_non_alphanumeric': 0.1679218967921897, 'fraction_numerical': 0.00502092050209205, 'mean_word_length': 3.973647711511789, 'pattern_counts': {'":': 0, '<': 62, '<?xml version=': 0, '>': 62, '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': '4720874', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1060, 'n_words': 307}