<commit_before>/*
 * opencog/server/RequestResult.h
 *
 * Copyright (C) 2002-2007 Novamente LLC
 * All Rights Reserved
 *
 * Written by <NAME> <<EMAIL>>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License v3 as
 * published by the Free Software Foundation and including the exceptions
 * at http://opencog.org/wiki/Licenses
 *
 * 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.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program; if not, write to:
 * Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef _OPENCOG_REQUEST_RESULT_H
#define _OPENCOG_REQUEST_RESULT_H

#include <string>
#include <tr1/memory>

#include <opencog/server/IHasMimeType.h>
#include <opencog/server/IRequestComplete.h>
#include <opencog/shell/GenericShell.h>

namespace opencog
{

class Request;


/**
 * This abstract class defines the API needed to handle a request result.
 *
 * We provide a callback method from the IRequestComplete interface: 
 * 'OnRequestCompleted()'. This callback signals the RequestResult object 
 * that request processing has finished (so that we may 
 * synchronously send the request result to the client but process the 
 * request 'asynchronously' on the cogserver's main thread).
 *
 * As required by the Request abstract class, the RequestResult class
 * also defines the IHasMimeType interface, defining its mime-type
 * as 'text/plain'.
 *
 */
class RequestResult : public IHasMimeType,
                      public IRequestComplete
{

public:
<commit_msg>remove pointless include<commit_after>/*
 * opencog/server/RequestResult.h
 *
 * Copyright (C) 2002-2007 Novamente LLC
 * All Rights Reserved
 *
 * Written by <NAME> <<EMAIL>>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License v3 as
 * published by the Free Software Foundation and including the exceptions
 * at http://opencog.org/wiki/Licenses
 *
 * 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.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program; if not, write to:
 * Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef _OPENCOG_REQUEST_RESULT_H
#define _OPENCOG_REQUEST_RESULT_H

#include <string>
#include <tr1/memory>

#include <opencog/server/IHasMimeType.h>
#include <opencog/server/IRequestComplete.h>

namespace opencog
{

class Request;


/**
 * This abstract class defines the API needed to handle a request result.
 *
 * We provide a callback method from the IRequestComplete interface: 
 * 'OnRequestCompleted()'. This callback signals the RequestResult object 
 * that request processing has finished (so that we may 
 * synchronously send the request result to the client but process the 
 * request 'asynchronously' on the cogserver's main thread).
 *
 * As required by the Request abstract class, the RequestResult class
 * also defines the IHasMimeType interface, defining its mime-type
 * as 'text/plain'.
 *
 */
class RequestResult : public IHasMimeType,
                      public IRequestComplete
{

public:

{'fraction_non_alphanumeric': 0.07055630936227951, 'fraction_numerical': 0.011397557666214383, 'mean_word_length': 4.049315068493151, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '2205539', 'n_tokens_mistral': 1031, 'n_tokens_neox': 979, 'n_words': 444}