<commit_before>// Copyright 2002-2015, University of Colorado Boulder

/**
 * This file is used during string and audio plugin resolution in order to accomplish 2 goals:
 *
 * (a) determine that PhET Simulations are built using compatible resources.  Each resource (image or audio file) must
 * be annotated in a license.json file in the same directory.  Resource files without a compatible license will cause
 * the build to fail.  This file contains the rules for what PhET has deemed permissible 3rd party images, such as
 * Public Domain or images from NASA or other exceptions below.
 *
 * (b) provide information from the 3rd party resource files to the build system, so that a report can be included in the
 * build HTML file
 *
 * The return value from this function is a javascript object literal of the form:
 *   {classification: <string>, isProblematic: <boolean>, entry: <object> }
 *
 * As an important side-effect, each entry is added to global.imageAndAudioLicenseInfo.
 * After all resources have been loaded, this global will contain a list of all resources
 * used by the sim.
 *
 * The classification is one of: missing-license.json, not-annotated, phet or third-party
 * isProblematic indicates whether the particular license is compatible with PhET's licensing
 * entry: the object that appears in the license.json file, see
 * https://github.com/phetsims/simula-rasa/blob/master/images/README.md
 *
 * In order to simplify compatibility with requirejs and node versions, the return value is a javascript object literal
 * rather than a separate file/constructor function such as LicenseInfo.js
 *
 * @author <NAME>
 */
(function() {
  'use strict';

  // During a build, store the 3rd party data for reporting in the HTML file.
  if ( typeof global !== 'undefined' ) {
    global.imageAndAudioLicenseInfo = global.imageAndAudioLicenseInfo || {};
  }

  /**
   * Returns a string indicating a problem with licensing for the image/audio file, or null if there is no problem found.
   * The license.json file is consulted.  This function has no side effects (compare to getLicenseInfo above)
   *
   * @param {string} abspath - the path for the file
   * @returns {*}
   *
   * @private<commit_msg>Moved README.md text to getLicenseInfo.js, see https://github.com/phetsims/simula-rasa/issues/5<commit_after>// Copyright 2002-2015, University of Colorado Boulder

/**
 * This file is used during string and audio plugin resolution in order to accomplish 2 goals:
 *
 * (a) determine that PhET Simulations are built using compatible resources.  Each resource (image or audio file) must
 * be annotated in a license.json file in the same directory.  Resource files without a compatible license will cause
 * the build to fail.  This file contains the rules for what PhET has deemed permissible 3rd party images, such as
 * Public Domain or images from NASA or other exceptions below.
 *
 * (b) provide information from the 3rd party resource files to the build system, so that a report can be included in the
 * build HTML file
 *
 * The return value from this function is a javascript object literal of the form:
 *   {classification: <string>, isProblematic: <boolean>, entry: <object> }
 *
 * As an important side-effect, each entry is added to global.imageAndAudioLicenseInfo.
 * After all resources have been loaded, this global will contain a list of all resources
 * used by the sim.
 *
 * The classification is one of: missing-license.json, not-annotated, phet or third-party
 * isProblematic indicates whether the particular license is compatible with PhET's licensing
 * entry: the object that appears in the license.json file, see
 * https://github.com/phetsims/simula-rasa/blob/master/images/README.md
 *
 * In order to simplify compatibility with requirejs and node versions, the return value is a javascript object literal
 * rather than a separate file/constructor function such as LicenseInfo.js
 *
 * Each media (image/audio) file must have an entry in a license.json file in the same directory which indicates the
 * origin of the file as well as its licensing.  The license.json file should contain one entry per file, and each
 * should be annotated with the following:
 *
 * text - copyright statement or "Public Domain"
 * projectURL - the URL for the resource
 * license - the name of license, such as "Public Domain"
 * notes - additional helpful information about the resource, or ""
 *
 * For an example, please see any of the license.json files in a PhET simulation's image directory.
 *
 * @author <NAME>
 */
(function() {
  'use strict';

  // During a build, store the 3rd party data for reporting in the HTML file.
  if ( typeof global !== 'undefined' ) {
    global.imageAndAudioLicenseInfo = global.imageAndAudioLicenseInfo || {};
  }

  /**
   * Returns a string indicating a problem with licensing for the image/audio file, or null if there is no problem found.
   * The license.json file is consulted.  This function has no side effects (compare to getLicenseInfo above)
   *
   * @param {string} abspath - the path for the file
   * @returns {*}
   *
   * @private
{'fraction_non_alphanumeric': 0.0697538100820633, 'fraction_numerical': 0.0048847205939820245, 'mean_word_length': 3.8705994291151287, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 3, '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': '3681082', 'n_tokens_mistral': 1355, 'n_tokens_neox': 1283, 'n_words': 677}