<commit_before>from __future__ import with_statement

import sys
import unittest

from flask import Flask
from flask_router import Router

if sys.version_info[0] < 3:
    b = lambda s: s
else:
    b = lambda s: s.encode('utf-8')

# The main functions have to be defined outside 
#   the RouterTestCase class, since their context
#   would not be visible otherwise
def show(id=None):
    if not id:
        return 'show'
    else:
        return 'show %s' % id

def create():
    return 'create'

def update():
    return 'update'

def regex(action=None):
    return 'regex %s' % action


class RouterTestCase(unittest.TestCase):

    def setUp(self):
<commit_msg>WIP: tests<commit_after>from __future__ import with_statement

import sys
import unittest

from flask import Flask, request
from flask_router import Router

if sys.version_info[0] < 3:
    b = lambda s: s
else:
    b = lambda s: s.encode('utf-8')

# The main functions have to be defined outside 
#   the RouterTestCase class, since their context
#   would not be visible otherwise
def show(id=None):
    if not id:
        return 'show'
    else:
        return 'show %s' % id

def create():
    return 'create'

def update():
    return 'update'

def regex(action=None):
    return 'regex %s' % action


class RouterTestCase(unittest.TestCase):

    def setUp(self):

{'fraction_non_alphanumeric': 0.0915915915915916, 'fraction_numerical': 0.0045045045045045045, 'mean_word_length': 3.3420195439739415, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6668142', 'n_tokens_mistral': 430, 'n_tokens_neox': 419, 'n_words': 156}