<commit_before>#!/usr/bin/python2.5

import simplejson as json
import subprocess
import tornado.web

class EnvironmentHandler(tornado.web.RequestHandler):
    
    def initialize(self, config, environments):
        self.config = config
        self.envs = environments

    def get(self, env):
        if len(env) is 0:
            print "AGH"
            self.write(json.dumps([e.render() for e in self.envs.list()]))
            return

        e = self.envs.get(env)
        self.write(json.dumps(e.render()))

class Environment:
    def __init__(self, config, name, deploy_command):
        self.config = config
        self.name = name
        self.deploy_command = deploy_command<commit_msg>Remove print<commit_after>#!/usr/bin/python2.5

import simplejson as json
import subprocess
import tornado.web

class EnvironmentHandler(tornado.web.RequestHandler):
    
    def initialize(self, config, environments):
        self.config = config
        self.envs = environments

    def get(self, env):
        if len(env) is 0:
            self.write(json.dumps([e.render() for e in self.envs.list()]))
            return

        e = self.envs.get(env)
        self.write(json.dumps(e.render()))

class Environment:
    def __init__(self, config, name, deploy_command):
        self.config = config
        self.name = name
        self.deploy_command = deploy_command
{'fraction_non_alphanumeric': 0.10795040116703136, 'fraction_numerical': 0.00437636761487965, 'mean_word_length': 2.5544041450777204, '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': '6686184', 'n_tokens_mistral': 419, 'n_tokens_neox': 406, 'n_words': 98}