Commit
·
dd83214
1
Parent(s):
a3fc4a9
Upload 10 files
Browse files- .gitattributes +1 -0
- Participants - Sokhan 1.xlsx +0 -0
- README.md +3 -0
- Scan.pdf +0 -0
- anydesk_6.2.1-1_amd64.deb +3 -0
- exported_data.csv +1 -0
- huggingface_hub-main.zip +3 -0
- me.tar.gz +3 -0
- mohammad-cv.docx +0 -0
- t.py +66 -0
- tasks.docx +0 -0
.gitattributes
CHANGED
@@ -53,3 +53,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
56 |
+
anydesk_6.2.1-1_amd64.deb filter=lfs diff=lfs merge=lfs -text
|
Participants - Sokhan 1.xlsx
ADDED
Binary file (12.4 kB). View file
|
|
README.md
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
<head><link rel="stylesheet" href="https://huggingface.co/front/build/kube-91c9610/style.css"></head>
|
2 |
+
<div class="container mt-4"><div class="prose"><p>Edit this <code>README.md</code> markdown file to author your organization card 🔥</p>
|
3 |
+
</div></div>
|
Scan.pdf
ADDED
Binary file (291 kB). View file
|
|
anydesk_6.2.1-1_amd64.deb
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0428029fa9f7fb23c593fad76cfbf94c18f1c84af7aebd69720962dd5c8b77b7
|
3 |
+
size 6616686
|
exported_data.csv
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
//4xBi8GzAZBBiwAKgYnBjEGzAYuBiAAfgYwBswGMQY0BiwARAbMBjMGKgYgAC4GLwZFBicGKgYgACcGMQYnBiYGRwYgADQGLwZHBiwANAZGBicGMwZHBiAAJwZGBi0GNQYnBjEGzAYgAH4GMAbMBjEGNAYsACcGRgYqBi4GJwYoBgoALAAxADQAMAAxAC8AMQAyAC8AMAA4ACAALAAiACcGLwbMBkgGRQYqBjEGzAYgAH4GJwbMBkcGIAAnBjIGIAAxBicGRwYgAEcGSAYnBiwAIAAnBjEGMgbMBicGKAbMBiAAKgY5BswGzAZGBiAAqQbMBkEGzAYgAEUGSAYnBiwGRwYnBioGIAA0BjoGRAbMBiAAQQYxBi8GLAAgACIGMgZFBicGzAY0BicGKgYgADcGKAYgAKkGJwYxBiwAIAAnBjMGfgbMBjEGSAZFBioGMQbMBiwAIAAnBkYGLAYnBkUGIABGBkgGJwYxBiAAQgZEBigGLAAgACoGLAZFBswGOQYgAC8GJwYvBkcGIABHBicGIABIBiAAKgY5BswGzAZGBiAAKgZGBicGMwYoBicGKgYgADQGOgZEBswGIABIBiAAJwY4BkcGJwYxBiAARgY4BjEGIABGBkcGJwbMBswGLAAgACoGqQZFBswGRAYgAEEGMQZFBiAARwYnBswGIAAzBkQGJwZFBioGIAA0BjkGRAbMBiwAIAA6BjEGKAYnBkQGrwYxBswGIACpBkUGzAYgAC0GLwYqBiAAKAbMBkYGJwYmBswGLAAgAEUGOQYnBswGRgZHBiAALAYnBkUGOQYgACgGLwZIBiAAJwYzBioGLgYvBicGRQYiACwALAAnBkYGKgYuBicGKAYKAA==
|
huggingface_hub-main.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a35f23eeeb7632b8e29b2693523da2c061800a1368a6cd77273c119d7fb39871
|
3 |
+
size 454602
|
me.tar.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af30a8b71c0bd3ff5938fab801d4eddacf0168641e9870ffb60216f7a6ae2a9d
|
3 |
+
size 141
|
mohammad-cv.docx
ADDED
Binary file (15.5 kB). View file
|
|
t.py
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import psycopg2
|
2 |
+
import os
|
3 |
+
from loguru import logger
|
4 |
+
|
5 |
+
|
6 |
+
|
7 |
+
from dotenv import load_dotenv
|
8 |
+
from loguru import logger
|
9 |
+
|
10 |
+
import psycopg2.extras
|
11 |
+
|
12 |
+
|
13 |
+
|
14 |
+
load_dotenv()
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
class PsqlDataBaseConnection:
|
19 |
+
def __init__(self):
|
20 |
+
self.connection = None
|
21 |
+
|
22 |
+
def __enter__(self):
|
23 |
+
self.connection = psycopg2.connect(
|
24 |
+
host=os.environ['DATABASE_URL'],
|
25 |
+
database=os.environ['DATABASE_NAME'],
|
26 |
+
user=os.environ['DATABASE_USERNAME'],
|
27 |
+
password=os.environ['DATABASE_PASSWORD'],
|
28 |
+
sslmode='require')
|
29 |
+
self.connection.autocommit = True
|
30 |
+
return self.connection
|
31 |
+
|
32 |
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
33 |
+
if self.connection:
|
34 |
+
self.connection.close()
|
35 |
+
else:
|
36 |
+
logger.error(exc_type, exc_val, exc_tb, sep="\n")
|
37 |
+
return True
|
38 |
+
|
39 |
+
with PsqlDataBaseConnection() as connection :
|
40 |
+
stm = "select keyword from perigee_consolidated_events " \
|
41 |
+
"where id in (select fk_consolidated from gdacs where fk_consolidated='JMBA3aZhF8wqfykfMomSj9') " \
|
42 |
+
" or id in (select fk_consolidated from copernicus_ems where fk_consolidated='JMBA3aZhF8wqfykfMomSj9' ) " \
|
43 |
+
"or id in (select fk_consolidated from rw_disaster where fk_consolidated='JMBA3aZhF8wqfykfMomSj9') " \
|
44 |
+
"or id in (select fk_consolidated from glide_numbers where fk_consolidated='JMBA3aZhF8wqfykfMomSj9')"
|
45 |
+
cursor = connection.cursor()
|
46 |
+
cursor.execute(stm)
|
47 |
+
res = cursor.fetchall()[0][0]
|
48 |
+
print(res)
|
49 |
+
stm2 = f"select user_id from direct_engagement " \
|
50 |
+
f"where user_id in (select id from twitter_user where verified=true) " \
|
51 |
+
f"and keyword='{res}'"
|
52 |
+
cursor.execute(stm2)
|
53 |
+
res2 = cursor.fetchall()
|
54 |
+
x = [item[0] for item in res2]
|
55 |
+
f = tuple(x)
|
56 |
+
|
57 |
+
|
58 |
+
stm3 = "select user_id from baseline_tweets INNER JOIN twitter_user on baseline_tweets.user_id=twitter_user.id " \
|
59 |
+
"where baseline_tweets.mentioned_country='COD' " \
|
60 |
+
"and twitter_user.verified=true "
|
61 |
+
cursor.execute(stm3)
|
62 |
+
res3 = cursor.fetchall()
|
63 |
+
z = [item[0] for item in res3]
|
64 |
+
print(f"me : {z}")
|
65 |
+
print(list(set(z).symmetric_difference(set(x))))
|
66 |
+
print(len(z))
|
tasks.docx
ADDED
Binary file (4.97 kB). View file
|
|