client = BacklogClient("your_space_name", "your_api_key")
        client.project_activities("YOUR_PROJECT")
        client.project_activities("YOUR_PROJECT", {"activityTypeId[]": [1, 2],})
12978
def project_activities(self, project_id_or_key, extra_query_params={}):
        
        return self.do("get", "projects/{project_id_or_key}/activities",
                       url_params={"project_id_or_key": project_id_or_key},
                       query_params=extra_query_params,
                       )
547307
function checkProjectCompilationsWithId(projectId) {
	return fetchProject(projectId)
	.then((project) => {
		return checkProjectCompilations(project);
	})
	.catch((error) => {
		console.trace(error);
		throw error;
	});
}
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)
1160280
String buildProjectEndpoint(DatastoreOptions options) {
    if (options.getProjectEndpoint() != null) {
      return options.getProjectEndpoint();
    }
    // DatastoreOptions ensures either project endpoint or project ID is set.
    String projectId = checkNotNull(options.getProjectId());
    if (options.getHost() != null) {
      return validateUrl(String.format("https://%s/%s/projects/%s",
          options.getHost(), VERSION, projectId));
    } else if (options.getLocalHost() != null) {
      return validateUrl(String.format("http://%s/%s/projects/%s",
          options.getLocalHost(), VERSION, projectId));
    }
    return validateUrl(String.format("%s/%s/projects/%s",
        DEFAULT_HOST, VERSION, projectId));
  }
