Skip to content

Commit c322c13

Browse files
pythonJaRvispythonJaRvis
authored andcommitted
update
1 parent 5b38d0b commit c322c13

File tree

35 files changed

+233
-8180
lines changed

35 files changed

+233
-8180
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
**/__pycache__
66
**/backup
77
**/olddata
8+
**/.DS_Store
9+
810
/.history
911
_site
1012
.sass-cache

Jarvis/.DS_Store

2 KB
Binary file not shown.
0 Bytes
Binary file not shown.

Jarvis/dataset/macro_benchmark/pj/TextRank4ZH/example/debug.txt

Lines changed: 0 additions & 8106 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class base:
2+
def __init__(self):
3+
pass
4+
def __enter__(self):
5+
return self
6+
def __exit__(self,exc_type, exc_val, exc_tb):
7+
pass
8+
class child(base):
9+
def __init__(self):
10+
pass
11+
def __enter__(self):
12+
return self
13+
def operate(self):
14+
pass
15+
16+
with child() as f:
17+
f.operate()

Jarvis/dataset/micro_benchmark/new_control_flow/with/main.py renamed to Jarvis/dataset/micro_benchmark/context_managers/class/main.py

File renamed without changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class base:
2+
def __init__(self):
3+
pass
4+
def __enter__(self):
5+
return self
6+
def __exit__(self,exc_type, exc_val, exc_tb):
7+
pass
8+
class child(base):
9+
def __init__(self):
10+
pass
11+
def __enter__(self):
12+
return self.operate
13+
def operate(self):
14+
pass
15+
with child() as f:
16+
f()
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Resource():
2+
def __enter__(self):
3+
return self
4+
def __exit__(self, exc_type, exc_val, exc_tb):
5+
pass
6+
def operate(self):
7+
pass
8+
with Resource() as res:
9+
res.operate()
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"main": [
3+
"main.base.__exit__",
4+
"main.child.__init__",
5+
"main.child.__enter__",
6+
"main.child.operate"
7+
],
8+
"main.child.__init__": [],
9+
"main.child.__enter__": [],
10+
"main.base.__exit__": [],
11+
"main.child.operate": []
12+
}

0 commit comments

Comments
 (0)