<commit_before><?php




define('API_KEY','<KEY>');

$url = "https://api.whatismymovie.com/1.0/?api_key=";

$url2 = "https://api.whatismymovie.com/1.0/?api_key=TmhiLZMKtVSbsgfU&refinements=enabled&test=men+in+black";

/$curl = curl_init();
// Set some options - we are passing in a useragent too here
curl_setopt_array($curl, array(
    CURLOPT_RETURNTRANSFER => 1,
    CURLOPT_URL => 'https://api.whatismymovie.com/1.0/?api_key=TmhiLZMKtVSbsgfU&text=drummer+of+the+band+explodes',
    CURLOPT_USERAGENT => 'Codular Sample cURL Request',
     CURLOPT_HTTPGET => true
));
// Send the request & save response to $resp
$resp = curl_exec($curl);
//https://api.whatismymovie.com/1.0/?api_key=TmhiLZMKtVSbsgfU&text=drummer+of+the+band+explodes,+there+is+stonehenge+and+amplifier+going+to+eleven


if(!curl_exec($curl)){
    die('Error: "' . curl_error($curl) . '" - Code: ' . curl_errno($curl));
}else {
  echo "qzdqzd";
}


print_r($resp);

//var_dump( $resp );

echo "<br>";
json_decode($resp, true);

var_dump( $resp );
echo "<br>";

//print_r($resp);
// Close request to clear up some resources
curl_close($curl);<commit_msg>git netflix<commit_after><?php




define('API_KEY','<KEY>');

$url = "https://api.whatismymovie.com/1.0/?api_key=";

$url2 = "http://netflixroulette.net/api/api.php?actor=Nicolas%20Cage";

$curl = curl_init();
// Set some options - we are passing in a useragent too here
curl_setopt_array($curl, array(
    CURLOPT_RETURNTRANSFER => 1,
    CURLOPT_URL => 'http://netflixroulette.net/api/api.php?actor=Nicolas%20Cage',
    CURLOPT_USERAGENT => 'Codular Sample cURL Request',
     CURLOPT_HTTPGET => true
));
// Send the request & save response to $resp
$resp = curl_exec($curl);
//https://api.whatismymovie.com/1.0/?api_key=TmhiLZMKtVSbsgfU&text=drummer+of+the+band+explodes,+there+is+stonehenge+and+amplifier+going+to+eleven


if(!curl_exec($curl)){
    die('Error: "' . curl_error($curl) . '" - Code: ' . curl_errno($curl));
}else {
  echo "qzdqzd";
}



//print_r($resp);
//

//var_dump( $resp );

echo "<br>";
$resp =json_decode($resp, true);
//print_r($resp);

for ($i=0; $i < count($resp) ; $i++) {

      foreach($resp["0"] as $key => $value) {
if ($key == "category") {
  echo "".$value."";
  echo "<br>";}
        


    }
}

//var_dump( $resp );
echo "<br>";

//print_r($resp);
// Close request to clear up some resources
curl_close($curl);
{'fraction_non_alphanumeric': 0.19890434049726086, 'fraction_numerical': 0.009270965023177412, 'mean_word_length': 4.6389548693586695, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '3119467', 'n_tokens_mistral': 999, 'n_tokens_neox': 942, 'n_words': 158}