<commit_before>#ifndef REQUEST_H
#define REQUEST_H
/**
 * Copyright 2008 <NAME>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


#include <string>
#include "request_type.h"


/**
 * An object to describe a request to the server to manage
 * the sessions.
 */
class request_c
{
public:
	/**
	 * Construct a request object with a given request type
	 * and a string parameter.
	 */
	request_c( request_type_e, const std::string& session_id );

	/**
	 * Set the token name.  This is only for token requests.
	 */
	void set_token_name( const std::string& token_name )
		{ m_token_name = token_name; }

	/**
	 * Set the token value.  This is optional.
	 */
	void set_token_value( const std::string& token_value )
		{ m_token_value = token_value; }

	/**
	 * Get the type of this request
	 */
	request_type_e request_type() const { return m_req_type; }

	/**
	 * Get the session_id for this request
	 */
	const std::string & session_id() const { return m_session_id; }

	/**
	 * Get the token name.
	 */
	const std::string & token_name() const { return m_token_name; }

	/**
	 * Get the token value.
	 */
	const std::string & token_value() const { return m_token_value; }

private:
	request_type_e m_req_type;
	std::string m_session_id;
	std::string m_token_name;
	std::string m_token_value;
};


#endif
<commit_msg>removed token data from the request_c class<commit_after>#ifndef REQUEST_H
#define REQUEST_H
/**
 * Copyright 2008 <NAME>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


#include <string>
#include "request_type.h"


/**
 * An object to describe a request to the server to manage
 * the sessions.
 */
class request_c
{
public:
	/**
	 * Construct a request object with a given request type
	 * and a string parameter.
	 */
	request_c( request_type_e, const std::string& session_id );

	/**
	 * Get the type of this request
	 */
	request_type_e request_type() const { return m_req_type; }

	/**
	 * Get the session_id for this request
	 */
	const std::string & session_id() const { return m_session_id; }

private:
	request_type_e m_req_type;
	std::string m_session_id;
};


#endif

{'fraction_non_alphanumeric': 0.09505459216441875, 'fraction_numerical': 0.005138086062941554, 'mean_word_length': 3.6771771771771773, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '710117', 'n_tokens_mistral': 970, 'n_tokens_neox': 918, 'n_words': 365}