Init script.

@param mixed $args
@param mixed $path
334944
private function initPath($path, $args = null)
    {
        $this->info("Init directory '{$path}'");

        $repositoryUrl = trim(shell_exec("cd {$path} && git config --get remote.origin.url"));
        $packageName = $this->getPackageNameByRepositoryUrl($repositoryUrl);

        $this->initComposerJson($path, $repositoryUrl, $packageName);
        $this->initPackageClassPhp($path, $packageName);

        if (!$this->noTests) {
            $this->initPhpUnitXml($path);
            $this->initPackageClassTestPhp($path, $packageName);
        }

        if (!$this->noCi) {
            $this->initCodeclimateYml($path);
            $this->initTravisYml($path);
            $this->initStyleCiYml($path);
        }
    }
845293
public function script($path, $options = array()) {
		$options = array_merge(array('block' => 'script'), $options);
		$this->_append('js', $path, $options);
	}
1178080
public static void initialize(String[] args, RestartInitializer initializer) {
		initialize(args, false, initializer, true);
	}
1330645
def init_sources(path):
    
    for f in dir_list(path):
        if(os.path.splitext(f)[1][1:] == config.source_ext):
            print "Source file discovered: %s" % (f)
            script = Script(f)
            if (script.filename not in config.sources.keys()):
                config.sources[script.path] = script
                parse.parse_dependencies(script,script)
845777
public function init($path = null)
    {
        $this->clearAll();
        $this->addCommandName(sprintf('%s %s', self::SUBMODULE_COMMAND, self::SUBMODULE_INIT_COMMAND));
        if (null !== $path) {
            $this->addPath($path);
        }

        return $this->getCommand();
    }
1244854
public function init($args)
    {
        if (empty($args)) {
            return;
        }

        // Special case
        if (is_bool($args) && $args) {
            $args = $this->available;
        }

        // Iterate on all
        foreach ($args as $plugin => $settings) {
            $plugin = strtolower($plugin);

            if (!array_key_exists($plugin, $this->available)) {
                continue;
            }

            $plugin = str_replace('_', '-', $plugin);

            $function = Helpers::toFunctionFormat($plugin);
            $function = 'plugin'.ucfirst($function);
            $this->$function($settings);
        }
    }
827467
public function setPath($path)
	{
		$path = trim($path, '/');

		if (strlen($path) > 0)
		{
			$this->_path = '/' . $path . '/';
		}
		else
		{
			$this->_path = '/';
		}

		if ($this->_urlsInited)
		{
			$this->_initUrls();
		}
	}
395924
public function start($path)
    {
        if (is_file($path)) {
            $this->setSchemaFromPath($path);

            return;
        }

        $this->setSchemaFromString($path);
    }
611385
public function setPath(array $path)
    {
        if (count($path) === 0) {
            $msg = "The path argument must be a non-empty array.";
            throw new InvalidArgumentException($msg);
        } else {
            $this->path = $path;
        }
    }
708507
public static function init($path)
    {
        pake_mkdirs($path);

        pake_sh(escapeshellarg(pake_which('hg')).' init -q '.escapeshellarg($path));

        return new pakeMercurial($path);
    }
1027858
public static function init($args=null) {
    if(is_null(self::$instance)) {
      self::$instance = new ErrorClass($args);
    }
    return self::$instance;
  }
871884
public function load(string $path, string ...$paths): void
    {
        array_unshift($paths, $path);
        foreach ($paths as $path) {
            if (!is_readable($path) || is_dir($path) || ($contents = parse_ini_file($path, false)) === false) {
                throw new InvalidArgumentException("{$path} is not a readable file.");
            }
            $this->populate($contents);
        }
    }
966485
def init(args=None):
    """"""
    if args is None:
        args = []
    arr = (ctypes.c_char_p * len(args))()
    arr[:] = args
    _LIB.RabitInit(len(arr), arr)
313561
public function init() {
		
		// Prevents the extension from registering scripts and publishing assets when ran from the command line.
		if ($this->isInConsoleMode() && !$this->isInTests())
			return;

        self::setBooster($this);

        $this->setRootAliasIfUndefined();

		$this->setAssetsRegistryIfNotDefined();

		$this->includeAssets();

		parent::init();
	}
418647
function field_init( $args ) {
		if ( ! isset( $args['css_vars'] ) ) {
			return;
		}
		$args['css_vars'] = (array) $args['css_vars'];
		if ( isset( $args['css_vars'][0] ) && is_string( $args['css_vars'][0] ) ) {
			$args['css_vars'] = [ $args['css_vars'] ];
		}
		foreach ( $args['css_vars'] as $key => $val ) {
			if ( ! isset( $val[1] ) ) {
				$args['css_vars'][ $key ][1] = '$';
			}
		}
		$this->fields[ $args['settings'] ] = $args;
	}
916894
public static function init()
    {
        foreach (self::$_modulePaths as $path) {
            $folder = new Folder($path);
            $modulePaths = $folder->read(true, false, true)[0];

            foreach ($modulePaths as $modulePath) {
                self::_initializeModule($modulePath);
            }
        }

        self::$_initialized = true;
    }
163317
public function start($args)
    {
        parent::start($args);
        if (!$this->_header) {
            return;
        }
        $this->write($this->kahlan() . "\n\n");
        $this->write($this->kahlanBaseline() . "\n\n", 'dark-grey');
        $this->write("src directory  : ", 'blue');
        $this->write(join(', ', array_map('realpath', $this->_srcDir)) . "\n");
        $this->write("spec directory : ", 'blue');
        $this->write(join(', ', array_map('realpath', $this->_specDir)) . "\n");
    }