<commit_before>library dart_orm_adapter_mysql;

import 'package:dart_orm/dart_orm.dart';

import 'dart:async';
import 'dart:collection';

import 'package:sqljocky/sqljocky.dart' as mysql_connector;
import 'package:logging/logging.dart';
import 'package:pub_semver/pub_semver.dart';

class MySQLDBAdapter extends SQLAdapter with DBAdapter {
  final String _connectionString;
  final Logger log = new Logger('DartORM.MySQLDBAdapter');

  mysql_connector.ConnectionPool get connection => super.connection;

  LinkedHashMap<String, String> _connectionDBInfo = new LinkedHashMap();
  Version _mysqlVersion = null;

  /**
   * MySQL support fractional seconds(milliseconds) only from this version.
   * http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html
   */
  static final VersionConstraint FEATURE_FRACTIONAL_SECONDS =
      new VersionConstraint.parse(">=5.6.4");

  /**
   * Checks whether currently connected database supports a feature.
   * Features version constraints defined above as FEATURE_* properties.
   */<commit_msg>add a reified type to the _connectionDBInfo type<commit_after>library dart_orm_adapter_mysql;

import 'package:dart_orm/dart_orm.dart';

import 'dart:async';
import 'dart:collection';

import 'package:sqljocky/sqljocky.dart' as mysql_connector;
import 'package:logging/logging.dart';
import 'package:pub_semver/pub_semver.dart';

class MySQLDBAdapter extends SQLAdapter with DBAdapter {
  final String _connectionString;
  final Logger log = new Logger('DartORM.MySQLDBAdapter');

  mysql_connector.ConnectionPool get connection => super.connection;

  final LinkedHashMap<String, String> _connectionDBInfo =
      new LinkedHashMap<String, String>();
  Version _mysqlVersion = null;

  /**
   * MySQL support fractional seconds(milliseconds) only from this version.
   * http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html
   */
  static final VersionConstraint FEATURE_FRACTIONAL_SECONDS =
      new VersionConstraint.parse(">=5.6.4");

  /**
   * Checks whether currently connected database supports a feature.
   * Features version constraints defined above as FEATURE_* properties.
   */
{'fraction_non_alphanumeric': 0.0975268315445637, 'fraction_numerical': 0.004666355576294913, 'mean_word_length': 5.1257142857142854, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, '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': '1859051', 'n_tokens_mistral': 643, 'n_tokens_neox': 632, 'n_words': 155}