<commit_before>import unittest
import utils

prime_numbers = {
    2, 3, 5, 7, 11, 13, 17, 19,
}


def bit_counts(r):
    counts = [0] * (r + 1)
    for x in xrange(1, r + 1):
        counts[x] = counts[x >> 1] + (x & 1)
    return counts


# O(n) time. O(1) space. DP.
class Solution(object):
    def countPrimeSetBits(self, l, r):
        """
        :type l: int
        :type r: int
        :rtype: int<commit_msg>Fixing copy-paste error in p762 DP<commit_after>import unittest
import utils

prime_numbers = {
    2, 3, 5, 7, 11, 13, 17, 19,
}


def bit_counts(r):
    counts = [0] * (r + 1)
    for x in xrange(1, r + 1):
        counts[x] = counts[x >> 1] + (x & 1)
    return counts


# O(n) time. O(n) space. DP.
class Solution(object):
    def countPrimeSetBits(self, l, r):
        """
        :type l: int
        :type r: int
        :rtype: int
{'fraction_non_alphanumeric': 0.1528588098016336, 'fraction_numerical': 0.046674445740956826, 'mean_word_length': 2.1895910780669143, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5068593', 'n_tokens_mistral': 378, 'n_tokens_neox': 339, 'n_words': 106}