original_string: public function offsetSet($offset, $value)
  	{
  		if ($this->offsetExists($offset))
  		{
  			$index = (int) ($offset / 8);
  
  			if ($value)
  			{
  				$this->data[$index] = chr(ord($this->data[$index]) | (1 << $offset % 8));
  			}
  			else
  			{
  				$this->data[$index] = chr(ord($this->data[$index]) & ~(1 << $offset % 8));
  			}
  		}
  		else
  		{
  			throw new \OutOfRangeException('Argument index must be a positive integer lesser than the size');
  		}
  	}
code: public function offsetSet($offset, $value)
  	{
  		if ($this->offsetExists($offset))
  		{
  			$index = (int) ($offset / 8);
  
  			if ($value)
  			{
  				$this->data[$index] = chr(ord($this->data[$index]) | (1 << $offset % 8));
  			}
  			else
  			{
  				$this->data[$index] = chr(ord($this->data[$index]) & ~(1 << $offset % 8));
  			}
  		}
  		else
  		{
  			throw new \OutOfRangeException('Argument index must be a positive integer lesser than the size');
  		}
  	}
code_tokens: public function offsetSet ( $ offset , $ value ) { if ( $ this -> offsetExists ( $ offset ) ) { $ index = ( int ) ( $ offset / 8 ) ; if ( $ value ) { $ this -> data [ $ index ] = chr ( ord ( $ this -> data [ $ index ] ) | ( 1 << $ offset % 8 ) ) ; } else { $ this -> data [ $ index ] = chr ( ord ( $ this -> data [ $ index ] ) & ~ ( 1 << $ offset % 8 ) ) ; } } else { throw new \ OutOfRangeException ( 'Argument index must be a positive integer lesser than the size' ) ; } }
docstring: Set the truth value for an index
  
  @param   integer  $offset  The offset
  @param   boolean  $value   The truth value
  
  @return  void
  
  @throw   \OutOfRangeException  Argument index must be an positive integer lesser than the size
  
  @since   1.0.0
docstring_tokens: Set the truth value for an index