<commit_before>import numpy
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import LSTM
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
import csv
import convert_long
from tqdm import tqdm
import argparse

parser = argparse.ArgumentParser()
parser.add_argument("Action", help="Action to perform, learn or create")
parser.add_argument('--epochs', '-e', type=int, help="Number of epochs to be run", default=5)
parser.add_argument('--file', '-f', type=str, help="Weights for neural network")
parser.add_argument('--num', '-n', type=int, help="Number of songs to be made", default=1)
parser.add_argument('--length', '-l', type=int, help="Length per song", default=1)

args = parser.parse_args()

if args.Action.lower() != "create" and args.Action.lower() != "learn":
    print("\nWrong Action Argument")
    quit()

data = ""
with open("data.csv") as f:
    print("Reading from", f.name)<commit_msg>added default song length<commit_after>import numpy
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import LSTM
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
import csv
import convert_long
from tqdm import tqdm
import argparse

parser = argparse.ArgumentParser()
parser.add_argument("Action", help="Action to perform, learn or create")
parser.add_argument('--epochs', '-e', type=int, help="Number of epochs to be run", default=5)
parser.add_argument('--file', '-f', type=str, help="Weights for neural network")
parser.add_argument('--num', '-n', type=int, help="Number of songs to be made", default=1)
parser.add_argument('--length', '-l', type=int, help="Length per song", default=1000)

args = parser.parse_args()

if args.Action.lower() != "create" and args.Action.lower() != "learn":
    print("\nWrong Action Argument")
    quit()

data = ""
with open("data.csv") as f:
    print("Reading from", f.name)
{'fraction_non_alphanumeric': 0.1397903145282077, 'fraction_numerical': 0.0044932601098352475, 'mean_word_length': 5.5064935064935066, 'pattern_counts': {'":': 2, '<': 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': '860714', 'n_tokens_mistral': 623, 'n_tokens_neox': 614, 'n_words': 200}