Apply extra demand originated by Demand Adjustment Factors to
        components after the cron update of all the buffers.
321469
def cron_ddmrp_adu(self, automatic=False):
        """"""
        self.env['ddmrp.adjustment.demand'].search([]).unlink()
        super().cron_ddmrp_adu(automatic)
        today = fields.Date.today()
        for op in self.search([]).filtered('extra_demand_ids'):
            to_add = sum(op.extra_demand_ids.filtered(
                lambda r: r.date_start <= today <= r.date_end
            ).mapped('extra_demand'))
            if to_add:
                op.adu += to_add
                _logger.debug(
                    "DAFs-originated demand applied. %s: ADU += %s"
                    % (op.name, to_add))
258419
protected function refreshApplication()
    {
        if (!$this->foundation->installed()) {
            return;
        }

        $this->call('extension:detect', ['--quiet' => true]);

        $extensions = $this->memory->get('extensions.active', []);

        try {
            foreach ($extensions as $extension => $config) {
                $options = ['name' => $extension, '--force' => true];

                $this->call('extension:refresh', $options);
                $this->call('extension:update', $options);
            }

            $this->foundation->make('antares.extension.provider')->writeFreshManifest();
        } catch (PDOException $e) {
            // Skip if application is unable to make connection to the database.
        }
    }
83767
protected void modified(ComponentContext context) {
        Dictionary<String, ?> newProperties = context.getProperties();
        modified(newProperties, true);
    }
959660
private function loadComponents()
    {
        if (!$this->componentsloaded) {
            foreach ($this->getSettings()->getComponents() as $componentClass) {
                $component = new $componentClass();
                if ($component instanceof ComponentInterface) {
                    $this->addComponent($component);
                }
            }
            $this->componentsloaded = true;
        }
    }
1034271
protected function modifyPreBuild()
    {
        foreach ($this->modifications[ModifiableInterface::PHASE_PRE_BUILD] as $mod) {
            $this->modify($mod, ModifiableInterface::PHASE_PRE_BUILD);
        }
    }
1257609
def cli_reload(self, event):
        """"""

        self.log('Reloading all components.')

        self.update_components(forcereload=True)
        initialize()

        from hfos.debugger import cli_compgraph
        self.fireEvent(cli_compgraph())
1060997
def apply_changes(self):
        """"""
        if self.is_modified:
            self.save_to_conf()
            if self.apply_callback is not None:
                self.apply_callback()

            # Since the language cannot be retrieved by CONF and the language
            # is needed before loading CONF, this is an extra method needed to
            # ensure that when changes are applied, they are copied to a
            # specific file storing the language value. This only applies to
            # the main section config.
            if self.CONF_SECTION == u'main':
                self._save_lang()

            for restart_option in self.restart_options:
                if restart_option in self.changed_options:
                    self.prompt_restart_required()
                    break  # Ensure a single popup is displayed
            self.set_modified(False)
863220
private void scheduleRenewalThresholdUpdateTask() {
        timer.schedule(new TimerTask() {
                           @Override
                           public void run() {
                               updateRenewalThreshold();
                           }
                       }, serverConfig.getRenewalThresholdUpdateIntervalMs(),
                serverConfig.getRenewalThresholdUpdateIntervalMs());
    }
251453
def refresh(self):
        
        self._screen.block_transfer(self._buffer, self._dx, self._dy)
1048169
def update(self):
        
        con = self.subpars.pars.control
        self(con.eqb*con.tind)
1233218
function updateMulti( viewer ) {
    updateOnce( viewer );

    // Request the next frame, unless we've been closed
    if ( viewer.isOpen() ) {
        viewer._updateRequestId = scheduleUpdate( viewer, updateMulti );
    } else {
        viewer._updateRequestId = false;
    }
}
437295
public function adjustPalettes(): void
    {
        // Load custom form config.
        $this->environment->enterContext(FormContext::forForm((int) CURRENT_ID));
        $widgets = $this->environment->getConfig()->get('form.widgets', []);

        foreach ($widgets as $name => $config) {
            if (!empty($config['input_group'])) {
                try {
                    MetaPalettes::appendFields('tl_form_field', $name, 'fconfig', ['bs_addInputGroup']);
                    // @codingStandardsIgnoreStart Catch statement is empty on purpose
                } catch (PaletteNotFoundException | LegacyPaletteNotFoundException $e) {
                    // Palette does not exist. Just skip it.
                }
                // @codingStandardsIgnoreEnd
            }
        }
    }
379672
public function appendAdditionalParams(): void
    {
        if (!empty($this->additionalSearchFields)) {
            $this->normalSearchFields = array_merge_recursive($this->normalSearchFields, $this->additionalSearchFields);
        }

        if (!empty($this->additionalCustomSearchFields)) {
            $this->customSearchFields = array_merge_recursive($this->customSearchFields, $this->additionalCustomSearchFields);
        }

        if (!empty($this->additionalRelationSearchFields)) {
            $this->relationSearchFields = array_merge_recursive($this->relationSearchFields, $this->additionalRelationSearchFields);
        }
    }
526661
private void afterBatch(BatchBackend backend) {
		IndexedTypeSet targetedTypes = searchFactoryImplementor.getIndexedTypesPolymorphic( rootIndexedTypes );
		if ( this.optimizeAtEnd ) {
			backend.optimize( targetedTypes );
		}
		backend.flush( targetedTypes );
	}
1350361
public function applyQueuedFilters()
    {
        foreach ($this->queuedFilters as $filter) {
            $this->filter($filter['className'], $filter['parameters']);
        }
        $this->clearQueuedFilters();
    }
293886
private void applySettings() {
		container.reset();
		WList list = new WList((com.github.bordertech.wcomponents.WList.Type) ddType.getSelected());

		List<String> selected = (List<String>) cgBeanFields.getSelected();
		SimpleListRenderer renderer = new SimpleListRenderer(selected, cbRenderUsingFieldLayout.
				isSelected());

		list.setRepeatedComponent(renderer);

		list.setSeparator((Separator) ddSeparator.getSelected());

		list.setRenderBorder(cbRenderBorder.isSelected());
		container.add(list);
		List<SimpleTableBean> items = new ArrayList<>();
		items.add(new SimpleTableBean("A", "none", "thing"));
		items.add(new SimpleTableBean("B", "some", "thing2"));
		items.add(new SimpleTableBean("C", "little", "thing3"));
		items.add(new SimpleTableBean("D", "lots", "thing4"));
		list.setData(items);

		list.setVisible(cbVisible.isSelected());
	}
248532
protected function adjustDependentFields()
    {
        // Recurring-event fields
        if (array_key_exists('repeats', $this->aProperties) && !$this->repeats) {
            $this->frequency = null;
            $this->interval = self::INTERVAL_ONCE;
            $this->setWeekdays();
            $this->ends_at = null;
        }

        // Datetimes & timezone
        if (!is_null($this->strStartsAt)) {
            $this->aProperties['starts_at'] = Carbon::parse($this->strStartsAt, $this->strTimezone)
                ->setTimezone('UTC')
                ->toDateTimeString();
        }
        if (!is_null($this->strEndsAt)) {
            $this->aProperties['ends_at'] = Carbon::parse($this->strEndsAt, $this->strTimezone)
                ->setTimezone('UTC')
                ->toDateTimeString();
        }
    }