original_string: private static function createModel( $row )
      {
          $table_name = get_called_class();
          
          $model = new $table_name();
          
          $model->setExists( true );
          
          foreach ( $row as $key => $value )
          {
              if ( !is_int($key) )
              {
                  $model->$key = $value;
                  $model->_snapshot[$key] = $value;
              }
          }
          
          return $model;
      }
code: private static function createModel( $row )
      {
          $table_name = get_called_class();
          
          $model = new $table_name();
          
          $model->setExists( true );
          
          foreach ( $row as $key => $value )
          {
              if ( !is_int($key) )
              {
                  $model->$key = $value;
                  $model->_snapshot[$key] = $value;
              }
          }
          
          return $model;
      }
code_tokens: private static function createModel ( $ row ) { $ table_name = get_called_class ( ) ; $ model = new $ table_name ( ) ; $ model -> setExists ( true ) ; foreach ( $ row as $ key => $ value ) { if ( ! is_int ( $ key ) ) { $ model -> $ key = $ value ; $ model -> _snapshot [ $ key ] = $ value ; } } return $ model ; }
docstring: Helper function to create and initialize a model
docstring_tokens: Helper function to create and initialize a model