<commit_before>/**
 * Worker interfacing with the Steam GC.
 * Provides HTTP endpoints for other workers.
 * */
const config = require('../config');
const Steam = require('steam');
const Dota2 = require('dota2');
const async = require('async');
const express = require('express');
const compression = require('compression');
const cp = require('child_process');

const advancedAuth = config.ENABLE_RETRIEVER_ADVANCED_AUTH ? {
  /* eslint-disable global-require */
  redis: require('../store/redis'),
  crypto: require('crypto'),
  /* eslint-enable global-require */
  pendingTwoFactorAuth: {},
  pendingSteamGuardAuth: {},
} : null;

const app = express();
const steamObj = {};
const launch = new Date();
const minUpTimeSeconds = 610;
const maxUpTimeSeconds = 3600;
const timeoutMs = 5000;
const timeoutThreshold = 50;
const accountsToUse = 3;
const port = config.PORT || config.RETRIEVER_PORT;
const matchRequestDelay = 500;
const matchRequestDelayStep = 300;
const matchRequestLimit = 250;

let matchRequestDelayIncr = 0;
let lastRequestTime;
let matchRequests = 0;
let matchSuccesses = 0;
let profileRequests = 0;
let profileSuccesses = 0;
let timeouts = 0;
let allReady = false;
let users = config.STEAM_USER.split(',');
let passes = config.STEAM_PASS.split(',');
<commit_msg>increase min uptime<commit_after>/**
 * Worker interfacing with the Steam GC.
 * Provides HTTP endpoints for other workers.
 * */
const config = require('../config');
const Steam = require('steam');
const Dota2 = require('dota2');
const async = require('async');
const express = require('express');
const compression = require('compression');
const cp = require('child_process');

const advancedAuth = config.ENABLE_RETRIEVER_ADVANCED_AUTH ? {
  /* eslint-disable global-require */
  redis: require('../store/redis'),
  crypto: require('crypto'),
  /* eslint-enable global-require */
  pendingTwoFactorAuth: {},
  pendingSteamGuardAuth: {},
} : null;

const app = express();
const steamObj = {};
const launch = new Date();
const minUpTimeSeconds = 660;
const maxUpTimeSeconds = 3600;
const timeoutMs = 5000;
const timeoutThreshold = 50;
const accountsToUse = 3;
const port = config.PORT || config.RETRIEVER_PORT;
const matchRequestDelay = 500;
const matchRequestDelayStep = 300;
const matchRequestLimit = 250;

let matchRequestDelayIncr = 0;
let lastRequestTime;
let matchRequests = 0;
let matchSuccesses = 0;
let profileRequests = 0;
let profileSuccesses = 0;
let timeouts = 0;
let allReady = false;
let users = config.STEAM_USER.split(',');
let passes = config.STEAM_PASS.split(',');

{'fraction_non_alphanumeric': 0.1309431021044427, 'fraction_numerical': 0.024162120031176928, 'mean_word_length': 5.276283618581907, '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': '1020137', 'n_tokens_mistral': 835, 'n_tokens_neox': 770, 'n_words': 230}