Populate the grid with the words.

@return void
548452
private function populate()
    {
        foreach ($this->words as $word) {
            $rowOrColumn = rand(1, 2);

            if ($rowOrColumn == 1) {
                shuffle($this->rowsAvailable);

                foreach ($this->rowsAvailable as $key => $row) {
                    $maxStart = ($this->size - Utils::stringLength($word));
                    $startOptions = Utils::integerAsOptions($maxStart);
                    foreach ($startOptions as $startIndex) {
                        if ($this->tryWordInRow($word, $row, $startIndex)) {
                            $this->insertWordIntoRow($word, $row, $startIndex);
                            unset($this->rowsAvailable[$key]);
                            break(2);
                        }
                    }
                }
            } else {
                shuffle($this->columnsAvailable);

                foreach ($this->columnsAvailable as $key => $column) {
                    $maxStart = ($this->size - Utils::stringLength($word));
                    $startOptions = Utils::integerAsOptions($maxStart);
                    foreach ($startOptions as $startIndex) {
                        if ($this->tryWordInColumn($word, $column, $startIndex)) {
                            $this->insertWordIntoColumn($word, $column, $startIndex);
                            unset($this->columnsAvailable[$key]);
                            break(2);
                        }
                    }
                }
            }
        }
    }
316320
public function populate($data = array())
    {
        if (isset($data['title']) && $data['title'] !== null) {
            $this->title = $data['title'];
        }

        if (isset($data['identifier']) && $data['identifier'] !== null) {
            $this->identifier = $data['identifier'];
        }

        if (isset($data['active']) && $data['active'] !== null) {
            $this->active = $data['active'];
        }

        if (isset($data['picto']) && $data['picto'] !== null) {
            $this->picto = $data['picto'];
        }
    }
333356
def load_words(self, words):
        
        self._dictionary.update([word.lower() for word in words])
        self._update_dictionary()
928646
public function populate($data = array())
    {
        if (isset($data['title']) && $data['title'] !== null) {
            $this->title = $data['title'];
        }
        if (isset($data['description']) && $data['description'] !== null) {
            $this->description = $data['description'];
        }
        if (isset($data['formjsonified']) && $data['formjsonified'] !== null) {
            $this->formjsonified = $data['formjsonified'];
        }
        if (isset($data['formtemplate']) && $data['formtemplate'] !== null) {
            $this->formtemplate = $data['formtemplate'];
        }
        if (isset($data['active']) && $data['active'] !== null) {
            $this->active = $data['active'];
        }
    }
412637
public function populate($data = array())
    {
        if (isset($data['name']) && $data['name'] !== null) {
            $this->name = $data['name'];
        }
        if (isset($data['code']) && $data['code'] !== null) {
            $this->code = $data['code'];
        }
        if (isset($data['phase']) && $data['phase'] !== null) {
            $this->phase = $data['phase'];
        }
        if (isset($data['active']) && $data['active'] !== null) {
            $this->active = $data['active'];
        }
    }
26315
protected function initialize()
    {
        $this->perPageName = $this->grid->model()->getPerPageName();

        $this->perPage = (int) app('request')->input(
            $this->perPageName,
            $this->grid->perPage
        );
    }
720712
public function populateIndex()
    {
        $nodeRepository = $this->em->getRepository('KunstmaanNodeBundle:Node');
        $nodes = $nodeRepository->getAllTopNodes();

        foreach ($nodes as $node) {
            $this->currentTopNode = $node;
            foreach ($this->locales as $lang) {
                $this->createNodeDocuments($node, $lang);
            }
        }

        if (!empty($this->documents)) {
            $this->searchProvider->addDocuments($this->documents);
            $this->documents = [];
        }
    }
13583
public function populate_db_object_items() {
		$locators = array(
			'post',
			'term',
			'user',
		);

		foreach ( $locators as $locator_name ) {
			$items = $this->generate_locator_items( $locator_name );
			$this->get_trail()->add_item( $items );
		}
	}
1218784
private function buildRow(): void
    {
        if ($this->model->noGutters) {
            $this->grid->addClass('no-gutters');
        }

        if ($this->model->rowClass) {
            $this->grid->addClass($this->model->rowClass);
        }

        if ($this->model->align) {
            $this->grid->align($this->model->align);
        }

        if ($this->model->justify) {
            $this->grid->justify($this->model->justify);
        }
    }
103052
public function populate()
    {
        foreach ($this->languages as $language => $key) {
            $contents = $this->contentRepository->findByContentTypeAndCondition($language);

            $this->multipleIndexor->indexMultiple($contents);
        }
    }
925355
public function populate(\stdClass $data)
    {
        $this->CodEmpresa = $data->codEmpresa;
        $this->CodIntegracaoContaCorrente = $data->codIntegracaoContaCorrente;
        $this->CodTipoMovto = $data->codTipoMovto;
        $this->DatMovimento = $data->datMovimento;
        $this->VlrMovimento = $data->vlrMovimento;
        $this->DscComplemento = $data->dscComplemento;
        $this->CodIntegracaoTipoMovtoCc = $data->codIntegracaoTipoMovtoCc;
        $this->CodIntegracaoMovtoCc = $data->codIntegracaoMovtoCc;
        $this->CodIntegracaoFilial = $data->codIntegracaoFilial;
    }
90488
private function populateOptions()
    {
        $flatOptions = $this->getRawOptions();

        $this->parser->parseInput($flatOptions);

        $parsed = $this->parser->getOptions();

        foreach ($parsed as $optionName => $optionValue) {
            //ignores any options the user sent which were not defined
            $this->options->setValueIfExists($optionName, $optionValue);
        }
    }
1148493
public function index()
    {
        $this->loadModel('Taxonomy.Vocabularies');
        $vocabularies = $this->Vocabularies
            ->find()
            ->order(['ordering' => 'ASC'])
            ->all();

        $this->title(__d('taxonomy', 'Vocabularies'));
        $this->set(compact('vocabularies'));
        $this->Breadcrumb
            ->push('/admin/system/structure')
            ->push(__d('taxonomy', 'Taxonomy'), '/admin/taxonomy/manage')
            ->push(__d('taxonomy', 'Vocabularies'), '#');
    }
574347
def _populate(self):
        """"""
        self.add(self._core_data)
        if self.initial_data:
            self.add(self.initial_data)
1081089
public function populate($data = array())
    {
        if (isset($data['id']) && $data['id'] != null) {
            $this->id    = $data['id'];
        }

        if (isset($data['roleId']) && $data['roleId'] != null) {
            $this->roleId    = $data['roleId'];
        }
        if (isset($data['parent']) && $data['parent'] != null) {
            $this->parent    = $data['parent'];
        }
    }
1374919
public function populate($data = array())
    {
        if (isset($data['name']) && $data['name'] !== null) {
            $this->name = $data['name'];
        }

        if (isset($data['type']) && $data['type'] !== null) {
            $this->type = $data['type'];
        }
    }
54504
public function populate($data = array())
    {
        $this->question = (isset($data['question'])) ? $data['question'] : null;
        $this->answer = (isset($data['answer'])) ? $data['answer'] : null;
        $this->isActive = (isset($data['isActive'])) ? $data['isActive'] : 0;
        $this->position = (isset($data['position'])) ? $data['position'] : 0;
    }