<commit_before><?php
/**
 * 融云 server sdk
 */
namespace RongCloud;

use RongCloud\Lib\Chatroom\Chatroom;
use RongCloud\Lib\Conversation\Conversation;
use RongCloud\Lib\Group\Group;
use RongCloud\Lib\Ultragroup\Ultragroup;
use RongCloud\Lib\Message\Message;
use RongCloud\Lib\Sensitive\Sensitive;
use RongCloud\Lib\User\User;
use RongCloud\Lib\Push\Push;

error_reporting(0);
if (!defined('RONGCLOUOD_ROOT')) {
    define('RONGCLOUOD_ROOT', dirname(__FILE__) . '/');
    require('Autoloader.php');
}

class RongCloud
{
    /**
     * 应用 appkey
     *
     * @var string
     */
    public static $appkey;

    /**
     * 应用 appSecret
     *
     * @var string
     */
    public static $appSecret;

    /**
     * 海外数据中心 api 地址 ，默认为国内数据中心
     *
     * @var string
     */
    public static $apiUrl;

    /**
     * CURLOPT_CONNECTTIMEOUT 
     *
     * @var int
     */
    public static $connectTimeout = 20;

    /**
     * CURLOPT_TIMEOUT
     *
     * @var int
     */
    public static $timeout = 30;


    /**
     * 用户对象
     *
     * @var  User
     */
    public $_user;

    /**
     * 消息对象
     *
     * @var Message
     */
    public $_message;

    /**
     * 群组对象
     *
     * @var Group
     */
    public $_group;

    /**
     * 超级群对象
     *
     * @var Ultragroup
     */
    public $_ultragroup;

    /**
     * 会话对象
     *
     * @var Conversation
     */
    public $_conversation;

    /**
     * 聊天室对象
     *
     * @var Chatroom
     */
    public $_chatroom;

    /**
     * 敏感词对象
     *
     * @var Sensitive
     */
    public $_sensitive;

    /**
     * 推送模块对象
     *
     * @var Push
     */
    public $_push;

    /**
     * RongCloud constructor.
     * @param string $appKey 实体 appKey 应用 key
     * @param string $appSecret 实体 appSecret 应用 秘钥
     */
    public function __construct($appKey="",$appSecret="",$apiUrl="")
    {
        //设置 key 和秘钥
        if($appKey){
            self::$appkey = $appKey;
            self::$appSecret = $appSecret;
        }
        if($apiUrl) self::$apiUrl = $apiUrl;

        self::$appkey = "<KEY>";
        self::$appSecret="<KEY>";
        self::$apiUrl="https://api-ucqa.rongcloud.net/";
        //创建 User
        $this->_user = new User();

        //创建 Group
        $this->_group = new Group();

        //创建 Chatroome
        $this->_chatroom = new Chatroom();

        //创建 Conversation
        $this->_conversation= new Conversation();

        //创建 Message
        $this->_message = new Message();

        //创建 Sensitive
        $this->_sensitive= new Sensitive();

        //创建 Push
        $this->_push= new Push();

        //创建 Ultragroup<commit_msg>消息清除api<commit_after><?php
/**
 * 融云 server sdk
 */
namespace RongCloud;

use RongCloud\Lib\Chatroom\Chatroom;
use RongCloud\Lib\Conversation\Conversation;
use RongCloud\Lib\Group\Group;
use RongCloud\Lib\Ultragroup\Ultragroup;
use RongCloud\Lib\Message\Message;
use RongCloud\Lib\Sensitive\Sensitive;
use RongCloud\Lib\User\User;
use RongCloud\Lib\Push\Push;

error_reporting(0);
if (!defined('RONGCLOUOD_ROOT')) {
    define('RONGCLOUOD_ROOT', dirname(__FILE__) . '/');
    require('Autoloader.php');
}

class RongCloud
{
    /**
     * 应用 appkey
     *
     * @var string
     */
    public static $appkey;

    /**
     * 应用 appSecret
     *
     * @var string
     */
    public static $appSecret;

    /**
     * 海外数据中心 api 地址 ，默认为国内数据中心
     *
     * @var string
     */
    public static $apiUrl;

    /**
     * CURLOPT_CONNECTTIMEOUT 
     *
     * @var int
     */
    public static $connectTimeout = 20;

    /**
     * CURLOPT_TIMEOUT
     *
     * @var int
     */
    public static $timeout = 30;


    /**
     * 用户对象
     *
     * @var  User
     */
    public $_user;

    /**
     * 消息对象
     *
     * @var Message
     */
    public $_message;

    /**
     * 群组对象
     *
     * @var Group
     */
    public $_group;

    /**
     * 超级群对象
     *
     * @var Ultragroup
     */
    public $_ultragroup;

    /**
     * 会话对象
     *
     * @var Conversation
     */
    public $_conversation;

    /**
     * 聊天室对象
     *
     * @var Chatroom
     */
    public $_chatroom;

    /**
     * 敏感词对象
     *
     * @var Sensitive
     */
    public $_sensitive;

    /**
     * 推送模块对象
     *
     * @var Push
     */
    public $_push;

    /**
     * RongCloud constructor.
     * @param string $appKey 实体 appKey 应用 key
     * @param string $appSecret 实体 appSecret 应用 秘钥
     */
    public function __construct($appKey="",$appSecret="",$apiUrl="")
    {
        //设置 key 和秘钥
        if($appKey){
            self::$appkey = $appKey;
            self::$appSecret = $appSecret;
        }
        if($apiUrl) self::$apiUrl = $apiUrl;

        //创建 User
        $this->_user = new User();

        //创建 Group
        $this->_group = new Group();

        //创建 Chatroome
        $this->_chatroom = new Chatroom();

        //创建 Conversation
        $this->_conversation= new Conversation();

        //创建 Message
        $this->_message = new Message();

        //创建 Sensitive
        $this->_sensitive= new Sensitive();

        //创建 Push
        $this->_push= new Push();

        //创建 Ultragroup
{'fraction_non_alphanumeric': 0.13991449669646328, 'fraction_numerical': 0.00194325689856199, 'mean_word_length': 1.647633744855967, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, 'https://': 1, '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': '2722765', 'n_tokens_mistral': 1886, 'n_tokens_neox': 1893, 'n_words': 351}