<commit_before>## Import the module
from tulle import *;

## Defining what unit to use
unitStr = "feet"

## Defining the room to hang material in
width  = float(raw_input("How wide is the room (in %s)? " %unitStr))
length = float(raw_input("How long is the room (in %s)? " %unitStr))
height = float(raw_input("How high is the room (in %s)? " %unitStr))
# Create room instance
room = RectRoom(length=length, width=width, height=height, units=unitStr)

## Get the defining shape of the hanging material
# Width of the strand
strand = float(raw_input("What is the width of the hanging material (in %s)? " %unitStr))
# Start material at a certain distance above ground
z = float(raw_input("How high above the ground should the material start from (in %s)? " %unitStr))
# Third point to define hanging shape
thirdPtStr = raw_input("""
How far out 'x' and above 'y' from the starting point of hanging material?
Enter as two numbers (in %s) separated by a comma 'x,y': """ %unitStr)
# Convert to two floats
d_out, d_above = map(float,thirdPtStr.split(','))

## Find amount of material needed
output = findTotal(widthOfStrand=strand, dOut=d_out,dUp= d_above,room=room)
# Totals
total_yds, strandList = output

print "Total number of yards needed: %.2f" %total_yds<commit_msg>Add main.py   - Add main.py to have a user friendly way to calculate the amount of material needed.<commit_after>## Import the module
from tulle import *;

## Defining what unit to use
unitStr = "feet"

## Defining the room to hang material in
width  = float(raw_input("How wide is the room (in %s)? " %unitStr))
length = float(raw_input("How long is the room (in %s)? " %unitStr))
height = float(raw_input("How high is the room (in %s)? " %unitStr))
# Create room instance
room = RectRoom(length=length, width=width, height=height, units=unitStr)

## Get the defining shape of the hanging material
# Width of the strand
strand = float(raw_input("What is the width of the hanging material (in %s)? " %unitStr))
# Start material at a certain distance above ground
z = float(raw_input("How high above the ground should the material start from (in %s)? " %unitStr))
# Third point to define hanging shape
thirdPtStr = raw_input("""
How far out 'x' and above 'y' from the starting point of hanging material?
Enter as two numbers (in %s) separated by a comma 'x,y': """ %unitStr)
# Convert to two floats
d_out, d_above = map(float,thirdPtStr.split(','))

## Find amount of material needed
output = findTotal(widthOfStrand=strand, dOut=d_out,dUp= d_above,room=room)
# Totals
total_yds, strandList = output
# Print out
print "Total number of yards needed: %.2f" %total_yds
{'fraction_non_alphanumeric': 0.1121246674268339, 'fraction_numerical': 0.0007601672367920942, 'mean_word_length': 5.2075471698113205, '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': '838422', 'n_tokens_mistral': 828, 'n_tokens_neox': 807, 'n_words': 345}