<commit_before>#!/usr/bin/python
import os


IMAGE_FOLDER_PATTERN = '/usr/share/icons/ubuntu-mono-{0}/status/24'

def image_path(name, theme):
    folder = IMAGE_FOLDER_PATTERN.format(theme)
    return os.path.abspath(os.path.join(folder, name))


def icon_filename(capacity, is_charging):
    filename = 'battery-'
    if capacity >= 100:
        filename += '100'
    elif capacity >= 80:
        filename += '080'
    elif capacity >= 60:
        filename += '060'
    elif capacity >= 40:
        filename += '040'
    elif capacity >= 20:
        filename += '020'
    else:
        filename += '000'
    if is_charging:
        filename += '-charging'
    filename += '.svg'
    return filename


def icon_path(capacity, is_charging, theme):
    return image_path(icon_filename(capacity, is_charging), theme)<commit_msg>ubuntu icons 22<commit_after>#!/usr/bin/python
import os


IMAGE_FOLDER_PATTERN = '/usr/share/icons/ubuntu-mono-{0}/status/22'


def image_path(name, theme):
    folder = IMAGE_FOLDER_PATTERN.format(theme)
    return os.path.abspath(os.path.join(folder, name))


def icon_filename(capacity, is_charging):
    filename = 'battery-'
    if capacity >= 100:
        filename += '100'
    elif capacity >= 80:
        filename += '080'
    elif capacity >= 60:
        filename += '060'
    elif capacity >= 40:
        filename += '040'
    elif capacity >= 20:
        filename += '020'
    else:
        filename += '000'
    if is_charging:
        filename += '-charging'
    filename += '.svg'
    return filename


def icon_path(capacity, is_charging, theme):
    return image_path(icon_filename(capacity, is_charging), theme)
{'fraction_non_alphanumeric': 0.13051359516616315, 'fraction_numerical': 0.03987915407854985, 'mean_word_length': 2.887323943661972, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '4576886', 'n_tokens_mistral': 603, 'n_tokens_neox': 527, 'n_words': 125}