Reset the ID sequence for a model.
497020
def reset_sequence(model):
    
    sql = connection.ops.sequence_reset_sql(no_style(), [model])
    for cmd in sql:
        connection.cursor().execute(cmd)
954211
public function reset()
    {
        $this->values[self::SEQUENCE] = null;
        $this->values[self::LOCALBASEKEY] = null;
        $this->values[self::LOCALBASEKEYPRIVATE] = null;
        $this->values[self::LOCALRATCHETKEY] = null;
        $this->values[self::LOCALRATCHETKEYPRIVATE] = null;
        $this->values[self::LOCALIDENTITYKEY] = null;
        $this->values[self::LOCALIDENTITYKEYPRIVATE] = null;
    }
58212
def reset( self ):
        
        dataSet = self.dataSet()
        if ( not dataSet ):
            dataSet = XScheme()
        
        dataSet.reset()
521191
def reset(self):
        """"""
        with self.lock:
            if self.cache:
                if self.use_tmp:
                    shutil.rmtree(self.tmp_dir, ignore_errors=True)
                else:
                    self.templates = {}
1054309
def reset_params(self):
        """"""
        units = [self.input_units]
        units += [self.hidden_units] * self.num_hidden
        units += [self.output_units]

        sequence = []
        for u0, u1 in zip(units, units[1:]):
            sequence.append(nn.Linear(u0, u1))
            sequence.append(self.nonlin)
            sequence.append(nn.Dropout(self.dropout))

        sequence = sequence[:-2]
        if self.output_nonlin:
            sequence.append(self.output_nonlin)

        self.sequential = nn.Sequential(*sequence)
227845
protected function resetProductIds(){
        foreach($this->options as $op=>$junk){
            if(preg_match("#IdList#",$op)){
                unset($this->options[$op]);
            }
        }
    }
636112
def _reset_internal(self):
        
        super()._reset_internal()

        # reset positions of objects
        self.model.place_objects()

        # reset joint positions
        init_pos = np.array([-0.5538, -0.8208, 0.4155, 1.8409, -0.4955, 0.6482, 1.9628])
        init_pos += np.random.randn(init_pos.shape[0]) * 0.02
        self.sim.data.qpos[self._ref_joint_pos_indexes] = np.array(init_pos)
134703
protected function resetReportIds(){
        foreach($this->options as $op=>$junk){
            if(preg_match("#ReportIdList#",$op)){
                unset($this->options[$op]);
            }
        }
    }
1242229
def _reset_changes(self):
        """"""
        self._original = {}
        if self.last_updated is not None:
            self._original['last_updated'] = self.last_updated
637006
def reset(self):
        """"""
        self.colNames,self.colDesc,self.colUnits,self.colComments,\
        self.colTypes,self.colData=[],[],[],[],[],[]
703119
def clear(self):
    """"""
    value = self._sum / tf.cast(self._count, self._dtype)
    with tf.control_dependencies([value]):
      reset_value = self._sum.assign(tf.zeros_like(self._sum))
      reset_count = self._count.assign(0)
    with tf.control_dependencies([reset_value, reset_count]):
      return tf.identity(value)
811775
public function reset()
    {
        $this->values[self::ID] = null;
        $this->values[self::BASEKEY] = null;
        $this->values[self::RATCHETKEY] = null;
        $this->values[self::IDENTITYKEY] = null;
        $this->values[self::BASEKEYSIGNATURE] = null;
    }
270603
private void resetIdentifierType()
  {
    Expression expression = getExpression();
    if( expression == null )
    {
      return;
    }

    Identifier identifier = getIdentifier();
    if( identifier == null )
    {
      return;
    }

    ISymbol symbol = identifier.getSymbol();
    if( symbol.getType() == GosuParserTypes.NULL_TYPE() )
    {
      symbol.setType( expression.getType() );
    }
  }
1237797
def reset_sequence(app_label):
    

    puts("Resetting primary key sequence for {0}".format(app_label))

    cursor = connection.cursor()
    cmd = get_reset_command(app_label)
    cursor.execute(cmd)
955954
def reset(self):
        """"""
        if getattr(self, 'num', None) is None:
            self.num_inst = 0
            self.sum_metric = 0.0
        else:
            self.num_inst = [0] * self.num
            self.sum_metric = [0.0] * self.num
        self.records = dict()
        self.counts = dict()
161416
def reset(self):
        
        with util.disable_constant(self):
            for k, p in self.params().items():
                if k != 'name':
                    setattr(self, k, p.default)
935058
def _reset(self):
        """"""
        self.records = list()
        self.featsbyid = dict()
        self.featsbyparent = dict()
        self.countsbytype = dict()