<commit_before>/*
 * Copyright (C) 2010 
 * Written by:
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 *
 * All Rights Reserved
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 *
 */

#include "Session.h"
#include "HTTPRequest.h"

#include <iostream>

int main()
{
	/*Facebook::HttpRequest req;
	req.SetUrl("");

	std::auto_ptr<Json::Value> val = req.GetResponse();

	Facebook::Photo *photo = new Facebook::Photo();

	photo->Deserialize(*val);

	delete photo;*/

// 	Facebook::Session* session = Facebook::Session::getSession();
// 
// 	session;

	// let's use this for now
	//std::string	clientid = "232486072316";
	//std::string redirectURI = "http://www.facebook.com/connect/login_success.html";
	//std::string url = Facebook::Session::GetAuthenticationURL(clientid, redirectURI, "user_agent", std::string());

	//std::cout<<std::endl << url << std::endl;
	//std::string redirectURL;
	//system("pause"); // VS Debug
	//std::cin >> redirectURL;
	Facebook::Session* session_ = Facebook::Session::Authenticate("http://www.facebook.com/connect/login_success.html#access_token=232486072316|2.yxwVbwsCQdAsXgrxPsEVaA__.86400.1277078400-100000189955997|SzIF_MV5eaRB1jyaHvOjg-izL-A.");

	session_->getCurrentUser();
	system("pause"); // VS Debug
	return 0;
}<commit_msg>Updated testing process in main.cpp<commit_after>/*
 * Copyright (C) 2010 
 * Written by:
 * <NAME> <<EMAIL>>
 * <NAME> <<EMAIL>>
 *
 * All Rights Reserved
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 *
 */

#include "Session.h"
#include "HTTPRequest.h"

#include <iostream>

int main()
{
	/*Facebook::HttpRequest req;
	req.SetUrl("");

	std::auto_ptr<Json::Value> val = req.GetResponse();

	Facebook::Photo *photo = new Facebook::Photo();

	photo->Deserialize(*val);

	delete photo;*/

	// let's use this for now
	std::string	clientid = "232486072316";
	std::string redirectURI = "http://www.facebook.com/connect/login_success.html";
	std::string url = Facebook::Session::GetAuthenticationURL(clientid, redirectURI, "user_agent", std::string());

	std::cout << "PASTE THIS INTO YOUR BROWSER TO ACCEPT" << std::endl;
	std::cout<<std::endl << url << std::endl;
	std::string redirectURL;
	system("pause"); // VS Debug

	std::cout << "COPY THE REDIRECTED URL INTO HERE";
	std::cin >> redirectURL;
	Facebook::Session* session_ = Facebook::Session::Authenticate(redirectURL);

	session_->getCurrentUser();
	system("pause"); // VS Debug
	return 0;
}
{'fraction_non_alphanumeric': 0.14128166915052162, 'fraction_numerical': 0.02473919523099851, 'mean_word_length': 4.64983164983165, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2915121', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1020, 'n_words': 326}