18ac84177e0905c92b87efa5ba9ad515e125bb0d,estnltk/dividing.py,,lists_collect_lists,#Any#Any#,234
Before Change
def lists_collect_lists(outer_spans, inner_spans):
outers = [(first(span), last(span)) for span in outer_spans]
return spans_collect_lists(outers, inner_spans)
def get_bins(outer_spans, inner_spans):
After Change
mapping.append(idx)
flattened_spans, mapping = zip(*sorted(zip(flattened_spans, mapping)))
flat_bins = list(spans_collect_lists(flattened_spans, inner_spans))
bins = [[] for _ in range(len(outer_spans))]
for flatidx, flatbin in enumerate(flat_bins):
binidx = mapping[flatidx]
bins[binidx].extend(flatbin)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: estnltk/estnltk
Commit Name: 18ac84177e0905c92b87efa5ba9ad515e125bb0d
Time: 2015-06-03
Author: tpetmanson@gmail.com
File Name: estnltk/dividing.py
Class Name:
Method Name: lists_collect_lists
Project Name: estnltk/estnltk
Commit Name: 18ac84177e0905c92b87efa5ba9ad515e125bb0d
Time: 2015-06-03
Author: tpetmanson@gmail.com
File Name: estnltk/dividing.py
Class Name:
Method Name: lists_collect_spans
Project Name: polyaxon/polyaxon
Commit Name: 8d0adba43fde7d042161562660410342d7808b41
Time: 2019-06-15
Author: mouradmourafiq@gmail.com
File Name: polyaxon/registry/registry_context.py
Class Name:
Method Name: get_registry_context
Project Name: polyaxon/polyaxon
Commit Name: f79c98d83b424892389220bcbb158ea8cca32d18
Time: 2019-07-03
Author: mouradmourafiq@gmail.com
File Name: polyaxon/registry/registry_context.py
Class Name:
Method Name: get_registry_context