<commit_before>/**
 * @file 用户对象类
 * @author dongkunshan
 */

import Base    from './Base';
import mongodb from 'mongo-db';
import config  from '../config/db.config';
const connectionStr = `mongodb://${config.mongodb.user}:${config.mongodb.pass}`
+ `@${config.mongodb.ip}:${ config.mongodb.port}/${config.mongodb.db}`;

class Article extends Base {
    constructor(obj) {
        super();
        if (obj) {
            // 用户唯一id
            // this.id = obj.id || '';<commit_msg>commit<commit_after>/**
 * @file 用户对象类
 * @author dongkunshan
 */

import Base    from './Base';
import mongodb from 'mongo-db';
// import config  from '../config/db.config';
// const connectionStr = `mongodb://${config.mongodb.user}:${config.mongodb.pass}`
// + `@${config.mongodb.ip}:${ config.mongodb.port}/${config.mongodb.db}`;

class Article extends Base {
    constructor(obj) {
        super();
        if (obj) {
            // 用户唯一id
            // this.id = obj.id || '';
{'fraction_non_alphanumeric': 0.19334719334719336, 'fraction_numerical': 0.0, 'mean_word_length': 2.647727272727273, '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': '1968853', 'n_tokens_mistral': 344, 'n_tokens_neox': 337, 'n_words': 66}