<commit_before>/*
 * Qimage - Simple Promise Image Loader based on Q
 */
(function (definition) {
    if (typeof exports === "object") {
        module.exports = definition();
    } else {
        window.Qimage = definition();
    }
})(function () {

  var Q = window.Q || require("q");

  // QImage
  // ===
  // *Creates an Image Loader.*
  //
  // Parameters
  // ---
  // `url` **(string)**: load an Image with its URL
  //
  // Result
  // ---
  // Returns a **(Promise of Image)**
  //
  var Qimage = function (url) {
    var img = new Image();
    var d = Q.defer();
    img.onload = function () {
      d.resolve(img);<commit_msg>add image cross origin attribute<commit_after>/*
 * Qimage - Simple Promise Image Loader based on Q
 */
(function (definition) {
    if (typeof exports === "object") {
        module.exports = definition();
    } else {
        window.Qimage = definition();
    }
})(function () {

  var Q = window.Q || require("q");

  // QImage
  // ===
  // *Creates an Image Loader.*
  //
  // Parameters
  // ---
  // `url` **(string)**: load an Image with its URL
  //
  // Result
  // ---
  // Returns a **(Promise of Image)**
  //
  var Qimage = function (url) {
    var img = new Image();
    img.crossOrigin = "Anonymous";
    var d = Q.defer();
    img.onload = function () {
      d.resolve(img);
{'fraction_non_alphanumeric': 0.18721804511278195, 'fraction_numerical': 0.0, 'mean_word_length': 2.0318906605922553, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6148537', 'n_tokens_mistral': 426, 'n_tokens_neox': 418, 'n_words': 123}