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

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
from config import DATA_FILTERING, FLAGS
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: janfreyberg/superintendent
Commit Name: cb266bbe1ce215ec56cc54ee009ea3a2a055b6d8
Time: 2018-05-31
Author: janfreyberg@users.noreply.github.com
File Name: superintendent/clustersupervisor.py
Class Name: ClusterSupervisor
Method Name: _annotation_iterator


Project Name: invesalius/invesalius3
Commit Name: bfaca5dcfc55113e3f8fd3134e21ae9567a4097c
Time: 2016-08-12
Author: totonixsame@gmail.com
File Name: invesalius/data/viewer_slice.py
Class Name: Viewer
Method Name: UpdateCanvas


Project Name: invesalius/invesalius3
Commit Name: 50f903c2731625fcb15222036f82c8e78918a90b
Time: 2019-10-22
Author: totonixsame@gmail.com
File Name: invesalius/reader/dicom.py
Class Name: Image
Method Name: SetParser