Rebuild the JMX bean.
515672
private void rebuildJmx()
    {
        m_mbeanServer = ManagementFactory.getPlatformMBeanServer();

        try
        {
            buildMBeanInfo();

            //
            //  Remove and reinstall from the MBean registry if it already exists.  Also
            //  remove previous instances.
            //
            ObjectName newName = getJMXName();

            if( m_mbeanServer.isRegistered(newName) )
            {
                log.debug("Removing already registered bean {}", newName);
                m_mbeanServer.unregisterMBean(newName);
            }

            if( m_jmxName != null && !newName.equals(m_jmxName) && m_mbeanServer.isRegistered(m_jmxName) )
            {
                log.debug("Removing the old bean {}", m_jmxName);
                m_mbeanServer.unregisterMBean(m_jmxName);
            }

            m_jmxName = getJMXName();

            if( m_beanInfo != null )
            {
                m_mbeanServer.registerMBean( this, m_jmxName );

                log.debug("Registered new JMX bean '{}'", m_jmxName);
            }
        }
        catch (InstanceAlreadyExistsException e)
        {
            log.debug("JMX bean '{}' already registered, continuing...");
        }
        catch (Exception e)
        {
            throw new ConfigurationException(e);
        }
    }
803417
public function rebuild($indexName)
    {
        $commandClass = $this->getCommandClass('index.rebuild');
        $this->command = new $commandClass($indexName);

        return $this->command;
    }
75718
@Override
	public void rebuildModifiedBundles() {
		List<JoinableResourceBundle> bundlesToRebuild = rsHandler.getBundlesToRebuild();
		for (JoinableResourceBundle bundle : bundlesToRebuild) {
			ResourceBundlePathsIterator bundlePaths = this.getBundlePaths(bundle.getId(), new NoCommentCallbackHandler(), Collections.EMPTY_MAP);
			
			while (bundlePaths.hasNext()){
				BundlePath bundlePath = bundlePaths.next();
				cacheMgr.remove(TEXT_CACHE_PREFIX + bundlePath.getPath());
				cacheMgr.remove(ZIP_CACHE_PREFIX + bundlePath.getPath());
			}
		}
		rsHandler.rebuildModifiedBundles();
	}
721072
public void rebuild(StaplerRequest req, JSONObject json, List<? extends Descriptor<T>> descriptors) throws FormException, IOException {
        List<T> newList = new ArrayList<>();

        for (Descriptor<T> d : descriptors) {
            T existing = get((D)d);
            String name = d.getJsonSafeClassName();
            JSONObject o = json.optJSONObject(name);

            T instance = null;
            if (o!=null) {
                if (existing instanceof ReconfigurableDescribable)
                    instance = (T)((ReconfigurableDescribable)existing).reconfigure(req,o);
                else
                    instance = d.newInstance(req, o);
            } else {
                if (existing instanceof ReconfigurableDescribable)
                    instance = (T)((ReconfigurableDescribable)existing).reconfigure(req,null);
            }

            if (instance!=null)
                newList.add(instance);
        }

        replaceBy(newList);
    }
417132
def build(self):
        """"""
        if self.is_built():  # pragma: no cover
            return
        with _wait_signal(self.loadFinished, 20):
            self.rebuild()
        self._built = True
