<commit_before>import { mongoConnect, mongoDisconnect } from './mongo-db';
import { cassandraConnect, cassandraDisconnect } from './cassandra-db';
import { sequelizeConnect, sequelizeDisconnect } from './sql-db';

import * as Rx from 'rxjs';

export function connect(): Rx.Observable<any> {
	let obs = [];
	obs.push(mongoConnect());
	obs.push(cassandraConnect());
  	obs.push(sequelizeConnect());

  	return obs.length > 1 ? Rx.Observable.concat.apply(this, obs) : obs[0];
}

export function disconnect() {
  mongoDisconnect();
  cassandraDisconnect();
  sequelizeDisconnect();
}
<commit_msg>change obs concat to merge for database connect<commit_after>import { mongoConnect, mongoDisconnect } from './mongo-db';
import { cassandraConnect, cassandraDisconnect } from './cassandra-db';
import { sequelizeConnect, sequelizeDisconnect } from './sql-db';

import * as Rx from 'rxjs';

export function connect(): Rx.Observable<any> {
	let obs = [];
	obs.push(mongoConnect());
	obs.push(cassandraConnect());
  	obs.push(sequelizeConnect());

  	return obs.length > 1 ? Rx.Observable.merge.apply(this, obs) : obs[0];
}

export function disconnect() {
  mongoDisconnect();
  cassandraDisconnect();
  sequelizeDisconnect();
}

{'fraction_non_alphanumeric': 0.14790468364831552, 'fraction_numerical': 0.003286770747740345, 'mean_word_length': 5.278350515463917, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2444944', 'n_tokens_mistral': 411, 'n_tokens_neox': 390, 'n_words': 89}