<commit_before>'use strict';
// albumUrl embedded like <script data-share="Y7cccQOkL9Xpq6BhXiz5xyuuvxDIjVGB693FB5RUDoL" data-blueimp="truthy -- optional" data-container="target container id" data-clip-thumb="truthy -- optional" data-cors-proxy="<cors proxy url -- defaults to crossorigin.me>" src="this-script.js"></script>
/** configuration
 *
 * required:
 * data-share: String - The shareId shown in the URL to the shared gallery
 *
 * optional:
 * data-blueimp: Boolean - Whether to use blueimp-gallery tto display the full-size images in a lightbox format.
 * You must include blueimp yourself on the page.
 * data-container: String - The target container ID for your images. If it does not exist on the page, it will be created.
 * data-clip-thumb: Boolean - Whether to clip the thumbnails on the page, or display them resized instead.
 * data-cors-proxy: String - An alternative cors proxy server to crossorigin.me
 *
 * Warning: This requires jquery or a jquery-compatible library such as zepto.
 * It uses the get API, ID selectors, click events, dom insertion, and dom element creation.
 *
*/
const scpt = document.currentScript,
share = scpt.getAttribute('data-share'),
useBlueimp = !!scpt.getAttribute('data-blueimp'),
clip = (!!scpt.getAttribute('data-clip-thumb'))?'&fit=clip':'',
container = scpt.getAttribute('data-target') || 'links',
containerId = `#${container}`,
crossOriginProxy = 'https://crossorigin.me',
amazonNodeApi = 'https://www.amazon.com/drive/v1/nodes',
amazonShareApi = 'https://www.amazon.com/drive/v1/shares',
shareUrl = `${crossOriginProxy}/${amazonShareApi}/${share}?id=${share}&resourceVersion=V2&ContentType=JSON`,<commit_msg>getAttribute -> hasAttribute<commit_after>'use strict';
// albumUrl embedded like <script data-share="Y7cccQOkL9Xpq6BhXiz5xyuuvxDIjVGB693FB5RUDoL" data-blueimp="truthy -- optional" data-container="target container id" data-clip-thumb="truthy -- optional" data-cors-proxy="<cors proxy url -- defaults to crossorigin.me>" src="this-script.js"></script>
/** configuration
 *
 * required:
 * data-share: String - The shareId shown in the URL to the shared gallery
 *
 * optional:
 * data-blueimp: Boolean - Whether to use blueimp-gallery tto display the full-size images in a lightbox format.
 * You must include blueimp yourself on the page.
 * data-container: String - The target container ID for your images. If it does not exist on the page, it will be created.
 * data-clip-thumb: Boolean - Whether to clip the thumbnails on the page, or display them resized instead.
 * data-cors-proxy: String - An alternative cors proxy server to crossorigin.me
 *
 * Warning: This requires jquery or a jquery-compatible library such as zepto.
 * It uses the get API, ID selectors, click events, dom insertion, and dom element creation.
 *
*/
const scpt = document.currentScript,
share = scpt.getAttribute('data-share'),
useBlueimp = scpt.hasAttribute('data-blueimp'),
clip = scpt.hasAttribute('data-clip-thumb')?'&fit=clip':'',
container = scpt.getAttribute('data-target') || 'links',
containerId = `#${container}`,
crossOriginProxy = 'https://crossorigin.me',
amazonNodeApi = 'https://www.amazon.com/drive/v1/nodes',
amazonShareApi = 'https://www.amazon.com/drive/v1/shares',
shareUrl = `${crossOriginProxy}/${amazonShareApi}/${share}?id=${share}&resourceVersion=V2&ContentType=JSON`,
{'fraction_non_alphanumeric': 0.13245430026970334, 'fraction_numerical': 0.006592747977225052, 'mean_word_length': 5.047101449275362, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, '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': '1802608', 'n_tokens_mistral': 1011, 'n_tokens_neox': 995, 'n_words': 304}