<commit_before>import bpy

from bpy.props import *
from bpy.types import Operator, AddonPreferences
from bpy.types import Menu, Panel, UIList, PropertyGroup
from bpy.props import StringProperty, BoolProperty, IntProperty, CollectionProperty, BoolVectorProperty, PointerProperty


class MFTVertexPaintMenu(bpy.types.Menu):
    bl_idname = "mftv.vertex_paint_menu"
    bl_label = "Mifth VertexPaint"
    bl_description = "Mifth Vertex Paint Menu"

    def draw(self, context):
        layout = self.layout

        layout.separator()
        op = layout.operator(MFTSetColorToSelected.bl_idname)
        op.strength = bpy.context.tool_settings.vertex_paint.brush.color


class MFTSetColorToSelected(bpy.types.Operator):
    bl_idname = "mftv.set_colors_to_selected"
    bl_label = "Set Colors to Selected"
    bl_description = "Set Colors to Selected"
    bl_options = {'REGISTER', 'UNDO'}


    strength = FloatVectorProperty(
        name="wire",
        subtype='COLOR',
        default=(0.5, 0.5, 0.5),
        min=0.0, max=1.0,
        description="wire color of the group"
    )
    selected_faces_only = BoolProperty(name="Selected Faces Only", default=False)

    def execute(self, context):

        obj = context.scene.objects.active<commit_msg>color tweaks<commit_after>import bpy

from bpy.props import *
from bpy.types import Operator, AddonPreferences
from bpy.types import Menu, Panel, UIList, PropertyGroup
from bpy.props import StringProperty, BoolProperty, IntProperty, CollectionProperty, BoolVectorProperty, PointerProperty


class MFTVertexPaintMenu(bpy.types.Menu):
    bl_idname = "mftv.vertex_paint_menu"
    bl_label = "Mifth VertexPaint"
    bl_description = "Mifth Vertex Paint Menu"

    def draw(self, context):
        layout = self.layout

        layout.separator()
        op = layout.operator(MFTSetColorToSelected.bl_idname)
        op.strength = context.tool_settings.vertex_paint.brush.color


class MFTSetColorToSelected(bpy.types.Operator):
    bl_idname = "mftv.set_colors_to_selected"
    bl_label = "Set Colors to Selected"
    bl_description = "Set Colors to Selected"
    bl_options = {'REGISTER', 'UNDO'}


    strength = FloatVectorProperty(
        name="Color",
        subtype='COLOR',
        default=(0.5, 0.5, 0.5),
        min=0.0, max=1.0,
        description="wire color of the group"
    )
    selected_faces_only = BoolProperty(name="Selected Faces Only", default=False)

    def execute(self, context):

        obj = context.scene.objects.active
{'fraction_non_alphanumeric': 0.09632294164668265, 'fraction_numerical': 0.007993605115907274, 'mean_word_length': 3.6266173752310538, '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': '2126968', 'n_tokens_mistral': 810, 'n_tokens_neox': 769, 'n_words': 178}