669695
private void writeProjectProperties(Project project)
   {
      ProjectProperties properties = m_projectFile.getProjectProperties();

      project.setActualsInSync(Boolean.valueOf(properties.getActualsInSync()));
      project.setAdminProject(Boolean.valueOf(properties.getAdminProject()));
      project.setAuthor(properties.getAuthor());
      project.setAutoAddNewResourcesAndTasks(Boolean.valueOf(properties.getAutoAddNewResourcesAndTasks()));
      project.setAutolink(Boolean.valueOf(properties.getAutolink()));
      project.setBaselineForEarnedValue(NumberHelper.getBigInteger(properties.getBaselineForEarnedValue()));
      project.setCalendarUID(m_projectFile.getDefaultCalendar() == null ? BigInteger.ONE : NumberHelper.getBigInteger(m_projectFile.getDefaultCalendar().getUniqueID()));
      project.setCategory(properties.getCategory());
      project.setCompany(properties.getCompany());
      project.setCreationDate(properties.getCreationDate());
      project.setCriticalSlackLimit(NumberHelper.getBigInteger(properties.getCriticalSlackLimit()));
      project.setCurrencyCode(properties.getCurrencyCode());
      project.setCurrencyDigits(BigInteger.valueOf(properties.getCurrencyDigits().intValue()));
      project.setCurrencySymbol(properties.getCurrencySymbol());
      project.setCurrencySymbolPosition(properties.getSymbolPosition());
      project.setCurrentDate(properties.getCurrentDate());
      project.setDaysPerMonth(NumberHelper.getBigInteger(properties.getDaysPerMonth()));
      project.setDefaultFinishTime(properties.getDefaultEndTime());
      project.setDefaultFixedCostAccrual(properties.getDefaultFixedCostAccrual());
      project.setDefaultOvertimeRate(DatatypeConverter.printRate(properties.getDefaultOvertimeRate()));
      project.setDefaultStandardRate(DatatypeConverter.printRate(properties.getDefaultStandardRate()));
      project.setDefaultStartTime(properties.getDefaultStartTime());
      project.setDefaultTaskEVMethod(DatatypeConverter.printEarnedValueMethod(properties.getDefaultTaskEarnedValueMethod()));
      project.setDefaultTaskType(properties.getDefaultTaskType());
      project.setDurationFormat(DatatypeConverter.printDurationTimeUnits(properties.getDefaultDurationUnits(), false));
      project.setEarnedValueMethod(DatatypeConverter.printEarnedValueMethod(properties.getEarnedValueMethod()));
      project.setEditableActualCosts(Boolean.valueOf(properties.getEditableActualCosts()));
      project.setExtendedCreationDate(properties.getExtendedCreationDate());
      project.setFinishDate(properties.getFinishDate());
      project.setFiscalYearStart(Boolean.valueOf(properties.getFiscalYearStart()));
      project.setFYStartDate(NumberHelper.getBigInteger(properties.getFiscalYearStartMonth()));
      project.setHonorConstraints(Boolean.valueOf(properties.getHonorConstraints()));
      project.setInsertedProjectsLikeSummary(Boolean.valueOf(properties.getInsertedProjectsLikeSummary()));
      project.setLastSaved(properties.getLastSaved());
      project.setManager(properties.getManager());
      project.setMicrosoftProjectServerURL(Boolean.valueOf(properties.getMicrosoftProjectServerURL()));
      project.setMinutesPerDay(NumberHelper.getBigInteger(properties.getMinutesPerDay()));
      project.setMinutesPerWeek(NumberHelper.getBigInteger(properties.getMinutesPerWeek()));
      project.setMoveCompletedEndsBack(Boolean.valueOf(properties.getMoveCompletedEndsBack()));
      project.setMoveCompletedEndsForward(Boolean.valueOf(properties.getMoveCompletedEndsForward()));
      project.setMoveRemainingStartsBack(Boolean.valueOf(properties.getMoveRemainingStartsBack()));
      project.setMoveRemainingStartsForward(Boolean.valueOf(properties.getMoveRemainingStartsForward()));
      project.setMultipleCriticalPaths(Boolean.valueOf(properties.getMultipleCriticalPaths()));
      project.setName(properties.getName());
      project.setNewTasksEffortDriven(Boolean.valueOf(properties.getNewTasksEffortDriven()));
      project.setNewTasksEstimated(Boolean.valueOf(properties.getNewTasksEstimated()));
      project.setNewTaskStartDate(properties.getNewTaskStartIsProjectStart() == true ? BigInteger.ZERO : BigInteger.ONE);
      project.setProjectExternallyEdited(Boolean.valueOf(properties.getProjectExternallyEdited()));
      project.setRemoveFileProperties(Boolean.valueOf(properties.getRemoveFileProperties()));
      project.setRevision(NumberHelper.getBigInteger(properties.getRevision()));
      project.setSaveVersion(BigInteger.valueOf(m_saveVersion.getValue()));
      project.setScheduleFromStart(Boolean.valueOf(properties.getScheduleFrom() == ScheduleFrom.START));
      project.setSplitsInProgressTasks(Boolean.valueOf(properties.getSplitInProgressTasks()));
      project.setSpreadActualCost(Boolean.valueOf(properties.getSpreadActualCost()));
      project.setSpreadPercentComplete(Boolean.valueOf(properties.getSpreadPercentComplete()));
      project.setStartDate(properties.getStartDate());
      project.setStatusDate(properties.getStatusDate());
      project.setSubject(properties.getSubject());
      project.setTaskUpdatesResource(Boolean.valueOf(properties.getUpdatingTaskStatusUpdatesResourceStatus()));
      project.setTitle(properties.getProjectTitle());
      project.setUID(properties.getUniqueID());
      project.setWeekStartDay(DatatypeConverter.printDay(properties.getWeekStartDay()));
      project.setWorkFormat(DatatypeConverter.printWorkUnits(properties.getDefaultWorkUnits()));
   }
1347528
def list(self, options=None, **kwds):
        
        option_string = self._build_option_string(options)
        activities = self._client.get("/activities%s/list.json" % option_string,
                                      **kwds)["result"]
        activities = self._result_to_list(activities)
        return [Activity(self._client, activity) for activity in activities]
899294
function getSharedProjects(req, res, callback) {
        var projects = [];
        userProjects.getUserSharedProjects(req.user.username)
        .then(function(sharedProjects) {
            function add(lst) {
                lst.forEach(function(project) {
                    //update the name of the project to include the original owner's username,
                    //so that projects with the same name can be differentiated.
                    project.Name = project.Name + " (" + project.Location.split(path.sep)[2] + "'s workspace)";
                    projects.push(project);
                    if (project.Children) add(project.Children);
                });
            }
            if (sharedProjects) {
	            add(sharedProjects);
            }
            callback(projects);
        });
    }