871114
def add_rebuild(subparsers):
    """"""
    rebuild_parser = subparsers.add_parser(
        'rebuild', help=runner.rebuild_pipelines.__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    rebuild_parser.set_defaults(func=runner.rebuild_pipelines)
    rebuild_parser.add_argument('-a', '--all', action='store_true', help='Rebuild all Pipelines')
    rebuild_parser.add_argument(
        'project',
        nargs='?',
        default=os.getenv('REBUILD_PROJECT'),
        help='Project to rebuild, overrides $REBUILD_PROJECT')
946656
private void rebuildSimpleTab() {

        m_form.removeGroup(CmsPropertyPanel.TAB_SIMPLE);
        CmsPropertyPanel panel = ((CmsPropertyPanel)m_form.getWidget());
        panel.clearTab(CmsPropertyPanel.TAB_SIMPLE);
        if (m_handler.hasEditableName()) {
            m_form.addField(CmsPropertyPanel.TAB_SIMPLE, createUrlNameField());
        }
        internalBuildConfiguredFields();
        m_form.renderGroup(CmsPropertyPanel.TAB_SIMPLE);
    }
12519
public void stop() {
        MBeanServer server = ManagementFactory.getPlatformMBeanServer();
        ObjectName beanName = null;
        try {
            beanName = getObjectName();
            server.unregisterMBean(beanName);
        } catch (InstanceNotFoundException e) {
            LOGGER.debug("JMX bean {0} not found", beanName);
        } catch (Exception e) {
            LOGGER.error(e, JcrI18n.cannotUnRegisterMBean, beanName);
        }
    }
1324848
public function rebuildAction()
    {
        if (! self::checkSignin() ) die(self::$NOT_SIGNIN);

        if ( ($this->actProject) && in_array($this->actProject, $this->projects) ) {

            $cmd = "{$this->php} {$this->indexer} --rebuild --source={$this->adapter}://{$this->username}:{$this->password}@{$this->host}:3306/{$this->dbname} --sql=\"SELECT * FROM {$this->table}\" --project={$this->projectPath}{$this->actProject}.ini";

            echo self::$HAS_REBUILD;

            fastcgi_finish_request();

            shell_exec($cmd);
        } else {
            echo self::NOT_EXISTS;
        }
    }
852875
public function reload()
    {
        // Rebuild the configuration data
        // Re-init
        $this->init(
            array(
                self::CONFIG_KEY_FILE_PATH   => $this->getConfigFilePath(),
                ConfigInterface::KEY_CONTEXT => $this->getContext(),
            )
        );
    }
105774
private function rebuild_index(){
		$this->uindex = array();
		$this->ntindex = array();
		foreach( $this->rules as $i => $rule ){
			list($nt,$rhs) = $rule;
			$sig = self::rule_signature( $nt, $rhs );
			$this->uindex[$sig] = $i;
			$this->ntindex[$nt][] = $i;		
		}
	}
126443
@Override
	public void rebuildDirtyBundles() {
		if (jsMBean != null) {
			jsMBean.rebuildDirtyBundles();
		}
		if (cssMBean != null) {
			cssMBean.rebuildDirtyBundles();
		}
		if (binaryMBean != null) {
			binaryMBean.rebuildDirtyBundles();
		}
	}
537412
private void initJmxExpose() {
		final String packageName = getClass().getName().substring(0,
				getClass().getName().length() - getClass().getSimpleName().length() - 1);
		String webapp = Parameters.getContextPath(Parameters.getServletContext());
		if (webapp.length() >= 1 && webapp.charAt(0) == '/') {
			webapp = webapp.substring(1, webapp.length());
		}
		final List<Counter> counters = collector.getCounters();
		final MBeanServer platformMBeanServer = MBeans.getPlatformMBeanServer();
		try {
			for (final Counter counter : counters) {
				if (!Parameters.isCounterHidden(counter.getName())) {
					final CounterRequestMXBean.CounterRequestMXBeanImpl mxBean = new CounterRequestMXBean.CounterRequestMXBeanImpl(
							counter);
					final ObjectName name = new ObjectName(
							packageName + ":type=CounterRequest,context=" + webapp + ",name="
									+ counter.getName());
					platformMBeanServer.registerMBean(mxBean, name);
					jmxNames.add(name);
				}
			}
			LOG.debug("JMX mbeans registered");
		} catch (final JMException e) {
			LOG.warn("failed to register JMX mbeans", e);
		}
	}
80058
private MiniSatStyleSolver rebuildSolver(int minWeight) {
    final LNGBooleanVector seen = new LNGBooleanVector(nVars());
    seen.growTo(nVars(), false);
    final MiniSatStyleSolver s = newSATSolver();
    for (int i = 0; i < nVars(); i++)
      newSATVariable(s);
    for (int i = 0; i < nHard(); i++)
      s.addClause(hardClauses.get(i).clause(), null);
    for (int i = 0; i < nSoft(); i++) {
      if (softClauses.get(i).weight() < minWeight)
        continue;
      final LNGIntVector clause = new LNGIntVector(softClauses.get(i).clause());
      for (int j = 0; j < softClauses.get(i).relaxationVars().size(); j++)
        clause.push(softClauses.get(i).relaxationVars().get(j));
      s.addClause(clause, null);
    }
    return s;
  }

  /**
   * Rebuilds a SAT solver with the current MaxSAT formula
   * @param functions     the functions
   * @param rhs           the right hand side
   * @param currentWeight the current weight
   * @return the rebuilt solver
   */
  private MiniSatStyleSolver rebuildBMO(final LNGVector<LNGIntVector> functions, final LNGIntVector rhs, int currentWeight) {
    assert functions.size() == rhs.size();
    final MiniSatStyleSolver s = this.rebuildSolver(currentWeight);
    this.objFunction.clear();
    this.coeffs.clear();
    for (int i = 0; i < nSoft(); i++) {
      if (softClauses.get(i).weight() == currentWeight) {
        this.objFunction.push(softClauses.get(i).relaxationVars().get(0));
        this.coeffs.push(softClauses.get(i).weight());
      }
    }
    for (int i = 0; i < functions.size(); i++)
      this.encoder.encodeCardinality(s, functions.get(i), rhs.get(i));
    return s;
  }

  /**
   * Initializes the relaxation variables by adding a fresh variable to the 'relaxationVars' of each soft clause.
   */
  private void initRelaxation() {
    for (final MSSoftClause softClause : this.softClauses) {
      final int l = newLiteral(false);
      softClause.relaxationVars().push(l);
      this.objFunction.push(l);
      this.coeffs.push(softClause.weight());
    }
  }

  @Override
  public String toString() {
    return this.getClass().getSimpleName();
  }
}
465687
def rebuild( self ):
        
        scene      = self.scene()
        if ( not scene ):
            return
        
        sourcePos  = self.sourceItem().viewItem().pos()
        sourceRect = self.sourceItem().viewItem().rect()
        
        targetPos  = self.targetItem().viewItem().pos()
        targetRect = self.targetItem().viewItem().rect()
        
        cellWidth  = scene.ganttWidget().cellWidth()
        
        startX = sourcePos.x() + sourceRect.width() - (cellWidth / 2.0)
        startY = sourcePos.y() + (sourceRect.height() / 2.0)
        
        endX   = targetPos.x() - 2
        endY   = targetPos.y() + (targetRect.height() / 2.0)
        
        path = QPainterPath()
        path.moveTo(startX, startY)
        path.lineTo(startX, endY)
        path.lineTo(endX, endY)
        
        a = QPointF(endX - 10, endY - 3)
        b = QPointF(endX, endY)
        c = QPointF(endX - 10, endY + 3)
        
        self._polygon = QPolygonF([a, b, c, a])
        
        path.addPolygon(self._polygon)
        
        self.setPath(path)
