cfa2566a4e464b2ad1c22cf179dd8e0045d1dbb0,qiskit_aqua/quantumalgorithm.py,QuantumAlgorithm,register_and_get_operational_backends,#Any#Any#,209

Before Change


            [x.name() for x in qiskit.IBMQ.backends()]
        for full_backend in full_backends:
            backend = None
            for group_name, names in qiskit.Aer.grouped_backend_names().items():
                if full_backend in names:
                    backend = group_name
                    break
            if backend is None:
                for group_name, names in qiskit.Aer.deprecated_backend_names().items():
                    if full_backend in names:
                        backend = group_name

After Change


                backend = local_backend

            supported = True
            for unsupported_backend in QuantumAlgorithm.UNSUPPORTED_BACKENDS:
                if backend.startswith(unsupported_backend):
                    supported = False
                    break

            if supported:
                backends.add(backend)

        return list(backends) + [x.name() for x in qiskit.IBMQ.backends()]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: cfa2566a4e464b2ad1c22cf179dd8e0045d1dbb0
Time: 2018-10-01
Author: manoel@us.ibm.com
File Name: qiskit_aqua/quantumalgorithm.py
Class Name: QuantumAlgorithm
Method Name: register_and_get_operational_backends


Project Name: kmike/pymorphy2
Commit Name: 837b2efde71507b09033c3ea6f2502e2306f8eef
Time: 2013-02-18
Author: kmike84@gmail.com
File Name: pymorphy2/analyzer.py
Class Name: MorphAnalyzer
Method Name: _tag_as_word_with_known_suffix


Project Name: pyinstaller/pyinstaller
Commit Name: a3afe1f4fbeffa7f64ee6e11cff95417c742299e
Time: 2015-11-22
Author: h.goebel@crazy-compilers.com
File Name: tests/unit/test_depend_utils.py
Class Name:
Method Name: test_ldconfig_cache