112046
def _check_request(self):
        ''''''
        # check _postpone_request first
        todo = []
        for task in self._postpone_request:
            if task['project'] not in self.projects:
                continue
            if self.projects[task['project']].task_queue.is_processing(task['taskid']):
                todo.append(task)
            else:
                self.on_request(task)
        self._postpone_request = todo

        tasks = {}
        while len(tasks) < self.LOOP_LIMIT:
            try:
                task = self.newtask_queue.get_nowait()
            except Queue.Empty:
                break

            if isinstance(task, list):
                _tasks = task
            else:
                _tasks = (task, )

            for task in _tasks:
                if not self.task_verify(task):
                    continue

                if task['taskid'] in self.projects[task['project']].task_queue:
                    if not task.get('schedule', {}).get('force_update', False):
                        logger.debug('ignore newtask %(project)s:%(taskid)s %(url)s', task)
                        continue

                if task['taskid'] in tasks:
                    if not task.get('schedule', {}).get('force_update', False):
                        continue

                tasks[task['taskid']] = task

        for task in itervalues(tasks):
            self.on_request(task)

        return len(tasks)
558146
function getSharedWorkspace(req, res) {
		return sharedUtil.getSharedProjects(req, res, function(projects) {
				var workspaces = [];
				projects.forEach(function(project){
					var projectSegs = project.Location.split("/");
					var projectBelongingWorkspaceId = sharedUtil.getWorkspaceIdFromprojectLocation(project.Location);
					if(!workspaces.some(function(workspace){
						return workspace.Id === projectBelongingWorkspaceId;
					})){
						workspaces.push({
							Id: projectBelongingWorkspaceId,
							Location: api.join(sharedWorkspaceFileRoot, projectBelongingWorkspaceId),
							Name: projectSegs[2] + "'s " + projectSegs[3]
						});
					}
				});
				writeResponse(null, res, null, {
					Id: req.user.username,
					Name: req.user.username,
					UserName: req.user.fullname || req.user.username,
					Workspaces: workspaces
				}, true);
		});
	}
1263124
private void processActivityCodes() throws SQLException
   {
      List<Row> types = getRows("select * from " + m_schema + "actvtype where actv_code_type_id in (select distinct actv_code_type_id from taskactv where proj_id=?)", m_projectID);
      List<Row> typeValues = getRows("select * from " + m_schema + "actvcode where actv_code_id in (select distinct actv_code_id from taskactv where proj_id=?)", m_projectID);
      List<Row> assignments = getRows("select * from " + m_schema + "taskactv where proj_id=?", m_projectID);
      m_reader.processActivityCodes(types, typeValues, assignments);
   }
1154704
private void processProjectProperties(APIBusinessObjects apibo, ProjectType project)
   {
      ProjectProperties properties = m_projectFile.getProjectProperties();

      properties.setCreationDate(project.getCreateDate());
      properties.setFinishDate(project.getFinishDate());
      properties.setName(project.getName());
      properties.setStartDate(project.getPlannedStartDate());
      properties.setStatusDate(project.getDataDate());
      properties.setProjectTitle(project.getId());
      properties.setUniqueID(project.getObjectId() == null ? null : project.getObjectId().toString());

      List<GlobalPreferencesType> list = apibo.getGlobalPreferences();
      if (!list.isEmpty())
      {
         GlobalPreferencesType prefs = list.get(0);

         properties.setCreationDate(prefs.getCreateDate());
         properties.setLastSaved(prefs.getLastUpdateDate());
         properties.setMinutesPerDay(Integer.valueOf((int) (NumberHelper.getDouble(prefs.getHoursPerDay()) * 60)));
         properties.setMinutesPerWeek(Integer.valueOf((int) (NumberHelper.getDouble(prefs.getHoursPerWeek()) * 60)));
         properties.setWeekStartDay(Day.getInstance(NumberHelper.getInt(prefs.getStartDayOfWeek())));

         List<CurrencyType> currencyList = apibo.getCurrency();
         for (CurrencyType currency : currencyList)
         {
            if (currency.getObjectId().equals(prefs.getBaseCurrencyObjectId()))
            {
               properties.setCurrencySymbol(currency.getSymbol());
               break;
            }
         }
      }
   }
