Any changes there should get reflected here and vice versa.
764067
static public long computeMinimumHeapRqt(int tableCount, int sitesPerHost, int kfactor)
    {
        long baseRqt = 384;
        long tableRqt = 10 * tableCount;
        // K-safety Heap consumption drop to 8 MB (per node)
        // Snapshot cost 32 MB (per node)
        // Theoretically, 40 MB (per node) should be enough
        long rejoinRqt = (kfactor > 0) ? 128 * sitesPerHost : 0;
        return baseRqt + tableRqt + rejoinRqt;
    }
475052
public function change() {
		$table = $this->table('queued_tasks');
		$table->addColumn('jobtype', 'string', ['length' => 45])
			->addColumn('data', 'text', ['null' => true])
			->addColumn('group', 'string', ['length' => 255, 'null' => true, 'default' => null])
			->addColumn('reference', 'string', ['length' => 255, 'null' => true, 'default' => null])
			->addColumn('created', 'datetime', ['null' => true, 'default' => null])
			->addColumn('notbefore', 'datetime', ['null' => true, 'default' => null])
			->addColumn('fetched', 'datetime', ['null' => true, 'default' => null])
			->addColumn('completed', 'datetime', ['null' => true, 'default' => null])
			->addColumn('progress', 'float', ['null' => true])
			->addColumn('failed', 'integer', ['default' => 0])
			->addColumn('failure_message', 'text', ['null' => true])
			->addColumn('workerkey', 'string', ['length' => 45, 'null' => true, 'default' => null])
			->create();
	}
317928
def _config_changed(self, data, stat):
        """"""

        self.config = json.loads(data)

        if self.cb:
            self.cb(self.config)
1055717
public void analyze() {
    for (String key : importSource.getKeys()) {
      Change change = createChange(key);
      setConflictAttributes(change);

      if (change.getType() != Change.TYPE_NO_CHANGE) {
        if (change.isConflicting()) {
          conflictingChanges.add(change);
        } else {
          nonConflictingChanges.add(change);
        }
      }
    }
  }
70146
public function change() {
		$this->table('queue_processes')
			->addColumn('workerkey', 'string', [
				'length' => 45,
				'null' => false,
				'default' => null,
				'encoding' => 'utf8mb4',
				'collation' => 'utf8mb4_unicode_ci',
			])
			->save();

		$this->table('queue_processes')
			->addIndex(['workerkey'], ['unique' => true])
			->save();
	}
752384
public function change() {
		$table = $this->table('queue_processes');
		$table
			->addColumn('pid', 'string', ['null' => false, 'default' => null, 'length' => 30])
			->addColumn('created', 'datetime', ['null' => true, 'default' => null])
			->addColumn('modified', 'datetime', ['null' => true, 'default' => null])
			->save();
	}
298625
public function change()
    {
        $table = $this->table('languages');
        $table->addColumn('is_rtl', 'boolean', [
            'default' => false,
            'null' => false,
        ]);
        $table->addColumn('trashed', 'datetime', [
            'default' => null,
            'null' => true,
        ]);
        $table->changeColumn('is_active', 'boolean', [
            'default' => true,
            'null' => false,
        ]);
        $table->renameColumn('short_code', 'code');
        $table->removeColumn('description');
        $table->update();
    }
701399
public function change()
    {
        $table = $this->table('calendar_events');
        $hasSource = $table->hasColumn('event_source');
        $hasSourceId = $table->hasColumn('event_source_id');

        if ($hasSource) {
            $table->renameColumn('event_source', 'source');
        }

        if ($hasSourceId) {
            $table->renameColumn('event_source_id', 'source_id');
        }
    }
962086
public function change()
    {
        $tableName = 'language_translations';
        if (!$this->hasTable($tableName)) {
            $tableName = 'translations';
        }

        $table = $this->table($tableName);
        if ($table->hasColumn('created')) {
            $table->changeColumn('created', 'datetime', [
                'default' => null,
                'null' => true
            ]);
        }
        if ($table->hasColumn('modified')) {
            $table->changeColumn('modified', 'datetime', [
                'default' => null,
                'null' => true
            ]);
        }
        $table->save();
    }
643336
@Override
  public void addChange(DiffEntry change) {
    Path path = new Path(change.getNewPath());
    if (path.depth() == NODE_FILE_DEPTH) {
      addDataNode(change);
    } else if (path.depth() == EDGE_FILE_DEPTH) {
      addFlowEdge(change);
    }
  }
