<commit_before># Created By: <NAME>
# Created On: 2006/03/19
# $Id$
# Copyright 2009 Hardcoded Software (http://www.hardcoded.net)
# 
# This software is licensed under the "HS" License as described in the "LICENSE" file, 
# which should be included with this package. The terms are also available at 
# http://www.hardcoded.net/licenses/hs_license

import objc
from AppKit import *

from hsutil import job

from musicguru import app_cocoa, design

# Fix py2app imports which chokes on relative imports
from musicguru import app, fs_utils, sqlfs
from musicguru.sqlfs import _sql, music, strings, utils
from hsfs import auto, manual, stats, tree, utils, music
from hsfs.phys import music
from hsmedia import aiff, flac, genres, id3v1, id3v2, mp4, mpeg, ogg, wma

class PyMassRenamePanel(NSObject):
    def setRefDir(self,refdir):
        #You MUST call this before starting to use the class
        self.panel = design.MassRenamePanel(refdir)
    
    def changeExampleSong(self):
        self.panel.ChangeExample()<commit_msg>cocoa: Rnamed the "musicguru" external ref to "core".<commit_after># Created By: <NAME>
# Created On: 2006/03/19
# $Id$
# Copyright 2009 Hardcoded Software (http://www.hardcoded.net)
# 
# This software is licensed under the "HS" License as described in the "LICENSE" file, 
# which should be included with this package. The terms are also available at 
# http://www.hardcoded.net/licenses/hs_license

import objc
from AppKit import *

from hsutil import job

from core import app_cocoa, design

# Fix py2app imports which chokes on relative imports
from core import app, fs_utils, sqlfs
from core.sqlfs import _sql, music, strings, utils
from hsfs import auto, stats, tree, music
from hsfs.phys import music
from hsmedia import aiff, flac, genres, id3v1, id3v2, mp4, mpeg, ogg, wma

class PyMassRenamePanel(NSObject):
    def setRefDir(self,refdir):
        #You MUST call this before starting to use the class
        self.panel = design.MassRenamePanel(refdir)
    
    def changeExampleSong(self):
        self.panel.ChangeExample()
{'fraction_non_alphanumeric': 0.08155339805825243, 'fraction_numerical': 0.017475728155339806, 'mean_word_length': 4.244274809160306, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5245656', 'n_tokens_mistral': 675, 'n_tokens_neox': 633, 'n_words': 244}