cc447449cd7d85717c847e7a5aa3483937b79e9d,word_sense_induction.py,,get_ego_network,#Any#,15
Before Change
// Add related and substring nodes
substring_nodes = []
for j, node in enumerate(G.index):
if mix_cases:
add_node = ego.lower() == node.lower()
else:
add_node = node == ego
if add_node:
nns_node = G.get_neighbors(node)
ego_nodes = [(rn, {"weight": w}) for rn, w in nns_node.items()]
ego_network.add_nodes_from(ego_nodes)
After Change
if node == ego:
ego_nn_nodes = []
for related_node, related_weight in G.get_neighbors(node).items():
if minimize(related_node) == minimize(ego): continue
ego_nn_nodes.append( (related_node, {"weight": related_weight}) )
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: uhh-lt/sensegram
Commit Name: cc447449cd7d85717c847e7a5aa3483937b79e9d
Time: 2018-03-23
Author: panchenko.alexander@gmail.com
File Name: word_sense_induction.py
Class Name:
Method Name: get_ego_network
Project Name: TheAlgorithms/Python
Commit Name: 369562a1e8a6a794167496f2cb9e225d4cf42b10
Time: 2020-05-07
Author: 49735721+mrmaxguns@users.noreply.github.com
File Name: ciphers/caesar_cipher.py
Class Name:
Method Name: main
Project Name: cmu-db/ottertune
Commit Name: 944a0ccc8dc9110516192b0b41a12e8f9612f7ef
Time: 2020-02-20
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/db/base/parser.py
Class Name: BaseParser
Method Name: extract_valid_variables