Initialize the layer with the fan in from the previous layer and return
the fan out for this layer.

@param int $fanIn
@return int
484850
public function initialize(int $fanIn) : int
    {
        $fanOut = $this->neurons;

        $w = $this->weightInitializer->initialize($fanIn, $fanOut);
        $b = $this->biasInitializer->initialize(1, $fanOut)->columnAsVector(0);

        $this->weights = new MatrixParam($w);
        $this->biases = new VectorParam($b);

        return $fanOut;
    }
643226
protected function prepare(int $size): int
    {
        if ($size <= 0) {
            return 0;
        }

        for ($i = 0; $i < $size; $i++) {
            $res = $this->create();
            $this->chan->push($res);
        }

        return $size;
    }
862687
public function getFans()
    {
        if ($this->_fans === false) {
            $this->_fans = Fans::findByOpenId($this->message['FromUserName']);
        }
        return $this->_fans;
    }
91479
private function getCombiningClass(int $char): int
    {
        return isset($this->namePrepData->normalizeCombiningClasses[$char])
            ? $this->namePrepData->normalizeCombiningClasses[$char]
            : 0;
    }
357836
public function getCurrentRealmsIncrement(): int
    {
        $currentDifficulty = $this->getValue();
        $maximalDifficulty = $this->getMaximal();
        if ($currentDifficulty <= $maximalDifficulty) {
            return 0;
        }
        $additionalDifficulty = $currentDifficulty - $maximalDifficulty;
        $steps = $additionalDifficulty / $this->getDifficultyAddition()->getDifficultyAdditionPerStep();
        $realmsIncrement = $steps * $this->getDifficultyAddition()->getRealmsChangePerAdditionStep();

        return (int)\ceil($realmsIncrement); // even a tiny piece of a higher realm means the lower realm is not able to create that formula
    }
632876
protected function getOriginalIni($settingName)
    {
        if (isset($this->originalIni[$settingName])) {
            return $this->originalIni[$settingName];
        }
        return ini_get($settingName);
    }
19566
public static function INT($number)
    {
        $number    = PHPExcel_Calculation_Functions::flattenSingleValue($number);

        if (is_null($number)) {
            return 0;
        } elseif (is_bool($number)) {
            return (int) $number;
        }
        if (is_numeric($number)) {
            return (int) floor($number);
        }
        return PHPExcel_Calculation_Functions::VALUE();
    }
579477
protected function execute(InputInterface $input, OutputInterface $output): int
    {
        $this->input  = $input;
        $this->output = $output;
        $this->io     = new SymfonyStyle($this->input, $this->output);

        return $this->go();
    }
65684
public function getCustomerByNumber($number)
    {
        /** @var CustomerFbApi $response */
        $response = $this->call(new Request('customer.get', array('customer_number' => $number)), 'DVelopment\FastBill\Model\CustomerFbApi');
        $customers = $response->getResponse()->getCustomers();

        return reset($customers);
    }
482360
final protected function registerBasePlugins():int
    {

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'webassets',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "webassets")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'jquery',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "jquery")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'fawesome_css',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "fontawesomecss")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'fawesome_less',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "fontawesomeless")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'fawesome_scss',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "fontawesomescss")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'fawesome_fonts',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "fontawesomefonts")
        );


        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'framework_info',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "finfo")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'system_info',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "sinfo")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'bootstrap_js',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "btspjs")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'bootstrap_css',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "btspcss")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'animate_css',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "animatecss")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'css',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "css")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'js',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "js")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'css_libs',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "csslibs")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'js_libs',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "jslibs")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'css_manager',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "cssmanager")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'js_manager',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "jsmanager")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'img_manager',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "imgmanager")
        );


        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'css_iumio',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "cssiumio")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'js_iumio',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "jsiumio")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'img_iumio',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "imgiumio")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'skel',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "skel")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'util',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "util")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'route',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "route")
        );
        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'taskbar',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "taskbar")
        );

        self::$instance->registerPlugin(
            \Smarty::PLUGIN_FUNCTION,
            'mercure',
            array("iumioFramework\Core\Additional\EngineTemplate\ViewBasePlugin", "mercurefile")
        );

        return (1);
    }
275436
private function index(string $char): int {
        if (isset($this->index[$char])) {
            return $this->index[$char];
        }

        $this->index_count++;
        $this->index[$char] = $this->index_count;
        return $this->index_count;
    }
526645
public function getFootprint(): int
    {
        $layerWidth = 0;
        $layerLength = 0;

        foreach ($this->items as $item) {
            $layerWidth = max($layerWidth, $item->getX() + $item->getWidth());
            $layerLength = max($layerLength, $item->getY() + $item->getLength());
        }

        return $layerWidth * $layerLength;
    }
1339849
public function first(callable $fn = null, $default = null)
    {
        if (is_null($fn)) {
            return count($this->items) > 0 ? reset($this->items) : $default;
        }

        foreach ($this->getIterator() as $value) {
            if (call_user_func($fn, $value)) {
                return $value;
            }
        }

        return $default;
    }
1089031
public function initialize(int $fanIn) : int
    {
        $fanOut = $fanIn;

        $beta = $this->betaInitializer->initialize(1, $fanOut)->columnAsVector(0);
        $gamma = $this->gammaInitializer->initialize(1, $fanOut)->columnAsVector(0);

        $this->beta = new VectorParam($beta);
        $this->gamma = new VectorParam($gamma);

        $this->width = $fanOut;

        return $fanOut;
    }
374028
public function initial($collection=null, $n=null) {
    list($collection, $n) = self::_wrapArgs(func_get_args(), 2);
    
    $collection = (array) self::_collection($collection);
    
    if(is_null($n)) $n = 1;
    $first_index = count($collection) - $n;
    $__ = new self;
    return self::_wrap($__->first($collection, $first_index));
  }
222811
public function init($configuration)
    {
        $returnValue = (bool) false;

        
    	if (isset($configuration['file'])) {
    		$this->filename = $configuration['file'];
    		$returnValue = parent::init($configuration);
    	} else {
    		$returnValue = false;
    	}
        

        return (bool) $returnValue;
    }
1215294
public function lengthIn($lengthIn, $error) {
        if ($this->_exist) {
            array_push($this->_constraints, ['type' => self::LENGTHIN, 'value' => $lengthIn, 'message' => $error]);
        }

        return $this;
    }