<commit_before>"""
Berry is a minimal web framework written in Python.

import berry
from berry import get, post

@get('^$')
def index():
  return "HOME"

@get('^(\d+)/?$')
def test(id):
  return str(id)

@get('^google/?$')
def google():
  raise redirect('http://google.com')

berry.start()
"""

import sys
import re
import cgi
import inspect
import paste.httpserver

routes = []
middlewares = []

def start(host='127.0.0.1', port=4567):<commit_msg>Corrected the example in the docstring.<commit_after>"""
Berry is a minimal web framework written in Python.

import berry
from berry import get, redirect

@get('^$')
def index(req):
  return "HOME"

@get('^(\d+)/?$')
def test(req, id):
  return str(id)

@get('^google/?$')
def google(req):
  raise redirect('http://google.com')

berry.start()
"""

import sys
import re
import cgi
import inspect
import paste.httpserver

routes = []
middlewares = []

def start(host='127.0.0.1', port=4567):
{'fraction_non_alphanumeric': 0.17678381256656017, 'fraction_numerical': 0.021299254526091587, 'mean_word_length': 4.7317073170731705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1125364', 'n_tokens_mistral': 349, 'n_tokens_neox': 337, 'n_words': 101}