<commit_before>// string formatting library
const format = require('string-format')
const AWS = require('aws-sdk')
const spawn = require('child_process').spawn
const path = require('path')
const moment = require('moment')
const through2 = require('through2')

// configure AWS to log to stdout
AWS.config.update({
    logger: process.stdout
})

// config
var PG_DUMP_ENV = {
    LD_LIBRARY_PATH: './bin'
}

function uploadToS3(env, readStream, key, cb) {
    console.log(format('streaming to s3 bucket={}, key={} region={}', env.S3_BUCKET, key, env.S3_REGION))
    var s3Obj = new AWS.S3({params: {<commit_msg>fixed #2<commit_after>// string formatting library
const format = require('string-format')
const AWS = require('aws-sdk')
const spawn = require('child_process').spawn
const path = require('path')
const moment = require('moment')
const through2 = require('through2')

// enabling "Method mode" for String.format
format.extend(String.prototype)

// configure AWS to log to stdout
AWS.config.update({
    logger: process.stdout
})

// config
var PG_DUMP_ENV = {
    LD_LIBRARY_PATH: './bin'
}

function uploadToS3(env, readStream, key, cb) {
    console.log(format('streaming to s3 bucket={}, key={} region={}', env.S3_BUCKET, key, env.S3_REGION))
    var s3Obj = new AWS.S3({params: {
{'fraction_non_alphanumeric': 0.15015479876160992, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 4.746666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1281081', 'n_tokens_mistral': 426, 'n_tokens_neox': 425, 'n_words': 115}