<commit_before><?php

require_once("../src/snapchat.php");

//////////// CONFIG ////////////
$username = ""; // Your snapchat username
$password = ""; // Your snapchat password
$debug = false; // Set this to true if you want to see all outgoing requests and responses from server
////////////////////////////////


$imagePath = ""; // URL or local path to a media file (image or video)
$sendTo = array();

$snapchat = new Snapchat($username, $auth_token, $debug);

//Login to Snapchat with your username and password
$snapchat->login($username, $password);

// Send snap adding text to your image and 10 seconds
$snapchat->send($imagePath, $sendTo, "this is a test :D", 10);

// Set a story
$snapchat->setStory($imagePath);

// Set a story adding text to the image and 5 seconds
$snapchat->setStory($imagePath, 5, "This is my story");

// Get your friends in an array
$friends = $snapchat->getFriends();

// Get snaps data
$snapchat->getSnaps();

// Automatically downloads Snaps and store it in 'Snaps' folder
$snapchat->getSnaps(true);

// Send chat message to "username"
$snapchat->sendMessage("username", "hello from Snap-API!");

?><commit_msg>update exampleFunctional<commit_after><?php

require_once("../src/snapchat.php");

//////////// CONFIG ////////////
$username = ""; // Your snapchat username
$password = ""; // Your snapchat password
$debug = false; // Set this to true if you want to see all outgoing requests and responses from server
////////////////////////////////


$imagePath = ""; // URL or local path to a media file (image or video)
$sendTo = array();

$snapchat = new Snapchat($username, $auth_token, $debug);

//Login to Snapchat with your username and password
$snapchat->login($username, $password);

// Get your friends in an array
$friends = $snapchat->getFriends();

echo "My friends: ";
print_r($friends);

// Send snap adding text to your image and 10 seconds
$snapchat->send($imagePath, $sendTo, "this is a test :D", 10);

// Set a story
// $snapchat->setStory($imagePath);

// Set a story adding text to the image and 5 seconds
$snapchat->setStory($imagePath, 5, "This is my story");


// Get snaps data (Without storing them)
//$snapchat->getSnaps();

// Automatically downloads Snaps and store it in 'Snaps' folder
$snapchat->getSnaps(true);

// Send chat message to "username"
$snapchat->sendMessage("username", "hello from Snap-API!");

?>
{'fraction_non_alphanumeric': 0.18242959226565783, 'fraction_numerical': 0.005044136191677175, 'mean_word_length': 3.4320297951582868, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7564068', 'n_tokens_mistral': 713, 'n_tokens_neox': 679, 'n_words': 264}