<commit_before>#!./node_modules/.bin/babel-node

/*
Get information to be used for srcset for Flickr and print yaml fragment.

Rerference:
https://www.flickr.com/services/api/flickr.photos.getSizes.html
https://www.flickr.com/services/api/misc.urls.html
*/

// Use request to support proxy.
// If you are behind a proxy, set https_proxy environment variable.
import request from 'request';

const args = process.argv.slice(2);
if (args.length !== 2) {
  console.error('Usage:');
  console.error();
  console.error('./node_modules/.bin/babel-node scripts/get-flickr-photo-sizes.js <FLICKR_API_KEY> <PHOTO_ID>');
  console.error();
  console.error('You can get a Flickr api key at <https://www.flickr.com/services/apps/create/apply>,');
  console.error('or find a key at <https://github.com/neptunian/react-photo-gallery/blob/3/examples/src/app.js#L40>.');
  process.exit(1);
}<commit_msg>Fix file permission<commit_after>#!./node_modules/.bin/babel-node

/*
Get information to be used for srcset for Flickr and print yaml fragment.

Rerference:
https://www.flickr.com/services/api/flickr.photos.getSizes.html
https://www.flickr.com/services/api/misc.urls.html
*/

// Use request to support proxy.
// If you are behind a proxy, set https_proxy environment variable.
import request from 'request';

const args = process.argv.slice(2);
if (args.length !== 2) {
  console.error('Usage:');
  console.error();
  console.error('./node_modules/.bin/babel-node scripts/get-flickr-sizes.js <FLICKR_API_KEY> <PHOTO_ID>');
  console.error();
  console.error('You can get a Flickr api key at <https://www.flickr.com/services/apps/create/apply>,');
  console.error('or find a key at <https://github.com/neptunian/react-photo-gallery/blob/3/examples/src/app.js#L40>.');
  process.exit(1);
}
{'fraction_non_alphanumeric': 0.16178128523111612, 'fraction_numerical': 0.006764374295377677, 'mean_word_length': 4.282738095238095, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, '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': '2856047', 'n_tokens_mistral': 633, 'n_tokens_neox': 605, 'n_words': 132}