<jupyter_start><jupyter_text>Classroom Seating Planning ToolThis tool helps make seating plans for rooms. To solve a room:* First install all the necessary packages below for the tool to run. * Next run the cell below to import them all.* Add a viable room diagram jpg or png to the file location of the tool* Adjust the parameters to match the room* Run all remaining cells and follow the instructions provided in the window. Green buttons are steps you have completed whilered buttons are steps you have not.<jupyter_code>import main as cpmain<jupyter_output><empty_output><jupyter_text>In the cell below, modify the parameters to match your situation.* Screen_Height and Screen_Width must be equalto or smaller than your screen's dimensions or the window size will be larger than the screen.* Floor must be the name of a to-scale classroom diagram in the same file location as the tool.* LengthOfScaleInUnits must be the length of the scale of the diagram in terms of the units used when specifying how far apart chairs need to be.* DistanceInUnitsForSocialDistancing must be the distance in the same units as LengthOfScaleInUnits that the chairs in a room must be apart.* ScaleOrientation is the orientation of the scale of the diagram.* Chair_Scale is the factor by which to scale up the image of each chair orientation when designating their shape.* solution_name is for defining what you want the name of the classroom's seating solution to be.* finding_threshold is the threshold the program uses in order to declare similarity between a chair orientation and a part of the image. If it is too low, the tool will detect chairs in places where they are not present, while a value that is too high will result in some chairs not being designated. finding_threshold has a maximum of 1 and a minimum of 0.* Show_Instructions dictates whether or not instructions are shown. Set it to False to disable them.<jupyter_code>#Window Configs:
Screen_Height=880 #The Height of Your Physical Screen In Pixels
Screen_Width=1920 #The Width of Your Physical Screen In Pixels

#Room Type:
Room_Type="Fixed" #"Fixed" or "Empty", determines required inputs for solver.

#Image Designation:
floor = 'ExampleRoom.png' # you need the path to the image file on YOUR computer

#Json Data:
Json_Load_Name="RoomData.txt" #Json to load from if load_from_json is true
Load_From_Json=False #True or false, whether or not to load the data from Json_load_Name to the tool
Save_To_Json=False #True or false, whetther or not to save the data to Json_Save_Name
Json_Save_Name="RoomData2.txt" #The name of the Json you want to save to. The tool will write a tool if there is no json of the name.

#Scale Selection Configs:
LengthOfScaleInUnits=20 #How many units long the scale is
DistanceInUnitsForSocialDistancing=6 #How many units apart the guidelines for social distancing
ScaleOrientation="Horizontal" #"Horizontal" or "Vertical"

#Polygon Creation Configs:
Chair_Scale=10 #The amount by which to scale up chairs when defining their shapes.

#Solution Configs:
solution_name="ExampleRoomSolution" #The name of the solution image
Solution_dpi=1000 #dpi for the solution

#Chair Recognition Configs:
finding_threshold=0.6 #The finding threshold of chairs.

#Show Instructions:
Show_Instructions=True<jupyter_output><empty_output><jupyter_text>At this point, run all remaining cells in the jupyter notebook. In the menu that pops up, clicking in a green or red rectangular button will bring you to the corresponding input screen. Green buttons indicate input methods that have already been completed, while red buttons indicate input methods that have yet to be completed. Completed input methods can be rerun to re-do their input portion, but this will result in the mandatory re-doing of all input methods that have it as a prerequisite. The tool will add more input method buttons as you complete their prerequisites.<jupyter_code>cpmain.launch_classroom_planner(Screen_Height,Screen_Width, Room_Type, floor, 
Json_Load_Name, Load_From_Json, Save_To_Json, Json_Save_Name,
LengthOfScaleInUnits, DistanceInUnitsForSocialDistancing, ScaleOrientation,
Chair_Scale, solution_name, Solution_dpi, finding_threshold, Show_Instructions)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.04132231404958678, 'fraction_numerical': 0.0049586776859504135, 'mean_word_length': 5.587869362363919, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '294383', 'license': 'MIT', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1062, 'n_words': 595, 'path': 'Fixed-Seating-Classroom-Planner/ClassroomPlanner.ipynb', 'repo_name': 'KylekG/Classroom-Seating-Planning-Tools', 'size': '4235'}