<commit_before><?php
/*
 * Limb PHP Framework
 *
 * @link http://limb-project.com
 * @copyright  Copyright &copy; 2004-2009 BIT(http://bit-creative.com)
 * @license    LGPL http://www.gnu.org/copyleft/lesser.html
 */

/**
 * class lmbMimeType.
 *
 * @package net
 * @version $Id: lmbMimeType.class.php 7539 2009-01-30 07:09:56Z vasiatka $
 */
class lmbMimeType
{
  static protected $mime_types = array(
    'video/avi'=>'avi',
    'application/x-flash-video'=>'flv',
    'audio/x-aiff'=>'aif',
    'audio/x-aiff' => 'aifc',
    'audio/x-aiff' => 'aiff',
    'image/bmp' =>'bmp',
    'application/msword' =>'doc',
    'video/x-flv' =>'flv',
    'image/gif' =>'gif',
    'text/html' =>'html',
    'image/pjpeg' =>'jpeg',
    'image/jpeg' =>'jpg',
    'text/javascript' =>'js',
    'video/mpeg' =>'mpeg',
    'audio/mpeg' =>'mp3',
    'video/mpeg' =>'mpg',
    'message/rfc822' =>'msg',
    'application/pdf' =>'pdf',
    'image/png' =>'png',
    'application/vnd.ms-powerpoint' =>'ppt',
    'image/psd' =>'psd',
    'text/rtf' =>'rtf',
    'application/x-shockwave-flash' =>'swf',
    'text/plain' =>'txt',
    'audio/x-wav' =>'wav',
    'application/vnd.ms-excel' =>'xls',
    'application/x-rar-compressed' =>'rar',
    'application/rar' =>'rar',
    'application/x-zip-compressed' =>'zip',
    'application/zip' =>'zip'
  );

  static function getExtension($mime_type)
  {
    $mime_type = strtolower($mime_type);
    return isset(self :: $mime_types[$mime_type])<commit_msg>[svn r7886] -- fix for determine png files extension by mime type of IE6 browser (mime type as 'image/x-png')<commit_after><?php
/*
 * Limb PHP Framework
 *
 * @link http://limb-project.com
 * @copyright  Copyright &copy; 2004-2009 BIT(http://bit-creative.com)
 * @license    LGPL http://www.gnu.org/copyleft/lesser.html
 */

/**
 * class lmbMimeType.
 *
 * @package net
 * @version $Id: lmbMimeType.class.php 7886 2009-04-17 07:39:04Z serega $
 */
class lmbMimeType
{
  static protected $mime_types = array(
    'video/avi'=>'avi',
    'application/x-flash-video'=>'flv',
    'audio/x-aiff'=>'aif',
    'audio/x-aiff' => 'aifc',
    'audio/x-aiff' => 'aiff',
    'image/bmp' =>'bmp',
    'application/msword' =>'doc',
    'video/x-flv' =>'flv',
    'image/gif' =>'gif',
    'text/html' =>'html',
    'image/pjpeg' =>'jpeg',
    'image/jpeg' =>'jpg',
    'text/javascript' =>'js',
    'video/mpeg' =>'mpeg',
    'audio/mpeg' =>'mp3',
    'video/mpeg' =>'mpg',
    'message/rfc822' =>'msg',
    'application/pdf' =>'pdf',
    'image/png' =>'png',
    'image/x-png' => 'png',
    'application/vnd.ms-powerpoint' =>'ppt',
    'image/psd' =>'psd',
    'text/rtf' =>'rtf',
    'application/x-shockwave-flash' =>'swf',
    'text/plain' =>'txt',
    'audio/x-wav' =>'wav',
    'application/vnd.ms-excel' =>'xls',
    'application/x-rar-compressed' =>'rar',
    'application/rar' =>'rar',
    'application/x-zip-compressed' =>'zip',
    'application/zip' =>'zip'
  );

  static function getExtension($mime_type)
  {
    $mime_type = strtolower($mime_type);
    return isset(self :: $mime_types[$mime_type])
{'fraction_non_alphanumeric': 0.2280416395575797, 'fraction_numerical': 0.02114508783344177, 'mean_word_length': 3.2946927374301676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1538082', 'n_tokens_mistral': 1313, 'n_tokens_neox': 1244, 'n_words': 210}