<commit_before>var fs = require( 'fs' ),
    util = require( 'util' ),
    crypto = require( 'crypto' ),
    bs58 = require( 'bs58' ),
    EventEmitter = require( 'events' ),
    NodeRSA = require( 'node-rsa' );

var Soocoin = {};

Soocoin.client = function( params ) {
  var self = this;
  self.send = function( tx ) {
    console.info( '(client) sending tx', tx );
  };
};

util.inherits( Soocoin.client, EventEmitter );

module.exports = Soocoin.client;<commit_msg>socket.send<commit_after>var fs = require( 'fs' ),
    util = require( 'util' ),
    crypto = require( 'crypto' ),
    bs58 = require( 'bs58' ),
    EventEmitter = require( 'events' ),
    NodeRSA = require( 'node-rsa' ),
    dgram = require( 'dgram' );

var Soocoin = {};

Soocoin.client = function( params ) {
  var self = this,
      socket;

  self.send = function( tx ) {
    console.info( '(client) sending tx', tx );
    socket = dgram.createSocket( 'udp4' );
    socket.send( tx, 0, tx.length, 7777, '127.0.0.1', function( err ) {
      console.info( '(client) err?', err );
      socket.close();
    });
  };
  self.readBlockchain = function() {
    
  };
};

util.inherits( Soocoin.client, EventEmitter );

module.exports = Soocoin.client;
{'fraction_non_alphanumeric': 0.17502054231717337, 'fraction_numerical': 0.016433853738701727, 'mean_word_length': 3.033112582781457, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '4466354', 'n_tokens_mistral': 443, 'n_tokens_neox': 430, 'n_words': 101}