<commit_before><?php
/*
 * This file is part of INQ Calculators.
 *
 * INQ Calculators is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * INQ Calculators 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.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with INQ Calculators.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Submits the feedback to an external ticketing system
 *
 * @copyright Copyright 2010-2011
 * @author <NAME> <urkle at outoforder.cc>
 */
class ajax_addFeedback extends AjaxRequest {
    public static function request($path_args) {
        global $config;

        $json = file_get_contents("php://input");
        $data = json_decode($json);

        $issue = self::prepIssue($data);
        $soap = new SoapClient($config->mantis->wsdl);
        try {
            $issue_id = $soap->mc_issue_add(
                    $config->mantis->user,
                    $config->mantis->pass,
                    $issue);<commit_msg>disable caching for feedback page<commit_after><?php
/*
 * This file is part of INQ Calculators.
 *
 * INQ Calculators is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * INQ Calculators 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.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with INQ Calculators.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Submits the feedback to an external ticketing system
 *
 * @copyright Copyright 2010-2011
 * @author <NAME> <urkle at outoforder.cc>
 */
class ajax_addFeedback extends AjaxRequest {
	public static $cache = false;

    public static function request($path_args) {
        global $config;

        $json = file_get_contents("php://input");
        $data = json_decode($json);

        $issue = self::prepIssue($data);
        $soap = new SoapClient($config->mantis->wsdl);
        try {
            $issue_id = $soap->mc_issue_add(
                    $config->mantis->user,
                    $config->mantis->pass,
                    $issue);
{'fraction_non_alphanumeric': 0.09185132237312366, 'fraction_numerical': 0.006433166547533953, 'mean_word_length': 2.866022099447514, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6677054', 'n_tokens_mistral': 790, 'n_tokens_neox': 745, 'n_words': 307}