3b9042c743facfbd1e641784f21e29a95db2aac2,t2t_csaky/data_filtering/semantic_clustering.py,,,#,6
Before Change
_use_faiss = False
if DATA_FILTERING["use_faiss"]:
try:
import faiss
_use_faiss = True
except ImportError:
print("Failed to import faiss, using SKLearn clustering instead.")
if not _use_faiss:
from sklearn.cluster import MiniBatchKMeans
from sklearn.cluster import MeanShift
from sklearn.neighbors import BallTree
After Change
import numpy as np
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__))))
import filter_problem
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: 3b9042c743facfbd1e641784f21e29a95db2aac2
Time: 2018-09-20
Author: purgai.patrik@gmail.com
File Name: t2t_csaky/data_filtering/semantic_clustering.py
Class Name:
Method Name:
Project Name: brian-team/brian2
Commit Name: 25ca9c249fd3e11bb166b42ffeb2433036964bd1
Time: 2017-07-05
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLWeaveCodeGenerator
Method Name: write_dataholder
Project Name: brian-team/brian2
Commit Name: 25ca9c249fd3e11bb166b42ffeb2433036964bd1
Time: 2017-07-05
Author: charleetje@gmail.com
File Name: brian2/codegen/generators/GSL_generator.py
Class Name: GSLWeaveCodeGenerator
Method Name: unpack_namespace