<commit_before>const pg = require('pg');
const JSColumn = require('./JSColumn');
const JSDataSet = require('./JSDataSet');
const JSTable = require('./JSTable');

class PostgresServer {
  constructor(settings) {
    this.settings = settings;
    this.tables = new Map();
    this.pg_types = {
      16: JSColumn.NUMBER,
      19: JSColumn.TEXT,
      20: JSColumn.NUMBER,
      21: JSColumn.NUMBER,
      23: JSColumn.NUMBER,
      25: JSColumn.TEXT,
      705: JSColumn.TEXT,
      1114: JSColumn.DATETIME,
      1184: JSColumn.DATETIME,
      1043: JSColumn.TEXT,
      1700: JSColumn.NUMBER,
    };
    this.openConnections = [];
    this.availableConnections = [];
  }

  getOpenConnectionCount() {
    return this.openConnections.length;
  }

  getAvailableConnectionCount() {
    return this.availableConnections.length;
  }
<commit_msg>fix(databasemanager): convert column type 1082<commit_after>const pg = require('pg');
const JSColumn = require('./JSColumn');
const JSDataSet = require('./JSDataSet');
const JSTable = require('./JSTable');

class PostgresServer {
  constructor(settings) {
    this.settings = settings;
    this.tables = new Map();
    this.pg_types = {
      16: JSColumn.NUMBER,
      19: JSColumn.TEXT,
      20: JSColumn.NUMBER,
      21: JSColumn.NUMBER,
      23: JSColumn.NUMBER,
      25: JSColumn.TEXT,
      705: JSColumn.TEXT,
      1082: JSColumn.DATETIME,
      1114: JSColumn.DATETIME,
      1184: JSColumn.DATETIME,
      1043: JSColumn.TEXT,
      1700: JSColumn.NUMBER,
    };
    this.openConnections = [];
    this.availableConnections = [];
  }

  getOpenConnectionCount() {
    return this.openConnections.length;
  }

  getAvailableConnectionCount() {
    return this.availableConnections.length;
  }

{'fraction_non_alphanumeric': 0.12700228832951946, 'fraction_numerical': 0.04004576659038902, 'mean_word_length': 3.0299539170506913, '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': '2603737', 'n_tokens_mistral': 592, 'n_tokens_neox': 553, 'n_words': 108}