<commit_before><html>
    <head>
         </head>
        <body>
            
<?php
ini_set('display_errors', 1); // this is how many errors you have. Since you don't want other people to know this you would delete this before going live.
require_once('TwitterAPIExchange.php');

/** Set access tokens here - see: https://dev.twitter.com/apps/ **/

/**Stevens
$settings = array(
    'oauth_access_token' => "<KEY>",
    'oauth_access_token_secret' => "<KEY>",
    'consumer_key' => "7DupEseAPvT0aGaA9zwuKA",
    'consumer_secret' => "<KEY>"
);

*/

$settings = array(
    'oauth_access_token' => "<KEY>",
    'oauth_access_token_secret' => "<KEY>",
    'consumer_key' => "<KEY>",
    'consumer_secret' => "<KEY>"
);


/** URL for REST request, see: https://dev.twitter.com/docs/api/1.1/ **/
$url = 'https://api.twitter.com/1.1/search/tweets.json';
$requestMethod = 'GET'; //POST we comment post out because we are going to use the GET method, not the post

/** POST fields required by the URL above. See relevant docs as above **/
$postfields = array(
    'screen_name' => 'usernameToBlock', 
    'skip_status' => '1'
);

/*The post and get requests both do the same thing so you need to choose on or the other. 
/** Perform a POST request and echo the response **/ // This is what makes it works, passes the information from twitter and sets it on the page.
/*$twitter = new TwitterAPIExchange($settings);
echo $twitter->buildOauth($url, $requestMethod)
             ->setPostfields($postfields)<commit_msg>huh?<commit_after><html>
    <head>
         </head>
        <body>
            
<?php
ini_set('display_errors', 1); // this is how many errors you have. Since you don't want other people to know this you would delete this before going live.
require_once('TwitterAPIExchange.php');

/** Set access tokens here - see: https://dev.twitter.com/apps/ **/

/**Stevens
$settings = array(
    'oauth_access_token' => "<KEY>",
    'oauth_access_token_secret' => "<KEY>",
    'consumer_key' => "7DupEseAPvT0aGaA9zwuKA", 
    'consumer_secret' => "<KEY>"
);

*/

$settings = array(
    'oauth_access_token' => "<KEY>",
    'oauth_access_token_secret' => "<KEY>",
    'consumer_key' => "Rj1ZQF6wk2YVl4OWz0xvyKjAJ",
    'consumer_secret' => "<KEY>"
);


/** URL for REST request, see: https://dev.twitter.com/docs/api/1.1/ **/
$url = 'https://api.twitter.com/1.1/search/tweets.json';
$requestMethod = 'GET'; //POST we comment post out because we are going to use the GET method, not the post

/** POST fields required by the URL above. See relevant docs as above **/
$postfields = array(
    'screen_name' => 'usernameToBlock', 
    'skip_status' => '1'
);

/*The post and get requests both do the same thing so you need to choose on or the other. 
/** Perform a POST request and echo the response **/ // This is what makes it works, passes the information from twitter and sets it on the page.
/*$twitter = new TwitterAPIExchange($settings);
echo $twitter->buildOauth($url, $requestMethod)
             ->setPostfields($postfields)
{'fraction_non_alphanumeric': 0.15092470277410833, 'fraction_numerical': 0.007595772787318362, 'mean_word_length': 3.534431137724551, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 48, 'https://': 6, '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': '45362', 'n_tokens_mistral': 1001, 'n_tokens_neox': 961, 'n_words': 307}