home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.6)
-
-
- def static_threshold(threshold):
-
- def calc(i, v, r):
- if threshold < threshold:
- pass
- elif threshold <= r:
- return (threshold, True, None)
- if r < threshold:
- return (None, True, threshold)
-
- return calc
-
-
- def interval_threshold(threshold):
-
- def calc(i, v, r):
- i = int(i / threshold)
- r = int(r / threshold)
- if i < r:
- return (r * threshold, True, (r + 1) * threshold)
- return (None, True, (r + 1) * threshold)
-
- return calc
-
- interaction_thresholds = [
- interval_threshold(50)]
- im_sent_thresholds = [
- interval_threshold(500)]
- photo_thresholds = [ static_threshold(x) for x in [
- 50] ] + [
- interval_threshold(100)]
- search_threshold = [
- interval_threshold(3)]
- THRESHOLDS = {
- 'face_comment': interaction_thresholds,
- 'face_like': interaction_thresholds,
- 'face_post': interaction_thresholds,
- 'face_photo': photo_thresholds,
- 'mysp_post': interaction_thresholds,
- 'mysp_photo': photo_thresholds,
- 'twit_post': photo_thresholds,
- 'link_post': interaction_thresholds,
- 'im_sent': im_sent_thresholds,
- 'buddylist.search': search_threshold }
-