<commit_before><?php

/**
 * Retreive the metadata for a file/folder
 * @link https://www.dropbox.com/developers/reference/api#metadata
 * @link https://github.com/BenTheDesigner/Dropbox/blob/master/Dropbox/API.php#L138-160
 */

// Require the bootstrap
require_once('bootstrap.php');

// Set the file path
// You will need to modify $path or run putFile.php first
$path = 'api_upload_test.txt';

// Get the metadata for the file/folder specified in $path
$metaData = $dropbox->metaData($path);

// Dump the output<commit_msg>Updated line references<commit_after><?php

/**
 * Retreive the metadata for a file/folder
 * @link https://www.dropbox.com/developers/reference/api#metadata
 * @link https://github.com/BenTheDesigner/Dropbox/blob/master/Dropbox/API.php#L153-175
 */

// Require the bootstrap
require_once('bootstrap.php');

// Set the file path
// You will need to modify $path or run putFile.php first
$path = 'api_upload_test.txt';

// Get the metadata for the file/folder specified in $path
$metaData = $dropbox->metaData($path);

// Dump the output
{'fraction_non_alphanumeric': 0.1374764595103578, 'fraction_numerical': 0.011299435028248588, 'mean_word_length': 4.185365853658537, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '6573272', 'n_tokens_mistral': 349, 'n_tokens_neox': 338, 'n_words': 91}