<commit_before>#!/usr/bin/env python
# encoding: utf-8
"""
docker_connect.py

Created by <NAME> on 2013-04-18.
Copyright (c) 2013 __MyCompanyName__. All rights reserved.
"""

import sys
import os
import unittest
import sys
import sys
from subprocess import PIPE, Popen, CalledProcessError
from threading  import Thread
import zerorpc

import eventlet

try:
    from Queue import Queue, Empty
except ImportError:
    from queue import Queue, Empty  # python 3.x

ON_POSIX = 'posix' in sys.builtin_module_names


def closed_callback():
    print "called back"

def enqueue_output(out, err, queue):
	for line in iter(out.readline, b''):
		queue.put(line)
	for line in iter(err.readline, b''):
		queue.put(line)
	queue.put("closed connection")
	out.close()

class Docker(object):
	def __init__(self, client, cb):
		self.q=Queue()
		self.client=client
		self.cb=cb
		self.StdIn()
		<commit_msg>trying zerorpc server to control docker<commit_after>#!/usr/bin/env python
# encoding: utf-8
"""
docker_connect.py

Created by <NAME> on 2013-04-18.
Copyright (c) 2013 __MyCompanyName__. All rights reserved.
"""

import sys
import os
import unittest
import sys
import sys
from subprocess import PIPE, Popen, CalledProcessError
from threading  import Thread
import zerorpc

import eventlet

try:
    from Queue import Queue, Empty
except ImportError:
    from queue import Queue, Empty  # python 3.x

ON_POSIX = 'posix' in sys.builtin_module_names


def closed_callback():
    print "called back"

def enqueue_output(out, err, queue):
	for line in iter(out.read(1024), ''):
		queue.put(line)
	for line in iter(err.read(1024), ''):
		queue.put(line)
	queue.put("closed connection")
	out.close()

class Docker(object):
	def __init__(self, client, cb):
		self.q=Queue()
		self.client=client
		self.cb=cb
		self.StdIn()
		
{'fraction_non_alphanumeric': 0.10852713178294573, 'fraction_numerical': 0.019933554817275746, 'mean_word_length': 4.442771084337349, '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': '1426470', 'n_tokens_mistral': 675, 'n_tokens_neox': 616, 'n_words': 191}