Returns the core of the plugin, limited to the validation and normalization
part of `slate-edit-list`, and utils.

Import this directly: `import EditListCore from '@gitbook/slate-edit-table/lib/core'`
if you don't care about behavior/rendering.
485591
function core(
    // Options for the plugin
    opts: OptionsFormat = {}
): Object {
    opts = new Options(opts);

    return {
        schema: schema(opts),
        validateNode: validateNode(opts),

        utils: {
            getCurrentItem: getCurrentItem.bind(null, opts),
            getCurrentList: getCurrentList.bind(null, opts),
            getItemDepth: getItemDepth.bind(null, opts),
            getItemsAtRange: getItemsAtRange.bind(null, opts),
            getPreviousItem: getPreviousItem.bind(null, opts),
            isList: isList.bind(null, opts),
            isSelectionInList: isSelectionInList.bind(null, opts)
        },

        changes: {
            decreaseItemDepth: bindAndScopeChange(opts, decreaseItemDepth),
            increaseItemDepth: bindAndScopeChange(opts, increaseItemDepth),
            splitListItem: bindAndScopeChange(opts, splitListItem),
            unwrapList: bindAndScopeChange(opts, unwrapList),
            wrapInList: wrapInList.bind(null, opts)
        }
    };
}
282162
def summary(self):
        
        if self.get('Summary'):
            return self.get('Summary')

        body, more, is_markdown = self._entry_content
        return TrueCallableProxy(
            self._get_summary,
            body or more) if is_markdown else CallableProxy(None)
147539
def _core_properties_part(self):
        
        try:
            return self.part_related_by(RT.CORE_PROPERTIES)
        except KeyError:
            core_properties_part = CorePropertiesPart.default(self)
            self.relate_to(core_properties_part, RT.CORE_PROPERTIES)
            return core_properties_part
865792
function EditList(
    // Options for the plugin
    opts: OptionsFormat = {}
): Object {
    opts = new Options(opts);
    const corePlugin = core(opts);

    return {
        ...corePlugin,

        onKeyDown: onKeyDown.bind(null, opts)
    };
}
1161479
public function coreUpgradePreamble() {
		$basename = $this->getBaseName();
		$updateable_plugins = get_plugin_updates();
		if ( $updateable_plugins[ $basename ]->update->new_version ?? null ) {
			$plugin_data = $updateable_plugins[ $basename ]; // $plugin_data is in \stdClass format
		} else {
			return; // Bail
		}

		$untested_plugins = $this->getUntestedPlugins( $plugin_data->update->new_version );
		if ( ! empty( $untested_plugins ) ) {
			echo $this->blade->render(
				'admin.incompatible-plugins', [
					'h2' => __( 'Plugins For Pressbooks', 'pressbooks' ),
					'version' => $plugin_data->update->new_version,
					'plugins' => $untested_plugins,
					'table_class' => 'wp-list-table widefat striped',
				]
			);
		}
	}
175748
def get(self):
        
        return StepContextContext(
            self._version,
            flow_sid=self._solution['flow_sid'],
            engagement_sid=self._solution['engagement_sid'],
            step_sid=self._solution['step_sid'],
        )
849283
private static FeatureCoreStyleExtension getFeatureStyleExtension(
			GeoPackageCore geoPackage) {

		RelatedTablesCoreExtension relatedTables = new RelatedTablesCoreExtension(
				geoPackage) {
			@Override
			public String getPrimaryKeyColumnName(String tableName) {
				return null;
			}
		};

		return new FeatureCoreStyleExtension(geoPackage, relatedTables) {
		};
	}
908495
function() {
    return {
      compose: app.composeCore,
      project: app.name,
      opts: {
        mode: kbox.core.deps.get('mode') === 'gui' ? 'collect' : 'attach',
        services: ['cli'],
        app: app
      }
    };
  }
377980
def docelement(self):
        
        #This is needed since the decorating documentation
        #for types and executables is in the body of the module, but when they
        #get edited, the edit belongs to the type/executable because the character
        #falls within the absstart and end attributes.
        if self._docelement is None:
            if isinstance(self.element, Module):
                self._docelement = self.element
            else:
                ichar = self.element.module.charindex(self.icached[0], 1)
                if (ichar > self.element.docstart and ichar <= self.element.docend):
                    self._docelement = self.element.parent
                else:
                    self._docelement = self.element

        return self._docelement
73404
public Head getHead() {
    if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_head == null)
      jcasType.jcas.throwFeatMissing("head", "de.julielab.jules.types.ace.EntityMention");
    return (Head)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EntityMention_Type)jcasType).casFeatCode_head)));}
921824
def core(corename)
      raise "Core #{corename} not found" unless cores.include? corename.to_s
      SimpleSolrClient::Core.new(@base_url, corename.to_s)
    end
297646
private void initEditorStates() {

        m_editorState = new HashMap<CmsMessageBundleEditorTypes.EditMode, EditorState>();
        List<TableProperty> cols = null;
        switch (m_bundleType) {
            case PROPERTY:
            case XML:
                if (hasDescriptor()) { // bundle descriptor is present, keys are not editable in default mode, maybe master mode is available
                    m_editorState.put(CmsMessageBundleEditorTypes.EditMode.DEFAULT, getDefaultState());
                    if (hasMasterMode()) { // the bundle descriptor is editable
                        m_editorState.put(CmsMessageBundleEditorTypes.EditMode.MASTER, getMasterState());
                    }
                } else { // no bundle descriptor given - implies no master mode
                    cols = new ArrayList<TableProperty>(1);
                    cols.add(TableProperty.KEY);
                    cols.add(TableProperty.TRANSLATION);
                    m_editorState.put(CmsMessageBundleEditorTypes.EditMode.DEFAULT, new EditorState(cols, true));
                }
                break;
            case DESCRIPTOR:
                cols = new ArrayList<TableProperty>(3);
                cols.add(TableProperty.KEY);
                cols.add(TableProperty.DESCRIPTION);
                cols.add(TableProperty.DEFAULT);
                m_editorState.put(CmsMessageBundleEditorTypes.EditMode.DEFAULT, new EditorState(cols, true));
                break;
            default:
                throw new IllegalArgumentException();
        }

    }
1171117
protected static function fetch_core_version() {
        global $CFG;
        if (self::$version === null) {
            $version = null; // Prevent IDE complaints.
            require($CFG->dirroot . '/version.php');
            self::$version = $version;
        }
        return self::$version;
    }
1067368
def get_core(self):
        

        if self.maplesat and self.status == False:
            return pysolvers.maplecm_core(self.maplesat)
385423
def get_core_source_partial():
    
    global _core_source_partial

    if _core_source_partial is None:
        _core_source_lock.acquire()
        try:
            if _core_source_partial is None:
                _core_source_partial = PartialZlib(
                    _get_core_source().encode('utf-8')
                )
        finally:
            _core_source_lock.release()

    return _core_source_partial
451650
function()
		{
			var head = this.$.getElementsByTagName( 'head' )[0];
			if ( !head )
				head = this.getDocumentElement().append( new CKEDITOR.dom.element( 'head' ), true );
			else
			head = new CKEDITOR.dom.element( head );

			return (
			this.getHead = function()
				{
					return head;
				})();
		}
121196
def from_inline(cls: Type[ESCoreEndpointType], inline: str) -> ESCoreEndpointType:
        
        m = ESCoreEndpoint.re_inline.match(inline)
        if m is None:
            raise MalformedDocumentError(ESCoreEndpoint.API)
        server = m.group(1)
        port = int(m.group(2))
        return cls(server, port)