<commit_before>import '../server/env';

import config from 'config';

import models from '../server/models';
import { login } from '../server/paymentProviders/thegivingblock';

const HOST_ID = process.env.HOST_ID || 9805;

async function run() {
  const username = config.thegivingblock.username;
  const password = config.<PASSWORD>block.password;

  let account = await models.ConnectedAccount.findOne({
    where: { CollectiveId: HOST_ID, username, service: 'thegivingblock' },
  });
  if (!account) {
    account = await models.ConnectedAccount.create({
      where: { CollectiveId: HOST_ID, username, service: 'thegivingblock' },
    });
  }

  await login(username, password, account);
}

run();<commit_msg>fix(thegivingblock): more fixes for thegivingblock  connect script (#6500)<commit_after>import '../server/env';

import config from 'config';

import models, { sequelize } from '../server/models';
import { login } from '../server/paymentProviders/thegivingblock';

const HOST_ID = process.env.HOST_ID || 11004;

async function run() {
  const username = config.thegivingblock.username;
  const password = <PASSWORD>;

  const accountProperties = { CollectiveId: HOST_ID, username, service: 'thegivingblock' };

  let account = await models.ConnectedAccount.findOne({
    where: accountProperties,
  });
  if (!account) {
    account = await models.ConnectedAccount.create(accountProperties);
  }

  await login(username, password, account);

  await sequelize.close();
  process.exit(0);
}

run();
{'fraction_non_alphanumeric': 0.13443708609271524, 'fraction_numerical': 0.009271523178807948, 'mean_word_length': 4.555147058823529, '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': '4419935', 'n_tokens_mistral': 470, 'n_tokens_neox': 443, 'n_words': 113}