<commit_before>"use strict";
const aws = require('aws-sdk');
const fetch = requure('node-fetch')
const fs = require('fs');
const lsc = require('./livesplit_core');
const pg = require('pg');
const s3 = new aws.S3();

exports.handler = function(event, context, callback) {
  const filename = event['Records'][0]['s3']['object']['key'].split('/')[1]
  fetch(`https://splits.io/api/webhooks/parse?s3_filename=${filename}`).then(function(response) {
    if(response.ok) {<commit_msg>Use internal.splits.io for Lambda job<commit_after>"use strict"
const aws = require('aws-sdk')
const fetch = require('node-fetch')
const fs = require('fs')
const lsc = require('./livesplit_core')
const pg = require('pg')
const s3 = new aws.S3()

exports.handler = function(event, context, callback) {
  const filename = event['Records'][0]['s3']['object']['key'].split('/')[1]
  fetch(`https://internal.splits.io/api/webhooks/parse?s3_filename=${filename}`).then(function(response) {
    if(response.ok) {
{'fraction_non_alphanumeric': 0.20651068158697863, 'fraction_numerical': 0.012207527975584944, 'mean_word_length': 6.130434782608695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5684696', 'n_tokens_mistral': 318, 'n_tokens_neox': 327, 'n_words': 64}