File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def parse_java_source(path):
22
22
logger .debug (f'Parsing Java source file { path } ...' )
23
23
24
24
with open (path ) as f :
25
- lines = json .read (f )
25
+ lines = json .load (f )
26
26
27
27
# This is dumb -- do we want to do better?
28
28
doc = {}
@@ -35,7 +35,7 @@ def parse_notebook(path):
35
35
logger .debug (f'Parsing notebook { path } ...' )
36
36
37
37
with open (path ) as f :
38
- data = json .read (f )
38
+ data = json .load (f )
39
39
40
40
doc = {}
41
41
doc ['content' ] = ''
@@ -45,10 +45,15 @@ def parse_notebook(path):
45
45
46
46
return doc
47
47
48
+ # type of cell is dict for reference
49
+ # 2 cases: java file or a notebook
50
+ # case 1: notebook -> need info inside cells and then info from output lines
51
+ # case 2: java file -> need class name and class javadoc for description
48
52
def process_cell (cell ):
49
- # 2 cases: java file or a notebook
50
- # case 1: notebook -> need info inside cells and then info from output lines
51
- # case 2: java file -> need class name and class javadoc for description
53
+ # case 1: notebook
54
+
55
+ # case 2: java files
56
+
52
57
return type (cell )
53
58
54
59
You can’t perform that action at this time.
0 commit comments