<commit_before># author: nifannn
# --------------------------------
import sys
from bs4 import BeautifulSoup
from urllib.request import urlopen
import re
import pymysql.cursors
import time

# connect to mysql server
def MysqlConn():
	config = {'host':'127.0.0.1', 'user':'root', 'password':'<PASSWORD>',
	          'db':'bilibili', 'charset':'utf8mb4', 
	          'cursorclass': pymysql.cursors.DictCursor}
	conn = pymysql.connect(**config)
	return conn

# scrap user data
def spiderUserData():
	pass

# scrap video data
def spiderVideoData():
	pass<commit_msg>general frame<commit_after># author: nifannn
# --------------------------------
import sys
from bs4 import BeautifulSoup
from urllib.request import urlopen
import re
import pymysql.cursors
import time

# connect to mysql server
def MysqlConn():
	config = {'host':'127.0.0.1', 'user':'root', 'password':'password',
	          'db':'bilibili', 'charset':'utf8mb4', 
	          'cursorclass': pymysql.cursors.DictCursor}
	conn = pymysql.connect(**config)
	return conn

# scrap video info
def spiderVideoInfo():
	for url in getURLs():
		for AvId in filterAvIds():
			AvInfo = getAvInfo(AvId)
			if AvInfo:
				updateAvInfo(AvInfo)

	return 1

# scrap up info
def spiderUpInfo():
	for UpId in selectUpIds():
		UpInfo = getUpInfo(UpId)
		if UpInfo:
			updateUpInfo(UpInfo)

	return 1

{'fraction_non_alphanumeric': 0.16492537313432837, 'fraction_numerical': 0.014925373134328358, 'mean_word_length': 3.411184210526316, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3537987', 'n_tokens_mistral': 484, 'n_tokens_neox': 432, 'n_words': 122}