Enable extension.
498706
public static function enable()
    {
        Builder::macro(self::MACRO_METHOD, function (Fluent $builder, callable $callback = null) {
            $tree = new static($builder);

            if (is_callable($callback)) {
                call_user_func($callback, $tree);
            }

            return $tree;
        });

        NestedSet::enable();
        MaterializedPath::enable();
        ClosureTable::enable();
    }
894411
def do_enable():
    
    try:
        _lines = []
        with open(vext_pth, mode='r') as f:
            for line in f.readlines():
                if line.startswith('#') and line[1:].lstrip().startswith('import '):
                    _lines.append(line[1:].lstrip())
                else:
                    _lines.append(line)

        try:
            os.unlink('%s.tmp' % vext_pth)
        except:
            pass

        with open('%s.tmp' % vext_pth, mode='w+') as f:
            f.writelines(_lines)

        try:
            os.unlink('%s~' % vext_pth)
        except:
            pass

        os.rename(vext_pth, '%s~' % vext_pth)
        os.rename('%s.tmp' % vext_pth, vext_pth)
    except IOError as e:
        if e.errno == 2:
            # vext file doesn't exist, recreate it.
            create_pth()
257024
public void enable() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(this, tc, "enable chain " + this);
        }
        enabled = true;
    }
379615
public static function enable()
    {
        foreach (self::$validTypes as $type) {
            Field::macro("asFile$type", function (Field $builder) use ($type) {
                return new static($builder->getClassMetadata(), $builder->getName(), $type);
            });
        }
    }
1362734
public function enable() {
        // suppress all errors
        $this->errorHandler->addErrorHandler(function() {return true;});
        $this->errorHandler->addExceptionHandler(function(Exception $ex) {return true;});
    }
715597
public static function enable(): void
    {
        self::$debugbar = new StandardDebugBar();
        self::$debugbar->addCollector(new ViewCollector());

        self::$renderer = self::$debugbar->getJavascriptRenderer('./vendor/maximebf/debugbar/src/DebugBar/Resources/');
    }
646582
function setExtensions(swig, extensions) {
  for (var name in extensions) {
    swig.setExtension(name, extensions[name]);
  }


}
229546
public static function enable()
    {
        Field::macro(self::MACRO_METHOD, function (Field $field) {
            return new static($field->getClassMetadata(), $field->getName());
        });
    }
529787
final static void enable() {
		if (lifeCycle.getStatus().equals(RunStatus.READY) || lifeCycle.getStatus().equals(RunStatus.STOPPED)) {
			init();
		} else if (lifeCycle.getStatus().equals(RunStatus.DISABLED)) {
			lifeCycle.setStatus(RunStatus.RUNNING);
		}
	}
68568
def add_extension(self, extension):
        
        instance = werkzeug.utils.import_string(extension)

        if hasattr(instance, 'register'):
            instance.register(self)

        self._extensions.append(instance)
1154248
private void extend() {
        while (!this.extension.empty()) {
            final int lit = this.extension.back();
            int other;
            boolean satisfied = false;
            while ((other = this.extension.back()) != 0) {
                this.extension.pop();
                if (val(other) == VALUE_TRUE) { satisfied = true; }
            }
            this.extension.pop();
            if (!satisfied) { this.vals.set(Math.abs(lit), sign(lit)); }
        }
    }
183051
def enable(name, **kwargs):
    '''
    
    '''
    if _service_is_upstart(name):
        return _upstart_enable(name)
    executable = _get_service_exec()
    cmd = '{0} -f {1} defaults'.format(executable, name)
    return not __salt__['cmd.retcode'](cmd, python_shell=False)
1305298
public void enable() {

        updateState("up");
        m_enabled = true;
        // show the current file input field
        if (m_fileInput != null) {
            m_fileInput.getElement().getStyle().clearDisplay();
        }
        super.setTitle(m_title);
    }
430199
def enable(self, timeout=0):
        
        self.client.api.enable_plugin(self.name, timeout)
        self.reload()
24510
public void registerExtensions(final Class<?>... extensions) {
        for (Class<?> extension : extensions) {
            register(ConfigItem.Extension, extension);
        }
    }
892820
def enable(cls, args):
        """"""
        mgr = NAppsManager()

        if args['all']:
            napps = mgr.get_disabled()
        else:
            napps = args['<napp>']

        cls.enable_napps(napps)
810728
function setExtension(filename, ext) {
    return path.join(
        path.dirname(filename),
        path.basename(filename, path.extname(filename)) + ext
    );
}