<commit_before>"""
VerseBot for reddit
By <NAME>
verse.py
Copyright (c) 2015 <NAME> (MIT License)
"""

import database
import books

class Verse:
    """ Class that holds the properties and methods of a Verse object. """

    def __init__(self, book, chapter, translation, user, subreddit, verse="0"):
        """ Initializes a Verse object with book, chapter, verse (if
        exists), and translation (if exists). """
        self.book = book
        book_num = books.get_book_number(self.book)
        if book_num <= 39:
            self.bible_section = "Old Testament"
        else if book_num <= 66:
            self.bible_section = "New Testament"
        else:
            self.bible_section = "Deuterocanon"

        self.chapter = int(chapter.replace(" ", ""))
        self.verse = verse.replace(" ", "")
        if translation:
            self.translation = translation.replace(" ", "")<commit_msg>Make custom translations uppercase<commit_after>"""
VerseBot for reddit
By <NAME>
verse.py
Copyright (c) 2015 <NAME> (MIT License)
"""

import database
import books

class Verse:
    """ Class that holds the properties and methods of a Verse object. """

    def __init__(self, book, chapter, translation, user, subreddit, verse="0"):
        """ Initializes a Verse object with book, chapter, verse (if
        exists), and translation (if exists). """
        self.book = book
        book_num = books.get_book_number(self.book)
        if book_num <= 39:
            self.bible_section = "Old Testament"
        else if book_num <= 66:
            self.bible_section = "New Testament"
        else:
            self.bible_section = "Deuterocanon"

        self.chapter = int(chapter.replace(" ", ""))
        self.verse = verse.replace(" ", "")
        if translation:
            self.translation = translation.upper().replace(" ", "")
{'fraction_non_alphanumeric': 0.12168739859383451, 'fraction_numerical': 0.009734991887506761, 'mean_word_length': 2.592233009708738, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '1501376', 'n_tokens_mistral': 538, 'n_tokens_neox': 518, 'n_words': 163}