Spaces:
Sleeping
Sleeping
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,324 +0,0 @@
|
|
| 1 |
-
# ================== الاستيراد ==================
|
| 2 |
-
import gradio as gr
|
| 3 |
-
import pandas as pd
|
| 4 |
-
import numpy as np
|
| 5 |
-
import tempfile
|
| 6 |
-
import os, pickle
|
| 7 |
-
from datetime import datetime
|
| 8 |
-
import io, base64
|
| 9 |
-
import arabic_reshaper
|
| 10 |
-
from bidi.algorithm import get_display
|
| 11 |
-
import matplotlib.pyplot as plt
|
| 12 |
-
from sentence_transformers import SentenceTransformer, util
|
| 13 |
-
from Bio import Entrez
|
| 14 |
-
import gdown
|
| 15 |
-
|
| 16 |
-
# ================== دوال مساعدة ==================
|
| 17 |
-
def download_from_drive(file_id, output):
|
| 18 |
-
url = f"https://drive.google.com/uc?id={file_id}"
|
| 19 |
-
try:
|
| 20 |
-
gdown.download(url, output, quiet=True)
|
| 21 |
-
except Exception:
|
| 22 |
-
pass
|
| 23 |
-
|
| 24 |
-
# ================== إعدادات ومسارات ==================
|
| 25 |
-
Entrez.email = "emananter0123@gmail.com"
|
| 26 |
-
EMB_DIR = "embeddings_cache"
|
| 27 |
-
os.makedirs(EMB_DIR, exist_ok=True)
|
| 28 |
-
|
| 29 |
-
def embeddings_path(name):
|
| 30 |
-
return os.path.join(EMB_DIR, f"{name}_embeddings.pkl")
|
| 31 |
-
|
| 32 |
-
BOOKS_FILE, THESES_FILE, FAQ_FILE = "book.xlsx", "theses.xlsx", "faq.xlsx"
|
| 33 |
-
download_from_drive("1FElHiASfiVLeuHWYaqd2Q5foxWRlJT-O", BOOKS_FILE)
|
| 34 |
-
download_from_drive("1K2Mtze6ZdvfKUsFMCOWlRBjDq-ZnJNrv", THESES_FILE)
|
| 35 |
-
download_from_drive("1ONjXtfv709BOxiIR0Qzmz6lQngnWEEso", FAQ_FILE)
|
| 36 |
-
|
| 37 |
-
def load_local_data():
|
| 38 |
-
if not os.path.exists(BOOKS_FILE) or not os.path.exists(THESES_FILE):
|
| 39 |
-
raise FileNotFoundError("تأكدي من رفع الملفات book.xlsx و theses.xlsx في مجلد المشروع.")
|
| 40 |
-
books = pd.read_excel(BOOKS_FILE).fillna("غير متوافر")
|
| 41 |
-
theses = pd.read_excel(THESES_FILE).fillna("غير متوافر")
|
| 42 |
-
if "Title" not in books.columns and "العنوان" in books.columns:
|
| 43 |
-
books["Title"] = books["العنوان"].astype(str)
|
| 44 |
-
elif "Title" not in books.columns:
|
| 45 |
-
books["Title"] = books.iloc[:,0].astype(str)
|
| 46 |
-
if "Title" not in theses.columns and "العنوان" in theses.columns:
|
| 47 |
-
theses["Title"] = theses["العنوان"].astype(str)
|
| 48 |
-
elif "Title" not in theses.columns:
|
| 49 |
-
theses["Title"] = theses.iloc[:,0].astype(str)
|
| 50 |
-
return books, theses
|
| 51 |
-
|
| 52 |
-
books_df, theses_df = load_local_data()
|
| 53 |
-
|
| 54 |
-
# ================== نموذج Semantic ==================
|
| 55 |
-
MODEL_NAME = "all-MiniLM-L6-v2"
|
| 56 |
-
model = SentenceTransformer(MODEL_NAME)
|
| 57 |
-
|
| 58 |
-
def build_or_load_embeddings(df, name):
|
| 59 |
-
path = embeddings_path(name)
|
| 60 |
-
if os.path.exists(path):
|
| 61 |
-
try:
|
| 62 |
-
with open(path,"rb") as f:
|
| 63 |
-
emb = pickle.load(f)
|
| 64 |
-
if len(emb) == len(df):
|
| 65 |
-
return emb
|
| 66 |
-
except Exception:
|
| 67 |
-
pass
|
| 68 |
-
texts = df["Title"].astype(str).tolist()
|
| 69 |
-
emb = model.encode(texts, convert_to_numpy=True, show_progress_bar=True)
|
| 70 |
-
with open(path,"wb") as f:
|
| 71 |
-
pickle.dump(emb,f)
|
| 72 |
-
return emb
|
| 73 |
-
|
| 74 |
-
books_embeddings = build_or_load_embeddings(books_df,"books")
|
| 75 |
-
theses_embeddings = build_or_load_embeddings(theses_df,"theses")
|
| 76 |
-
|
| 77 |
-
# ================== FAQ & مساعد ذكي ==================
|
| 78 |
-
if os.path.exists(FAQ_FILE):
|
| 79 |
-
faq_df = pd.read_excel(FAQ_FILE).fillna("")
|
| 80 |
-
else:
|
| 81 |
-
faq_df = pd.DataFrame({
|
| 82 |
-
"السؤال":["مواعيد المكتبة","خدمات المكتبة","كيفية الاستعارة","التسجيل في بنك المعرفة","التصوير","أقسام المكتبة","التواصل"],
|
| 83 |
-
"الإجابة":[
|
| 84 |
-
"🕘 المكتبة تعمل من السبت إلى الخميس من 9 صباحًا حتى 2 ظهرًا",
|
| 85 |
-
"📌 خدمات المكتبة: الإحاطة الجارية، التسجيل على بنك المعرفة، التصوير، البحث الإلكتروني، الاستعارة الخارجية",
|
| 86 |
-
"✅ يتم استعارة الكتب لمدة أسبوعين (أو حسب القاعدة المحلية)",
|
| 87 |
-
"🔗 التسجيل في بنك المعرفة عبر موقع بنك المعرفة المصري",
|
| 88 |
-
"🖨️ التصوير متاح وفق القواعد",
|
| 89 |
-
"📚 المكتبة بها: قاعة المراجع، قاعة الكتب الدراسية، قاعة الدوريات، قاعة الرسائل الجامعية",
|
| 90 |
-
"☎️ للتواصل: <a href='https://www.facebook.com/share/1AuUSQUn4n/' target='_blank'>صفحة الفيسبوك</a>"
|
| 91 |
-
]
|
| 92 |
-
})
|
| 93 |
-
|
| 94 |
-
faq_questions = faq_df["السؤال"].astype(str).tolist()
|
| 95 |
-
faq_answers = faq_df["الإجابة"].astype(str).tolist()
|
| 96 |
-
|
| 97 |
-
FAQ_EMB_PATH = embeddings_path("faq")
|
| 98 |
-
def build_or_load_faq_embeddings(questions):
|
| 99 |
-
if os.path.exists(FAQ_EMB_PATH):
|
| 100 |
-
try:
|
| 101 |
-
with open(FAQ_EMB_PATH,"rb") as f:
|
| 102 |
-
emb = pickle.load(f)
|
| 103 |
-
if len(emb) == len(questions):
|
| 104 |
-
return emb
|
| 105 |
-
except Exception:
|
| 106 |
-
pass
|
| 107 |
-
emb = model.encode(questions, convert_to_numpy=True, show_progress_bar=False)
|
| 108 |
-
with open(FAQ_EMB_PATH,"wb") as f:
|
| 109 |
-
pickle.dump(emb,f)
|
| 110 |
-
return emb
|
| 111 |
-
|
| 112 |
-
faq_embeddings = build_or_load_faq_embeddings(faq_questions)
|
| 113 |
-
|
| 114 |
-
def library_assistant_smart(question):
|
| 115 |
-
if not str(question).strip():
|
| 116 |
-
return "⚠️ من فضلك اكتب سؤالك"
|
| 117 |
-
q_emb = model.encode([str(question)], convert_to_numpy=True)
|
| 118 |
-
sims = util.cos_sim(q_emb, faq_embeddings)[0].cpu().numpy()
|
| 119 |
-
idx_best = int(np.argmax(sims))
|
| 120 |
-
best_score = sims[idx_best]
|
| 121 |
-
log_usage("المساعد الذكي", question, "FAQ", 1)
|
| 122 |
-
if best_score < 0.75:
|
| 123 |
-
return "❗ لم أجد إجابة مناسبة، حاول صياغة سؤالك بشكل مختلف."
|
| 124 |
-
return f"<b>الإجابة الأقرب:</b><br>{faq_answers[idx_best]}<br><i>درجة التشابه: {best_score:.2f}</i>"
|
| 125 |
-
|
| 126 |
-
# ================== CSS ==================
|
| 127 |
-
CUSTOM_CSS = """<style>
|
| 128 |
-
.styled-table {
|
| 129 |
-
border-collapse: collapse;
|
| 130 |
-
margin: 15px 0;
|
| 131 |
-
font-size: 14px;
|
| 132 |
-
width: 100%;
|
| 133 |
-
text-align: right;
|
| 134 |
-
direction: rtl;
|
| 135 |
-
}
|
| 136 |
-
.styled-table th, .styled-table td {
|
| 137 |
-
border: 1px solid #ddd;
|
| 138 |
-
padding: 8px;
|
| 139 |
-
}
|
| 140 |
-
.styled-table tr:nth-child(even) {background-color: #f9f9f9;}
|
| 141 |
-
.styled-table tr:nth-child(odd) {background-color: #ffffff;}
|
| 142 |
-
.styled-table th {background-color: #4da6ff; color: white;}
|
| 143 |
-
a {color: #0066cc; text-decoration: none;}
|
| 144 |
-
a:hover {text-decoration: underline;}
|
| 145 |
-
</style>"""
|
| 146 |
-
|
| 147 |
-
# ================== تتبع الاستخدام ==================
|
| 148 |
-
def log_usage(tab, query="", mode="", results_count=0):
|
| 149 |
-
file_path = "usage_stats.xlsx"
|
| 150 |
-
entry = pd.DataFrame([{
|
| 151 |
-
"التاريخ": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
|
| 152 |
-
"التب": tab,
|
| 153 |
-
"الكلمة المفتاحية": query,
|
| 154 |
-
"نوع البحث": mode,
|
| 155 |
-
"عدد النتائج": results_count
|
| 156 |
-
}])
|
| 157 |
-
if os.path.exists(file_path):
|
| 158 |
-
try:
|
| 159 |
-
old = pd.read_excel(file_path)
|
| 160 |
-
entry = pd.concat([old, entry], ignore_index=True)
|
| 161 |
-
except Exception:
|
| 162 |
-
entry = entry
|
| 163 |
-
entry.to_excel(file_path, index=False)
|
| 164 |
-
|
| 165 |
-
# ================== دوال مساعدة لتحويل البيانات ==================
|
| 166 |
-
def results_to_html(df):
|
| 167 |
-
if df.empty:
|
| 168 |
-
return "<p>❌ لا توجد نتائج</p>"
|
| 169 |
-
html = CUSTOM_CSS + "<div style='direction:rtl;text-align:right;'>"
|
| 170 |
-
for i, row in df.iterrows():
|
| 171 |
-
html += "<table class='styled-table' style='margin-bottom:15px;'>"
|
| 172 |
-
html += f"<caption style='caption-side:top;text-align:right;font-weight:bold;margin-bottom:5px;'>📘 النتيجة {i+1}</caption>"
|
| 173 |
-
for col, val in row.items():
|
| 174 |
-
html += f"<tr><th>{col}</th><td>{val}</td></tr>"
|
| 175 |
-
html += "</table>"
|
| 176 |
-
html += "</div>"
|
| 177 |
-
return html
|
| 178 |
-
|
| 179 |
-
def save_to_excel(df):
|
| 180 |
-
if df is None or (isinstance(df, pd.DataFrame) and df.empty):
|
| 181 |
-
tmp = tempfile.NamedTemporaryFile(delete=False, suffix=".xlsx")
|
| 182 |
-
pd.DataFrame().to_excel(tmp.name, index=False)
|
| 183 |
-
return tmp.name
|
| 184 |
-
tmp = tempfile.NamedTemporaryFile(delete=False, suffix=".xlsx")
|
| 185 |
-
if isinstance(df, pd.DataFrame):
|
| 186 |
-
df.to_excel(tmp.name, index=False)
|
| 187 |
-
else:
|
| 188 |
-
pd.DataFrame({"result_html":[str(df)]}).to_excel(tmp.name, index=False)
|
| 189 |
-
return tmp.name
|
| 190 |
-
|
| 191 |
-
# ================== واجهة Gradio ==================
|
| 192 |
-
with gr.Blocks() as demo:
|
| 193 |
-
|
| 194 |
-
# ================== تبويب عن المكتبة ==================
|
| 195 |
-
with gr.Tab("📚 عن المكتبة"):
|
| 196 |
-
with gr.Tabs():
|
| 197 |
-
with gr.Tab("🌟 رؤية المكتبة"):
|
| 198 |
-
gr.Markdown("تسعى المكتبة إلى أن تكون مركزًا معرفيًا متميزًا يدعم البحث والتعليم ويُسهم في بناء مجتمع المعرفة.")
|
| 199 |
-
with gr.Tab("🎯 رسالة المكتبة"):
|
| 200 |
-
gr.Markdown("تقديم خدمات معلوماتية متكاملة تُمكّن الباحثين والطلاب من الوصول إلى مصادر المعرفة بسهولة وكفاءة.")
|
| 201 |
-
with gr.Tab("🎯 أهداف المكتبة"):
|
| 202 |
-
gr.Markdown("- دعم العملية التعليمية والبحثية.\n- تيسير الوصول إلى المعلومات والمصادر العلمية.\n- تشجيع استخدام التقنيات الحديثة في البحث.\n- تعزيز ثقافة القراءة والتعلم الذاتي.")
|
| 203 |
-
with gr.Tab("🧩 الخدمات"):
|
| 204 |
-
with gr.Tabs():
|
| 205 |
-
with gr.Tab("📘 الإحاطة الجارية"):
|
| 206 |
-
gr.Markdown("خدمة تتيح للباحثين متابعة أحدث الإصدارات والموضوعات الجديدة في مجالات اهتمامهم.")
|
| 207 |
-
with gr.Tab("🔗 التسجيل في بنك المعرفة"):
|
| 208 |
-
gr.Markdown("يرجى ملء البيانات التالية للتسجيل في بنك المعرفة المصري:")
|
| 209 |
-
|
| 210 |
-
name = gr.Textbox(label="الاسم بالكامل", placeholder="اكتب اسمك الثلاثي هنا")
|
| 211 |
-
nid = gr.Textbox(label="رقم البطاقة", placeholder="14 رقمًا")
|
| 212 |
-
birth = gr.Textbox(label="تاريخ الميلاد", placeholder="مثال: 1999-05-12")
|
| 213 |
-
email = gr.Textbox(label="الإيميل الجامعي", placeholder="example@university.edu.eg")
|
| 214 |
-
phone = gr.Textbox(label="رقم التليفون", placeholder="010XXXXXXXXX")
|
| 215 |
-
submit_btn = gr.Button("إرسال الطلب")
|
| 216 |
-
output_msg = gr.HTML()
|
| 217 |
-
|
| 218 |
-
def save_registration(name, nid, birth, email, phone):
|
| 219 |
-
import csv, os
|
| 220 |
-
from datetime import datetime
|
| 221 |
-
file_path = "bank_requests.csv"
|
| 222 |
-
file_exists = os.path.exists(file_path)
|
| 223 |
-
with open(file_path, mode="a", newline="", encoding="utf-8") as f:
|
| 224 |
-
writer = csv.writer(f)
|
| 225 |
-
if not file_exists:
|
| 226 |
-
writer.writerow(["الاسم", "رقم البطاقة", "تاريخ الميلاد", "الإيميل الجامعي", "رقم التليفون", "تاريخ التسجيل"])
|
| 227 |
-
writer.writerow([name, nid, birth, email, phone, datetime.now().strftime("%Y-%m-%d %H:%M:%S")])
|
| 228 |
-
return "<b style='color:green;'>✅ تم استلام بياناتك بنجاح، يرجى مراجعة بريدك الجامعي خلال 24 ساعة.</b>"
|
| 229 |
-
|
| 230 |
-
submit_btn.click(save_registration, inputs=[name, nid, birth, email, phone], outputs=output_msg)
|
| 231 |
-
|
| 232 |
-
with gr.Tab("🖨️ التصوير"):
|
| 233 |
-
gr.Markdown("توفر المكتبة خدمة تصوير المواد العلمية وفق القواعد المعمول بها داخل المكتبة.")
|
| 234 |
-
with gr.Tab("🔍 البحث الإلكتروني"):
|
| 235 |
-
gr.Markdown("يمكن للباحثين استخدام أجهزة المكتبة للبحث في قواعد البيانات الإلكترونية والمصادر العلمية.")
|
| 236 |
-
with gr.Tab("📖 الاطلاع الداخلي"):
|
| 237 |
-
gr.Markdown("تتيح المكتبة للرواد قراءة الكتب والمراجع داخل القاعات المخصصة دون الحاجة إلى استعارتها خارجًا.")
|
| 238 |
-
|
| 239 |
-
# ================== الاستعارة الخارجية ==================
|
| 240 |
-
with gr.Tab("📚 الاستعارة الخارجية"):
|
| 241 |
-
gr.Markdown("""
|
| 242 |
-
تقدم المكتبة خدمة **الاستعارة الخارجية للكتب** تبعًا لعدد النسخ،
|
| 243 |
-
حيث أنه **غير مسموح بالاستعارة الخارجية** للكتب والمراجع ذات النسخة الواحدة
|
| 244 |
-
أو ذات الطابع الخاص أو الدوريات أو الرسائل العلمية.
|
| 245 |
-
""")
|
| 246 |
-
|
| 247 |
-
with gr.Tab("👩🏫 أعضاء هيئة التدريس"):
|
| 248 |
-
# حقول إدخال البيانات
|
| 249 |
-
teacher_name = gr.Textbox(label="الاسم")
|
| 250 |
-
teacher_spec = gr.Textbox(label="التخصص")
|
| 251 |
-
teacher_email = gr.Textbox(label="الإيميل الجامعي")
|
| 252 |
-
teacher_phone = gr.Textbox(label="رقم التليفون")
|
| 253 |
-
teacher_nid = gr.Textbox(label="الرقم القومي")
|
| 254 |
-
teacher_submit_btn = gr.Button("إرسال الطلب")
|
| 255 |
-
teacher_output_msg = gr.HTML()
|
| 256 |
-
|
| 257 |
-
def save_teacher_request(name, specialization, email, phone, nid):
|
| 258 |
-
file_path = "teacher_borrow_requests.csv"
|
| 259 |
-
entry = pd.DataFrame([{
|
| 260 |
-
"الاسم": name,
|
| 261 |
-
"التخصص": specialization,
|
| 262 |
-
"الإيميل الجامعي": email,
|
| 263 |
-
"رقم الهاتف": phone,
|
| 264 |
-
"الرقم القومي": nid,
|
| 265 |
-
"تاريخ التسجيل": datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
| 266 |
-
}])
|
| 267 |
-
if os.path.exists(file_path):
|
| 268 |
-
old = pd.read_csv(file_path)
|
| 269 |
-
entry = pd.concat([old, entry], ignore_index=True)
|
| 270 |
-
entry.to_csv(file_path, index=False)
|
| 271 |
-
return "<b style='color:green;'>✅ تم ��فظ البيانات بنجاح</b>"
|
| 272 |
-
|
| 273 |
-
teacher_submit_btn.click(
|
| 274 |
-
save_teacher_request,
|
| 275 |
-
inputs=[teacher_name, teacher_spec, teacher_email, teacher_phone, teacher_nid],
|
| 276 |
-
outputs=teacher_output_msg
|
| 277 |
-
)
|
| 278 |
-
|
| 279 |
-
with gr.Tab("📘 استعارة الطلاب"):
|
| 280 |
-
gr.Markdown("""
|
| 281 |
-
### 📘 تعليمات استعارة الطلاب
|
| 282 |
-
يستخرج الطالب **كارنيه الاستعارة** عن طريق إدارة المكتبة،
|
| 283 |
-
ويقوم بملء **استمارة الضمان** وختمها من **قسم شئون الطلاب**،
|
| 284 |
-
كما يتم ختمها أيضًا **بختم النسر** من الجهة الحكومية التابع لها الضامن.
|
| 285 |
-
|
| 286 |
-
🧾 **نماذج الاستمارات المتاحة:**
|
| 287 |
-
- 📄 [تحميل استمارة الاستعارة رقم 1](file=استعارة1.pdf)
|
| 288 |
-
- 📄 [تحميل استمارة الاستعارة رقم 2](file=استعارة2.pdf)
|
| 289 |
-
""")
|
| 290 |
-
|
| 291 |
-
# ================== تبويب إدارة خدمات المكتبة ==================
|
| 292 |
-
with gr.Tab("📂 إدارة خدمات المكتبة"):
|
| 293 |
-
gr.Markdown("### 🎓 عرض طلبات استعارة أعضاء هيئة التدريس")
|
| 294 |
-
|
| 295 |
-
refresh_teacher_btn = gr.Button("🔄 تحديث بيانات أعضاء هيئة التدريس")
|
| 296 |
-
teacher_data_table = gr.Dataframe(
|
| 297 |
-
headers=["الاسم", "التخصص", "الإيميل الجامعي", "رقم الهاتف", "الرقم القومي", "تاريخ التسجيل"],
|
| 298 |
-
interactive=False
|
| 299 |
-
)
|
| 300 |
-
teacher_download_btn = gr.Button("⬇️ تنزيل البيانات كملف Excel")
|
| 301 |
-
teacher_download_file = gr.File(label="ملف Excel", visible=False)
|
| 302 |
-
|
| 303 |
-
def load_teacher_requests():
|
| 304 |
-
file_path = "teacher_borrow_requests.csv"
|
| 305 |
-
if not os.path.exists(file_path):
|
| 306 |
-
return pd.DataFrame(columns=["الاسم", "التخصص", "الإيميل الجامعي", "رقم الهاتف", "الرقم القومي", "تاريخ التسجيل"])
|
| 307 |
-
df = pd.read_csv(file_path)
|
| 308 |
-
return df
|
| 309 |
-
|
| 310 |
-
def export_teacher_excel(df):
|
| 311 |
-
if df is None or df.empty:
|
| 312 |
-
return gr.update(visible=False)
|
| 313 |
-
tmp = tempfile.NamedTemporaryFile(delete=False, suffix=".xlsx")
|
| 314 |
-
df.to_excel(tmp.name, index=False)
|
| 315 |
-
return gr.update(value=tmp.name, visible=True)
|
| 316 |
-
|
| 317 |
-
refresh_teacher_btn.click(load_teacher_requests, outputs=teacher_data_table)
|
| 318 |
-
teacher_download_btn.click(export_teacher_excel, inputs=teacher_data_table)
|
| 319 |
-
gr.Markdown("---\n📌 *المشروع أعدته eman anter*")
|
| 320 |
-
|
| 321 |
-
# تشغيل التطبيق
|
| 322 |
-
if __name__ == "__main__":
|
| 323 |
-
demo.launch(share=True)
|
| 324 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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