<commit_before>import sys

sys.path.append('../gen-py')

from pizza_delivery import ttypes

from lib.db import db


class PizzasRepository(object):

    @classmethod
    def get_available_pizzas(cls):
        pizzas_dict = db.get('/pizzas', None)
        pizzas = {}
        for pizza_id, pizza_dict in pizzas_dict.iteritems():
            if not pizza_dict:
                continue
            pizzas[pizza_id.encode('utf-8')] = cls._get_pizza_from_dict(pizza_dict)
        return pizzas

    @classmethod
    def _get_pizza_from_dict(cls, pizza_dict):
        pizza = ttypes.Pizza(int(pizza_dict['id']),
                            pizza_dict['imageUrl'],
                            [p.encode('utf-8') for p in pizza_dict['products']])
        return pizza<commit_msg>Fix indentation<commit_after>import sys

sys.path.append('../gen-py')

from pizza_delivery import ttypes

from lib.db import db


class PizzasRepository(object):

    @classmethod
    def get_available_pizzas(cls):
        pizzas_dict = db.get('/pizzas', None)
        pizzas = {}
        for pizza_id, pizza_dict in pizzas_dict.iteritems():
            if not pizza_dict:
                continue
            pizzas[pizza_id.encode('utf-8')] = cls._get_pizza_from_dict(pizza_dict)
        return pizzas

    @classmethod
    def _get_pizza_from_dict(cls, pizza_dict):
        pizza = ttypes.Pizza(int(pizza_dict['id']),
                             pizza_dict['imageUrl'],
                             [p.encode('utf-8') for p in pizza_dict['products']])
        return pizza
{'fraction_non_alphanumeric': 0.10723514211886305, 'fraction_numerical': 0.002583979328165375, 'mean_word_length': 2.281779661016949, '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': '493196', 'n_tokens_mistral': 503, 'n_tokens_neox': 500, 'n_words': 94}