<commit_before>// Copyright (c) 2016 <NAME>

import 'dart:async';
import 'dart:convert';

import 'package:postgresql/postgresql.dart';
import 'package:shelf/shelf.dart' as shelf;

import 'params.dart' as param;
import 'schema.dart';

/// Handles requests for grimoire score.
Future<shelf.Response> handle(shelf.Request request) async {
  final params = request.context;
  const maxXbScore = 5115;
  const maxPsScore = 5155;
  final content = {<commit_msg>Updated max grimoire scores for Rise of Iron (#24)<commit_after>// Copyright (c) 2016 <NAME>

import 'dart:async';
import 'dart:convert';

import 'package:postgresql/postgresql.dart';
import 'package:shelf/shelf.dart' as shelf;

import 'params.dart' as param;
import 'schema.dart';

/// Handles requests for grimoire score.
Future<shelf.Response> handle(shelf.Request request) async {
  final params = request.context;
  const maxXbScore = 5475;
  const maxPsScore = 5515;
  final content = {
{'fraction_non_alphanumeric': 0.1235480464625132, 'fraction_numerical': 0.027455121436114043, 'mean_word_length': 5.038216560509555, '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': '1409533', 'n_tokens_mistral': 352, 'n_tokens_neox': 319, 'n_words': 90}