70377c624fdc514cd5897985c67c922cba613c1d,foreman/data_refinery_foreman/surveyor/transcriptome_index.py,TranscriptomeIndexSurveyor,discover_species,#TranscriptomeIndexSurveyor#,259

Before Change


            organism_name = None

        // Survey jobs are on a per-organism basis.
        for species in specieses:
            if species["name"] == organism_name:
                specieses = [species]
                logger.info("Found species " + organism_name + " on Ensembl.",
                            survey_job=self.survey_job.id)
                break

        species_surveyed = 0
        all_new_species = []
        for species in specieses:
            if number_of_organisms != -1 and species_surveyed >= number_of_organisms:
                break

            all_new_species.append(self._generate_files(species))
            species_surveyed += 1

        return all_new_species

After Change


            for species in specieses:
                all_new_species.append(self._generate_files(species))

        if len(all_new_species) == 0:
            logger.error("Unable to find any species!",
                         ensembl_division=ensembl_division,
                         organism_name=organism_name)

        return all_new_species
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: AlexsLemonade/refinebio
Commit Name: 70377c624fdc514cd5897985c67c922cba613c1d
Time: 2018-08-27
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/transcriptome_index.py
Class Name: TranscriptomeIndexSurveyor
Method Name: discover_species


Project Name: home-assistant/home-assistant
Commit Name: d16bc632da35a31957ba3ac399dab4769591af17
Time: 2017-03-07
Author: appzer@users.noreply.github.com
File Name: homeassistant/components/notify/pushsafer.py
Class Name: PushsaferNotificationService
Method Name: send_message


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 42fbf7857efc6e2153fc51303cc5a2f306ee9c01
Time: 2019-03-21
Author: dlott@google.com
File Name: perfkitbenchmarker/linux_benchmarks/stress_ng_benchmark.py
Class Name:
Method Name: _ParseStressngResult