<commit_before><?php

require_once('../vendor/j7mbo/twitter-api-php/TwitterAPIExchange.php');

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', function()
{
	$settings = array(
		'oauth_access_token' => Config::get('oauth.oauth_access_token'),
		'oauth_access_token_secret' => Config::get('oauth.oauth_access_token_secret'),
		'consumer_key' => Config::get('oauth.consumer_key'),
		'consumer_secret' => Config::get('oauth.consumer_secret')
	);


	$url = 'https://api.twitter.com/1.1/followers/ids.json';
	$getfield = '?screen_name=J7mbo';
	$requestMethod = 'GET';

	$twitter = new TwitterAPIExchange($settings);
	echo $twitter->setGetfield($getfield)
		->buildOauth($url, $requestMethod)
		->performRequest();

});<commit_msg>searching through all tweets that mention alchemyAPI<commit_after><?php

require_once('../vendor/j7mbo/twitter-api-php/TwitterAPIExchange.php');

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', function()
{
	$settings = array(
		'oauth_access_token' => Config::get('oauth.oauth_access_token'),
		'oauth_access_token_secret' => Config::get('oauth.oauth_access_token_secret'),
		'consumer_key' => Config::get('oauth.consumer_key'),
		'consumer_secret' => Config::get('oauth.consumer_secret')
	);
	
	$url = 'https://api.twitter.com/1.1/search/tweets.json';

	$getfield = '?q=alchemyapi&src=typd';
	$requestMethod = 'GET';

	$twitter = new TwitterAPIExchange($settings);
	$jsonResponse =  $twitter->setGetfield($getfield)
							 ->buildOauth($url, $requestMethod)
							 ->performRequest();
	$results = json_decode($jsonResponse);
	dd($results);
});
{'fraction_non_alphanumeric': 0.26818580192813324, 'fraction_numerical': 0.003067484662576687, 'mean_word_length': 2.7243066884176184, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '1269145', 'n_tokens_mistral': 718, 'n_tokens_neox': 661, 'n_words': 143}