Skip to content

Commit 23ddb0e

Browse files
pythonJaRvispythonJaRvis
authored andcommitted
update
1 parent e610f33 commit 23ddb0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+21857
-1
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Jarvis.zip

-50.9 MB
Binary file not shown.

Jarvis/dataset/macro_benchmark/pj/out.gv

Lines changed: 856 additions & 0 deletions
Large diffs are not rendered by default.
2.33 MB
Loading

Jarvis/ps/TextRank4ZH/DA.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"Segmentation.Segmentation.__init__": ["Segmentation.WordSegmentation.__init__"], "Segmentation.Segmentation.segment": ["util.as_text"], "TextRank4Keyword.TextRank4Keyword.__init__": ["Segmentation.Segmentation.__init__"], "TextRank4Keyword.TextRank4Keyword.analyze": ["util.sort_words"], "TextRank4Sentence.TextRank4Sentence.__init__": ["Segmentation.Segmentation.__init__"], "TextRank4Sentence.TextRank4Sentence.analyze": ["util.sort_sentences"], "Segmentation.WordSegmentation.__init__": ["util.as_text"], "util.as_text": [], "util.sort_words": ["util.debug"], "util.sort_sentences": ["util.AttrDict.__init__"], "util.debug": [], "util.AttrDict.__init__": []}

Jarvis/ps/TextRank4ZH/DW.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"Segmentation.Segmentation.__init__": ["Segmentation.WordSegmentation.__init__"], "Segmentation.Segmentation.segment": ["util.as_text"], "TextRank4Keyword.TextRank4Keyword.__init__": ["Segmentation.Segmentation.__init__"], "TextRank4Keyword.TextRank4Keyword.analyze": ["util.sort_words"], "TextRank4Sentence.TextRank4Sentence.__init__": ["Segmentation.Segmentation.__init__"], "TextRank4Sentence.TextRank4Sentence.analyze": ["util.sort_sentences"], "Segmentation.WordSegmentation.__init__": ["util.as_text"], "util.as_text": [], "util.sort_words": ["util.debug"], "util.sort_sentences": ["util.AttrDict.__init__"], "util.debug": [], "util.AttrDict.__init__": []}

Jarvis/ps/TextRank4ZH/EA.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"graph": {"directed": true, "nodes": {"node_d7049127": {"uid": "node_d7049127", "label": "107: __init__()", "name": "Segmentation::Segmentation.__init__"}, "node_24079be2": {"uid": "node_24079be2", "label": "118: segment()", "name": "Segmentation::Segmentation.segment"}, "node_4efa9f23": {"uid": "node_4efa9f23", "label": "85: __init__()", "name": "Segmentation::SentenceSegmentation.__init__"}, "node_7334b045": {"uid": "node_7334b045", "label": "92: segment()", "name": "Segmentation::SentenceSegmentation.segment"}, "node_36ebefa7": {"uid": "node_36ebefa7", "label": "23: __init__()", "name": "Segmentation::WordSegmentation.__init__"}, "node_625db0a2": {"uid": "node_625db0a2", "label": "40: segment()", "name": "Segmentation::WordSegmentation.segment"}, "node_9e8332eb": {"uid": "node_9e8332eb", "label": "68: segment_sentences()", "name": "Segmentation::WordSegmentation.segment_sentences"}, "node_8de14232": {"uid": "node_8de14232", "label": "16: get_default_stop_words_file()", "name": "Segmentation::get_default_stop_words_file"}, "node_bbda6570": {"uid": "node_bbda6570", "label": "18: __init__()", "name": "TextRank4Keyword::TextRank4Keyword.__init__"}, "node_66de75d6": {"uid": "node_66de75d6", "label": "43: analyze()", "name": "TextRank4Keyword::TextRank4Keyword.analyze"}, "node_40f1b960": {"uid": "node_40f1b960", "label": "111: get_keyphrases()", "name": "TextRank4Keyword::TextRank4Keyword.get_keyphrases"}, "node_147628f9": {"uid": "node_147628f9", "label": "95: get_keywords()", "name": "TextRank4Keyword::TextRank4Keyword.get_keywords"}, "node_15d1c54c": {"uid": "node_15d1c54c", "label": "18: __init__()", "name": "TextRank4Sentence::TextRank4Sentence.__init__"}, "node_104d63bc": {"uid": "node_104d63bc", "label": "43: analyze()", "name": "TextRank4Sentence::TextRank4Sentence.analyze"}, "node_c70b89f7": {"uid": "node_c70b89f7", "label": "81: __init__()", "name": "util::AttrDict.__init__"}, "node_90f7ecea": {"uid": "node_90f7ecea", "label": "32: as_text()", "name": "util::as_text"}, "node_27556645": {"uid": "node_27556645", "label": "86: combine()", "name": "util::combine"}, "node_9fda7215": {"uid": "node_9fda7215", "label": "66: debug()", "name": "util::debug"}, "node_f0b6df55": {"uid": "node_f0b6df55", "label": "169: sort_sentences()", "name": "util::sort_sentences"}, "node_4eecdbb6": {"uid": "node_4eecdbb6", "label": "126: sort_words()", "name": "util::sort_words"}}, "edges": [{"source": "node_d7049127", "target": "node_4efa9f23", "directed": true}, {"source": "node_d7049127", "target": "node_36ebefa7", "directed": true}, {"source": "node_24079be2", "target": "node_24079be2", "directed": true}, {"source": "node_24079be2", "target": "node_9e8332eb", "directed": true}, {"source": "node_24079be2", "target": "node_9e8332eb", "directed": true}, {"source": "node_24079be2", "target": "node_9e8332eb", "directed": true}, {"source": "node_24079be2", "target": "node_90f7ecea", "directed": true}, {"source": "node_4efa9f23", "target": "node_90f7ecea", "directed": true}, {"source": "node_7334b045", "target": "node_90f7ecea", "directed": true}, {"source": "node_7334b045", "target": "node_9fda7215", "directed": true}, {"source": "node_7334b045", "target": "node_9fda7215", "directed": true}, {"source": "node_36ebefa7", "target": "node_8de14232", "directed": true}, {"source": "node_36ebefa7", "target": "node_90f7ecea", "directed": true}, {"source": "node_625db0a2", "target": "node_90f7ecea", "directed": true}, {"source": "node_9e8332eb", "target": "node_625db0a2", "directed": true}, {"source": "node_bbda6570", "target": "node_d7049127", "directed": true}, {"source": "node_66de75d6", "target": "node_9fda7215", "directed": true}, {"source": "node_66de75d6", "target": "node_9fda7215", "directed": true}, {"source": "node_66de75d6", "target": "node_9fda7215", "directed": true}, {"source": "node_66de75d6", "target": "node_9fda7215", "directed": true}, {"source": "node_66de75d6", "target": "node_9fda7215", "directed": true}, {"source": "node_66de75d6", "target": "node_4eecdbb6", "directed": true}, {"source": "node_40f1b960", "target": "node_147628f9", "directed": true}, {"source": "node_15d1c54c", "target": "node_d7049127", "directed": true}, {"source": "node_104d63bc", "target": "node_f0b6df55", "directed": true}, {"source": "node_f0b6df55", "target": "node_c70b89f7", "directed": true}, {"source": "node_4eecdbb6", "target": "node_c70b89f7", "directed": true}, {"source": "node_4eecdbb6", "target": "node_27556645", "directed": true}, {"source": "node_4eecdbb6", "target": "node_9fda7215", "directed": true}]}}