184469
public function changeState($name)
    {
        $this->state = $name;
        $this->history[] = $name;
        $this->hasChanged = true;
    }
185741
public function change()
    {
        $tableName = 'language_translations';
        if (!$this->hasTable($tableName)) {
            $tableName = 'translations';
        }

        $table = $this->table($tableName);
        if ($table->hasColumn('is_active')) {
            $table->changeColumn('is_active', 'boolean', [
                'default' => true,
                'null' => true,
            ]);
        }
        $table->update();
    }
198657
def _change_structure(self, new_structure):
        """"""
        # Compare new and old structure for logging purpose.
        # TODO: Write method of structure to compare self and other and return a dictionary
        old_structure = self.input.structure
        old_lattice = old_structure.lattice

        abc_diff = np.array(new_structure.lattice.abc) - np.array(old_lattice.abc)
        angles_diff = np.array(new_structure.lattice.angles) - np.array(old_lattice.angles)
        cart_diff = new_structure.cart_coords - old_structure.cart_coords
        displs = np.array([np.sqrt(np.dot(v, v)) for v in cart_diff])

        recs, tol_angle, tol_length = [], 10**-2, 10**-5

        if np.any(np.abs(angles_diff) > tol_angle):
            recs.append("new_agles - old_angles = %s" % angles_diff)

        if np.any(np.abs(abc_diff) > tol_length):
            recs.append("new_abc - old_abc = %s" % abc_diff)

        if np.any(np.abs(displs) > tol_length):
            min_pos, max_pos = displs.argmin(), displs.argmax()
            recs.append("Mean displ: %.2E, Max_displ: %.2E (site %d), min_displ: %.2E (site %d)" %
                (displs.mean(), displs[max_pos], max_pos, displs[min_pos], min_pos))

        self.history.info("Changing structure (only significant diffs are shown):")
        if not recs:
            self.history.info("Input and output structure seems to be equal within the given tolerances")
        else:
            for rec in recs:
                self.history.info(rec)

        self.input.set_structure(new_structure)
786807
public function actionChangeSettings()
    {
        $params = Yii::$app->request->bodyParams;
        
        foreach ($params as $param => $value) {
            Yii::$app->adminuser->identity->setting->set($param, $value);
        }
        
        return true;
    }
842450
def populate(self, other):
        """"""
        self.clear()
        self.update(other)
        self.reset_all_changes()
926060
protected function proceedChangeSetsDependsOnRelation()
    {
        $dbHandle = $this->getDatabase()->getDatabaseConnection();

        $tmpTable = Database::TABLE_TMP_DEPENDS_NEEDED;
        $changeSetTable = Database::TABLE_CHANGESET;
        $patchSetTable = Database::TABLE_PATCHSET;

        $query = '
            UPDATE
                ' . $tmpTable . '
                INNER JOIN ' . $changeSetTable . ' AS dependsOnChangeset ON (
                    ' . $tmpTable . '.`identifier` = dependsOnChangeset.`identifier`
                    AND ' . $tmpTable . '.`number` = dependsOnChangeset.`number`
                )
                INNER JOIN ' . $patchSetTable . ' ON (
                    dependsOnChangeset.`id` = ' . $patchSetTable . '.`changeset`
                    AND ' . $patchSetTable . '.`revision` = ' . $tmpTable . '.`revision`
                    AND ' . $patchSetTable . '.`ref` = ' . $tmpTable . '.`ref`
                )
                INNER JOIN ' . $changeSetTable . ' ON (
                    ' . $changeSetTable . '.`id` = ' . $tmpTable . '.`changeset`
                )
            SET
                ' . $changeSetTable . '.`depends_on` = dependsOnChangeset.`id`
            WHERE
                ' . $tmpTable . '.`status` = ' . intval(Database::TMP_DEPENDS_NEEDED_STATUS_DEPENDSON);

        $dbHandle->exec($query);
    }
776716
function (change) {
			if (this.compoundChange) {
				this.compoundChange.add(change);
			} else {
				var length = this.stack.length;
				this.stack.splice(this.index, length-this.index, change);
				this.index++;
				if (this.stack.length > this.size) {
					this.stack.shift();
					this.index--;
				}
			}
		}