747697
private void processTasks()
   {
      int uniqueID = 0;

      FastTrackTable activities = m_data.getTable(FastTrackTableType.ACTIVITIES);
      for (MapRow row : activities)
      {
         ++uniqueID;

         Integer id = row.getInteger(ActivityField.ACTIVITY_ROW_ID);
         if (id == null || id.intValue() < 1)
         {
            continue;
         }

         Task task = m_project.addTask();
         task.setName(row.getString(ActivityField.ACTIVITY_NAME));
         task.setID(id);
         task.setUniqueID(Integer.valueOf(uniqueID));
         //  Activity Row Number
         task.setFlag(1, row.getBoolean(ActivityField.FLAG_1));
         task.setFlag(2, row.getBoolean(ActivityField.FLAG_2));
         task.setFlag(3, row.getBoolean(ActivityField.FLAG_3));
         task.setFlag(4, row.getBoolean(ActivityField.FLAG_4));
         task.setFlag(5, row.getBoolean(ActivityField.FLAG_5));
         task.setFlag(6, row.getBoolean(ActivityField.FLAG_6));
         task.setFlag(7, row.getBoolean(ActivityField.FLAG_7));
         task.setFlag(8, row.getBoolean(ActivityField.FLAG_8));
         task.setFlag(9, row.getBoolean(ActivityField.FLAG_9));
         task.setFlag(10, row.getBoolean(ActivityField.FLAG_10));
         task.setFlag(11, row.getBoolean(ActivityField.FLAG_11));
         task.setFlag(12, row.getBoolean(ActivityField.FLAG_12));
         task.setFlag(13, row.getBoolean(ActivityField.FLAG_13));
         task.setFlag(14, row.getBoolean(ActivityField.FLAG_14));
         task.setFlag(15, row.getBoolean(ActivityField.FLAG_15));
         task.setFlag(16, row.getBoolean(ActivityField.FLAG_16));
         task.setFlag(17, row.getBoolean(ActivityField.FLAG_17));
         task.setFlag(18, row.getBoolean(ActivityField.FLAG_18));
         task.setFlag(19, row.getBoolean(ActivityField.FLAG_19));
         task.setFlag(20, row.getBoolean(ActivityField.FLAG_20));
         //   Parent Tree
         task.setText(1, row.getString(ActivityField.TEXT_1));
         task.setText(2, row.getString(ActivityField.TEXT_2));
         task.setText(3, row.getString(ActivityField.TEXT_3));
         task.setText(4, row.getString(ActivityField.TEXT_4));
         task.setText(5, row.getString(ActivityField.TEXT_5));
         task.setText(6, row.getString(ActivityField.TEXT_6));
         task.setText(7, row.getString(ActivityField.TEXT_7));
         task.setText(8, row.getString(ActivityField.TEXT_8));
         task.setText(9, row.getString(ActivityField.TEXT_9));
         task.setText(10, row.getString(ActivityField.TEXT_10));
         task.setText(11, row.getString(ActivityField.TEXT_11));
         task.setText(12, row.getString(ActivityField.TEXT_12));
         task.setText(13, row.getString(ActivityField.TEXT_13));
         task.setText(14, row.getString(ActivityField.TEXT_14));
         task.setText(15, row.getString(ActivityField.TEXT_15));
         task.setText(16, row.getString(ActivityField.TEXT_16));
         task.setText(17, row.getString(ActivityField.TEXT_17));
         task.setText(18, row.getString(ActivityField.TEXT_18));
         task.setText(19, row.getString(ActivityField.TEXT_19));
         task.setText(20, row.getString(ActivityField.TEXT_20));
         task.setText(21, row.getString(ActivityField.TEXT_21));
         task.setText(22, row.getString(ActivityField.TEXT_22));
         task.setText(23, row.getString(ActivityField.TEXT_23));
         task.setText(24, row.getString(ActivityField.TEXT_24));
         task.setText(25, row.getString(ActivityField.TEXT_25));
         task.setText(26, row.getString(ActivityField.TEXT_26));
         task.setText(27, row.getString(ActivityField.TEXT_27));
         task.setText(28, row.getString(ActivityField.TEXT_28));
         task.setText(29, row.getString(ActivityField.TEXT_29));
         task.setText(30, row.getString(ActivityField.TEXT_30));

         task.setWBS(row.getString(ActivityField.WBS));
         task.setGUID(row.getUUID(ActivityField._ACTIVITY_GUID));
         task.setOutlineLevel(getOutlineLevel(task));
         m_eventManager.fireTaskReadEvent(task);
      }

      FastTrackTable table = m_data.getTable(FastTrackTableType.ACTBARS);
      Set<Task> tasksWithBars = new HashSet<Task>();

      for (MapRow row : table)
      {
         if (row.getInt(ActBarField.BAR_ID) < 1)
         {
            continue;
         }

         Task task = m_project.getTaskByUniqueID(row.getInteger(ActBarField._ACTIVITY));
         if (task == null || tasksWithBars.contains(task))
         {
            continue;
         }
         tasksWithBars.add(task);

         // % Used
         task.setActualDuration(row.getDuration(ActBarField.ACTUAL_DURATION));
         task.setActualFinish(row.getTimestamp(ActBarField.ACTUAL_FINISH_DATE, ActBarField.ACTUAL_FINISH_TIME));
         task.setActualStart(row.getTimestamp(ActBarField.ACTUAL_START_DATE, ActBarField.ACTUAL_START_TIME));
         // Attendees
         task.setBaselineCost(1, row.getCurrency(ActBarField.BASELINE_COST_1));
         task.setBaselineCost(2, row.getCurrency(ActBarField.BASELINE_COST_2));
         task.setBaselineCost(3, row.getCurrency(ActBarField.BASELINE_COST_3));
         task.setBaselineCost(4, row.getCurrency(ActBarField.BASELINE_COST_4));
         task.setBaselineCost(5, row.getCurrency(ActBarField.BASELINE_COST_5));
         task.setBaselineCost(6, row.getCurrency(ActBarField.BASELINE_COST_6));
         task.setBaselineCost(7, row.getCurrency(ActBarField.BASELINE_COST_7));
         task.setBaselineCost(8, row.getCurrency(ActBarField.BASELINE_COST_8));
         task.setBaselineCost(9, row.getCurrency(ActBarField.BASELINE_COST_9));
         task.setBaselineCost(10, row.getCurrency(ActBarField.BASELINE_COST_10));
         task.setBaselineDuration(1, row.getDuration(ActBarField.BASELINE_DURATION_1));
         task.setBaselineDuration(2, row.getDuration(ActBarField.BASELINE_DURATION_2));
         task.setBaselineDuration(3, row.getDuration(ActBarField.BASELINE_DURATION_3));
         task.setBaselineDuration(4, row.getDuration(ActBarField.BASELINE_DURATION_4));
         task.setBaselineDuration(5, row.getDuration(ActBarField.BASELINE_DURATION_5));
         task.setBaselineDuration(6, row.getDuration(ActBarField.BASELINE_DURATION_6));
         task.setBaselineDuration(7, row.getDuration(ActBarField.BASELINE_DURATION_7));
         task.setBaselineDuration(8, row.getDuration(ActBarField.BASELINE_DURATION_8));
         task.setBaselineDuration(9, row.getDuration(ActBarField.BASELINE_DURATION_9));
         task.setBaselineDuration(10, row.getDuration(ActBarField.BASELINE_DURATION_10));
         task.setBaselineFinish(1, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_1, ActBarField.BASELINE_FINISH_TIME_1));
         task.setBaselineFinish(2, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_2, ActBarField.BASELINE_FINISH_TIME_2));
         task.setBaselineFinish(3, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_3, ActBarField.BASELINE_FINISH_TIME_3));
         task.setBaselineFinish(4, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_4, ActBarField.BASELINE_FINISH_TIME_4));
         task.setBaselineFinish(5, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_5, ActBarField.BASELINE_FINISH_TIME_5));
         task.setBaselineFinish(6, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_6, ActBarField.BASELINE_FINISH_TIME_6));
         task.setBaselineFinish(7, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_7, ActBarField.BASELINE_FINISH_TIME_7));
         task.setBaselineFinish(8, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_8, ActBarField.BASELINE_FINISH_TIME_8));
         task.setBaselineFinish(9, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_9, ActBarField.BASELINE_FINISH_TIME_9));
         task.setBaselineFinish(10, row.getTimestamp(ActBarField.BASELINE_FINISH_DATE_10, ActBarField.BASELINE_FINISH_TIME_10));
         task.setBaselineFinish(1, row.getTimestamp(ActBarField.BASELINE_START_DATE_1, ActBarField.BASELINE_START_TIME_1));
         task.setBaselineFinish(2, row.getTimestamp(ActBarField.BASELINE_START_DATE_2, ActBarField.BASELINE_START_TIME_2));
         task.setBaselineFinish(3, row.getTimestamp(ActBarField.BASELINE_START_DATE_3, ActBarField.BASELINE_START_TIME_3));
         task.setBaselineFinish(4, row.getTimestamp(ActBarField.BASELINE_START_DATE_4, ActBarField.BASELINE_START_TIME_4));
         task.setBaselineFinish(5, row.getTimestamp(ActBarField.BASELINE_START_DATE_5, ActBarField.BASELINE_START_TIME_5));
         task.setBaselineFinish(6, row.getTimestamp(ActBarField.BASELINE_START_DATE_6, ActBarField.BASELINE_START_TIME_6));
         task.setBaselineFinish(7, row.getTimestamp(ActBarField.BASELINE_START_DATE_7, ActBarField.BASELINE_START_TIME_7));
         task.setBaselineFinish(8, row.getTimestamp(ActBarField.BASELINE_START_DATE_8, ActBarField.BASELINE_START_TIME_8));
         task.setBaselineFinish(9, row.getTimestamp(ActBarField.BASELINE_START_DATE_9, ActBarField.BASELINE_START_TIME_9));
         task.setBaselineFinish(10, row.getTimestamp(ActBarField.BASELINE_START_DATE_10, ActBarField.BASELINE_START_TIME_10));
         task.setBaselineWork(1, row.getWork(ActBarField.BASELINE_WORK_1));
         task.setBaselineWork(2, row.getWork(ActBarField.BASELINE_WORK_2));
         task.setBaselineWork(3, row.getWork(ActBarField.BASELINE_WORK_3));
         task.setBaselineWork(4, row.getWork(ActBarField.BASELINE_WORK_4));
         task.setBaselineWork(5, row.getWork(ActBarField.BASELINE_WORK_5));
         task.setBaselineWork(6, row.getWork(ActBarField.BASELINE_WORK_6));
         task.setBaselineWork(7, row.getWork(ActBarField.BASELINE_WORK_7));
         task.setBaselineWork(8, row.getWork(ActBarField.BASELINE_WORK_8));
         task.setBaselineWork(9, row.getWork(ActBarField.BASELINE_WORK_9));
         task.setBaselineWork(10, row.getWork(ActBarField.BASELINE_WORK_10));
         task.setConstraintDate(row.getTimestamp(ActBarField.CONSTRAINT_DATE, ActBarField.CONSTRAINT_TIME));
         task.setCost(1, row.getCurrency(ActBarField.COST_1));
         task.setCost(2, row.getCurrency(ActBarField.COST_2));
         task.setCost(3, row.getCurrency(ActBarField.COST_3));
         task.setCost(4, row.getCurrency(ActBarField.COST_4));
         task.setCost(5, row.getCurrency(ActBarField.COST_5));
         task.setCost(6, row.getCurrency(ActBarField.COST_6));
         task.setCost(7, row.getCurrency(ActBarField.COST_7));
         task.setCost(8, row.getCurrency(ActBarField.COST_8));
         task.setCost(9, row.getCurrency(ActBarField.COST_9));
         task.setCost(10, row.getCurrency(ActBarField.COST_10));
         // Created
         task.setCritical(row.getBoolean(ActBarField.CRITICAL));
         task.setDate(1, row.getDate(ActBarField.DATE_1));
         task.setDate(2, row.getDate(ActBarField.DATE_2));
         task.setDate(3, row.getDate(ActBarField.DATE_3));
         task.setDate(4, row.getDate(ActBarField.DATE_4));
         task.setDate(5, row.getDate(ActBarField.DATE_5));
         task.setDate(6, row.getDate(ActBarField.DATE_6));
         task.setDate(7, row.getDate(ActBarField.DATE_7));
         task.setDate(8, row.getDate(ActBarField.DATE_8));
         task.setDate(9, row.getDate(ActBarField.DATE_9));
         task.setDate(10, row.getDate(ActBarField.DATE_10));
         task.setDuration(row.getDuration(ActBarField.DURATION));
         task.setDuration(1, row.getDuration(ActBarField.DURATION_1));
         task.setDuration(2, row.getDuration(ActBarField.DURATION_2));
         task.setDuration(3, row.getDuration(ActBarField.DURATION_3));
         task.setDuration(4, row.getDuration(ActBarField.DURATION_4));
         task.setDuration(5, row.getDuration(ActBarField.DURATION_5));
         task.setDuration(6, row.getDuration(ActBarField.DURATION_6));
         task.setDuration(7, row.getDuration(ActBarField.DURATION_7));
         task.setDuration(8, row.getDuration(ActBarField.DURATION_8));
         task.setDuration(9, row.getDuration(ActBarField.DURATION_9));
         task.setDuration(10, row.getDuration(ActBarField.DURATION_10));
         task.setEarlyFinish(row.getTimestamp(ActBarField.EARLY_FINISH_DATE, ActBarField.EARLY_FINISH_TIME));
         task.setEarlyStart(row.getTimestamp(ActBarField.EARLY_START_DATE, ActBarField.EARLY_START_TIME));
         task.setEffortDriven(row.getBoolean(ActBarField.EFFORT_DRIVEN));
         task.setFinish(row.getTimestamp(ActBarField.FINISH_DATE, ActBarField.FINISH_TIME));
         task.setFinish(1, row.getTimestamp(ActBarField.FINISH_DATE_1, ActBarField.FINISH_TIME_1));
         task.setFinish(2, row.getTimestamp(ActBarField.FINISH_DATE_2, ActBarField.FINISH_TIME_2));
         task.setFinish(3, row.getTimestamp(ActBarField.FINISH_DATE_3, ActBarField.FINISH_TIME_3));
         task.setFinish(4, row.getTimestamp(ActBarField.FINISH_DATE_4, ActBarField.FINISH_TIME_4));
         task.setFinish(5, row.getTimestamp(ActBarField.FINISH_DATE_5, ActBarField.FINISH_TIME_5));
         task.setFinish(6, row.getTimestamp(ActBarField.FINISH_DATE_6, ActBarField.FINISH_TIME_6));
         task.setFinish(7, row.getTimestamp(ActBarField.FINISH_DATE_7, ActBarField.FINISH_TIME_7));
         task.setFinish(8, row.getTimestamp(ActBarField.FINISH_DATE_8, ActBarField.FINISH_TIME_8));
         task.setFinish(9, row.getTimestamp(ActBarField.FINISH_DATE_9, ActBarField.FINISH_TIME_9));
         task.setFinish(10, row.getTimestamp(ActBarField.FINISH_DATE_10, ActBarField.FINISH_TIME_10));
         // Finish Slack
         // Fixed Cost
         // Fixed Duration
         // Free Float
         task.setIgnoreResourceCalendar(row.getBoolean(ActBarField.IGNORE_RESOURCE_CALENDARS));
         task.setLateFinish(row.getTimestamp(ActBarField.LATE_FINISH_DATE, ActBarField.LATE_FINISH_TIME));
         task.setLateStart(row.getTimestamp(ActBarField.LATE_START_DATE, ActBarField.LATE_START_TIME));
         task.setNumber(1, row.getDouble(ActBarField.NUMBER_1));
         task.setNumber(2, row.getDouble(ActBarField.NUMBER_2));
         task.setNumber(3, row.getDouble(ActBarField.NUMBER_3));
         task.setNumber(4, row.getDouble(ActBarField.NUMBER_4));
         task.setNumber(5, row.getDouble(ActBarField.NUMBER_5));
         task.setNumber(6, row.getDouble(ActBarField.NUMBER_6));
         task.setNumber(7, row.getDouble(ActBarField.NUMBER_7));
         task.setNumber(8, row.getDouble(ActBarField.NUMBER_8));
         task.setNumber(9, row.getDouble(ActBarField.NUMBER_9));
         task.setNumber(10, row.getDouble(ActBarField.NUMBER_10));
         task.setNumber(11, row.getDouble(ActBarField.NUMBER_11));
         task.setNumber(12, row.getDouble(ActBarField.NUMBER_12));
         task.setNumber(13, row.getDouble(ActBarField.NUMBER_13));
         task.setNumber(14, row.getDouble(ActBarField.NUMBER_14));
         task.setNumber(15, row.getDouble(ActBarField.NUMBER_15));
         task.setNumber(16, row.getDouble(ActBarField.NUMBER_16));
         task.setNumber(17, row.getDouble(ActBarField.NUMBER_17));
         task.setNumber(18, row.getDouble(ActBarField.NUMBER_18));
         task.setNumber(19, row.getDouble(ActBarField.NUMBER_19));
         task.setNumber(20, row.getDouble(ActBarField.NUMBER_20));
         task.setPercentageComplete(row.getDouble(ActBarField.PERCENT_COMPLETE));
         // Priority
         // Resource Cost
         task.setResourceNames(row.getString(ActBarField.RESOURCES_ASSIGNED));
         // Revised Duration
         // Revised Finish Date
         // Revised Finish Time
         // Revised Start Date
         // Revised Start Time
         task.setStart(row.getTimestamp(ActBarField.START_DATE, ActBarField.START_TIME));
         // Start Float
         task.setStart(1, row.getTimestamp(ActBarField.START_DATE_1, ActBarField.START_TIME_1));
         task.setStart(2, row.getTimestamp(ActBarField.START_DATE_2, ActBarField.START_TIME_2));
         task.setStart(3, row.getTimestamp(ActBarField.START_DATE_3, ActBarField.START_TIME_3));
         task.setStart(4, row.getTimestamp(ActBarField.START_DATE_4, ActBarField.START_TIME_4));
         task.setStart(5, row.getTimestamp(ActBarField.START_DATE_5, ActBarField.START_TIME_5));
         task.setStart(6, row.getTimestamp(ActBarField.START_DATE_6, ActBarField.START_TIME_6));
         task.setStart(7, row.getTimestamp(ActBarField.START_DATE_7, ActBarField.START_TIME_7));
         task.setStart(8, row.getTimestamp(ActBarField.START_DATE_8, ActBarField.START_TIME_8));
         task.setStart(9, row.getTimestamp(ActBarField.START_DATE_9, ActBarField.START_TIME_9));
         task.setStart(10, row.getTimestamp(ActBarField.START_DATE_10, ActBarField.START_TIME_10));
         // Task Calendar
         // Total Cost
         // Total Float
         // Total Resource Duration
         task.setWork(row.getWork(ActBarField.WORK));
         // _Activity
         // _BarBits
         // _BarStl
         // _yOffset
      }

      m_project.updateStructure();
   }
