<commit_before>import 'dart:io';

import 'package:logging/logging.dart';
import 'package:rest_dart/rest_dart.dart';

import 'package:dartlery_server/dartlery.dart';
import 'package:dartlery_server/resources/resources.dart';

import 'package:sqljocky/sqljocky.dart' as mysql;

void main() {
  
  Logger.root.level = Level.CONFIG;
  Logger.root.onRecord.listen(RecordLog);

  
  mysql.ConnectionPool pool  = 
      new mysql.ConnectionPool(host: 'localhost', port: 3306,
          user: 'dartlery',password: '<PASSWORD>', db: 'dartlery', max: 5);
  
  RestServer rest = new RestServer();
  
  rest.addDefaultAvailableContentType(new ContentType("application", "json", charset: "utf-8"));

  rest.addResource(new FilesResource(pool));
  rest.addResource(new StaticResource());
  
  rest.start();
  
}

void RecordLog(LogRecord rec) {
  print('${rec.time}: ${rec.level.name}: (${rec.loggerName}) ${rec.message}');
}<commit_msg>temp commit<commit_after>import 'dart:io';

import 'package:logging/logging.dart';
import 'package:rest_dart/rest_dart.dart';

import 'package:dartlery_server/dartlery.dart';
import 'package:dartlery_server/resources/resources.dart';

import 'package:sqljocky/sqljocky.dart' as mysql;

void main() {
  
  Logger.root.level = Level.CONFIG;
  Logger.root.onRecord.listen(RecordLog);

  
  mysql.ConnectionPool pool  = 
      new mysql.ConnectionPool(host: 'localhost', port: 3306,
          user: 'dartlery',password: '<PASSWORD>', db: 'dartlery', max: 5);
  
  RestServer rest = new RestServer();
  
  rest.addDefaultAvailableContentType(new ContentType("application", "json", charset: "utf-8"));

  rest.addResource(new FilesResource(pool));
  rest.addResource(new StaticResource());
  
  rest.start(port:8888);
  
}

void RecordLog(LogRecord rec) {
  print('${rec.time}: ${rec.level.name}: (${rec.loggerName}) ${rec.message}');
}
{'fraction_non_alphanumeric': 0.15812196438208312, 'fraction_numerical': 0.008634646519158122, 'mean_word_length': 5.139072847682119, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5182526', 'n_tokens_mistral': 661, 'n_tokens_neox': 641, 'n_words': 109}