<commit_before><?php
/**
 * Copyright 2017 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * Created by Liming
 * Date: 2016/12/9
 * Time: 14:12
 */


namespace Database;

use MongoDB\BSON\ObjectID;
use MongoDB\Driver\BulkWrite;
use MongoDB\Driver\Command;
use MongoDB\Driver\Query;
use stdClass;

/**
 * Class Question
 * @package Database
 */
class Question extends Database {
    /**
     * 单例对象
     * @var Question
     */
    private static $obj = null;
    /**
     * 表名
     * @var string
     */
    private static $table = 'questions';

    /**
     * Question constructor.
     */
    protected function __construct() {
        parent::__construct();
        $this->tableName = parent::$database.'.'.self::$table;
    }

    /**
     * @return Question
     */
    public static function getInstance() {
        if(self::$obj == null) {
            self::$obj = new self();<commit_msg>Fix Bug: called undefined function.🏓<commit_after><?php
/**
 * Copyright 2017 <NAME>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * Created by Liming
 * Date: 2016/12/9
 * Time: 14:12
 */


namespace Database;

use MongoDB\BSON\ObjectID;
use MongoDB\Driver\BulkWrite;
use MongoDB\Driver\Command;
use MongoDB\Driver\Query;
use stdClass;
require_once __DIR__.'/../common.php';

/**
 * Class Question
 * @package Database
 */
class Question extends Database {
    /**
     * 单例对象
     * @var Question
     */
    private static $obj = null;
    /**
     * 表名
     * @var string
     */
    private static $table = 'questions';

    /**
     * Question constructor.
     */
    protected function __construct() {
        parent::__construct();
        $this->tableName = parent::$database.'.'.self::$table;
    }

    /**
     * @return Question
     */
    public static function getInstance() {
        if(self::$obj == null) {
            self::$obj = new self();
{'fraction_non_alphanumeric': 0.11829436038514443, 'fraction_numerical': 0.013067400275103164, 'mean_word_length': 2.7199488491048593, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1760197', 'n_tokens_mistral': 857, 'n_tokens_neox': 823, 'n_words': 289}