Add files using upload-large-folder tool
Browse files- manual2/mac_labels/collector.py +27 -0
- manual2/mac_labels/mac_screenshots (25).json +1 -0
- manual2/mac_labels/mac_screenshots (31).json +1 -0
- manual2/mac_labels/mac_screenshots (34).json +1 -0
- manual2/mac_labels/mac_screenshots (42).json +1 -0
- manual2/mac_labels/mac_screenshots (44).json +1 -0
- manual2/mac_labels/mac_screenshots (50).json +1 -0
- manual2/mac_labels/mac_screenshots (52).json +1 -0
- manual2/mac_labels/mac_screenshots (59).json +1 -0
- manual2/mac_labels/mac_screenshots (62).json +1 -0
- manual2/mac_labels/mac_screenshots (68).json +1 -0
- manual2/mac_labels/mac_screenshots (71).json +1 -0
- manual2/mac_labels/mac_screenshots (73).json +1 -0
- manual2/mac_labels/mac_screenshots (77).json +1 -0
- manual2/mac_labels/mac_screenshots (79).json +1 -0
- manual2/mac_labels/mac_screenshots (82).json +1 -0
- manual2/mac_labels/mac_screenshots (83).json +1 -0
- manual2/mac_labels/mac_screenshots (86).json +1 -0
- manual2/mac_labels/mac_screenshots (87).json +1 -0
- manual2/mac_labels/mac_screenshots (89).json +1 -0
manual2/mac_labels/collector.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import json
|
| 3 |
+
|
| 4 |
+
# Path to your folder with JSON files
|
| 5 |
+
input_folder = "/share_1/users/eddie/data/manual2/mac_labels"
|
| 6 |
+
output_file = "/share_1/users/eddie/data/manual2/combined.jsonl"
|
| 7 |
+
|
| 8 |
+
with open(output_file, "w", encoding="utf-8") as outfile:
|
| 9 |
+
for filename in os.listdir(input_folder):
|
| 10 |
+
if filename.endswith(".json"):
|
| 11 |
+
file_path = os.path.join(input_folder, filename)
|
| 12 |
+
with open(file_path, "r", encoding="utf-8") as infile:
|
| 13 |
+
try:
|
| 14 |
+
data = json.load(infile)
|
| 15 |
+
|
| 16 |
+
# If the file contains a list, write each element separately
|
| 17 |
+
if isinstance(data, list):
|
| 18 |
+
for item in data:
|
| 19 |
+
json_line = json.dumps(item, ensure_ascii=False)
|
| 20 |
+
outfile.write(json_line + "\n")
|
| 21 |
+
else:
|
| 22 |
+
# Otherwise, assume it's a single object
|
| 23 |
+
json_line = json.dumps(data, ensure_ascii=False)
|
| 24 |
+
outfile.write(json_line + "\n")
|
| 25 |
+
|
| 26 |
+
except json.JSONDecodeError:
|
| 27 |
+
print(f"Warning: Could not parse {filename}, skipping.")
|
manual2/mac_labels/mac_screenshots (25).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (25).png", "annotations": [{"label": "Buy button for iPhone Air", "coordinates": {"x": 1054.5, "y": 1120.361111111111, "width": 73.0, "height": 45.0}}, {"label": "Continue button", "coordinates": {"x": 1395.5, "y": 111.86111111111109, "width": 91.0, "height": 38.0}}, {"label": "Vision menu", "coordinates": {"x": 881.5, "y": 169.3611111111111, "width": 57.0, "height": 37.0}}, {"label": "Browser go back button", "coordinates": {"x": 494.0, "y": 50.4019607843137, "width": 24.0, "height": 23.0}}, {"label": "Buy button for MacBook Pro 14", "coordinates": {"x": 1053.5, "y": 1787.4270072992701, "width": 73.0, "height": 35.0}}]}]
|
manual2/mac_labels/mac_screenshots (31).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (31).png", "annotations": [{"label": "Record button", "coordinates": {"x": 1552.4522673031029, "y": 1077.5, "width": 49.0, "height": 49.0}}, {"label": "Dictation Command", "coordinates": {"x": 1021.3657718120808, "y": 1460.0, "width": 61.000000000000114, "height": 90.0}}, {"label": "Open an Existing Document button", "coordinates": {"x": 688.8850390160881, "y": 1711.0, "width": 199.96146559198507, "height": 20.0}}, {"label": "Search bar", "coordinates": {"x": 1551.3816568047337, "y": 441.0, "width": 265.0, "height": 28.0}}, {"label": "Apple Versioning Tool", "coordinates": {"x": 587.9086757990868, "y": 1236.0, "width": 138.0, "height": 16.0}}]}]
|
manual2/mac_labels/mac_screenshots (34).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (34).png", "annotations": [{"label": "Apple TV icon, bottom middle", "coordinates": {"x": 1889.4043062200956, "y": 2113.5, "width": 53.0, "height": 53.0}}, {"label": "Slow Horses", "coordinates": {"x": 1108.816513761468, "y": 1129.0, "width": 308.0, "height": 224.0}}, {"label": "Sign in to your Apple Account", "coordinates": {"x": 105.92277992277964, "y": 1566.5, "width": 192.0, "height": 35.0}}, {"label": "Search bar", "coordinates": {"x": 110.89417989417998, "y": 91.5, "width": 194.0, "height": 27.0}}, {"label": "Accept Free Trial button", "coordinates": {"x": 742.4086757990868, "y": 891.0, "width": 221.0, "height": 38.0}}]}]
|
manual2/mac_labels/mac_screenshots (42).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (42).png", "annotations": [{"label": "4am weather option", "coordinates": {"x": 1861.8561151079139, "y": 370.5, "width": 38.0, "height": 85.0}}, {"label": "Close Click for More Detail", "coordinates": {"x": 1842.3561151079139, "y": 598.0, "width": 17.0, "height": 16.0}}, {"label": "Basra", "coordinates": {"x": 2288.856115107914, "y": 373.5, "width": 40.0, "height": 15.0}}, {"label": "Close Add Weather to the Menu Bar", "coordinates": {"x": 201.40867579908684, "y": 85.5, "width": 15.0, "height": 13.0}}, {"label": "Search bar", "coordinates": {"x": 3727.89417989418, "y": 26.5, "width": 200.0, "height": 29.0}}]}]
|
manual2/mac_labels/mac_screenshots (44).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (44).png", "annotations": [{"label": "Apple Photos app, bottom middle", "coordinates": {"x": 1206.5, "y": 1842.9319727891157, "width": 53.0, "height": 52.0}}, {"label": "Stopwatch", "coordinates": {"x": 918.0, "y": 722.4242424242425, "width": 88.0, "height": 25.0}}, {"label": "Edit Widgets button", "coordinates": {"x": 3156.0, "y": 1095.8850574712644, "width": 100.0, "height": 24.0}}, {"label": "Clear alarms button", "coordinates": {"x": 3172.0, "y": 195.41071428571436, "width": 52.0, "height": 23.0}}, {"label": "Clock for Paris", "coordinates": {"x": 3293.5, "y": 599.9242424242425, "width": 63.0, "height": 64.0}}]}]
|
manual2/mac_labels/mac_screenshots (50).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (50).png", "annotations": [{"label": "Date and Time", "coordinates": {"x": 3757.9196787148594, "y": 11.0, "width": 132.0, "height": 18.0}}, {"label": "Regulatory Certification link", "coordinates": {"x": 1494.4126637554587, "y": 902.0, "width": 127.0, "height": 12.0}}, {"label": "Clear Menu", "coordinates": {"x": 336.38165680473355, "y": 579.5, "width": 77.0, "height": 21.0}}, {"label": "Show Bingo2.pdf in Finder", "coordinates": {"x": 397.88165680473355, "y": 425.5, "width": 200.0, "height": 21.0}}, {"label": "Force Quit System Settings", "coordinates": {"x": 148.40867579908684, "y": 162.0, "width": 263.0, "height": 22.0}}]}]
|
manual2/mac_labels/mac_screenshots (52).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (52).png", "annotations": [{"label": "Guest Screen button", "coordinates": {"x": 1670.0, "y": 750.8245614035089, "width": 262.0, "height": 80.0}}, {"label": "Customize Start Time", "coordinates": {"x": 608.0, "y": 1444.1296296296296, "width": 372.0, "height": 41.0}}, {"label": "Song History", "coordinates": {"x": 2254.7727272727275, "y": 1718.7727272727273, "width": 216.0, "height": 57.0}}]}]
|
manual2/mac_labels/mac_screenshots (59).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (59).png", "annotations": [{"label": "The Journeys of Apollo", "coordinates": {"x": 1735.331932773109, "y": 1570.0, "width": 339.0, "height": 190.0}}, {"label": "Scheduled Events menu", "coordinates": {"x": 1997.8742138364782, "y": 243.0, "width": 140.0, "height": 44.0}}, {"label": "WATCH button", "coordinates": {"x": 1266.3882681564246, "y": 663.5, "width": 107.0, "height": 41.0}}, {"label": "Pause button", "coordinates": {"x": 3772.9086757990867, "y": 811.0, "width": 42.0, "height": 40.0}}, {"label": "See All option for Explore New Releases", "coordinates": {"x": 2568.8882681564246, "y": 1072.5, "width": 84.0, "height": 23.0}}]}]
|
manual2/mac_labels/mac_screenshots (62).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (62).png", "annotations": [{"label": "Google Search camera icon", "coordinates": {"x": 3110.0, "y": 882.0, "width": 18.0, "height": 18.0}}, {"label": "Terms link", "coordinates": {"x": 3446.0, "y": 1307.5, "width": 40.0, "height": 13.0}}, {"label": "re-ordering option for Number of trackers", "coordinates": {"x": 1728.5, "y": 1450.9376947040498, "width": 137.0, "height": 18.0}}, {"label": "Safari User Guide search bar", "coordinates": {"x": 815.5, "y": 64.87577639751564, "width": 325.0, "height": 19.999999999999993}}, {"label": "set up iCloud for Safari link", "coordinates": {"x": 436.5, "y": 483.37577639751566, "width": 139.0, "height": 15.0}}]}]
|
manual2/mac_labels/mac_screenshots (68).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (68).png", "annotations": [{"label": "Gaming menu", "coordinates": {"x": 465.0, "y": 1059.418032786885, "width": 98.0, "height": 23.0}}, {"label": "Mute MacBook Pro Microphone button", "coordinates": {"x": 2241.5, "y": 811.4242424242425, "width": 11.0, "height": 15.0}}, {"label": "Mute checkbox for Primary", "coordinates": {"x": 2769.0, "y": 1017.9382716049383, "width": 12.0, "height": 12.0}}, {"label": "Audio Devices settings icon", "coordinates": {"x": 2070.0, "y": 1184.0, "width": 12.0, "height": 12.0}}, {"label": "YouTube microphone button", "coordinates": {"x": 1383.0, "y": 556.0, "width": 40.0, "height": 40.0}}]}]
|
manual2/mac_labels/mac_screenshots (71).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (71).png", "annotations": [{"label": "Sign In option", "coordinates": {"x": 3373.4196787148594, "y": 395.0, "width": 97.0, "height": 38.0}}, {"label": "Live menu", "coordinates": {"x": 2182.425650557621, "y": 457.0, "width": 45.0, "height": 28.0}}, {"label": "Satellite images show extent of demolition at the White House element", "coordinates": {"x": 2328.9086757990867, "y": 946.0, "width": 310.0, "height": 170.0}}, {"label": "Minimize browser button", "coordinates": {"x": 332.9544419134395, "y": 52.0, "width": 12.0, "height": 12.0}}, {"label": "untitled folder", "coordinates": {"x": 3777.944289693593, "y": 106.0, "width": 86.0, "height": 76.0}}]}]
|
manual2/mac_labels/mac_screenshots (73).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (73).png", "annotations": [{"label": "Send feedback link", "coordinates": {"x": 1693.5, "y": 1213.4342105263158, "width": 99.0, "height": 13.0}}, {"label": "Report button", "coordinates": {"x": 1475.0, "y": 197.43630573248413, "width": 358.0, "height": 41.0}}, {"label": "Sign in button", "coordinates": {"x": 3161.0, "y": 108.94011976047896, "width": 96.0, "height": 36.0}}, {"label": "Siri button, top right", "coordinates": {"x": 3196.0, "y": 11.931972789115555, "width": 14.0, "height": 14.000000000000002}}, {"label": "See more ads link", "coordinates": {"x": 1372.5, "y": 438.4586776859505, "width": 77.0, "height": 11.0}}]}]
|
manual2/mac_labels/mac_screenshots (77).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (77).png", "annotations": [{"label": "Turn VoiceOver on or off on Mac link", "coordinates": {"x": 146.0, "y": 1628.44923857868, "width": 196.0, "height": 11.0}}, {"label": "VoiceOver User Guide Search bar", "coordinates": {"x": 804.5, "y": 1100.9435028248588, "width": 325.0, "height": 22.0}}, {"label": "Icon for Commands", "coordinates": {"x": 2541.91341991342, "y": 578.9783549783551, "width": 28.0, "height": 28.0}}, {"label": "Checkbox for Allow cursor wrapping", "coordinates": {"x": 2883.966777408638, "y": 487.9916943521595, "width": 13.933554817275763, "height": 13.983388704319054}}, {"label": "Open VoiceOver Utility for me link", "coordinates": {"x": 138.0, "y": 1296.5, "width": 180.0, "height": 13.0}}]}]
|
manual2/mac_labels/mac_screenshots (79).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (79).png", "annotations": [{"label": "Stage Manager button", "coordinates": {"x": 3711.416317991632, "y": 143.0, "width": 69.0, "height": 62.0}}, {"label": "Music play button, top right", "coordinates": {"x": 3775.416317991632, "y": 359.5, "width": 13.0, "height": 15.0}}, {"label": "Bluetooth icon", "coordinates": {"x": 3542.416317991632, "y": 108.0, "width": 27.0, "height": 26.0}}, {"label": "News Podcast", "coordinates": {"x": 1253.89417989418, "y": 1408.5, "width": 166.0, "height": 215.0}}, {"label": "Latest Episodes option", "coordinates": {"x": 433.9533799533798, "y": 1145.0, "width": 120.0, "height": 14.0}}]}]
|
manual2/mac_labels/mac_screenshots (82).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (82).png", "annotations": [{"label": "Terminal icon, bottom middle", "coordinates": {"x": 2531.445799457995, "y": 2113.0, "width": 53.0, "height": 52.0}}, {"label": "Enter password", "coordinates": {"x": 3199.933110367893, "y": 1303.0, "width": 180.0, "height": 28.0}}, {"label": "iCloud Preferences", "coordinates": {"x": 1920.4498746867168, "y": 872.5, "width": 193.0, "height": 39.0}}, {"label": "Terminal scroll bar", "coordinates": {"x": 617.4196787148595, "y": 257.0, "width": 15.0, "height": 342.0}}, {"label": "Close Terminal button", "coordinates": {"x": 53.952267303102886, "y": 71.0, "width": 12.0, "height": 12.0}}]}]
|
manual2/mac_labels/mac_screenshots (83).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (83).png", "annotations": [{"label": "New Collection option", "coordinates": {"x": 76.40867579908684, "y": 496.0, "width": 117.0, "height": 14.0}}, {"label": "Search bar", "coordinates": {"x": 99.92565055762088, "y": 93.5, "width": 180.0, "height": 27.0}}, {"label": "Image of Little Women book", "coordinates": {"x": 2054.430795847751, "y": 998.0, "width": 47.00000000000023, "height": 72.0}}, {"label": "Sections element", "coordinates": {"x": 2773.9373040752353, "y": 104.0, "width": 92.0, "height": 28.0}}, {"label": "Book by Oscar Wilde", "coordinates": {"x": 2020.4196787148594, "y": 1474.0, "width": 155.0, "height": 232.0}}]}]
|
manual2/mac_labels/mac_screenshots (86).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (86).png", "annotations": [{"label": "Search icon, top right", "coordinates": {"x": 3603.4564270152505, "y": 12.0, "width": 13.0, "height": 14.0}}, {"label": "Go menu, top left", "coordinates": {"x": 260.44722955145124, "y": 12.0, "width": 25.0, "height": 14.0}}, {"label": "English Thesaurus menu", "coordinates": {"x": 1729.4373040752353, "y": 443.0, "width": 107.0, "height": 16.0}}, {"label": "Network option", "coordinates": {"x": 2769.944289693593, "y": 1375.0, "width": 180.0, "height": 22.0}}, {"label": "Video call menu, middle bottom", "coordinates": {"x": 1480.9410029498526, "y": 2113.0, "width": 52.0, "height": 52.0}}]}]
|
manual2/mac_labels/mac_screenshots (87).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (87).png", "annotations": [{"label": "GPU Time for Isd", "coordinates": {"x": 969.8561151079138, "y": 642.5, "width": 34.0, "height": 21.0}}, {"label": "Energy menu", "coordinates": {"x": 770.448586118252, "y": 331.0, "width": 67.0, "height": 24.0}}, {"label": "Paritition option", "coordinates": {"x": 2196.4373040752353, "y": 795.5, "width": 45.0, "height": 37.0}}, {"label": "Play button", "coordinates": {"x": 3424.89417989418, "y": 175.0, "width": 16.0, "height": 16.0}}, {"label": "Close Disk Utility", "coordinates": {"x": 1395.0, "y": 792.0, "width": 12.0, "height": 12.0}}]}]
|
manual2/mac_labels/mac_screenshots (89).json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"image": "mac_screenshots (89).png", "annotations": [{"label": "system.log", "coordinates": {"x": 143.43079584775091, "y": 1551.0, "width": 86.99999999999999, "height": 16.0}}, {"label": "Console Share option", "coordinates": {"x": 849.0, "y": 1295.0, "width": 30.0, "height": 36.0}}, {"label": "Family Sharing menu", "coordinates": {"x": 87.5, "y": 555.5, "width": 99.0, "height": 15.0}}, {"label": "Center Origin option", "coordinates": {"x": 2229.5, "y": 403.5, "width": 71.0, "height": 39.0}}, {"label": "Console Search bar", "coordinates": {"x": 973.0, "y": 1287.0, "width": 192.0, "height": 22.0}}]}]
|