Makes sure that $this->groups and $this->processors are initialized
548511
private function ensureInitialized()
    {
        if (null !== $this->initialData) {
            $this->buildProcessors();
            $this->buildGroups();
            $this->initialData = null;
        }
    }
994697
def _init_groups(self):
        
        for group_id, conf in self.group_conf.items():
            self.parent_input_dict[group_id] = Queue(conf.get('input_max_size', 0))
            self.parent_output_dict[group_id] = Queue(conf.get('output_max_size', 0))
1181852
private function initialize()
    {
        if ($this->initialized) {
            return;
        }

        if ($this->session->isStarted() && $this->session->get('stack') !== null) {
            $paths = $this->session->get('stack');
            $this->files = $this->hydrateList($paths);
        } else {
            $paths = $this->users->getCurrentUser()['stack'];
            $this->files = $this->hydrateList($paths);
            $this->session->set('stack', $this->persistableList());
        }

        $this->initialized = true;
    }
53587
protected function initialize()
    {
        if ($this->initialized) {
            return;
        }

        $this->ensureDirectoryExists($this->directory, $this->create);
        $this->initialized = true;
    }
843395
public function init()
    {
        $this->socketurl = sprintf($this->config->mastersocket->value,
            crc32(Daemon::$config->pidfile->value . "\x00" . Daemon::$config->user->value . "\x00" . Daemon::$config->group->value));
        if (Daemon::$process instanceof Thread\IPC) {
            $this->pool = MasterPool::getInstance(['listen' => $this->socketurl]);
            $this->pool->appInstance = $this;
            $this->pool->onReady();
        }
    }
241610
protected function initialize()
	{
		foreach($GLOBALS['BOOTSTRAP']['wrappers'] as $groupName => $group) {
			foreach($group as $type => $config) {
				if($config['name'] == $this->model->type) {
					$this->group = $groupName;
					$this->type  = $type;
					return true;
				}
			}
		}

		return false;
	}
1059617
public function init()
    {
        $children = array();
        foreach ($this->children as $child_widget) {
            $children[] = $this->remove($child_widget);
        }

        $fieldset = new SwatFieldset();
        $fieldset->id = $fieldset->getUniqueId();
        $prototype_id = $fieldset->id;

        foreach ($children as $child_widget) {
            $fieldset->add($child_widget);
        }

        $this->add($fieldset);

        parent::init();

        foreach ($this->replicators as $id => $title) {
            $fieldset = $this->getWidget($prototype_id, $id);
            $fieldset->title = $title;
        }
    }
491681
public function init()
    {
        $this->db = \PHPDaemon\Clients\Mongo\Pool::getInstance($this->config->mongoclientname->value);
        $this->cache = \PHPDaemon\Clients\Memcache\Pool::getInstance($this->config->memcacheclientname->value);
        if (!isset($this->config->limitinstances)) {
            $this->log('missing \'limitInstances\' directive');
        }
    }
1323906
public function init()
    {
        $children = array();
        foreach ($this->children as $child_widget) {
            $children[] = $this->remove($child_widget);
        }

        $page = new SwatNoteBookPage();
        $page->id = $page->getUniqueId();
        $page_prototype_id = $page->id;

        foreach ($children as $child_widget) {
            $page->add($child_widget);
        }

        $this->add($page);

        parent::init();

        foreach ($this->replicators as $id => $title) {
            $page = $this->getWidget($page_prototype_id, $id);
            $page->title = $title;
        }

        $note_book = new SwatNoteBook($this->id . '_notebook');

        foreach ($this->children as $child_widget) {
            $page = $this->remove($child_widget);
            $note_book->addPage($page);
        }

        $this->add($note_book);
    }
1225395
protected static function initId()
    {
        foreach (self::$_workers as $worker_id => $worker) {
            $new_id_map = array();
            for($key = 0; $key < $worker->count; $key++) {
                $new_id_map[$key] = isset(self::$_idMap[$worker_id][$key]) ? self::$_idMap[$worker_id][$key] : 0;
            }
            self::$_idMap[$worker_id] = $new_id_map;
        }
    }
492473
protected function Init()
    {
        $this->group = new Membergroup(Request::GetData('membergroup'));
        $this->AddNameField();
        $this->AddSubmit();
        return parent::Init();
    }
396670
public function init() {

		parent::init();

		// Views
		$this->setViewPath( '@cmsgears/module-community/admin/views/group/post' );

		// Permission
		$this->crudPermission = CmnGlobal::PERM_GROUP_ADMIN;

		// Config
		$this->type	= CoreGlobal::TYPE_DEFAULT;

		$this->templateType = CmnGlobal::TYPE_GROUP_POST;

		// Services
		$this->modelService = Yii::$app->factory->get( 'groupPostService' );

		$this->parentService = Yii::$app->factory->get( 'groupService' );

		$this->templateService = Yii::$app->factory->get( 'templateService' );
	}
685188
public function init() {

		parent::init();

		// Permission
		$this->crudPermission = CmnGlobal::PERM_GROUP_ADMIN;

		// Services
		$this->modelService	= Yii::$app->factory->get( 'groupService' );
		$this->metaService	= Yii::$app->factory->get( 'groupMetaService' );
	}
163931
public function initialize()
    {
        parent::initialize();
        $this->select = new SelectClause($this);
        $this->from   = new FromClause($this);
        $this->group  = new GroupClause($this);
    }
605067
private function initialize()
    {
        if ($this->callable !== null) {
            // $func will be $adapter->fetchObjectFromCache();
            $func                      = $this->callable;
            $result                    = $func();
            $this->hasValue            = $result[0];
            $this->value               = $result[1];
            $this->prevTags            = isset($result[2]) ? $result[2] : [];
            $this->expirationTimestamp = null;

            if (isset($result[3]) && is_int($result[3])) {
                $this->expirationTimestamp = $result[3];
            }

            $this->callable = null;
        }
    }
486393
def _init(self):
        
        assert self._name
        assert self._group

        # self.n = 0
        self.u = []
        self.name = []
        self.idx = []
        self.uid = {}

        if not self._unamey:
            self._unamey = self._algebs
        else:
            assert len(self._unamey) == len(self._algebs)

        if not self._unamex:
            self._unamex = self._states
        else:
            assert len(self._unamex) == len(self._states)

        for item in self._data.keys():
            self.__dict__[item] = []

        for bus in self._ac.keys():
            for var in self._ac[bus]:
                self.__dict__[var] = []
        for node in self._dc.keys():
            for var in self._dc[node]:
                self.__dict__[var] = []

        for var in self._states + self._algebs + self._service:
            self.__dict__[var] = []

        self._flags['sysbase'] = False
        self._flags['allocate'] = False
        self._flags['address'] = False
889231
protected function initializeEach() {
        foreach ($this->providers as $class => &$data) {
            if ( ! array_contains(array_get($data, 'tags'), ProviderTag::INITIALIZED)) {
                $this->configure();

                array_add($data, 'tags', ProviderTag::INITIALIZED);
                $instance = array_get($data, 'instance');

                if (method_exists($instance, 'initialize')) {
                    $this->getProviderInvoker()
                        ->initialize($instance, $this->getSharedArguments());
                }

                $this->initializeEach();
                break;
            }
        }
    }