medolibalnar commited on
Commit
8840893
·
verified ·
1 Parent(s): 74732b2

mport pandas as pd # البيانات المستخرجة data = [ ("0602", "شهر ويوم تنفيذ العملية (2 يونيو)", "حقيقي"), ("215502.657", "وقت تنفيذ العملية بالثواني والملي ثانية", "حقيقي"), ("15286", "رقم عملية داخلي (Process ID أو Transaction ID داخلي)", "حقيقي"), ("00100000", "كود العملية/المعاملة", "حقيقي"), ("20250602", "تاريخ العملية (2 يونيو 2025)", "حقيقي"), ("2153507836", "رقم الطلب (Order ID)", "حقيقي"), ("3", "مستوى السجل (Log Level)", "حقيقي"), ("0", "خيار أو حالة (Option flag)", "حقيقي"), ("0000", "كود نجاح العملية (Success Code)", "حقيقي"), ("5205040000000943", "رقم بطاقة ائتمان (Card Number)", "حساس/مشبوه"), ("1138521083", "رقم ضريبة التاجر (Merchant Tax No)", "حقيقي"), ("4804500624", "رقم ضريبة المتجر (Mall Tax No)", "حقيقي"), ("25783090058548", "رقم شهادة أو معاملة (Cert No / TNO)", "حقيقي"), ("6", "طول BIN الكارت (Card BIN Length)", "حقيقي"), ("180000", "قيمة المعاملة (بالعملة المحلية)", "حقيقي"), ("0", "قيمة القسيمة (Coupon Money)", "حقيقي"), ("215502", "وقت موافقة البنك (App Time)", "حقيقي"), ("30043726", "رقم الموافقة البنكية (Approval No)", "حقيقي"), ("00091378177", "رقم أعمال أو شركة (Biz No)", "حقيقي"), ("00", "عدد الأقساط (Installments)", "حقيقي"), ("0602215502", "جزء من معرّف المعاملة (PG TXID)", "حقيقي"), ("163636", "قيمة المبلغ الخاضع للضريبة", "حقيقي"), ("16364", "قيمة الضريبة (VAT)", "حقيقي"), ("1", "نوع BIN الكارت (Type 01 أو 02)", "حقيقي"), ("0004", "كود البنك المُصدر", "حقيقي"), ("050204040033454", "كود شريك أو تاجر", "حقيقي"), ("0000", "كود نجاح إضافي", "حقيقي") ] # إنشاء DataFrame df = pd.DataFrame(data, columns=["الرقم", "الشرح المحتمل", "تصنيف"]) # حفظ الملف كـ Excel file_path = "/mnt/data/تحليل_البيانات.xlsx" df.to_excel(file_path, index=False) file_path - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +286 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Free Master
3
- emoji: 📚
4
- colorFrom: pink
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: free-master
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: red
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,286 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ar" dir="rtl">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>تحليل البيانات المالية</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
11
+ body {
12
+ font-family: 'Tajawal', sans-serif;
13
+ }
14
+ .sensitive {
15
+ background-color: rgba(239, 68, 68, 0.1);
16
+ }
17
+ .sensitive:hover {
18
+ background-color: rgba(239, 68, 68, 0.2);
19
+ }
20
+ .real {
21
+ background-color: rgba(34, 197, 94, 0.1);
22
+ }
23
+ .real:hover {
24
+ background-color: rgba(34, 197, 94, 0.2);
25
+ }
26
+ .scrollbar-hide::-webkit-scrollbar {
27
+ display: none;
28
+ }
29
+ </style>
30
+ </head>
31
+ <body class="bg-gray-50">
32
+ <div class="container mx-auto px-4 py-8">
33
+ <!-- Header -->
34
+ <div class="flex flex-col md:flex-row justify-between items-center mb-8 gap-4">
35
+ <div>
36
+ <h1 class="text-3xl font-bold text-gray-800">تحليل البيانات المالية</h1>
37
+ <p class="text-gray-600 mt-2">سجل معاملات بطاقات الائتمان</p>
38
+ </div>
39
+ <div class="flex items-center gap-3">
40
+ <div class="flex items-center">
41
+ <div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
42
+ <span class="text-sm">حقيقي</span>
43
+ </div>
44
+ <div class="flex items-center">
45
+ <div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
46
+ <span class="text-sm">حساس/مشبوه</span>
47
+ </div>
48
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center gap-2 transition-colors">
49
+ <i class="fas fa-download"></i>
50
+ <span>تصدير Excel</span>
51
+ </button>
52
+ </div>
53
+ </div>
54
+
55
+ <!-- Stats Cards -->
56
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-8">
57
+ <div class="bg-white p-4 rounded-lg shadow border-l-4 border-blue-500">
58
+ <h3 class="text-gray-500 text-sm">إجمالي المعاملات</h3>
59
+ <p class="text-2xl font-bold mt-1">27</p>
60
+ </div>
61
+ <div class="bg-white p-4 rounded-lg shadow border-l-4 border-green-500">
62
+ <h3 class="text-gray-500 text-sm">معاملات حقيقية</h3>
63
+ <p class="text-2xl font-bold mt-1">26</p>
64
+ </div>
65
+ <div class="bg-white p-4 rounded-lg shadow border-l-4 border-red-500">
66
+ <h3 class="text-gray-500 text-sm">معاملات حساسة</h3>
67
+ <p class="text-2xl font-bold mt-1">1</p>
68
+ </div>
69
+ </div>
70
+
71
+ <!-- Search and Filter -->
72
+ <div class="bg-white p-4 rounded-lg shadow mb-6">
73
+ <div class="flex flex-col md:flex-row gap-4">
74
+ <div class="flex-1 relative">
75
+ <input type="text" placeholder="ابحث في البيانات..." class="w-full pr-10 pl-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
76
+ <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
77
+ </div>
78
+ <select class="bg-gray-50 border rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
79
+ <option>جميع التصنيفات</option>
80
+ <option>حقيقي</option>
81
+ <option>حساس/مشبوه</option>
82
+ </select>
83
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg transition-colors">
84
+ تطبيق الفلتر
85
+ </button>
86
+ </div>
87
+ </div>
88
+
89
+ <!-- Data Table -->
90
+ <div class="bg-white rounded-lg shadow overflow-hidden">
91
+ <div class="overflow-x-auto scrollbar-hide">
92
+ <table class="min-w-full divide-y divide-gray-200">
93
+ <thead class="bg-gray-50">
94
+ <tr>
95
+ <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الرقم</th>
96
+ <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الشرح المحتمل</th>
97
+ <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">التصنيف</th>
98
+ <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">الإجراءات</th>
99
+ </tr>
100
+ </thead>
101
+ <tbody class="bg-white divide-y divide-gray-200">
102
+ <tr class="real hover:bg-gray-50 transition-colors">
103
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">0602</td>
104
+ <td class="px-6 py-4 text-sm text-gray-500">شهر ويوم تنفيذ العملية (2 يونيو)</td>
105
+ <td class="px-6 py-4 whitespace-nowrap">
106
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">حقيقي</span>
107
+ </td>
108
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
109
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
110
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
111
+ </td>
112
+ </tr>
113
+ <tr class="real hover:bg-gray-50 transition-colors">
114
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">215502.657</td>
115
+ <td class="px-6 py-4 text-sm text-gray-500">وقت تنفيذ العملية بالثواني والملي ثانية</td>
116
+ <td class="px-6 py-4 whitespace-nowrap">
117
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">حقيقي</span>
118
+ </td>
119
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
120
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
121
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
122
+ </td>
123
+ </tr>
124
+ <tr class="real hover:bg-gray-50 transition-colors">
125
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">15286</td>
126
+ <td class="px-6 py-4 text-sm text-gray-500">رقم عملية داخلي (Process ID أو Transaction ID داخلي)</td>
127
+ <td class="px-6 py-4 whitespace-nowrap">
128
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">حقيقي</span>
129
+ </td>
130
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
131
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
132
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
133
+ </td>
134
+ </tr>
135
+ <tr class="real hover:bg-gray-50 transition-colors">
136
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">00100000</td>
137
+ <td class="px-6 py-4 text-sm text-gray-500">كود العملية/المعاملة</td>
138
+ <td class="px-6 py-4 whitespace-nowrap">
139
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">حقيقي</span>
140
+ </td>
141
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
142
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
143
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
144
+ </td>
145
+ </tr>
146
+ <tr class="real hover:bg-gray-50 transition-colors">
147
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">20250602</td>
148
+ <td class="px-6 py-4 text-sm text-gray-500">تاريخ العملية (2 يونيو 2025)</td>
149
+ <td class="px-6 py-4 whitespace-nowrap">
150
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">حقيقي</span>
151
+ </td>
152
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
153
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
154
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
155
+ </td>
156
+ </tr>
157
+ <tr class="real hover:bg-gray-50 transition-colors">
158
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">2153507836</td>
159
+ <td class="px-6 py-4 text-sm text-gray-500">رقم الطلب (Order ID)</td>
160
+ <td class="px-6 py-4 whitespace-nowrap">
161
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">حقيقي</span>
162
+ </td>
163
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
164
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
165
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
166
+ </td>
167
+ </tr>
168
+ <tr class="real hover:bg-gray-50 transition-colors">
169
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">3</td>
170
+ <td class="px-6 py-4 text-sm text-gray-500">مستوى السجل (Log Level)</td>
171
+ <td class="px-6 py-4 whitespace-nowrap">
172
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">حقيقي</span>
173
+ </td>
174
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
175
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
176
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
177
+ </td>
178
+ </tr>
179
+ <tr class="real hover:bg-gray-50 transition-colors">
180
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">0</td>
181
+ <td class="px-6 py-4 text-sm text-gray-500">خيار أو حالة (Option flag)</td>
182
+ <td class="px-6 py-4 whitespace-nowrap">
183
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">حقيقي</span>
184
+ </td>
185
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
186
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
187
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
188
+ </td>
189
+ </tr>
190
+ <tr class="real hover:bg-gray-50 transition-colors">
191
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">0000</td>
192
+ <td class="px-6 py-4 text-sm text-gray-500">كود نجاح العملية (Success Code)</td>
193
+ <td class="px-6 py-4 whitespace-nowrap">
194
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">حقيقي</span>
195
+ </td>
196
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
197
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
198
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
199
+ </td>
200
+ </tr>
201
+ <tr class="sensitive hover:bg-gray-50 transition-colors">
202
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">5205040000000943</td>
203
+ <td class="px-6 py-4 text-sm text-gray-500">رقم بطاقة ائتمان (Card Number)</td>
204
+ <td class="px-6 py-4 whitespace-nowrap">
205
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">حساس/مشبوه</span>
206
+ </td>
207
+ <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
208
+ <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></button>
209
+ <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-ellipsis-v"></i></button>
210
+ </td>
211
+ </tr>
212
+ <!-- More rows would be added here -->
213
+ </tbody>
214
+ </table>
215
+ </div>
216
+
217
+ <!-- Pagination -->
218
+ <div class="bg-gray-50 px-4 py-3 flex items-center justify-between border-t border-gray-200 sm:px-6">
219
+ <div class="flex-1 flex justify-between sm:hidden">
220
+ <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> السابق </a>
221
+ <a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"> التالي </a>
222
+ </div>
223
+ <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
224
+ <div>
225
+ <p class="text-sm text-gray-700">
226
+ عرض
227
+ <span class="font-medium">1</span>
228
+ إلى
229
+ <span class="font-medium">10</span>
230
+ من
231
+ <span class="font-medium">27</span>
232
+ نتائج
233
+ </p>
234
+ </div>
235
+ <div>
236
+ <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
237
+ <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
238
+ <span class="sr-only">السابق</span>
239
+ <i class="fas fa-chevron-right"></i>
240
+ </a>
241
+ <a href="#" aria-current="page" class="z-10 bg-blue-50 border-blue-500 text-blue-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 1 </a>
242
+ <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 2 </a>
243
+ <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 3 </a>
244
+ <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
245
+ <span class="sr-only">التالي</span>
246
+ <i class="fas fa-chevron-left"></i>
247
+ </a>
248
+ </nav>
249
+ </div>
250
+ </div>
251
+ </div>
252
+ </div>
253
+
254
+ <!-- Footer -->
255
+ <div class="mt-8 text-center text-sm text-gray-500">
256
+ <p>© 2023 نظام تحليل البيانات المالية. جميع الحقوق محفوظة.</p>
257
+ </div>
258
+ </div>
259
+
260
+ <script>
261
+ // You can add JavaScript functionality here
262
+ document.addEventListener('DOMContentLoaded', function() {
263
+ // Example: Add click event for export button
264
+ document.querySelector('button.bg-blue-600').addEventListener('click', function() {
265
+ alert('سيتم تصدير البيانات إلى ملف Excel');
266
+ });
267
+
268
+ // Example: Add search functionality
269
+ const searchInput = document.querySelector('input[type="text"]');
270
+ searchInput.addEventListener('input', function() {
271
+ const searchTerm = this.value.toLowerCase();
272
+ const rows = document.querySelectorAll('tbody tr');
273
+
274
+ rows.forEach(row => {
275
+ const text = row.textContent.toLowerCase();
276
+ if (text.includes(searchTerm)) {
277
+ row.style.display = '';
278
+ } else {
279
+ row.style.display = 'none';
280
+ }
281
+ });
282
+ });
283
+ });
284
+ </script>
285
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=medolibalnar/free-master" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
286
+ </html>