369906
def rebuild( self ):
        
        plugins.init()
        
        self.blockSignals(True)
        self.setUpdatesEnabled(False)
        
        # clear the old editor
        if ( self._editor ):
            self._editor.close()
            self._editor.setParent(None)
            self._editor.deleteLater()
            self._editor = None
        
        # create a new widget
        plugin_class = plugins.widgets.get(self._columnType)
        if ( plugin_class ):
            self._editor = plugin_class(self)
            self.layout().addWidget(self._editor)
        
        self.blockSignals(False)
        self.setUpdatesEnabled(True)
319119
protected void rebuild() {
		// Checks if the number of nodes in the tree exceeds the maximum number
		while (this.rootCount > this.maxNumClusterFeatures) {
			// Doubles the global threshold
			this.T *= 2.0;
			this.root.setThreshold(calcRSquared(1));
			// Adds all nodes to the ClusteringFeature tree again
			Queue<ClusteringTreeNode> Q = new LinkedList<ClusteringTreeNode>();
			Q.addAll(this.root.getChildren());
			this.root.clearChildren();
			this.rootCount = 0;
			while (!Q.isEmpty()) {
				ClusteringTreeNode x = Q.element();
				Q.addAll(x.getChildren());
				x.clearChildren();
				bicoCFUpdate(x);
				Q.remove();
			}
		}
	}