<commit_before>package sc.yhy.data;

import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.beanutils.PropertyUtils;

import sc.yhy.annotation.BeanToTable;

class MySqlConnection<T> extends AbstractConnect<T> {

	public MySqlConnection() throws SQLException {
		initConn();
	}

	/**
	 * ************** 初始化连接
	 *
	 * @throws java.sql.SQLException
	 */
	private void initConn() throws SQLException {
		try {
			if (conn == null) {
				conn = DriverManager.getConnection("proxool.testdb");
			}
			conn.setAutoCommit(isAutoCommit);
		} catch (SQLException e) {
			logfile.info("不能创建数据库连接！");
			throw e;
		}
	}

	/**
	 * 插入方法
	 *
	 * @param bean
	 *            实体类对像
	 * @return
	 * @throws Exception
	 */
	public int insertToClass(Object bean) throws Exception {
		PropertyDescriptor[] pds = PropertyUtils.getPropertyDescriptors(bean.getClass());
		Method method = null;<commit_msg>YHy update<commit_after>package sc.yhy.data;

import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.beanutils.PropertyUtils;

import sc.yhy.annotation.BeanToTable;

class MySqlConnection<T> extends AbstractConnect<T> {

	public MySqlConnection() throws SQLException {
		initConn();
	}

	/**
	 * ************** 初始化连接
	 *
	 * @throws java.sql.SQLException
	 */
	private void initConn() throws SQLException {
		try {
			if (conn == null) {
				conn = DriverManager.getConnection("proxool.mysqldb");
			}
			conn.setAutoCommit(isAutoCommit);
		} catch (SQLException e) {
			logfile.info("不能创建数据库连接！");
			throw e;
		}
	}

	/**
	 * 插入方法
	 *
	 * @param bean
	 *            实体类对像
	 * @return
	 * @throws Exception
	 */
	public int insertToClass(Object bean) throws Exception {
		PropertyDescriptor[] pds = PropertyUtils.getPropertyDescriptors(bean.getClass());
		Method method = null;
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.0, 'mean_word_length': 4.030232558139535, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5093488', 'n_tokens_mistral': 761, 'n_tokens_neox': 713, 'n_words': 138}