<commit_before>/// <reference path="../../typings/bundle.d.ts" />

import config = require('../config');
import redis = require('redis');

var publisher = redis.createClient(config.redis.port, config.redis.host);

export = Streamer;

class Streamer {
	public static publish(channel: string, value: any) {
		publisher.publish('misskey:' + channel, value);
	}
}<commit_msg>Improve readability<commit_after>/// <reference path="../../typings/bundle.d.ts" />

import config = require('../config');
import redis = require('redis');

var publisher = redis.createClient(config.redis.port, config.redis.host);

export function publish(channel: string, value: any): void {
	publisher.publish('misskey:' + channel, value);
}
{'fraction_non_alphanumeric': 0.18067226890756302, 'fraction_numerical': 0.0, 'mean_word_length': 4.860655737704918, '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': '5864057', 'n_tokens_mistral': 223, 'n_tokens_neox': 219, 'n_words': 50}