363853
def activities(self, *args, **kwargs):
        
        if self._client.match_app_version(label='wim', version='<2.0.0', default=True):
            return self._client.activities(*args, scope=self.id, **kwargs)
        else:
            return self._client.activities(*args, scope_id=self.id, **kwargs)
644425
public static task_log[] get(nitro_service client) throws Exception
	{
		task_log resource = new task_log();
		resource.validate("get");
		return (task_log[]) resource.get_resources(client);
	}
33745
def user_activities(self, user_id, extra_query_params={}):
        
        return self.do("GET", "users/{user_id}/activities",
                       url_params={"user_id": user_id},
                       query_params=extra_query_params)
860493
def get_logs(self, project, release_id, **kwargs):
        
        route_values = {}
        if project is not None:
            route_values['project'] = self._serialize.url('project', project, 'str')
        if release_id is not None:
            route_values['releaseId'] = self._serialize.url('release_id', release_id, 'int')
        response = self._send(http_method='GET',
                              location_id='c37fbab5-214b-48e4-a55b-cb6b4f6e4038',
                              version='5.0-preview.2',
                              route_values=route_values,
                              accept_media_type='application/zip')
        if "callback" in kwargs:
            callback = kwargs["callback"]
        else:
            callback = None
        return self._client.stream_download(response, callback=callback)
261222
async function listIntents(projectId) {
  // [START dialogflow_list_intents]
  // Imports the Dialogflow library
  const dialogflow = require('dialogflow');

  // Instantiates clients
  const intentsClient = new dialogflow.IntentsClient();

  // The path to identify the agent that owns the intents.
  const projectAgentPath = intentsClient.projectAgentPath(projectId);

  const request = {
    parent: projectAgentPath,
  };

  console.log(projectAgentPath);

  // Send the request for listing intents.
  const [response] = await intentsClient.listIntents(request);
  response.forEach(intent => {
    console.log('====================');
    console.log(`Intent name: ${intent.name}`);
    console.log(`Intent display name: ${intent.displayName}`);
    console.log(`Action: ${intent.action}`);
    console.log(`Root folowup intent: ${intent.rootFollowupIntentName}`);
    console.log(`Parent followup intent: ${intent.parentFollowupIntentName}`);

    console.log('Input contexts:');
    intent.inputContextNames.forEach(inputContextName => {
      console.log(`\tName: ${inputContextName}`);
    });

    console.log('Output contexts:');
    intent.outputContexts.forEach(outputContext => {
      console.log(`\tName: ${outputContext.name}`);
    });
  });
  // [END dialogflow_list_intents]
}