<commit_before># -*- coding: utf-8 -*-

import os, sys, csv, random
from datetime import datetime
from datetime import timedelta


def create_data(row_count, start_date):
    # 保存作成的数据
    row_datas = []
    base_date = datetime.strptime(start_date, "%Y-%m-%d")

    # 第一行生成列索引
    row_datas.append([8, 6, 13, 14, 3, 4])

    # 生成测试数据
    for i in range(int(row_count)):
        row_data = []
        # 登录时间
        add_second = random.randint(0, 3599)
        login_date = base_date + timedelta(seconds=add_second)
        row_data.append(login_date.strftime('%Y-%m-%d %H:%M:%S'))
        # 游戏ID
        app_id = random.randint(1, 100)
        row_data.append(app_id)
        row_data.append(app_id)
        # 用户
        uuid = random.randint(1, 100000)
        user = 'user-' + str(uuid)<commit_msg>test data<commit_after># -*- coding: utf-8 -*-

import os, sys, csv, random
from datetime import datetime
from datetime import timedelta


def create_data(row_count, start_date):
    # 测试数据设置
    game_count = 1000
    user_count = 100000

    # 保存作成的数据
    row_datas = []
    base_date = datetime.strptime(start_date, "%Y-%m-%d")

    # 第一行生成列索引
    row_datas.append([8, 6, 13, 14, 3, 4])

    # 生成测试数据
    for i in range(int(row_count)):
        row_data = []
        # 登录时间
        add_second = random.randint(0, 3599)
        login_date = base_date + timedelta(seconds=add_second)
        row_data.append(login_date.strftime('%Y-%m-%d %H:%M:%S'))
        # 游戏ID
        app_id = random.randint(1, game_count)
        row_data.append(app_id)
        row_data.append(app_id)
        # 用户
        uuid = random.randint(1, user_count)
        user = 'user-' + str(uuid)
{'fraction_non_alphanumeric': 0.1324146195326543, 'fraction_numerical': 0.03055721989215099, 'mean_word_length': 2.5157894736842104, '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': '896763', 'n_tokens_mistral': 691, 'n_tokens_neox': 645, 'n_words': 123}