<jupyter_start><jupyter_text>Songs Names Generator (Ver 1.0)***This is a work in progress so please check back for updates.***Project Los AngelesTegridy Code 2021<jupyter_code>import os
import tqdm
from tqdm import auto
from shutil import copyfile
import secrets

%cd /content
!mkdir Input
!mkdir Output
word3 = ['Performance', 'Piano', 'Tale', 'Improvisation', 'Forte-Piano', 'Pianoforte', 'Grand Piano', 'Exposition']

word2 = ['Spring', 'Summer', 'Autmn', 'Winter', 'Morning', 'Evening', 'Noon', 'Midnight']

word4 = ['Story', 'Etude', 'Menuet', 'Opus', 'Song', 'Melody', 'Waltz', 'Exploration']

word1 = ['Happy', 'Sad', 'Joyful', 'Emotional', 'Beautiful', 'Touching', 'Meaningful', 'Pleasant']

word5 = ['#1', '#2', '#3', '#4', '#5', '#6', '#7', '#8']
repeats = []
r = 0

for i in range(1500):

  output = word1[secrets.randbelow(8)] + ' ' + word2[secrets.randbelow(8)] + ' ' + word3[secrets.randbelow(8)] + ' ' + word4[secrets.randbelow(8)] + ' ' + word5[secrets.randbelow(8)] 
  if output not in repeats:
    repeats.append(output)
  else:
    r += 1
    continue

  print(output)
print('=' * 70)
print('Total names created:', i-r+1)
print('Repeats value:', r)
print('Loading MIDI files...')
print('This may take a while on a large dataset in particular.')

files_count = 0

dataset_addr = "/content/Input"
os.chdir(dataset_addr)
filez = os.listdir(dataset_addr)

print('Processing MIDI files. Please wait...')
for f in tqdm.auto.tqdm(filez):
  copyfile(f, ('../Output/' + repeats[files_count] + '.mid'))

  files_count += 1<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19154388212684176, 'fraction_numerical': 0.025624599615631006, 'mean_word_length': 5.149606299212598, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '207425', 'license': 'Apache-2.0', 'n_tokens_mistral': 625, 'n_tokens_neox': 574, 'n_words': 154, 'path': 'tegridy-tools/notebooks/Songs_Names_Generator.ipynb', 'repo_name': 'aikovsky/tegridy-tools', 'size': '1561'}