Jarvis/ps/TextRank4ZH/EA.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Code2Flow: Found 4 files from sources argument.
2+
Code2Flow: Implicitly detected language as 'py'.
3+
Code2Flow: Processing 4 source file(s).
4+
Code2Flow: /Users/yixuanyan/yyx/github/jarvis/Jarvis/dataset/macro_benchmark/pj/TextRank4ZH/textrank4zh/Segmentation.py
5+
Code2Flow: /Users/yixuanyan/yyx/github/jarvis/Jarvis/dataset/macro_benchmark/pj/TextRank4ZH/textrank4zh/TextRank4Keyword.py
6+
Code2Flow: /Users/yixuanyan/yyx/github/jarvis/Jarvis/dataset/macro_benchmark/pj/TextRank4ZH/textrank4zh/TextRank4Sentence.py
7+
Code2Flow: /Users/yixuanyan/yyx/github/jarvis/Jarvis/dataset/macro_benchmark/pj/TextRank4ZH/textrank4zh/util.py
8+
Code2Flow: Duplicate group name 'Segmentation'. Naming collision possible.
9+
Code2Flow: Duplicate group name 'TextRank4Keyword'. Naming collision possible.
10+
Code2Flow: Duplicate group name 'TextRank4Sentence'. Naming collision possible.
11+
Code2Flow: Found groups ['File: Segmentation', 'Class: WordSegmentation', 'Class: SentenceSegmentation', 'Class: Segmentation', 'File: TextRank4Keyword', 'Class: TextRank4Keyword', 'File: TextRank4Sentence', 'Class: TextRank4Sentence', 'File: util', 'Class: AttrDict'].
12+
Code2Flow: Found nodes ['(global)', '(global)', '(global)', '(global)', 'AttrDict.__init__', 'Segmentation.__init__', 'Segmentation.segment', 'SentenceSegmentation.__init__', 'SentenceSegmentation.segment', 'TextRank4Keyword.__init__', 'TextRank4Keyword.analyze', 'TextRank4Keyword.get_keyphrases', 'TextRank4Keyword.get_keywords', 'TextRank4Sentence.__init__', 'TextRank4Sentence.analyze', 'TextRank4Sentence.get_key_sentences', 'WordSegmentation.__init__', 'WordSegmentation.segment', 'WordSegmentation.segment_sentences', 'as_text', 'combine', 'debug', 'get_default_stop_words_file', 'get_similarity', 'is_text', 'sort_sentences', 'sort_words'].
13+
Code2Flow: Found calls ['AttrDict()', 'Segmentation()', 'SentenceSegmentation()', 'UNKNOWN_VAR.__init__()', 'UNKNOWN_VAR.join()', 'ValueError()', 'WordSegmentation()', 'abs()', 'codecs.open()', 'combine()', 'debug()', 'float()', 'get_default_stop_words_file()', 'isinstance()', 'keyphrases.add()', 'len()', 'list()', 'math.log()', 'np.zeros()', 'nx.from_numpy_matrix()', 'nx.pagerank()', 'one.append()', 'os.dirname()', 'os.join()', 'os.realpath()', 'print()', 'pseg.cut()', 'reload()', 'res.append()', 'result.append()', 's.strip()', 'scores.items()', 'self.add()', 'self.count()', 'self.get_keywords()', 'self.segment()', 'self.segment_sentences()', 'seq.split()', 'set()', 'sim_func()', 'sorted()', 'sorted_sentences.append()', 'sorted_words.append()', 'str()', 'sum()', 'super()', 'sys.setdefaultencoding()', 'type()', 'util.AttrDict()', 'util.as_text()', 'util.debug()', 'util.sort_sentences()', 'util.sort_words()', 'v.decode()', 'w.strip()', 'word.lower()', 'word.strip()', 'word_list1.count()', 'word_list2.count()', 'xrange()', 'zip()'].
14+
Code2Flow: Found variables ['Segmentation->Segmentation', 'absolute_import->UNKNOWN_MODULE', 'co_occur_num-><Call owner_token=None token=sum>', 'codecs->UNKNOWN_MODULE', 'd-><Call owner_token=os token=dirname>', 'division->UNKNOWN_MODULE', 'graph-><Call owner_token=np token=zeros>', 'item->AttrDict', 'jieba_result-><Call owner_token=pseg token=cut>', 'keyphrases-><Call owner_token=None token=set>', 'keywords_set-><Call owner_token=None token=set>', 'math->UNKNOWN_MODULE', 'np->UNKNOWN_MODULE', 'nx->UNKNOWN_MODULE', 'nx_graph-><Call owner_token=nx token=from_numpy_matrix>', 'os->UNKNOWN_MODULE', 'print_function->UNKNOWN_MODULE', 'pseg->UNKNOWN_MODULE', 'res-><Call owner_token=None token=zip>', 'result-><Call owner_token=self token=segment>', 'scores-><Call owner_token=nx token=pagerank>', 'self->AttrDict', 'self->Segmentation', 'self->SentenceSegmentation', 'self->TextRank4Keyword', 'self->TextRank4Sentence', 'self->WordSegmentation', 'sentences-><Call owner_token=self token=segment>', 'sentences_num-><Call owner_token=None token=len>', 'similarity-><Call owner_token=None token=sim_func>', 'sorted_scores-><Call owner_token=None token=sorted>', 'sys->UNKNOWN_MODULE', 'text-><Call owner_token=util token=as_text>', 'unicode_literals->UNKNOWN_MODULE', 'util->util', 'words-><Call owner_token=None token=list>', 'words_all_filters-><Call owner_token=self token=segment_sentences>', 'words_no_filter-><Call owner_token=self token=segment_sentences>', 'words_no_stop_words-><Call owner_token=self token=segment_sentences>'].
15+
Code2Flow: Skipped processing these calls because the algorithm linked them to multiple function definitions: ['UNKNOWN_VAR.__init__()', 'self.segment()'].
16+
Code2Flow: Generating output file...
17+
Code2Flow: Wrote output file '/Users/yixuanyan/yyx/github/jarvis/Jarvis/ps/TextRank4ZH/EA.json' with 20 nodes and 29 edges.
18+
Code2Flow: Code2flow finished processing in 0.03 seconds.
19+
0.13 real 0.10 user 0.02 sys
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"Segmentation.Segmentation.__init__": ["Segmentation.WordSegmentation.__init__"], "Segmentation.Segmentation.segment": ["util.as_text"], "Segmentation.SentenceSegmentation.__init__": ["util.as_text"], "Segmentation.SentenceSegmentation.segment": ["util.debug"], "Segmentation.WordSegmentation.__init__": ["util.as_text"], "Segmentation.WordSegmentation.segment": ["util.as_text"], "Segmentation.WordSegmentation.segment_sentences": ["Segmentation.WordSegmentation.segment"], "TextRank4Keyword.TextRank4Keyword.__init__": ["Segmentation.Segmentation.__init__"], "TextRank4Keyword.TextRank4Keyword.analyze": ["util.sort_words"], "TextRank4Keyword.TextRank4Keyword.get_keyphrases": ["TextRank4Keyword.TextRank4Keyword.get_keywords"], "TextRank4Sentence.TextRank4Sentence.__init__": ["Segmentation.Segmentation.__init__"], "TextRank4Sentence.TextRank4Sentence.analyze": ["util.sort_sentences"], "util.sort_sentences": ["util.AttrDict.__init__"], "util.sort_words": ["util.debug"]}

0 commit comments

Comments
 (0)