<commit_before>#
# Copyright (c) 2004-2006 rPath, Inc.
#
# All Rights Reserved
#
import urlparse
import time
import sys

import database
import jobs
import releasetypes
from mint_error import MintError
from data import RDT_STRING, RDT_BOOL, RDT_INT

from conary import versions
from conary.deps import deps


class TroveNotSet(MintError):
    def __str__(self):
        return "this release needs a be associated with a group or fileset trove."

class ReleaseMissing(MintError):
    def __str__(self):
        return "the requested release does not exist."

class ReleaseDataNameError(MintError):
    def __str__(self):
        return self.str

    def __init__(self, reason = None):
        if reason is None:
            self.str = "Named value is not in data template."
        else:
            self.str = reason

imageGenTemplate = {
    # XXX this is kind of a lousy description; a toggleable "override ILP option would be nicer
    'installLabelPath': (RDT_STRING, '',  'Custom Conary installLabelPath setting (leave blank for default)'),
    'autoResolve':      (RDT_BOOL, False, 'Automatically install required dependencies during updates.'),
}
<commit_msg>no need for period in item description<commit_after>#
# Copyright (c) 2004-2006 rPath, Inc.
#
# All Rights Reserved
#
import urlparse
import time
import sys

import database
import jobs
import releasetypes
from mint_error import MintError
from data import RDT_STRING, RDT_BOOL, RDT_INT

from conary import versions
from conary.deps import deps


class TroveNotSet(MintError):
    def __str__(self):
        return "this release needs a be associated with a group or fileset trove."

class ReleaseMissing(MintError):
    def __str__(self):
        return "the requested release does not exist."

class ReleaseDataNameError(MintError):
    def __str__(self):
        return self.str

    def __init__(self, reason = None):
        if reason is None:
            self.str = "Named value is not in data template."
        else:
            self.str = reason

imageGenTemplate = {
    # XXX this is kind of a lousy description; a toggleable "override ILP option would be nicer
    'installLabelPath': (RDT_STRING, '',  'Custom Conary installLabelPath setting (leave blank for default)'),
    'autoResolve':      (RDT_BOOL, False, 'Automatically install required dependencies during updates'),
}

{'fraction_non_alphanumeric': 0.07258064516129033, 'fraction_numerical': 0.006791171477079796, 'mean_word_length': 3.5501930501930503, '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': '716634', 'n_tokens_mistral': 680, 'n_tokens_neox': 661, 'n_words': 262}