Return EighthScheduledActivity's of this activity since the beginning of the year.
776061
def get_active_schedulings(self):
        """"""
        blocks = EighthBlock.objects.get_blocks_this_year()
        scheduled_activities = EighthScheduledActivity.objects.filter(activity=self)
        scheduled_activities = scheduled_activities.filter(block__in=blocks)

        return scheduled_activities
125668
public List<ActivityMonitor> getActivityMonitors(RuntimeContext context) {
        return getActivityMonitors().stream().filter(monitor ->
            monitor.isEnabled(context)
        ).collect(Collectors.toList());
    }
571591
public function getActivities()
    {
        if (!isset($this->data['_embedded']['activities'])) {
            return [];
        }

        $activities = [];
        foreach ($this->data['_embedded']['activities'] as $data) {
            $activities[] = new Activity($data, $this->baseUrl, $this->client);
        }

        return $activities;
    }
313208
def fetch(self):
        

        entries = []
        for activity in self.activities['entries']:
            entries.append(
                    [element for element in [activity['title'],
                        activity['content'][0]['value']]])

        return entries[0:self.max_entries]
1313664
def setActivities(self, *args, **kwargs):
        
        def activityDate(activity):
            """Util function used for sorting activities according to timestamp"""
            try:
                return activity['activity']['timestamp']
            except KeyError as kerr:
                return None
        try:
            activities = self.mambuactivitiesclass(groupId=self['encodedKey'], *args, **kwargs)
        except AttributeError as ae:
            from .mambuactivity import MambuActivities
            self.mambuactivitiesclass = MambuActivities
            activities = self.mambuactivitiesclass(groupId=self['encodedKey'], *args, **kwargs)

        activities.attrs = sorted(activities.attrs, key=activityDate)
        self['activities'] = activities

        return 1
1030829
private ActivityContextInterface getTimerACI() {
		for(ActivityContextInterface aci : this.sbbContext.getActivities()) {
			if(aci.getActivity() instanceof NullActivity) {
				return aci;
			}
		}
		return null;
	}
917291
public java.util.List<Activity> getActivities() {
        if (activities == null) {
            activities = new com.amazonaws.internal.SdkInternalList<Activity>();
        }
        return activities;
    }
938681
def ActiveDates(self):
    """"""
    (earliest, latest) = self.GetDateRange()
    if earliest is None:
      return []
    dates = []
    date_it = util.DateStringToDateObject(earliest)
    date_end = util.DateStringToDateObject(latest)
    delta = datetime.timedelta(days=1)
    while date_it <= date_end:
      date_it_string = date_it.strftime("%Y%m%d")
      if self.IsActiveOn(date_it_string, date_it):
        dates.append(date_it_string)
      date_it = date_it + delta
    return dates
217049
private boolean getActivityImplicity(final ACTIVITY activity) {
        if (this.activity == ACTIVITY.ALL) {
            return true;
        }

        if ((activity == ACTIVITY.SUBSCRIBE) && (this.activity == ACTIVITY.PUBLISH)) {
            return false;
        } else if ((activity == ACTIVITY.PUBLISH) && (this.activity == ACTIVITY.SUBSCRIBE)) {
            return false;
        } else if (activity == ACTIVITY.ALL && this.getActivity() != ACTIVITY.ALL) {
            return false;
        }
        return true;
    }
1284136
def activities(self):
        
        from .activity import Activity

        if self.url is None:
            return

        gotten_feed_num = 20
        start = '0'
        api_url = self.url + 'activities'
        while gotten_feed_num == 20:
            data = {'_xsrf': self.xsrf, 'start': start}
            res = self._session.post(api_url, data=data)
            gotten_feed_num = res.json()['msg'][0]
            soup = BeautifulSoup(res.json()['msg'][1])
            acts = soup.find_all(
                'div', class_='zm-profile-section-item zm-item clearfix')

            start = acts[-1]['data-time'] if len(acts) > 0 else 0
            for act in acts:
                # --- ignore Round Table temporarily ---
                if act.attrs['data-type-detail'] == "member_follow_roundtable":
                    continue
                # --- --- --- --- -- --- --- --- --- ---
                yield Activity(act, self._session, self)
542097
function getMainLaunchActivityIndex(activities) {
    let launchActivityIndex = -1;

    for (let i = 0; i < activities.length; i++) {
      const activity = activities[i];
      if (isLaunchActivity(activity)) {
        launchActivityIndex = i;
        break;
      }
    }

    return launchActivityIndex;
  }
768441
def get_current_activities(self, login=None, **kwargs):
        

        _login = kwargs.get(
            'login',
            login or self._login
        )
        _activity_url = ACTIVITY_URL.format(login=_login)
        return self._request_api(url=_activity_url).json()
884420
def activities(self):
        
        if self._activities is None:
            self._activities = ActivityList(self._version, workspace_sid=self._solution['sid'], )
        return self._activities
1330447
def get_activity(self, id_num):
        
        url = self._build_url('my', 'activities', id_num)
        return self._json(url)
1373141
public ArrayList<Activity> getAllOpenedActivities()
	{
		ArrayList<Activity> activities = new ArrayList<Activity>();
		Iterator<WeakReference<Activity>> activityStackIterator = activityStack.iterator();

		while(activityStackIterator.hasNext()){
			Activity  activity = activityStackIterator.next().get();
			if(activity!=null)
				activities.add(activity);
		}
		return activities;
	}
1118691
public function get_activities() {
        $modinfo = get_fast_modinfo($this->course);
        $result = array();
        foreach ($modinfo->get_cms() as $cm) {
            if ($cm->completion != COMPLETION_TRACKING_NONE && !$cm->deletioninprogress) {
                $result[$cm->id] = $cm;
            }
        }
        return $result;
    }
342039
def get(self, sid):
        
        return ActivityContext(self._version, workspace_sid=self._solution['workspace_sid'], sid=sid, )