Skip to content

Commit 1f72a10

Browse files
organized the data accordingly, updated some scripts and added main.py
1 parent 72d98d9 commit 1f72a10

9,154 files changed

Lines changed: 5430 additions & 233616 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lsri_batches/repositories_part_1.json

Lines changed: 0 additions & 4802 deletions
This file was deleted.

lsri_batches/repositories_part_2.json

Lines changed: 0 additions & 4802 deletions
This file was deleted.

lsri_batches/repositories_part_3.json

Lines changed: 0 additions & 4802 deletions
This file was deleted.

lsri_batches/repositories_part_4.json

Lines changed: 0 additions & 4802 deletions
This file was deleted.

lsri_batches/repositories_part_5.json

Lines changed: 0 additions & 4802 deletions
This file was deleted.

lsri_batches/repositories_part_6.json

Lines changed: 0 additions & 4802 deletions
This file was deleted.

lsri_batches/repositories_part_7.json

Lines changed: 0 additions & 4802 deletions
This file was deleted.

lsri_batches/repositories_part_8.json

Lines changed: 0 additions & 4574 deletions
This file was deleted.

main.py

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import os
2+
import subprocess
3+
import sys
4+
5+
def run_rq_script(rq_number):
6+
main_script_dir = os.path.dirname(os.path.abspath(__file__))
7+
script_path = os.path.join(
8+
main_script_dir,
9+
"rqs_scripts",
10+
f"rq{rq_number}.py"
11+
)
12+
13+
if not os.path.exists(script_path):
14+
print(f"Error: RQ script '{script_path}' does not exist.")
15+
return
16+
17+
try:
18+
subprocess.run([sys.executable, script_path], check=True)
19+
except subprocess.CalledProcessError as e:
20+
print(f"Error running RQ script: {e}")
21+
22+
def run_count_results():
23+
main_script_dir = os.path.dirname(os.path.abspath(__file__))
24+
script_path = os.path.join(
25+
main_script_dir,
26+
"results_rqs",
27+
"count_results.py"
28+
)
29+
30+
if not os.path.exists(script_path):
31+
print(f"Error: Results script '{script_path}' not found.")
32+
return
33+
34+
try:
35+
36+
subprocess.run([sys.executable, script_path], check=True)
37+
except subprocess.CalledProcessError as e:
38+
print(f"Error running results script: {e}")
39+
40+
def handle_rq_selection():
41+
while True:
42+
print("\nAvailable RQ scripts:")
43+
print("1. rq1.py\n2. rq2.py\n3. rq3.py\n4. rq4.py\n5. rq5.py")
44+
choice = input("Enter RQ number (1-5) or 'back': ").strip().lower()
45+
46+
if choice == "back":
47+
break
48+
if choice not in ["1", "2", "3", "4", "5"]:
49+
print("Invalid choice. Try again.")
50+
continue
51+
52+
run_rq_script(choice)
53+
54+
def main():
55+
while True:
56+
print("\n=== Main Menu ===")
57+
print("1. Run RQ scripts")
58+
print("2. Calculate results")
59+
print("exit. Quit")
60+
main_choice = input("Choose an option (1/2/exit): ").strip().lower()
61+
62+
if main_choice == "exit":
63+
print("Exiting...")
64+
break
65+
elif main_choice == "1":
66+
handle_rq_selection()
67+
elif main_choice == "2":
68+
print("\nRunning results calculation...")
69+
run_count_results()
70+
else:
71+
print("Invalid choice. Try again.")
72+
73+
if __name__ == "__main__":
74+
main()
File renamed without changes.

0 commit comments

Comments
 (0)