<commit_before><?php
/**
 * Media.php
 *
 * Part of Overtrue\Wechat.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author    overtrue <<EMAIL>>
 * @copyright 2015 overtrue <<EMAIL>>
 * @link      https://github.com/overtrue
 * @link      http://overtrue.me
 */

namespace Overtrue\Wechat;

use Overtrue\Wechat\Utils\JSON;
use Overtrue\Wechat\Utils\Bag;

/**
 * 媒体素材
 *
 * @method string image($path)
 * @method string voice($path)
 * @method string thumb($path)
 */
class Media
{
    const API_TEMPORARY_UPLOAD    = 'http://file.api.weixin.qq.com/cgi-bin/media/upload';
    const API_FOREVER_UPLOAD      = 'http://api.weixin.qq.com/cgi-bin/material/add_material';
    const API_TEMPORARY_GET       = 'https://api.weixin.qq.com/cgi-bin/media/get';
    const API_FOREVER_GET         = 'https://api.weixin.qq.com/cgi-bin/material/get_material';
    const API_FOREVER_NEWS_UPLOAD = 'https://api.weixin.qq.com/cgi-bin/material/add_news';
    const API_FOREVER_NEWS_UPDATE = 'https://api.weixin.qq.com/cgi-bin/material/update_news';
    const API_FOREVER_DELETE      = 'https://api.weixin.qq.com/cgi-bin/material/del_material';
    const API_FOREVER_COUNT       = 'https://api.weixin.qq.com/cgi-bin/material/get_materialcount';
    const API_FOREVER_LIST        = 'https://api.weixin.qq.com/cgi-bin/material/batchget_material';

    /**<commit_msg>素材管理API地址更正<commit_after><?php
/**
 * Media.php
 *
 * Part of Overtrue\Wechat.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author    overtrue <<EMAIL>>
 * @copyright 2015 overtrue <<EMAIL>>
 * @link      https://github.com/overtrue
 * @link      http://overtrue.me
 */

namespace Overtrue\Wechat;

use Overtrue\Wechat\Utils\JSON;
use Overtrue\Wechat\Utils\Bag;

/**
 * 媒体素材
 *
 * @method string image($path)
 * @method string voice($path)
 * @method string thumb($path)
 */
class Media
{
    const API_TEMPORARY_UPLOAD    = 'http://file.api.weixin.qq.com/cgi-bin/media/upload';
    const API_FOREVER_UPLOAD      = 'https://api.weixin.qq.com/cgi-bin/material/add_material';
    const API_TEMPORARY_GET       = 'https://api.weixin.qq.com/cgi-bin/media/get';
    const API_FOREVER_GET         = 'https://api.weixin.qq.com/cgi-bin/material/get_material';
    const API_FOREVER_NEWS_UPLOAD = 'https://api.weixin.qq.com/cgi-bin/material/add_news';
    const API_FOREVER_NEWS_UPDATE = 'https://api.weixin.qq.com/cgi-bin/material/update_news';
    const API_FOREVER_DELETE      = 'https://api.weixin.qq.com/cgi-bin/material/del_material';
    const API_FOREVER_COUNT       = 'https://api.weixin.qq.com/cgi-bin/material/get_materialcount';
    const API_FOREVER_LIST        = 'https://api.weixin.qq.com/cgi-bin/material/batchget_material';

    /**
{'fraction_non_alphanumeric': 0.14659685863874344, 'fraction_numerical': 0.002792321116928447, 'mean_word_length': 3.335854765506808, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 17, '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': '5133209', 'n_tokens_mistral': 1043, 'n_tokens_neox': 1036, 'n_words': 160}