<commit_before>'use strict';

/**
 * @module packages
 */

/**
 * Defines the list of package publication errors.
 *
 * @class ERRORS
 * @static
 */

var ERRORS = {

  /**
   * No error.
   *
   * @property NO_ERROR
   * @type Number
   * @default -1
   * @final
   */
  NO_ERROR: -1,

  /**
   * Error involving a server error.
   *
   * @property UNKNOWN
   * @type Number
   * @default 0
   * @final
   */
  UNKNOWN: 0,

  /**
   * Package type is not supported.
   *
   * @property INVALID_PACKAGE_TYPE
   * @type Number
   * @default 1
   * @final
   */
  INVALID_PACKAGE_TYPE: 1,

  /**
   * Package copy failed.
   *
   * @property COPY
   * @type Number
   * @default 2
   * @final
   */
  COPY: 2,

  /**
   * Removing original package failed.
   *
   * @property UNLINK
   * @type Number
   * @default 3
   * @final
   */
  UNLINK: 3,

  /**
   * Extracting an archive package failed.
   *
   * @property EXTRACT
   * @type Number
   * @default 4
   * @final
   */
  EXTRACT: 4,

  /**
   * Package does not respect the expected format for its type.
   *
   * @property VALIDATION
   * @type Number
   * @default 5
   * @final
   */
  VALIDATION: 5,

  /**
   * Creating public directory to expose package's files failed.
   *
   * @property CREATE_VIDEO_PUBLIC_DIR
   * @type Number
   * @default 6
   * @final
   */
  CREATE_VIDEO_PUBLIC_DIR: 6,

  /**
   * Saving package data into database failed.
   *
   * @property SAVE_PACKAGE_DATA
   * @type Number
   * @default 7
   * @final
   */
  SAVE_PACKAGE_DATA: 7,

  /**
   * Creating synchro.json file failed.
   *
   * @property SAVE_TIMECODE
   * @type Number
   * @default 8
   * @final
   */
  SAVE_TIMECODE: 8,

  /**
   * Uploading media to media platform failed.
   *
   * @property MEDIA_UPLOAD
   * @type Number
   * @default 9
   * @final
   */
  MEDIA_UPLOAD: 9,

  /**
   * Synchronizing media to the media platform failed.
   *
   * @property MEDIA_SYNCHRONIZE
   * @type Number
   * @default 10
   * @final
   */
  MEDIA_SYNCHRONIZE: 10,

  /**
   * Scanning package temporary directory failed.
   *
   * @property SCAN_FOR_IMAGES
   * @type Number
   * @default 11
   * @final
   */
  SCAN_FOR_IMAGES: 11,

  /**
   * Cleaning package temporary directory failed.
   *
   * @property SCAN_FOR_IMAGES
   * @type Number
   * @default 13
   * @final
   */
  CLEAN_DIRECTORY: 13,

  /**
   * Retrying / uploading package failed.
   *
   * Package was not found.
   *
   * @property PACKAGE_NOT_FOUND<commit_msg>Fix documentation about CLEAN_DIRECTORY error<commit_after>'use strict';

/**
 * @module packages
 */

/**
 * Defines the list of package publication errors.
 *
 * @class ERRORS
 * @static
 */

var ERRORS = {

  /**
   * No error.
   *
   * @property NO_ERROR
   * @type Number
   * @default -1
   * @final
   */
  NO_ERROR: -1,

  /**
   * Error involving a server error.
   *
   * @property UNKNOWN
   * @type Number
   * @default 0
   * @final
   */
  UNKNOWN: 0,

  /**
   * Package type is not supported.
   *
   * @property INVALID_PACKAGE_TYPE
   * @type Number
   * @default 1
   * @final
   */
  INVALID_PACKAGE_TYPE: 1,

  /**
   * Package copy failed.
   *
   * @property COPY
   * @type Number
   * @default 2
   * @final
   */
  COPY: 2,

  /**
   * Removing original package failed.
   *
   * @property UNLINK
   * @type Number
   * @default 3
   * @final
   */
  UNLINK: 3,

  /**
   * Extracting an archive package failed.
   *
   * @property EXTRACT
   * @type Number
   * @default 4
   * @final
   */
  EXTRACT: 4,

  /**
   * Package does not respect the expected format for its type.
   *
   * @property VALIDATION
   * @type Number
   * @default 5
   * @final
   */
  VALIDATION: 5,

  /**
   * Creating public directory to expose package's files failed.
   *
   * @property CREATE_VIDEO_PUBLIC_DIR
   * @type Number
   * @default 6
   * @final
   */
  CREATE_VIDEO_PUBLIC_DIR: 6,

  /**
   * Saving package data into database failed.
   *
   * @property SAVE_PACKAGE_DATA
   * @type Number
   * @default 7
   * @final
   */
  SAVE_PACKAGE_DATA: 7,

  /**
   * Creating synchro.json file failed.
   *
   * @property SAVE_TIMECODE
   * @type Number
   * @default 8
   * @final
   */
  SAVE_TIMECODE: 8,

  /**
   * Uploading media to media platform failed.
   *
   * @property MEDIA_UPLOAD
   * @type Number
   * @default 9
   * @final
   */
  MEDIA_UPLOAD: 9,

  /**
   * Synchronizing media to the media platform failed.
   *
   * @property MEDIA_SYNCHRONIZE
   * @type Number
   * @default 10
   * @final
   */
  MEDIA_SYNCHRONIZE: 10,

  /**
   * Scanning package temporary directory failed.
   *
   * @property SCAN_FOR_IMAGES
   * @type Number
   * @default 11
   * @final
   */
  SCAN_FOR_IMAGES: 11,

  /**
   * Cleaning package temporary directory failed.
   *
   * @property CLEAN_DIRECTORY
   * @type Number
   * @default 13
   * @final
   */
  CLEAN_DIRECTORY: 13,

  /**
   * Retrying / uploading package failed.
   *
   * Package was not found.
   *
   * @property PACKAGE_NOT_FOUND
{'fraction_non_alphanumeric': 0.118, 'fraction_numerical': 0.0136, 'mean_word_length': 2.108141702921069, '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': '1527984', 'n_tokens_mistral': 1905, 'n_tokens_neox': 1788, 'n_words': 457}