Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
English
Size:
100K - 1M
License:
Zhangir Azerbayev
commited on
Commit
·
ed95795
1
Parent(s):
0253059
fixed fetch_mathoverflow bug
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- fetch_mathoverflow.py +4 -3
- stack-exchange/math_stack_exchange/shard_0.txt +0 -0
- stack-exchange/math_stack_exchange/shard_1.txt +0 -0
- stack-exchange/math_stack_exchange/shard_10.txt +0 -0
- stack-exchange/math_stack_exchange/shard_100.txt +0 -0
- stack-exchange/math_stack_exchange/shard_101.txt +0 -0
- stack-exchange/math_stack_exchange/shard_102.txt +0 -0
- stack-exchange/math_stack_exchange/shard_103.txt +0 -0
- stack-exchange/math_stack_exchange/shard_104.txt +0 -0
- stack-exchange/math_stack_exchange/shard_105.txt +0 -0
- stack-exchange/math_stack_exchange/shard_106.txt +0 -0
- stack-exchange/math_stack_exchange/shard_107.txt +0 -0
- stack-exchange/math_stack_exchange/shard_108.txt +0 -0
- stack-exchange/math_stack_exchange/shard_109.txt +0 -0
- stack-exchange/math_stack_exchange/shard_11.txt +0 -0
- stack-exchange/math_stack_exchange/shard_110.txt +0 -0
- stack-exchange/math_stack_exchange/shard_111.txt +0 -0
- stack-exchange/math_stack_exchange/shard_112.txt +0 -0
- stack-exchange/math_stack_exchange/shard_113.txt +0 -0
- stack-exchange/math_stack_exchange/shard_114.txt +0 -0
- stack-exchange/math_stack_exchange/shard_115.txt +0 -0
- stack-exchange/math_stack_exchange/shard_116.txt +0 -0
- stack-exchange/math_stack_exchange/shard_117.txt +0 -0
- stack-exchange/math_stack_exchange/shard_118.txt +0 -0
- stack-exchange/math_stack_exchange/shard_119.txt +0 -0
- stack-exchange/math_stack_exchange/shard_12.txt +0 -0
- stack-exchange/math_stack_exchange/shard_120.txt +0 -0
- stack-exchange/math_stack_exchange/shard_121.txt +0 -0
- stack-exchange/math_stack_exchange/shard_122.txt +0 -0
- stack-exchange/math_stack_exchange/shard_123.txt +0 -0
- stack-exchange/math_stack_exchange/shard_124.txt +0 -0
- stack-exchange/math_stack_exchange/shard_125.txt +0 -0
- stack-exchange/math_stack_exchange/shard_126.txt +0 -0
- stack-exchange/math_stack_exchange/shard_127.txt +0 -0
- stack-exchange/math_stack_exchange/shard_128.txt +0 -0
- stack-exchange/math_stack_exchange/shard_129.txt +0 -0
- stack-exchange/math_stack_exchange/shard_13.txt +0 -0
- stack-exchange/math_stack_exchange/shard_130.txt +0 -0
- stack-exchange/math_stack_exchange/shard_131.txt +0 -0
- stack-exchange/math_stack_exchange/shard_132.txt +0 -0
- stack-exchange/math_stack_exchange/shard_133.txt +0 -0
- stack-exchange/math_stack_exchange/shard_134.txt +0 -0
- stack-exchange/math_stack_exchange/shard_135.txt +0 -0
- stack-exchange/math_stack_exchange/shard_136.txt +0 -0
- stack-exchange/math_stack_exchange/shard_137.txt +0 -0
- stack-exchange/math_stack_exchange/shard_138.txt +0 -0
- stack-exchange/math_stack_exchange/shard_139.txt +0 -0
- stack-exchange/math_stack_exchange/shard_14.txt +0 -0
- stack-exchange/math_stack_exchange/shard_140.txt +0 -0
- stack-exchange/math_stack_exchange/shard_141.txt +0 -0
fetch_mathoverflow.py
CHANGED
@@ -92,7 +92,7 @@ def iter_rows(path):
|
|
92 |
if (element.tag == 'row'):
|
93 |
yield element
|
94 |
|
95 |
-
DATA_DIR = '
|
96 |
|
97 |
@dataclass
|
98 |
class Comment:
|
@@ -103,7 +103,7 @@ class Comment:
|
|
103 |
CreationDate: datetime
|
104 |
UserId: Optional[int]
|
105 |
|
106 |
-
|
107 |
def comments():
|
108 |
path = os.path.join(DATA_DIR, 'Comments.xml')
|
109 |
out = {}
|
@@ -130,7 +130,7 @@ class Post:
|
|
130 |
Answers: Optional[List["Post"]] = skip(None)
|
131 |
Tags: str = field(default="")
|
132 |
|
133 |
-
|
134 |
def questions():
|
135 |
path = os.path.join(DATA_DIR, 'Posts.xml')
|
136 |
cs = {}
|
@@ -183,6 +183,7 @@ def get_and_format(url, save_dir):
|
|
183 |
|
184 |
global DATA_DIR
|
185 |
DATA_DIR = os.path.join(save_dir, "xml")
|
|
|
186 |
os.system(f"7z e {archive_path} -o{DATA_DIR}")
|
187 |
|
188 |
print("parsing xml...")
|
|
|
92 |
if (element.tag == 'row'):
|
93 |
yield element
|
94 |
|
95 |
+
DATA_DIR = 'nothing'
|
96 |
|
97 |
@dataclass
|
98 |
class Comment:
|
|
|
103 |
CreationDate: datetime
|
104 |
UserId: Optional[int]
|
105 |
|
106 |
+
#lru_cache()
|
107 |
def comments():
|
108 |
path = os.path.join(DATA_DIR, 'Comments.xml')
|
109 |
out = {}
|
|
|
130 |
Answers: Optional[List["Post"]] = skip(None)
|
131 |
Tags: str = field(default="")
|
132 |
|
133 |
+
#@lru_cache()
|
134 |
def questions():
|
135 |
path = os.path.join(DATA_DIR, 'Posts.xml')
|
136 |
cs = {}
|
|
|
183 |
|
184 |
global DATA_DIR
|
185 |
DATA_DIR = os.path.join(save_dir, "xml")
|
186 |
+
print(f"DATA DIR {DATA_DIR}")
|
187 |
os.system(f"7z e {archive_path} -o{DATA_DIR}")
|
188 |
|
189 |
print("parsing xml...")
|
stack-exchange/math_stack_exchange/shard_0.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_1.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_10.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_100.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_101.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_102.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_103.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_104.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_105.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_106.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_107.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_108.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_109.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_11.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_110.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_111.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_112.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_113.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_114.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_115.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_116.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_117.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_118.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_119.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_12.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_120.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_121.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_122.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_123.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_124.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_125.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_126.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_127.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_128.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_129.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_13.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_130.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_131.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_132.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_133.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_134.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_135.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_136.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_137.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_138.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_139.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_14.txt
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_140.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
stack-exchange/math_stack_exchange/shard_141.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|