fb6b85833496987b6f8fb68a379eb3388bfe2ae5,tags/views.py,,tags,#Any#Any#,35
Before Change
non_grouped_number_of_results = 0
paginator = None
try:
results = SolrResponseInterpreter(solr.select(unicode(query)))
paginator = SolrResponseInterpreterPaginator(results, settings.SOUNDS_PER_PAGE)
num_results = paginator.count
non_grouped_number_of_results = results.non_grouped_number_of_matches
After Change
non_grouped_number_of_results = 0
paginator = None
try:
non_grouped_number_of_results, facets, paginator, page, docs = perform_solr_query(query, current_page)
tags = [dict(name=f[0], count=f[1]) for f in facets["tag"]]
resultids = [d.get("id") for d in docs]
resultsounds = sounds.models.Sound.objects.bulk_query_id(resultids)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: MTG/freesound
Commit Name: fb6b85833496987b6f8fb68a379eb3388bfe2ae5
Time: 2020-10-19
Author: frederic.font@gmail.com
File Name: tags/views.py
Class Name:
Method Name: tags
Project Name: Pinafore/qb
Commit Name: 9ce50fe221a40ce0ffc91140c22fa4c275fa8b83
Time: 2015-12-03
Author: jordanbg@gmail.com
File Name: extractors/ir.py
Class Name: IrIndex
Method Name: create_query
Project Name: UFAL-DSG/tgen
Commit Name: a3d6b8862c04894b903a269ed6f7f16a9899e320
Time: 2016-03-07
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/parallel_seq2seq_train.py
Class Name: ParallelSeq2SeqTraining
Method Name: train
Project Name: openai/gym
Commit Name: c8ae79d163a3301700d03e6ec4c31bdd028fb286
Time: 2016-04-28
Author: mail@jonasschneider.com
File Name: gym/utils.py
Class Name:
Method Name: colorize
Project Name: UFAL-DSG/tgen
Commit Name: 211489b46399c8af86e14979769bf37f7bf38d5a
Time: 2015-02-09
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/planner.py
Class Name: ASearchPlanner
Method Name: generate_tree